@snaptrude/plugin-core 0.5.0 → 0.6.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.
- package/CHANGELOG.md +52 -0
- package/api-manifest.full.json +2044 -443
- package/api-manifest.json +2051 -394
- package/dist/api/analysis/heatmaps.d.ts +234 -0
- package/dist/api/analysis/heatmaps.d.ts.map +1 -0
- package/dist/api/analysis/illuminance.d.ts +145 -0
- package/dist/api/analysis/illuminance.d.ts.map +1 -0
- package/dist/api/analysis/index.d.ts +44 -0
- package/dist/api/analysis/index.d.ts.map +1 -0
- package/dist/api/analysis/shadows.d.ts +165 -0
- package/dist/api/analysis/shadows.d.ts.map +1 -0
- package/dist/api/analysis/sunlightHours.d.ts +208 -0
- package/dist/api/analysis/sunlightHours.d.ts.map +1 -0
- package/dist/api/analysis/sunpath.d.ts +80 -0
- package/dist/api/analysis/sunpath.d.ts.map +1 -0
- package/dist/api/core/index.d.ts +5 -0
- package/dist/api/core/index.d.ts.map +1 -1
- package/dist/api/core/io/import/index.d.ts +392 -0
- package/dist/api/core/io/import/index.d.ts.map +1 -0
- package/dist/api/core/io/index.d.ts +35 -0
- package/dist/api/core/io/index.d.ts.map +1 -0
- package/dist/api/core/io/job/index.d.ts +139 -0
- package/dist/api/core/io/job/index.d.ts.map +1 -0
- package/dist/api/core/io/query/index.d.ts +74 -0
- package/dist/api/core/io/query/index.d.ts.map +1 -0
- package/dist/api/core/io/terrain/index.d.ts +206 -0
- package/dist/api/core/io/terrain/index.d.ts.map +1 -0
- package/dist/api/core/io/underlay/index.d.ts +286 -0
- package/dist/api/core/io/underlay/index.d.ts.map +1 -0
- package/dist/api/core/layers.d.ts +7 -7
- package/dist/api/design/create/index.d.ts +9 -0
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/query/spaces.d.ts +3 -3
- package/dist/api/design/selection/index.d.ts +144 -0
- package/dist/api/design/selection/index.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +2 -2
- package/dist/api/index.d.ts +5 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/program/site.d.ts +84 -0
- package/dist/api/program/site.d.ts.map +1 -1
- package/dist/handles.d.ts +33 -0
- package/dist/handles.d.ts.map +1 -1
- package/dist/index.cjs +1335 -987
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1278 -983
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/generate-manifest.test.mjs +26 -4
- package/src/api/analysis/heatmaps.ts +256 -0
- package/src/api/analysis/illuminance.ts +155 -0
- package/src/api/analysis/index.ts +46 -0
- package/src/api/analysis/shadows.ts +183 -0
- package/src/api/analysis/sunlightHours.ts +211 -0
- package/src/api/analysis/sunpath.ts +83 -0
- package/src/api/core/index.ts +5 -0
- package/src/api/core/io/import/index.ts +432 -0
- package/src/api/core/io/index.ts +37 -0
- package/src/api/core/io/job/index.ts +140 -0
- package/src/api/core/io/query/index.ts +71 -0
- package/src/api/core/io/terrain/index.ts +214 -0
- package/src/api/core/io/underlay/index.ts +295 -0
- package/src/api/design/create/index.ts +9 -0
- package/src/api/design/erase/index.ts +1 -1
- package/src/api/design/selection/index.ts +129 -0
- package/src/api/index.ts +5 -0
- package/src/api/program/site.ts +93 -0
- package/src/handles.ts +46 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# @snaptrude/plugin-core
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 934405e: New `analysis.heatmaps` family — render plugin-computed scalar data as a
|
|
8
|
+
heatmap: `renderSpaces` (flat colour per space top face), `renderGrid`
|
|
9
|
+
(coloured grid mesh from world-coordinate samples), `reset`, `isActive`.
|
|
10
|
+
Single active heatmap (a render replaces the previous one); values outside
|
|
11
|
+
`[min, max]` clamp to the end colours; ephemeral (auto-cleared on
|
|
12
|
+
scene-mutating edits, never persisted). The react host has landed, so all
|
|
13
|
+
members are required `abstract` and in the discovery manifest.
|
|
14
|
+
- a68e866: New top-level `analysis` namespace:
|
|
15
|
+
`analysis.sunpath` (enable/disable/isActive), `analysis.shadows`
|
|
16
|
+
(enable/disable/isEnabled/setDateTime/getDateTime — ISO date-time strings),
|
|
17
|
+
and the async heatmap job families `analysis.sunlightHours` and
|
|
18
|
+
`analysis.illuminance` (compute/get/cancel/reset; illuminance is Pro-gated).
|
|
19
|
+
Also extends `program.site` with `getLocation()` and `getNorthAngle()` geo
|
|
20
|
+
reads. The react host has landed, so all new members are required `abstract`
|
|
21
|
+
and in the discovery manifest; the plugin-client mounts the `analysis` RPC
|
|
22
|
+
namespace.
|
|
23
|
+
- New `core.io` namespace — file import, import jobs, and underlay/terrain
|
|
24
|
+
management:
|
|
25
|
+
- `core.io.import` — bring external files onto a storey: `image`, `pdf`
|
|
26
|
+
(page-selectable), `dwg`, `cadJson` (parsed CAD geometry as a sketch),
|
|
27
|
+
`model` (3D formats), and `terrain` (map snapshot at a lat/lng with
|
|
28
|
+
optional elevation). Slow formats return an `ImportJobHandle` instead of
|
|
29
|
+
blocking.
|
|
30
|
+
- `core.io.job` — poll those imports: `getStatus`, `isComplete`, `getResult`,
|
|
31
|
+
`getError`.
|
|
32
|
+
- `core.io.query` — pre-import inspection: `getPdfPageCount`,
|
|
33
|
+
`listCadLayers`.
|
|
34
|
+
- `core.io.underlay` — manage imported image/PDF/CAD underlays: `list`,
|
|
35
|
+
`getBounds`, `getScale`/`setScale`/`resetScale`, `getOpacity`/`setOpacity`,
|
|
36
|
+
`delete`.
|
|
37
|
+
- `core.io.terrain` — manage the imported map terrain: `exists`, `get`,
|
|
38
|
+
`getDatum` (current vertical position, world Y) / `setDatum` (relative
|
|
39
|
+
datum shift, not an absolute elevation), `delete`, `getReport`, elevation and satellite-imagery toggles
|
|
40
|
+
(`isElevationEnabled`/`enableElevation`/`disableElevation`,
|
|
41
|
+
`isSatelliteEnabled`/`enableSatellite`/`disableSatellite`), and
|
|
42
|
+
`getOpacity`/`setOpacity`.
|
|
43
|
+
|
|
44
|
+
- New `design.selection.setByFilter(filter)` — the programmatic equivalent of
|
|
45
|
+
the editor's **Story selection** and **Filter selection** menus. Replaces the
|
|
46
|
+
selection with every visible entity of the active building matching
|
|
47
|
+
`{ storeys?: number[], types?: PluginSelectionEntityType[] }` (fields AND,
|
|
48
|
+
values within a field OR; at least one field required — use `clear()` to
|
|
49
|
+
deselect). The new `PluginSelectionEntityType` vocabulary covers all 24 menu
|
|
50
|
+
kinds, including selection-only kinds the query surface can't reach (sites,
|
|
51
|
+
terrain, CAD/PDF/image imports, dimension lines, 3D models, neighborhood
|
|
52
|
+
buildings, program blocks). One-shot bulk select, not a persistent mode; not
|
|
53
|
+
undoable, like the other selection mutators.
|
|
54
|
+
|
|
3
55
|
## 0.5.0
|
|
4
56
|
|
|
5
57
|
### Minor Changes
|