@mylasertools/kerfscript 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +287 -0
  2. package/LANGUAGE.md +100 -44
  3. package/README.md +2 -1
  4. package/dist/assembly.d.cts +22 -1
  5. package/dist/assembly.d.ts +22 -1
  6. package/dist/bores.d.cts +10 -0
  7. package/dist/bores.d.ts +10 -0
  8. package/dist/cli.js +9977 -6847
  9. package/dist/colors.d.cts +4 -0
  10. package/dist/colors.d.ts +4 -0
  11. package/dist/customizer.d.cts +3 -0
  12. package/dist/customizer.d.ts +3 -0
  13. package/dist/effects.d.cts +31 -0
  14. package/dist/effects.d.ts +31 -0
  15. package/dist/evaluator.d.cts +10 -1
  16. package/dist/evaluator.d.ts +10 -1
  17. package/dist/export/mesh.d.cts +66 -0
  18. package/dist/export/mesh.d.ts +66 -0
  19. package/dist/export/model.d.cts +14 -0
  20. package/dist/export/model.d.ts +14 -0
  21. package/dist/export/pages.d.cts +23 -0
  22. package/dist/export/pages.d.ts +23 -0
  23. package/dist/export/triangulate.d.cts +5 -0
  24. package/dist/export/triangulate.d.ts +5 -0
  25. package/dist/export/zip.d.cts +5 -0
  26. package/dist/export/zip.d.ts +5 -0
  27. package/dist/geometry.d.cts +21 -0
  28. package/dist/geometry.d.ts +21 -0
  29. package/dist/hardware.d.cts +2 -0
  30. package/dist/hardware.d.ts +2 -0
  31. package/dist/highlight.cjs +2 -2
  32. package/dist/highlight.js +2 -2
  33. package/dist/import/dbg.d.cts +1 -0
  34. package/dist/import/dbg.d.ts +1 -0
  35. package/dist/index.cjs +1693 -75
  36. package/dist/index.d.cts +9 -3
  37. package/dist/index.d.ts +9 -3
  38. package/dist/index.js +1693 -75
  39. package/dist/instructions.d.cts +27 -0
  40. package/dist/instructions.d.ts +27 -0
  41. package/dist/language.cjs +1664 -53
  42. package/dist/language.js +1664 -53
  43. package/dist/libraries.cjs +1641 -36
  44. package/dist/libraries.js +1641 -36
  45. package/dist/lights.d.cts +38 -0
  46. package/dist/lights.d.ts +38 -0
  47. package/dist/png.d.cts +14 -0
  48. package/dist/png.d.ts +14 -0
  49. package/dist/render.d.cts +8 -0
  50. package/dist/render.d.ts +8 -0
  51. package/dist/signatures.cjs +98 -9
  52. package/dist/signatures.js +98 -9
  53. package/dist/text.d.cts +29 -0
  54. package/dist/text.d.ts +29 -0
  55. package/dist/verify/types.d.cts +6 -0
  56. package/dist/verify/types.d.ts +6 -0
  57. package/docs/3d-files.md +93 -0
  58. package/docs/cli.md +38 -22
  59. package/docs/customizer.md +69 -0
  60. package/docs/javascript.md +51 -0
  61. package/docs/layers.md +24 -1
  62. package/docs/library.md +574 -16
  63. package/docs/openscad.md +15 -13
  64. package/docs/parts-and-sheets.md +207 -29
  65. package/docs/verification.md +1 -1
  66. package/docs/versions.md +2 -2
  67. package/package.json +1 -1
package/docs/openscad.md CHANGED
@@ -23,15 +23,15 @@ See the [language reference](../LANGUAGE.md) for supported arguments.
23
23
 
24
24
  ## Different
25
25
 
26
- | Feature | OpenSCAD | KerfScript |
27
- | ----------- | ------------------------------------------------------------ | ---------------------------------------------------------- |
28
- | Geometry | 3D and 2D | 2D parts for laser cutting |
29
- | Output | 3D formats and 2D exports | SVG and DXF with operation layers |
30
- | Assignments | The last assignment in a scope applies throughout that scope | Assignments take effect in order |
31
- | Type errors | Many produce `undef` and a warning | Stop evaluation with an error |
32
- | `color()` | Sets a shape's colour | Use `cut()`, `score()`, `engrave()` or `layer()` |
33
- | Fonts | Looks up system fonts | Uses fonts supplied by the application or CLI |
34
- | Libraries | Can load local files | Loads the standard library and sources allowed by the host |
26
+ | Feature | OpenSCAD | KerfScript |
27
+ | ----------- | ------------------------------------------------------------ | ------------------------------------------------------------------------ |
28
+ | Geometry | 3D and 2D | 2D parts for laser cutting |
29
+ | Output | 3D formats and 2D exports | SVG and DXF with operation layers |
30
+ | Assignments | The last assignment in a scope applies throughout that scope | Assignments take effect in order |
31
+ | Type errors | Many produce `undef` and a warning | Stop evaluation with an error |
32
+ | `color()` | Sets a shape's colour | Ignored with a warning; use `cut()`, `score()`, `engrave()` or `layer()` |
33
+ | Fonts | Looks up system fonts | Uses fonts supplied by the application or CLI |
34
+ | Libraries | Can load local files | Loads the standard library and sources allowed by the host |
35
35
 
36
36
  Assignment order is especially important when adapting a design. A value
37
37
  assigned later in a KerfScript program does not change earlier geometry.
@@ -39,11 +39,13 @@ assigned later in a KerfScript program does not change earlier geometry.
39
39
  ## Not in KerfScript
40
40
 
41
41
  KerfScript does not support `cube`, `sphere`, `cylinder`, `polyhedron`,
42
- `linear_extrude`, `rotate_extrude` or `projection`. It also does not support
43
- `minkowski`, `resize`, `color`, `import`, `surface` or `render`.
42
+ `rotate_extrude` or `projection`. It also does not support `minkowski`,
43
+ `resize`, `import`, `surface` or `render`. Calls to these modules produce an
44
+ error.
44
45
 
45
- Calls to these modules produce an error. For a design based on an extruded
46
- 2D outline, start with that outline and remove the extrusion.
46
+ `color()` and `linear_extrude()` run as their children, with a warning, so
47
+ the 2D part of an OpenSCAD file runs as it is: `linear_extrude(3) shape();`
48
+ cuts `shape()` as a flat part, whose thickness comes from `$thickness`.
47
49
 
48
50
  ## Only in KerfScript
49
51
 
@@ -90,6 +90,25 @@ use <kerf/box>
90
90
  place(at = [20, 10, 30], rotate = [0, 0, 90]) box([80, 60, 40], name = "crate");
91
91
  ```
92
92
 
93
+ ### Copies that differ
94
+
95
+ Inside `part(qty = n)`, `$copy` is the copy being drawn, 0 up to n - 1. A
96
+ part whose drawing reads it is drawn once for each copy, so a set of
97
+ ornaments takes a name each, or drawers a number each:
98
+
99
+ ```kerf
100
+ names = ["Anna", "Ben", "Cleo", "Dan"];
101
+ part("tag", qty = len(names)) {
102
+ difference() { rect([50, 20], r = 3); translate([6, 10]) circle(d = 4); }
103
+ engrave() translate([30, 10]) text(names[$copy], fit = [32, 10], halign = "center", valign = "center");
104
+ }
105
+ ```
106
+
107
+ Copies that come out alike stay one part; each that differs is a part of
108
+ its own with the same name, and the parts list says which copies it is:
109
+ `tag (copies 1, 4) x2`. With `at` given per copy, each goes to its own
110
+ place.
111
+
93
112
  ### Stacks, mirrored pairs and glued layers
94
113
 
95
114
  - `stack = 3` glues three layers at each placement, one thickness apart:
@@ -97,13 +116,31 @@ place(at = [20, 10, 30], rotate = [0, 0, 90]) box([80, 60, 40], name = "crate");
97
116
  many make a stack.
98
117
  - `material = "red acrylic"` names the material the part is cut from,
99
118
  as wrapping it in `material(name = "red acrylic")` would.
119
+ - `pieces = 2` says the part is meant to cut into two separate pieces,
120
+ as a pair of eyes glued on side by side; `pieces = "any"` takes any
121
+ number. Without it, a part in pieces warns, as a missing connection
122
+ usually makes one. A part that cuts into a different number of pieces
123
+ than `pieces` says still warns.
124
+ - `paint = "red"` paints the part after cutting: the 3D view and the
125
+ print layout show it red, while it stays on the sheet of its material.
126
+ `material = "red acrylic"` is for stock that comes red, and puts the
127
+ part on a sheet of its own. A colour is a name (`red`, `orange`,
128
+ `yellow`, `light yellow`, `green`, `dark green`, `light green`, `lime`,
129
+ `olive`, `blue`, `dark blue`, `light blue`, `navy`, `teal`, `purple`,
130
+ `pink`, `light pink`, `maroon`, `brown`, `light brown`, `dark brown`,
131
+ `tan`, `beige`, `peach`, `cream`, `skin`, `white`, `black`, `grey`,
132
+ `light grey`, `dark grey`, `silver`, `gold`, `copper`)
133
+ or a hex colour such as `"#c8372d"`. To paint only some areas, use a
134
+ paint layer, as [Layers](layers.md#painted-areas) shows.
100
135
  - `mirror = true` cuts the part mirrored left to right. A lopsided end
101
136
  plate's other half is the same part mirrored, and its engraving still
102
- reads the right way round.
137
+ reads the right way round. A mirrored copy of a bent part bends as its
138
+ mirror image: give `bend` as for the part itself.
103
139
  - `glue = "top plate", face = "top"` lays a part on another part's face,
104
140
  its `at` and `rotate` measured on that face. Move the plate, and what is
105
141
  glued on it moves too. A stack glued under a part (`face = "bottom"`)
106
- grows down, away from it.
142
+ grows down, away from it. A part glued to a stack goes on the stack's
143
+ outer layer, on top of it or under it.
107
144
 
108
145
  ```kerf
109
146
  part("seat", at = [0, 0, 40]) rect([80, 80], r = 6);
@@ -122,12 +159,15 @@ bent by a living hinge cuts slots for the tabs on its straight runs. A part
122
159
  must reach 1 mm into it (or half way through a thinner one) to cut a slot,
123
160
  and a blind tab's slot goes through: one that only dips into the surface is
124
161
  misplaced, and the collision check reports it rather than a
125
- slot hiding it.
162
+ slot hiding it. Each tab is judged on its own depth, however deep the
163
+ others of its part go.
126
164
 
127
165
  The layers of a stack each cut the slots that pass through them. When they
128
166
  differ, as a bench top of `stack = 2` taking the legs' tabs in its lower
129
167
  layer and a vice's in its upper one, the stack becomes a part per layer,
130
168
  `top, layer 1` and `top, layer 2`, so blind joints don't show through.
169
+ `halving = "top"` still finds both, and `--print` still prints them as
170
+ one stack.
131
171
 
132
172
  ```kerf
133
173
  part("shelf", slots = ["back"]) rect([100, 60]);
@@ -194,7 +234,8 @@ part("Cam", at = [30, 18, 20], rotate = [90, 0, 0], bores = ["Crank axle"],
194
234
  A living hinge bends a part, and the assembled view can show it bent.
195
235
  `bend = [x0, x1, angle]` bends the part along its x between x0 and x1, the
196
236
  far end folding up towards its top face by `angle` degrees (down for a
197
- negative angle); give a list for more than one bend. The hinge's middle
237
+ negative angle); give a list for more than one bend, or an empty list
238
+ for none. The hinge's middle
198
239
  layer keeps its length, so the radius follows from the hinge's width.
199
240
  Parts glued on a bent part take `on = "name"` and move with the run they
200
241
  sit on. `flex_strip()` in `kerf/hinge` works out the bends of a strip that
@@ -210,6 +251,74 @@ part("cover", bend = [[100, 100 + bend_length(10, 90), 90], [130, 130 + bend_len
210
251
 
211
252
  The collision check takes each flat run of a bent part on its own.
212
253
 
254
+ ### Folds
255
+
256
+ Card and paper fold along any line, not only along x. `fold = [from, to,
257
+ angle]`, or a list of them, folds the part along the line from one point
258
+ to the other in the assembled view: the folds cut it into panels, the
259
+ panel at the part's origin (else the biggest) stays flat, and each other
260
+ panel turns about the folds between it and that one, towards the top face
261
+ for an angle more than 0 and down for less. A fold must run from edge to
262
+ edge, or to a cut: cut lines inside the part, as a pop-up's slits, part
263
+ the panels too, and a fold that divides nothing warns. `fold_open = 0.5`
264
+ folds every fold half way, for a card shown half open; 0 lies flat.
265
+
266
+ Score the folds as well, so the card bends where it should:
267
+
268
+ ```kerf
269
+ $thickness = 0.4;
270
+ open = 1; // [0:0.05:1]
271
+ // A card with a pop-up step in the middle: two slits across the fold
272
+ part("card", at = [0, 0, 0], fold_open = open, fold = [
273
+ [[80, 0], [80, 40], 90], [[80, 60], [80, 100], 90],
274
+ [[70, 40], [70, 60], 90], [[80, 40], [80, 60], -90], [[90, 40], [90, 60], 90]
275
+ ]) {
276
+ rect([160, 100]);
277
+ for (y = [40, 60]) line([70, y], [90, y]);
278
+ score() {
279
+ line([80, 0], [80, 40]); line([80, 60], [80, 100]);
280
+ for (x = [70, 80, 90]) line([x, 40], [x, 60]);
281
+ }
282
+ }
283
+ ```
284
+
285
+ A part bends on living hinges or folds, not both. Folds show in the
286
+ assembled view and its 3D files; flat and print layouts lie flat.
287
+
288
+ ### Does it stand?
289
+
290
+ `$stands = true;` says the model is meant to stand on a shelf or table:
291
+ then it warns when its weight's centre is not over what it stands on, the
292
+ outline of its lowest points, as a figure leaning too far or an egg held
293
+ out beyond a small base. The parts weigh as plywood (`$density = 0.6`
294
+ g/cm³), and hardware weighs what its `mass` (grams) says, so an egg or a
295
+ bottle it holds counts:
296
+
297
+ ```kerf
298
+ $stands = true;
299
+ part("base", at = [-20, -20, 0]) rect([40, 40]);
300
+ part("arm", at = [0, -1.5, 3], rotate = [90, 0, 0]) rect([60, 5]);
301
+ // A 60 g egg held out past the base: the model tips over
302
+ hardware("ball", [55, 0, 30], size = 44, shape = "ball", mass = 60);
303
+ ```
304
+
305
+ ### Hanging parts
306
+
307
+ A part that hangs, as a shelf sitter's legs on cords or a charm on a ring,
308
+ swings until its weight is straight below the point it hangs from.
309
+ `hang = [x, y]` is that point on the part, in its own coordinates, and
310
+ `at` is where it hangs in the assembly; `rotate` sets the plane it swings
311
+ in. `cord = 20` hangs it 20 mm lower on a cord, which goes in the hardware
312
+ list and the 3D view; without it the part hangs on a ring or pin at `at`.
313
+
314
+ ```kerf
315
+ $thickness = 3;
316
+ part("body", at = [-20, 0, 0], rotate = [90, 0, 0]) rect([40, 50]);
317
+ // Legs drawn lying down: each swings down from its top end
318
+ part("leg", qty = 2, at = [[-10, -1.5, 2], [10, -1.5, 2]], rotate = [90, 0, 0],
319
+ hang = [0, 0], cord = 20) translate([0, -4]) rect([40, 8]);
320
+ ```
321
+
213
322
  ### Numbered parts
214
323
 
215
324
  `$label_parts = true;` numbers the parts 1, 2, 3 in the order they are
@@ -234,7 +343,7 @@ adds the step "Add the chair: Glue the seat". So a piece of furniture
234
343
  builds step by step on its own and inside a room. `step("Add the chair",
235
344
  substeps = false)` takes everything inside into the one step instead.
236
345
 
237
- `hardware(kind, from, to, size)` lists what else the model needs: a dowel
346
+ `hardware(kind, from, to, size, mass)` lists what else the model needs: a dowel
238
347
  from one point to another, a screw, a magnet, a strip of paper. `size` is
239
348
  a diameter, or `[w, h]` for a flat piece. `kerf check` lists the hardware
240
349
  with the parts, and the 3D view shows it.
@@ -248,30 +357,62 @@ The kinds are these; a colour (`pink`, `yellow`, `red`, `green`, `blue`,
248
357
  `orange`, `purple`, `black`, `grey`) works too, and any other kind warns
249
358
  and shows grey. JavaScript gets the list as `HARDWARE_KINDS`.
250
359
 
251
- | Kind | What it is | Shown |
252
- | ---------- | ------------------------------------------- | ---------------- |
253
- | `dowel` | a wooden dowel or axle | matt, #e2c48f |
254
- | `steel` | a steel rod, pin or axle | metal, #a7adb3 |
255
- | `brass` | a brass rod, tube or pin | metal, #c9a227 |
256
- | `screw` | a screw | metal, #9aa0a6 |
257
- | `bolt` | a bolt | metal, #9aa0a6 |
258
- | `nut` | a nut | metal, #9aa0a6 |
259
- | `magnet` | a disc or block magnet | metal, #55585c |
260
- | `paper` | a sheet or strip of paper | matt, #fbfaf6 |
261
- | `card` | card stock | matt, #f4f1e8 |
262
- | `felt` | felt pads or lining | matt, #6f6a64 |
263
- | `elastic` | an elastic band or cord | matt, #262626 |
264
- | `cord` | cord, string or thread | matt, #b23a3a |
265
- | `ribbon` | ribbon or tape | matt, #c2485a |
266
- | `wire` | wire | metal, #b87333 |
267
- | `led` | an LED or a strip of them | glowing, #fff4c2 |
268
- | `bulb` | a light bulb | glowing, #fff4c2 |
269
- | `ball` | a marble, ball or bead | matt, #8fb8d8 |
270
- | `tube` | a tube or hollow arbor | metal, #c9a227 |
271
- | `lens` | a lens | matt, #d6ecf3 |
272
- | `mirror` | a mirror | metal, #c8d3da |
273
- | `movement` | a bought clock, music box or motor movement | matt, #3d3d3d |
274
- | `white` | anything white | matt, #f7f7f4 |
360
+ | Kind | What it is | Shown |
361
+ | ---------- | -------------------------------------------- | -------------------- |
362
+ | `dowel` | a wooden dowel or axle | matt, #e2c48f |
363
+ | `steel` | a steel rod, pin or axle | metal, #a7adb3 |
364
+ | `brass` | a brass rod, tube or pin | metal, #c9a227 |
365
+ | `screw` | a screw | metal, #9aa0a6 |
366
+ | `bolt` | a bolt | metal, #9aa0a6 |
367
+ | `nut` | a nut | metal, #9aa0a6 |
368
+ | `magnet` | a disc or block magnet | metal, #55585c |
369
+ | `paper` | a sheet or strip of paper | translucent, #fbfaf6 |
370
+ | `vellum` | vellum or tracing paper, as a lantern window | translucent, #f3efe2 |
371
+ | `card` | card stock | matt, #f4f1e8 |
372
+ | `felt` | felt pads or lining | matt, #6f6a64 |
373
+ | `elastic` | an elastic band or cord | matt, #262626 |
374
+ | `cord` | cord, string or thread | matt, #b23a3a |
375
+ | `ribbon` | ribbon or tape | matt, #c2485a |
376
+ | `wire` | wire | metal, #b87333 |
377
+ | `led` | an LED or a strip of them, lit | glowing, #fff4c2 |
378
+ | `bulb` | a light bulb, lit | glowing, #fff4c2 |
379
+ | `tealight` | a tealight, lit, its flame flickering | metal, #d4d8dc |
380
+ | `ball` | a marble, ball or bead | matt, #8fb8d8 |
381
+ | `tube` | a tube or hollow arbor | metal, #c9a227 |
382
+ | `lens` | a lens | matt, #d6ecf3 |
383
+ | `mirror` | a mirror | metal, #c8d3da |
384
+ | `movement` | a bought clock, music box or motor movement | matt, #3d3d3d |
385
+ | `white` | anything white | matt, #f7f7f4 |
386
+
387
+ ### Lights
388
+
389
+ A tealight, an LED and a bulb give off light: the 3D view lights the model
390
+ with them, and GLB files carry them as point lights, for a render of a
391
+ lantern or a tealight house lit up. "Dim the room" in the 3D view turns the
392
+ room's lights down to show them.
393
+
394
+ - `hardware("tealight", [x, y, z])` stands a tealight, 39 mm across and
395
+ 16 mm high, on that point. Its flame burns 10 mm above the cup and
396
+ flickers. Give `to` and `size` for another size, as `size = 59` and `to`
397
+ 24 mm above for a maxi tealight.
398
+ - `hardware("led", from, to)` longer than 20 mm is a strip of LEDs, lit
399
+ all along; a shorter one, or a ball, is a single LED.
400
+ - `hardware("bulb", at, size = 60, shape = "ball")` is a bulb.
401
+ - `light(at, color = "warm white", lumens = 20)` is a light with nothing
402
+ to show for it, as a battery light hidden in a base. `to = [x, y, z]`
403
+ makes it a strip, and `flicker = true` a flame. The colour is `"warm
404
+ white"`, `"white"`, `"cool white"`, `"warm"`, `"flame"`, a paint
405
+ colour's name or a hex colour.
406
+
407
+ ```kerf
408
+ part("base", at = [-40, -40, 0]) rect([80, 80]);
409
+ hardware("tealight", [0, 0, 3]);
410
+ light([0, 0, 60], "cool white", lumens = 40);
411
+ ```
412
+
413
+ `render()` returns the lights as `lights`: each has `from` and `to` (the
414
+ same point unless it is a strip), `color`, `lumens`, `flicker`, `source`
415
+ (`"tealight"`, `"led"`, `"bulb"` or `"light"`), `step` and `label`.
275
416
 
276
417
  ```kerf
277
418
  step("Stand the walls in the base") {
@@ -299,6 +440,15 @@ The two plywood panels share a sheet. The acrylic window goes on a separate
299
440
  sheet. Each part records the `$thickness`, `$kerf` and `$material` values in
300
441
  effect where it is defined.
301
442
 
443
+ The 3D view and 3D files colour each part by the woods, sheets and colours
444
+ named in its material. A clear material (`clear`, `acrylic`, `perspex`,
445
+ `glass`) shows see-through. A translucent one (`vellum`, `tracing` paper,
446
+ `parchment`, `rice paper`, `frosted` acrylic, `paper`) lets light through:
447
+ a tealight behind a vellum window shows through it, and in GLB files it is
448
+ partly transparent with `KHR_materials_transmission`, so a renderer lights
449
+ it from behind. `hardware("vellum", ...)` and `hardware("paper", ...)` are
450
+ translucent too.
451
+
302
452
  ## Sheets
303
453
 
304
454
  Set the available sheet size and spacing in millimetres:
@@ -316,6 +466,27 @@ parts and at the sheet edges.
316
466
  A part larger than the sheet produces a warning. Set `$layout = "none"`
317
467
  to keep the positions from your code instead of packing the parts.
318
468
 
469
+ `part(split = true)` cuts a part too big for the bed, as large wall art, a
470
+ wreath or a sign, into pieces that fit the sheet less its margins;
471
+ `split = [w, h]` gives the size instead. The cuts run across the part in
472
+ columns and rows, each where it crosses the least material and keeps off
473
+ engraving, and where a cut crosses material it is joined by jigsaw knobs
474
+ `$knob` (12) mm across, with `$knob_clearance` (0.15 mm) between a knob and
475
+ its socket, placed clear of engraving. Each piece is a part of its own,
476
+ `"wreath piece 1"` up, in its place in the assembled view, and the parts
477
+ list says which pieces it joins.
478
+
479
+ ```kerf
480
+ $sheet = [300, 200];
481
+ part("wreath", split = true) {
482
+ difference() { circle(d = 480); circle(d = 320); }
483
+ engrave() for (a = [0:30:330]) rotate(a) translate([200, 0]) circle(8);
484
+ }
485
+ ```
486
+
487
+ Either way, parts of different materials or thicknesses go on separate
488
+ sheets: plywood parts on one, acrylic on another.
489
+
319
490
  The CLI `--margin` option and API `margin` option let you set the edge
320
491
  spacing separately from the gap between parts.
321
492
 
@@ -358,6 +529,13 @@ sheet turned over left to right: `design-back.svg` from the command line,
358
529
  sheet over without moving the parts in it, line it up on the same corner
359
530
  and run the back job.
360
531
 
532
+ The back job is the front file turned over within the file's own width,
533
+ the width in its SVG (`sheet.width` in JavaScript), not your stock's. On
534
+ stock just as wide as the file, the same corner lines up. On wider stock,
535
+ a 300 mm sheet for a 46 mm wide file, the turned-over parts lie the
536
+ difference further right, 254 mm here: start the back job that far from
537
+ the corner, or cut the stock to the file's width first.
538
+
361
539
  ```kerf
362
540
  part("coaster") {
363
541
  circle(d = 90);
@@ -42,7 +42,7 @@ need separate evidence. Unsupported cases and exhausted checking budgets remain
42
42
  unverified.
43
43
 
44
44
  Missing cutting metadata, open cutting lines affecting rigid material, bends,
45
- legacy `echo("hardware", ...)`, compiler warnings, exhausted budgets and numerical
45
+ folds, legacy `echo("hardware", ...)`, compiler warnings, exhausted budgets and numerical
46
46
  boundary cases cannot produce a required geometric pass. Cases refused by the
47
47
  renderer remain failed required configurations; they are not dropped from coverage.
48
48
 
package/docs/versions.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Versions
2
2
 
3
- KerfScript 0.9.0 implements language version 0.3. The package version tracks
3
+ KerfScript 0.11.0 implements language version 0.3. The package version tracks
4
4
  the software release; the language version tracks the syntax and behavior
5
5
  of `.kerf` programs.
6
6
 
@@ -30,4 +30,4 @@ files used with a design. Applications that store designs should retain
30
30
  that information and compare the output before upgrading the interpreter.
31
31
 
32
32
  Pin the npm package to an exact version when your application needs a fixed
33
- renderer, for example `@mylasertools/kerfscript@0.9.0`.
33
+ renderer, for example `@mylasertools/kerfscript@0.11.0`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mylasertools/kerfscript",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "KerfScript: a programming language and library for laser-cutting generators. Write parametric 2D parts with cut, score and engrave layers, kerf compensation and joinery, then turn settings into SVG or DXF cut files from Node.js, the browser, the command line or WebAssembly.",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",