@snaptrude/plugin-client 0.9.2 → 0.9.4
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.
- package/CHANGELOG.md +18 -0
- package/package.json +2 -2
- package/upgrade-notes/0.8.0-to-0.9.0.md +26 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @snaptrude/plugin-client
|
|
2
2
|
|
|
3
|
+
## 0.9.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0008010: `brepFromLoft` auto-matches section edge counts (deterministic vertex insertion) and auto-aligns seams for straight-edge sections; `brepFromSweep` accepts closed (ring) paths and gains an optional taper scale law (`startScale`/`endScale` or per-point `scales`).
|
|
8
|
+
- f54ea17: `brepFromLoft` gains `options` (`compatibility: "strict" | "auto"`, `seamAlignment: "authored" | "auto"` — strict+authored restores pre-0.9.4 lofting); `brepFromSweep` options gain `transition` (`"miter"` default, `"round"` on open paths, `{ bevel }` chamfered corners on open and closed paths); new pure read `core.geom.query.brep.getEdgeCurve` returns exact line/arc/circle edge curve data.
|
|
9
|
+
- Updated dependencies [0008010]
|
|
10
|
+
- Updated dependencies [f54ea17]
|
|
11
|
+
- @snaptrude/plugin-core@0.9.4
|
|
12
|
+
|
|
13
|
+
## 0.9.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 3584bde: Expose configured BIM creation and Site Analysis sheet APIs: `design.create.opening` (catalog door/window with width/height/sillHeight), staircase `dimensions` overrides (strict-validated, quarter-turn rotation), and `program.site.getSiteAnalysis`/`updateSiteAnalysis` with merge/append semantics. `PluginSiteAnalysisUpdateOptions` accepts `null` as "no options".
|
|
18
|
+
- Updated dependencies [3584bde]
|
|
19
|
+
- @snaptrude/plugin-core@0.9.3
|
|
20
|
+
|
|
3
21
|
## 0.9.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@snaptrude/plugin-client",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"comlink": "^4.4.2",
|
|
26
|
-
"@snaptrude/plugin-core": "0.9.
|
|
26
|
+
"@snaptrude/plugin-core": "0.9.4"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"tsup": "^8.5.1",
|
|
@@ -10,26 +10,7 @@ breaking: false
|
|
|
10
10
|
|
|
11
11
|
## Breaking changes
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Moved paths (deprecated → canonical)
|
|
16
|
-
|
|
17
|
-
- `entity.story.get` → `core.storeys.get`
|
|
18
|
-
- `entity.story.getAll` → `core.storeys.list` — the canonical result names the field `storeys` where `getAll` named it `stories`; the records are identical
|
|
19
|
-
- `entity.story.create` → `core.storeys.create`
|
|
20
|
-
- `entity.story.update` → `core.storeys.update`
|
|
21
|
-
- `entity.story.delete` → `core.storeys.delete`
|
|
22
|
-
- `entity.story.duplicate` → `core.storeys.copy`
|
|
23
|
-
- `entity.story.setActive` → `core.storeys.setActive`
|
|
24
|
-
- `entity.referenceLine.createMulti` → `design.create.referenceLines` — adds optional styling args and returns a `ComponentHandle[]` where `createMulti` returned `{ referenceLineIds }`
|
|
25
|
-
- `entity.referenceLine.get` → `design.query.referenceLines.get`
|
|
26
|
-
- `entity.referenceLine.getAll` → `design.query.listReferenceLines` — returns a filterable `ComponentHandle[]` where `getAll` returned `{ referenceLineIds }`
|
|
27
|
-
- `entity.referenceLine.delete` → `design.delete.entities`
|
|
28
|
-
- `entity.buildableEnvelope.create` → `design.create.buildableEnvelope`
|
|
29
|
-
- `entity.buildableEnvelope.update` → `design.update.buildableEnvelope`
|
|
30
|
-
- `core.zoom.extents` → `core.camera.zoomExtents`
|
|
31
|
-
- `core.zoom.selection` → `core.camera.zoomSelection`
|
|
32
|
-
- `core.tags.getTagsForComponent` → `core.tags.listForComponent`
|
|
13
|
+
_None._
|
|
33
14
|
|
|
34
15
|
## New APIs
|
|
35
16
|
|
|
@@ -56,6 +37,31 @@ None. All 0.9.0 moves are deprecate-in-place aliases; no signatures or result sh
|
|
|
56
37
|
- **`design.create.massFromBrep(brep, label?)`** — commit a mass from any `core.geom.create` brep constructor's handle (scene-derived `getBrep` breps stay read-only → `PRECONDITION_FAILED`): generic mass at the authored coordinates, single undo step, collab-synced. Together with the constructors this closes the loop — author faces / extrude / loft / boolean, then place the result in the scene.
|
|
57
38
|
- **`presentation.placedViews` — layout control over placed views.** Inspect and edit the LAYOUT of view shapes already placed on Present sheets (content refresh stays on `sheets.updatePlacedView`): `list(sheetId?)` / `get(shapeId)` return sheet, sheet-local position, size, architectural scale (`null` for 3D), rotation, crop and link state; `move(shapeId, position, { sheetId? })` repositions or reparents across sheets; `scale(shapeId, factor)` is a uniform corner-drag-equivalent resize; `setScale(shapeId, scale)` sets a standard architectural scale (2D views only); `setCrop(shapeId, crop | null)` crops with native tldraw fractions, keeping the visible region page-anchored — and the crop survives `updatePlacedView` refreshes. Identity is the shape id `sheets.place` returns.
|
|
58
39
|
|
|
40
|
+
## Behavior changes
|
|
41
|
+
|
|
42
|
+
All 0.9.0 namespace moves are deprecate-in-place aliases — no signatures or
|
|
43
|
+
result shapes changed on existing paths; each deprecated path delegates to the
|
|
44
|
+
same implementation as its canonical replacement.
|
|
45
|
+
|
|
46
|
+
### Moved paths (deprecated → canonical)
|
|
47
|
+
|
|
48
|
+
- `entity.story.get` → `core.storeys.get`
|
|
49
|
+
- `entity.story.getAll` → `core.storeys.list` — the canonical result names the field `storeys` where `getAll` named it `stories`; the records are identical
|
|
50
|
+
- `entity.story.create` → `core.storeys.create`
|
|
51
|
+
- `entity.story.update` → `core.storeys.update`
|
|
52
|
+
- `entity.story.delete` → `core.storeys.delete`
|
|
53
|
+
- `entity.story.duplicate` → `core.storeys.copy`
|
|
54
|
+
- `entity.story.setActive` → `core.storeys.setActive`
|
|
55
|
+
- `entity.referenceLine.createMulti` → `design.create.referenceLines` — adds optional styling args and returns a `ComponentHandle[]` where `createMulti` returned `{ referenceLineIds }`
|
|
56
|
+
- `entity.referenceLine.get` → `design.query.referenceLines.get`
|
|
57
|
+
- `entity.referenceLine.getAll` → `design.query.listReferenceLines` — returns a filterable `ComponentHandle[]` where `getAll` returned `{ referenceLineIds }`
|
|
58
|
+
- `entity.referenceLine.delete` → `design.delete.entities`
|
|
59
|
+
- `entity.buildableEnvelope.create` → `design.create.buildableEnvelope`
|
|
60
|
+
- `entity.buildableEnvelope.update` → `design.update.buildableEnvelope`
|
|
61
|
+
- `core.zoom.extents` → `core.camera.zoomExtents`
|
|
62
|
+
- `core.zoom.selection` → `core.camera.zoomSelection`
|
|
63
|
+
- `core.tags.getTagsForComponent` → `core.tags.listForComponent`
|
|
64
|
+
|
|
59
65
|
## No action needed
|
|
60
66
|
|
|
61
67
|
All 0.9.0 changes are additive. Deprecated paths remain until at least the next major version, and removal is gated on call metrics showing zero live traffic plus a consumer sweep. To modernize a plugin: rename calls per the moved-paths list above (only `core.storeys.list` and the two reference-line list/create reads have different result shapes from their predecessors — everything else is a pure rename).
|