@snaptrude/plugin-client 0.9.10 → 0.9.12
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 +26 -0
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @snaptrude/plugin-client
|
|
2
2
|
|
|
3
|
+
## 0.9.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [6e4a055]
|
|
8
|
+
- Updated dependencies [8e37e1f]
|
|
9
|
+
- Updated dependencies [2a06dd9]
|
|
10
|
+
- @snaptrude/plugin-core@0.9.12
|
|
11
|
+
|
|
12
|
+
## 0.9.11
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- e325bee: Add the structural-grids API surface: queries, creators, a sparse patch updater, structural line edits, and generic-family acceptance.
|
|
17
|
+
- **Query** — `design.query.listGrids(filter?)` (standard `PluginEntityFilter`; `"grid"` joins `PluginEntityType`, so `listByType("grid")` works) and the field-projected `design.query.grids.get(gridId, properties[])`: `angle` (degrees, CCW about +Y), `props`, `storeyVisibility`, `wings` (per-wing spacing/tagStart/span and per-line world-space `CurveHandle`, tag, visibility, effective + override props), `bounds`. Unknown ids throw `HANDLE_INVALID`.
|
|
18
|
+
- **Create** — `design.create.grid(linesX, linesY, spacingX, spacingY, options?)` (free 2-wing grid; optional `angle` in degrees and `center`, which defaults to the native viewport-centre behavior), `design.create.gridFromCurve(curve, options?)` (one wing/one line — line or arc), `design.create.gridsFromMasses(masses, spacingX, spacingY, options?)` (fitted, one group per footprint cluster, lenient skipping, ONE undo unit), and `design.create.columnsFromGrids(grids, width, depth)` (columns at every line intersection, ONE undo unit).
|
|
19
|
+
- **Update** — `design.update.grid(grid, patch)`: GROUP-LEVEL sparse patch — `props` (default styling), absolute `angle` in degrees, and `storeyVisibility`; each changed field commits its own undoable command through the panel's setters.
|
|
20
|
+
- **Grids family** — `design.grids.updateWings(grid, wings[])` (per-wing `spacing`/`count`/`spanMin`/`spanMax`; a `count` change re-indexes lines — re-query) and `design.grids.updateLines(grid, lines[])` (per-line `tag`/`distanceToPrevious`|`distanceToNext` (mutually exclusive)/`props`/`visible: false` (hide-only, product parity — show the GROUP to restore all lines); hiding every remaining visible line hides the GROUP instead — native last-line rule); plus `design.grids.addLine(grid, wing, position)` and `design.grids.removeLines(grid, lines, tagPolicy?)` (`"rewrite"` default | `"preserve"`; removing the group's last line throws `OPERATION_FAILED` — delete the group instead). Every update routes through the exact setters the native panel uses — one undoable command per changed field, identical to panel edits.
|
|
21
|
+
- **Generic families** — grid groups are accepted by `design.transform.move`/`rotate`, `design.visibility.hide`/`show`, `design.lock`/`unlock`, `design.delete.entities`, and `design.selection`; `transform.align` and `transform.mirror` throw `OPERATION_FAILED` for grids.
|
|
22
|
+
|
|
23
|
+
Grid lines have no stable identity: every line-level operation addresses them positionally as `{ wing, line }` index pairs into the `wings` arrays returned by `grids.get`; structural edits re-index lines, so re-query after mutating.
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [7fd374e]
|
|
26
|
+
- Updated dependencies [e325bee]
|
|
27
|
+
- @snaptrude/plugin-core@0.9.11
|
|
28
|
+
|
|
3
29
|
## 0.9.10
|
|
4
30
|
|
|
5
31
|
### 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.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -21,6 +21,14 @@
|
|
|
21
21
|
"upgrade-notes",
|
|
22
22
|
"CHANGELOG.md"
|
|
23
23
|
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"comlink": "^4.4.2",
|
|
26
|
+
"@snaptrude/plugin-core": "0.9.12"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"tsup": "^8.5.1",
|
|
30
|
+
"typescript": "^5.5.4"
|
|
31
|
+
},
|
|
24
32
|
"scripts": {
|
|
25
33
|
"check-types": "tsc --noEmit",
|
|
26
34
|
"build": "tsup --clean",
|
|
@@ -28,13 +36,5 @@
|
|
|
28
36
|
"clean-dist": "rm -rf dist",
|
|
29
37
|
"check:upgrade-notes": "node scripts/check-upgrade-notes.mjs",
|
|
30
38
|
"test": "node scripts/check-upgrade-notes.mjs && node --test --expose-gc test/*.test.mjs"
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"@snaptrude/plugin-core": "workspace:*",
|
|
34
|
-
"comlink": "^4.4.2"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"tsup": "^8.5.1",
|
|
38
|
-
"typescript": "^5.5.4"
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|