Skip to content

Commit

Permalink
Prepend "use strict" to all 15 examples (#122)
Browse files Browse the repository at this point in the history
As discussed on discord.
Only
```
"use strict"
```
without semicolon as many don't like semicolon on discord
  • Loading branch information
Hermann-SW authored Sep 18, 2024
1 parent 9da7ddf commit a9d19c5
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/jscad-web/examples/AMFImport/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* AMF Import Demonstration
* @category Imports
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/STLImport/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* STL Import Demonstration
* @category Imports
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/SVGImport/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* SVG Import Demonstration
* @category Imports
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/balloons.example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* Birthday Balloons with interactive parameters
* @authors Z3 Dev, Simon Clark
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/extrusions.example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* Demonstrates the types of extrusions, and the variety of objects they can create.
*/
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/gear.example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* Build a Parametric Involute Gear as a parametric design.
* @authors Joost Nieuwenhuijse, Simon Clark
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/hulls.example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* Demonstrates Hull and Hull Chain operations in 2D and 3D
*/
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/jscad.example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
const jscad = require('@jscad/modeling')
const { intersect, subtract } = jscad.booleans
const { colorize } = jscad.colors
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/multipart.project.template.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* Demonstrates a multipart project with part select input.
*
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/nuts-and-bolts.example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* Nuts and Bolts
* Demonstrates advanced extrusion using slices to generate screw threads.
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/parameters.example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* Demonstrate all available parameter types
*/
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/primitives.example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* JSCAD Primitives Demonstration
* Demonstrates the basics of a variety of 2D and 3D primitives
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/slicer.example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* Slice a geometry object into layers
*/
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/svg.tester.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions apps/jscad-web/examples/text.example.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use strict"
/**
* Demonstrates methods of building 3D text
* @authors Simon Clark
Expand Down

0 comments on commit a9d19c5

Please sign in to comment.