@snaptrude/plugin-core 0.9.6 → 0.9.8

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 (37) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/api-manifest.full.json +8443 -0
  3. package/api-manifest.json +167 -10
  4. package/dist/api/core/io/import/index.d.ts +3 -1
  5. package/dist/api/core/io/import/index.d.ts.map +1 -1
  6. package/dist/api/design/create/bulk-items.d.ts +185 -0
  7. package/dist/api/design/create/bulk-items.d.ts.map +1 -0
  8. package/dist/api/design/create/index.d.ts +310 -22
  9. package/dist/api/design/create/index.d.ts.map +1 -1
  10. package/dist/api/design/create/opening-fields.d.ts +37 -0
  11. package/dist/api/design/create/opening-fields.d.ts.map +1 -0
  12. package/dist/api/design/delete/index.d.ts +4 -0
  13. package/dist/api/design/delete/index.d.ts.map +1 -1
  14. package/dist/api/design/dimensions.d.ts +427 -0
  15. package/dist/api/design/dimensions.d.ts.map +1 -0
  16. package/dist/api/design/doors/index.d.ts +20 -13
  17. package/dist/api/design/doors/index.d.ts.map +1 -1
  18. package/dist/api/design/index.d.ts +5 -0
  19. package/dist/api/design/index.d.ts.map +1 -1
  20. package/dist/api/presentation/annotate.d.ts +2 -2
  21. package/dist/api/presentation/shapes.d.ts +2 -2
  22. package/dist/handles.d.ts +19 -0
  23. package/dist/handles.d.ts.map +1 -1
  24. package/dist/index.cjs +2011 -1869
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.js +1988 -1869
  27. package/dist/index.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/api/core/io/import/index.ts +11 -3
  30. package/src/api/design/create/bulk-items.ts +186 -0
  31. package/src/api/design/create/index.ts +335 -38
  32. package/src/api/design/create/opening-fields.ts +37 -0
  33. package/src/api/design/delete/index.ts +4 -0
  34. package/src/api/design/dimensions.ts +453 -0
  35. package/src/api/design/doors/index.ts +20 -13
  36. package/src/api/design/index.ts +5 -0
  37. package/src/handles.ts +24 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @snaptrude/plugin-core
2
2
 
3
+ ## 0.9.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 7fd374e: Add `hinge` to `design.create.door` / `window` (in `options`), `doors[]` / `windows[]` items and `opening`: a world point near the jamb the leaf is hinged on; the placed item is reflected along the wall when the catalog item's authored hinge side would land on the other jamb — one undo entry, no extra command.
8
+
9
+ **BEHAVIOUR FIX — `facing`.** The host placed the swing on the side OPPOSITE the `facing` point (the interactive tool's cursor convention) while the contract said "the room it opens into". The host now matches the contract: the leaf swings open toward `facing`. Callers that passed a point on the room side get the documented result; nothing in the contract changed shape.
10
+
11
+ `design.doors.getSwingDirection` is now derived from the placed mesh's orientation (hand as seen standing on the swing side facing the door); it previously read a scaling sign that placement never sets and reported `"left"` for every door. `mirror` axis docs now say what each axis does to a door (`'x'` swing side, `'z'` hinged jamb, `'y'` upside down); behaviour unchanged.
12
+
13
+ ## 0.9.7
14
+
15
+ ### Patch Changes
16
+
17
+ - 6e60c61: Add bulk `design.create` creators — `wallRuns`, `floors`, `doors`, `windows`, `furnitureItems`: one host round-trip and one undo entry per batch.
18
+
19
+ Singular creators, fixes shipped alongside (behaviour changes for existing callers):
20
+ - `floor`, `slab`, `roof`, `ceiling`, `column`, `beam`: contour holes are now cut (holed contours previously failed or lost their holes).
21
+ - `floor`: the `position` offset is applied before the creation snapshot, so it survives redo and reload and drives storey assignment.
22
+ - `furniture`: `options.label` is now also the readable label (`design.query.getLabel`); `createNewSourceMesh` can no longer skip recording a source this call brought in (the host owns source persistence, recorded exactly once across concurrent calls); refuses with `PRECONDITION_FAILED` (`engineCode: "TOOL_ACTIVE"`) while the interactive furniture tool is active. The same refusal applies to `core.io.import.model` furniture placement.
23
+ - `door`, `window`: published as one save document instead of five; undo granularity unchanged.
24
+
25
+ - 2f10e6b: Add `design.dimensions` — dimension lines (Measuring Tape): `create`, `list`, `get`, `delete`, `hide`, `show`, plus the new `DimensionHandle`.
26
+
3
27
  ## 0.9.6
4
28
 
5
29
  ### Patch Changes