From c3ee6f593d3eac4891f79f40f8da62009e04cc03 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Fri, 2 Oct 2026 07:02:32 +0200 Subject: [PATCH] chore: move d3 to extra folder to separate own js and external js --- assets/js/{ => d3}/LICENSE.d3 | 0 assets/js/{ => d3}/LICENSE.d3-cloud | 0 assets/js/{ => d3}/d3.js | 0 assets/js/{ => d3}/d3.layout.cloud.js | 0 howto/MakeCodeParametric.html | 16 ++++++++-------- 5 files changed, 8 insertions(+), 8 deletions(-) rename assets/js/{ => d3}/LICENSE.d3 (100%) rename assets/js/{ => d3}/LICENSE.d3-cloud (100%) rename assets/js/{ => d3}/d3.js (100%) rename assets/js/{ => d3}/d3.layout.cloud.js (100%) diff --git a/assets/js/LICENSE.d3 b/assets/js/d3/LICENSE.d3 similarity index 100% rename from assets/js/LICENSE.d3 rename to assets/js/d3/LICENSE.d3 diff --git a/assets/js/LICENSE.d3-cloud b/assets/js/d3/LICENSE.d3-cloud similarity index 100% rename from assets/js/LICENSE.d3-cloud rename to assets/js/d3/LICENSE.d3-cloud diff --git a/assets/js/d3.js b/assets/js/d3/d3.js similarity index 100% rename from assets/js/d3.js rename to assets/js/d3/d3.js diff --git a/assets/js/d3.layout.cloud.js b/assets/js/d3/d3.layout.cloud.js similarity index 100% rename from assets/js/d3.layout.cloud.js rename to assets/js/d3/d3.layout.cloud.js diff --git a/howto/MakeCodeParametric.html b/howto/MakeCodeParametric.html index e0f0bab8..32e86b3a 100644 --- a/howto/MakeCodeParametric.html +++ b/howto/MakeCodeParametric.html @@ -9,8 +9,8 @@ - - + + @@ -76,10 +76,10 @@

OpenSCAD - HowTo

Let's setup some reusable functions. First, sum a vector (or a subset of a vector).

-function vecsum(v,until= -1) = [ 
+function vecsum(v,until= -1) = [
     for (
-        a=0, b= v[0]; 
-        a < (until > 0 ? until : len(v)); 
+        a=0, b= v[0];
+        a < (until > 0 ? until : len(v));
         a= a+1, b= b + (v[a] == undef ? 0 : v[a])
     ) b
 ];
@@ -142,8 +142,8 @@ 

OpenSCAD - HowTo

 heights = [ thin_h, wide_h, thin_h ];
 
-module translate_z(v, i) 
-    translate([0, 0, z_offset_from_vec(v, i)]) 
+module translate_z(v, i)
+    translate([0, 0, z_offset_from_vec(v, i)])
         children();
 
 translate_z(heights, 0) thin_cube();
@@ -270,4 +270,4 @@ 

OpenSCAD - HowTo

- \ No newline at end of file +