From a9d19c5b5f67ebbefb73dd7869b83742795e9e2e Mon Sep 17 00:00:00 2001 From: Hermann Stamm-Wilbrandt Date: Wed, 18 Sep 2024 17:03:45 +0200 Subject: [PATCH] Prepend "use strict" to all 15 examples (#122) As discussed on discord. Only ``` "use strict" ``` without semicolon as many don't like semicolon on discord --- apps/jscad-web/examples/AMFImport/index.js | 1 + apps/jscad-web/examples/STLImport/index.js | 1 + apps/jscad-web/examples/SVGImport/index.js | 1 + apps/jscad-web/examples/balloons.example.js | 1 + apps/jscad-web/examples/extrusions.example.js | 1 + apps/jscad-web/examples/gear.example.js | 1 + apps/jscad-web/examples/hulls.example.js | 1 + apps/jscad-web/examples/jscad.example.js | 1 + apps/jscad-web/examples/multipart.project.template.js | 1 + apps/jscad-web/examples/nuts-and-bolts.example.js | 1 + apps/jscad-web/examples/parameters.example.js | 1 + apps/jscad-web/examples/primitives.example.js | 1 + apps/jscad-web/examples/slicer.example.js | 1 + apps/jscad-web/examples/svg.tester.js | 1 + apps/jscad-web/examples/text.example.js | 1 + 15 files changed, 15 insertions(+) diff --git a/apps/jscad-web/examples/AMFImport/index.js b/apps/jscad-web/examples/AMFImport/index.js index dd707f36..33c83907 100644 --- a/apps/jscad-web/examples/AMFImport/index.js +++ b/apps/jscad-web/examples/AMFImport/index.js @@ -1,3 +1,4 @@ +"use strict" /** * AMF Import Demonstration * @category Imports diff --git a/apps/jscad-web/examples/STLImport/index.js b/apps/jscad-web/examples/STLImport/index.js index d3c6a2c9..550f1899 100644 --- a/apps/jscad-web/examples/STLImport/index.js +++ b/apps/jscad-web/examples/STLImport/index.js @@ -1,3 +1,4 @@ +"use strict" /** * STL Import Demonstration * @category Imports diff --git a/apps/jscad-web/examples/SVGImport/index.js b/apps/jscad-web/examples/SVGImport/index.js index 06ca6e87..702953a4 100644 --- a/apps/jscad-web/examples/SVGImport/index.js +++ b/apps/jscad-web/examples/SVGImport/index.js @@ -1,3 +1,4 @@ +"use strict" /** * SVG Import Demonstration * @category Imports diff --git a/apps/jscad-web/examples/balloons.example.js b/apps/jscad-web/examples/balloons.example.js index 27cf0959..b708c3e5 100644 --- a/apps/jscad-web/examples/balloons.example.js +++ b/apps/jscad-web/examples/balloons.example.js @@ -1,3 +1,4 @@ +"use strict" /** * Birthday Balloons with interactive parameters * @authors Z3 Dev, Simon Clark diff --git a/apps/jscad-web/examples/extrusions.example.js b/apps/jscad-web/examples/extrusions.example.js index 1dce0ed2..c0927f01 100644 --- a/apps/jscad-web/examples/extrusions.example.js +++ b/apps/jscad-web/examples/extrusions.example.js @@ -1,3 +1,4 @@ +"use strict" /** * Demonstrates the types of extrusions, and the variety of objects they can create. */ diff --git a/apps/jscad-web/examples/gear.example.js b/apps/jscad-web/examples/gear.example.js index f6078d0b..1e3c0525 100644 --- a/apps/jscad-web/examples/gear.example.js +++ b/apps/jscad-web/examples/gear.example.js @@ -1,3 +1,4 @@ +"use strict" /** * Build a Parametric Involute Gear as a parametric design. * @authors Joost Nieuwenhuijse, Simon Clark diff --git a/apps/jscad-web/examples/hulls.example.js b/apps/jscad-web/examples/hulls.example.js index f4db70ad..3c272543 100644 --- a/apps/jscad-web/examples/hulls.example.js +++ b/apps/jscad-web/examples/hulls.example.js @@ -1,3 +1,4 @@ +"use strict" /** * Demonstrates Hull and Hull Chain operations in 2D and 3D */ diff --git a/apps/jscad-web/examples/jscad.example.js b/apps/jscad-web/examples/jscad.example.js index 54f9f2ff..a8ad46d5 100644 --- a/apps/jscad-web/examples/jscad.example.js +++ b/apps/jscad-web/examples/jscad.example.js @@ -1,3 +1,4 @@ +"use strict" const jscad = require('@jscad/modeling') const { intersect, subtract } = jscad.booleans const { colorize } = jscad.colors diff --git a/apps/jscad-web/examples/multipart.project.template.js b/apps/jscad-web/examples/multipart.project.template.js index 99d84a7e..2a57fd41 100644 --- a/apps/jscad-web/examples/multipart.project.template.js +++ b/apps/jscad-web/examples/multipart.project.template.js @@ -1,3 +1,4 @@ +"use strict" /** * Demonstrates a multipart project with part select input. * diff --git a/apps/jscad-web/examples/nuts-and-bolts.example.js b/apps/jscad-web/examples/nuts-and-bolts.example.js index 2969f283..c2df9ff7 100644 --- a/apps/jscad-web/examples/nuts-and-bolts.example.js +++ b/apps/jscad-web/examples/nuts-and-bolts.example.js @@ -1,3 +1,4 @@ +"use strict" /** * Nuts and Bolts * Demonstrates advanced extrusion using slices to generate screw threads. diff --git a/apps/jscad-web/examples/parameters.example.js b/apps/jscad-web/examples/parameters.example.js index c8a6fa15..cd2d0073 100644 --- a/apps/jscad-web/examples/parameters.example.js +++ b/apps/jscad-web/examples/parameters.example.js @@ -1,3 +1,4 @@ +"use strict" /** * Demonstrate all available parameter types */ diff --git a/apps/jscad-web/examples/primitives.example.js b/apps/jscad-web/examples/primitives.example.js index 780aadf1..05481634 100644 --- a/apps/jscad-web/examples/primitives.example.js +++ b/apps/jscad-web/examples/primitives.example.js @@ -1,3 +1,4 @@ +"use strict" /** * JSCAD Primitives Demonstration * Demonstrates the basics of a variety of 2D and 3D primitives diff --git a/apps/jscad-web/examples/slicer.example.js b/apps/jscad-web/examples/slicer.example.js index 472c40ac..e1df9c32 100644 --- a/apps/jscad-web/examples/slicer.example.js +++ b/apps/jscad-web/examples/slicer.example.js @@ -1,3 +1,4 @@ +"use strict" /** * Slice a geometry object into layers */ diff --git a/apps/jscad-web/examples/svg.tester.js b/apps/jscad-web/examples/svg.tester.js index e2c84bb5..20822cc1 100644 --- a/apps/jscad-web/examples/svg.tester.js +++ b/apps/jscad-web/examples/svg.tester.js @@ -1,3 +1,4 @@ +"use strict" /* if you do not see the shape, it couldbe that it is out os view, so zoom out to check if you have a single shape svg that is red, it is inverted diff --git a/apps/jscad-web/examples/text.example.js b/apps/jscad-web/examples/text.example.js index a2539de4..72aacbc5 100644 --- a/apps/jscad-web/examples/text.example.js +++ b/apps/jscad-web/examples/text.example.js @@ -1,3 +1,4 @@ +"use strict" /** * Demonstrates methods of building 3D text * @authors Simon Clark