@snaptrude/plugin-core 0.0.0-bimsvg-20260928124803
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/AGENTS.md +231 -0
- package/CHANGELOG.md +341 -0
- package/CLAUDE.md +11 -0
- package/api-manifest.json +9120 -0
- package/dist/api/analysis/daylight.d.ts +603 -0
- package/dist/api/analysis/daylight.d.ts.map +1 -0
- package/dist/api/analysis/heatmaps.d.ts +658 -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 +59 -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/solar.d.ts +249 -0
- package/dist/api/analysis/solar.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/analysis/weather.d.ts +193 -0
- package/dist/api/analysis/weather.d.ts.map +1 -0
- package/dist/api/core/buildings.d.ts +427 -0
- package/dist/api/core/buildings.d.ts.map +1 -0
- package/dist/api/core/camera/index.d.ts +261 -0
- package/dist/api/core/camera/index.d.ts.map +1 -0
- package/dist/api/core/comment/index.d.ts +333 -0
- package/dist/api/core/comment/index.d.ts.map +1 -0
- package/dist/api/core/geom/create/index.d.ts +1073 -0
- package/dist/api/core/geom/create/index.d.ts.map +1 -0
- package/dist/api/core/geom/delete/index.d.ts +78 -0
- package/dist/api/core/geom/delete/index.d.ts.map +1 -0
- package/dist/api/core/geom/index.d.ts +33 -0
- package/dist/api/core/geom/index.d.ts.map +1 -0
- package/dist/api/core/geom/query/arc.d.ts +169 -0
- package/dist/api/core/geom/query/arc.d.ts.map +1 -0
- package/dist/api/core/geom/query/brep.d.ts +514 -0
- package/dist/api/core/geom/query/brep.d.ts.map +1 -0
- package/dist/api/core/geom/query/circle.d.ts +378 -0
- package/dist/api/core/geom/query/circle.d.ts.map +1 -0
- package/dist/api/core/geom/query/contour.d.ts +450 -0
- package/dist/api/core/geom/query/contour.d.ts.map +1 -0
- package/dist/api/core/geom/query/curve.d.ts +918 -0
- package/dist/api/core/geom/query/curve.d.ts.map +1 -0
- package/dist/api/core/geom/query/edge.d.ts +128 -0
- package/dist/api/core/geom/query/edge.d.ts.map +1 -0
- package/dist/api/core/geom/query/face.d.ts +363 -0
- package/dist/api/core/geom/query/face.d.ts.map +1 -0
- package/dist/api/core/geom/query/halfedge.d.ts +206 -0
- package/dist/api/core/geom/query/halfedge.d.ts.map +1 -0
- package/dist/api/core/geom/query/index.d.ts +61 -0
- package/dist/api/core/geom/query/index.d.ts.map +1 -0
- package/dist/api/core/geom/query/profile.d.ts +410 -0
- package/dist/api/core/geom/query/profile.d.ts.map +1 -0
- package/dist/api/core/geom/query/vertex.d.ts +187 -0
- package/dist/api/core/geom/query/vertex.d.ts.map +1 -0
- package/dist/api/core/geom/update/contour.d.ts +272 -0
- package/dist/api/core/geom/update/contour.d.ts.map +1 -0
- package/dist/api/core/geom/update/curve.d.ts +180 -0
- package/dist/api/core/geom/update/curve.d.ts.map +1 -0
- package/dist/api/core/geom/update/index.d.ts +27 -0
- package/dist/api/core/geom/update/index.d.ts.map +1 -0
- package/dist/api/core/geom/update/profile.d.ts +329 -0
- package/dist/api/core/geom/update/profile.d.ts.map +1 -0
- package/dist/api/core/groups.d.ts +485 -0
- package/dist/api/core/groups.d.ts.map +1 -0
- package/dist/api/core/handles/index.d.ts +210 -0
- package/dist/api/core/handles/index.d.ts.map +1 -0
- package/dist/api/core/history/index.d.ts +78 -0
- package/dist/api/core/history/index.d.ts.map +1 -0
- package/dist/api/core/index.d.ts +97 -0
- package/dist/api/core/index.d.ts.map +1 -0
- package/dist/api/core/io/export/index.d.ts +134 -0
- package/dist/api/core/io/export/index.d.ts.map +1 -0
- package/dist/api/core/io/import/index.d.ts +455 -0
- package/dist/api/core/io/import/index.d.ts.map +1 -0
- package/dist/api/core/io/index.d.ts +40 -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 +341 -0
- package/dist/api/core/io/terrain/index.d.ts.map +1 -0
- package/dist/api/core/io/underlay/index.d.ts +805 -0
- package/dist/api/core/io/underlay/index.d.ts.map +1 -0
- package/dist/api/core/layers.d.ts +402 -0
- package/dist/api/core/layers.d.ts.map +1 -0
- package/dist/api/core/math/index.d.ts +18 -0
- package/dist/api/core/math/index.d.ts.map +1 -0
- package/dist/api/core/math/quat.d.ts +170 -0
- package/dist/api/core/math/quat.d.ts.map +1 -0
- package/dist/api/core/math/vec3.d.ts +174 -0
- package/dist/api/core/math/vec3.d.ts.map +1 -0
- package/dist/api/core/mode/index.d.ts +111 -0
- package/dist/api/core/mode/index.d.ts.map +1 -0
- package/dist/api/core/project/index.d.ts +466 -0
- package/dist/api/core/project/index.d.ts.map +1 -0
- package/dist/api/core/proposals/index.d.ts +531 -0
- package/dist/api/core/proposals/index.d.ts.map +1 -0
- package/dist/api/core/storeys/index.d.ts +265 -0
- package/dist/api/core/storeys/index.d.ts.map +1 -0
- package/dist/api/core/tags.d.ts +860 -0
- package/dist/api/core/tags.d.ts.map +1 -0
- package/dist/api/core/units/index.d.ts +175 -0
- package/dist/api/core/units/index.d.ts.map +1 -0
- package/dist/api/core/user.d.ts +44 -0
- package/dist/api/core/user.d.ts.map +1 -0
- package/dist/api/core/zoom/index.d.ts +49 -0
- package/dist/api/core/zoom/index.d.ts.map +1 -0
- package/dist/api/design/boolean/index.d.ts +168 -0
- package/dist/api/design/boolean/index.d.ts.map +1 -0
- package/dist/api/design/create/bulk-items.d.ts +185 -0
- package/dist/api/design/create/bulk-items.d.ts.map +1 -0
- package/dist/api/design/create/grids.d.ts +132 -0
- package/dist/api/design/create/grids.d.ts.map +1 -0
- package/dist/api/design/create/index.d.ts +1747 -0
- package/dist/api/design/create/index.d.ts.map +1 -0
- package/dist/api/design/create/opening-fields.d.ts +37 -0
- package/dist/api/design/create/opening-fields.d.ts.map +1 -0
- package/dist/api/design/delete/index.d.ts +70 -0
- package/dist/api/design/delete/index.d.ts.map +1 -0
- package/dist/api/design/dimensions.d.ts +427 -0
- package/dist/api/design/dimensions.d.ts.map +1 -0
- package/dist/api/design/doors/index.d.ts +470 -0
- package/dist/api/design/doors/index.d.ts.map +1 -0
- package/dist/api/design/edit/index.d.ts +49 -0
- package/dist/api/design/edit/index.d.ts.map +1 -0
- package/dist/api/design/erase/index.d.ts +160 -0
- package/dist/api/design/erase/index.d.ts.map +1 -0
- package/dist/api/design/family.d.ts +611 -0
- package/dist/api/design/family.d.ts.map +1 -0
- package/dist/api/design/furniture/index.d.ts +296 -0
- package/dist/api/design/furniture/index.d.ts.map +1 -0
- package/dist/api/design/grids.d.ts +237 -0
- package/dist/api/design/grids.d.ts.map +1 -0
- package/dist/api/design/index.d.ts +260 -0
- package/dist/api/design/index.d.ts.map +1 -0
- package/dist/api/design/lock.d.ts +67 -0
- package/dist/api/design/lock.d.ts.map +1 -0
- package/dist/api/design/materials/index.d.ts +551 -0
- package/dist/api/design/materials/index.d.ts.map +1 -0
- package/dist/api/design/query/geometry/index.d.ts +252 -0
- package/dist/api/design/query/geometry/index.d.ts.map +1 -0
- package/dist/api/design/query/grids.d.ts +287 -0
- package/dist/api/design/query/grids.d.ts.map +1 -0
- package/dist/api/design/query/index.d.ts +1318 -0
- package/dist/api/design/query/index.d.ts.map +1 -0
- package/dist/api/design/query/referenceLines.d.ts +45 -0
- package/dist/api/design/query/referenceLines.d.ts.map +1 -0
- package/dist/api/design/query/spaces.d.ts +394 -0
- package/dist/api/design/query/spaces.d.ts.map +1 -0
- package/dist/api/design/selection/index.d.ts +282 -0
- package/dist/api/design/selection/index.d.ts.map +1 -0
- package/dist/api/design/shared.d.ts +38 -0
- package/dist/api/design/shared.d.ts.map +1 -0
- package/dist/api/design/transform/index.d.ts +249 -0
- package/dist/api/design/transform/index.d.ts.map +1 -0
- package/dist/api/design/types/index.d.ts +181 -0
- package/dist/api/design/types/index.d.ts.map +1 -0
- package/dist/api/design/update/index.d.ts +803 -0
- package/dist/api/design/update/index.d.ts.map +1 -0
- package/dist/api/design/visibility.d.ts +126 -0
- package/dist/api/design/visibility.d.ts.map +1 -0
- package/dist/api/design/windows/index.d.ts +300 -0
- package/dist/api/design/windows/index.d.ts.map +1 -0
- package/dist/api/entity/buildableEnvelope.d.ts +265 -0
- package/dist/api/entity/buildableEnvelope.d.ts.map +1 -0
- package/dist/api/entity/department.d.ts +1 -0
- package/dist/api/entity/department.d.ts.map +1 -0
- package/dist/api/entity/index.d.ts +28 -0
- package/dist/api/entity/index.d.ts.map +1 -0
- package/dist/api/entity/referenceLine.d.ts +210 -0
- package/dist/api/entity/referenceLine.d.ts.map +1 -0
- package/dist/api/entity/space.d.ts +846 -0
- package/dist/api/entity/space.d.ts.map +1 -0
- package/dist/api/entity/story.d.ts +476 -0
- package/dist/api/entity/story.d.ts.map +1 -0
- package/dist/api/index.d.ts +45 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/presentation/aiInspiration.d.ts +2400 -0
- package/dist/api/presentation/aiInspiration.d.ts.map +1 -0
- package/dist/api/presentation/annotate.d.ts +483 -0
- package/dist/api/presentation/annotate.d.ts.map +1 -0
- package/dist/api/presentation/diagrams.d.ts +184 -0
- package/dist/api/presentation/diagrams.d.ts.map +1 -0
- package/dist/api/presentation/drawings.d.ts +2900 -0
- package/dist/api/presentation/drawings.d.ts.map +1 -0
- package/dist/api/presentation/export.d.ts +126 -0
- package/dist/api/presentation/export.d.ts.map +1 -0
- package/dist/api/presentation/import.d.ts +164 -0
- package/dist/api/presentation/import.d.ts.map +1 -0
- package/dist/api/presentation/index.d.ts +114 -0
- package/dist/api/presentation/index.d.ts.map +1 -0
- package/dist/api/presentation/placedViews.d.ts +1232 -0
- package/dist/api/presentation/placedViews.d.ts.map +1 -0
- package/dist/api/presentation/shapes.d.ts +481 -0
- package/dist/api/presentation/shapes.d.ts.map +1 -0
- package/dist/api/presentation/sheets.d.ts +643 -0
- package/dist/api/presentation/sheets.d.ts.map +1 -0
- package/dist/api/presentation/slideshow.d.ts +125 -0
- package/dist/api/presentation/slideshow.d.ts.map +1 -0
- package/dist/api/presentation/tables.d.ts +81 -0
- package/dist/api/presentation/tables.d.ts.map +1 -0
- package/dist/api/presentation/viewPresets.d.ts +70 -0
- package/dist/api/presentation/viewPresets.d.ts.map +1 -0
- package/dist/api/presentation/views.d.ts +741 -0
- package/dist/api/presentation/views.d.ts.map +1 -0
- package/dist/api/program/adjacency.d.ts +155 -0
- package/dist/api/program/adjacency.d.ts.map +1 -0
- package/dist/api/program/areas.d.ts +450 -0
- package/dist/api/program/areas.d.ts.map +1 -0
- package/dist/api/program/classification.d.ts +135 -0
- package/dist/api/program/classification.d.ts.map +1 -0
- package/dist/api/program/cores.d.ts +78 -0
- package/dist/api/program/cores.d.ts.map +1 -0
- package/dist/api/program/departments.d.ts +487 -0
- package/dist/api/program/departments.d.ts.map +1 -0
- package/dist/api/program/index.d.ts +71 -0
- package/dist/api/program/index.d.ts.map +1 -0
- package/dist/api/program/labels.d.ts +355 -0
- package/dist/api/program/labels.d.ts.map +1 -0
- package/dist/api/program/layout.d.ts +398 -0
- package/dist/api/program/layout.d.ts.map +1 -0
- package/dist/api/program/metadata.d.ts +328 -0
- package/dist/api/program/metadata.d.ts.map +1 -0
- package/dist/api/program/metrics.d.ts +108 -0
- package/dist/api/program/metrics.d.ts.map +1 -0
- package/dist/api/program/site.d.ts +823 -0
- package/dist/api/program/site.d.ts.map +1 -0
- package/dist/api/program/spreadsheet.d.ts +2628 -0
- package/dist/api/program/spreadsheet.d.ts.map +1 -0
- package/dist/api/workspace/index.d.ts +552 -0
- package/dist/api/workspace/index.d.ts.map +1 -0
- package/dist/errors/codes.d.ts +34 -0
- package/dist/errors/codes.d.ts.map +1 -0
- package/dist/errors/envelope.d.ts +56 -0
- package/dist/errors/envelope.d.ts.map +1 -0
- package/dist/errors/index.d.ts +6 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/plugin-error.d.ts +69 -0
- package/dist/errors/plugin-error.d.ts.map +1 -0
- package/dist/handles.d.ts +229 -0
- package/dist/handles.d.ts.map +1 -0
- package/dist/host-utils.d.ts +47 -0
- package/dist/host-utils.d.ts.map +1 -0
- package/dist/index.cjs +8836 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7568 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +41 -0
- package/scripts/generate-manifest.mjs +238 -0
- package/scripts/generate-manifest.test.mjs +292 -0
- package/src/api/analysis/daylight.ts +470 -0
- package/src/api/analysis/heatmaps.ts +683 -0
- package/src/api/analysis/illuminance.ts +155 -0
- package/src/api/analysis/index.ts +61 -0
- package/src/api/analysis/shadows.ts +183 -0
- package/src/api/analysis/solar.ts +237 -0
- package/src/api/analysis/sunlightHours.ts +211 -0
- package/src/api/analysis/sunpath.ts +83 -0
- package/src/api/analysis/weather.ts +179 -0
- package/src/api/core/buildings.ts +485 -0
- package/src/api/core/camera/index.ts +268 -0
- package/src/api/core/comment/index.ts +376 -0
- package/src/api/core/geom/create/index.ts +1204 -0
- package/src/api/core/geom/delete/index.ts +84 -0
- package/src/api/core/geom/index.ts +35 -0
- package/src/api/core/geom/query/arc.ts +169 -0
- package/src/api/core/geom/query/brep.ts +563 -0
- package/src/api/core/geom/query/circle.ts +404 -0
- package/src/api/core/geom/query/contour.ts +540 -0
- package/src/api/core/geom/query/curve.ts +1078 -0
- package/src/api/core/geom/query/edge.ts +130 -0
- package/src/api/core/geom/query/face.ts +403 -0
- package/src/api/core/geom/query/halfedge.ts +210 -0
- package/src/api/core/geom/query/index.ts +63 -0
- package/src/api/core/geom/query/profile.ts +473 -0
- package/src/api/core/geom/query/vertex.ts +205 -0
- package/src/api/core/geom/update/contour.ts +315 -0
- package/src/api/core/geom/update/curve.ts +209 -0
- package/src/api/core/geom/update/index.ts +29 -0
- package/src/api/core/geom/update/profile.ts +377 -0
- package/src/api/core/groups.ts +521 -0
- package/src/api/core/handles/index.ts +233 -0
- package/src/api/core/history/index.ts +84 -0
- package/src/api/core/index.ts +99 -0
- package/src/api/core/io/export/index.ts +126 -0
- package/src/api/core/io/import/index.ts +504 -0
- package/src/api/core/io/index.ts +42 -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 +360 -0
- package/src/api/core/io/underlay/index.ts +705 -0
- package/src/api/core/layers.ts +333 -0
- package/src/api/core/math/index.ts +20 -0
- package/src/api/core/math/quat.ts +172 -0
- package/src/api/core/math/vec3.ts +179 -0
- package/src/api/core/mode/index.ts +108 -0
- package/src/api/core/project/index.ts +479 -0
- package/src/api/core/proposals/index.ts +569 -0
- package/src/api/core/storeys/index.ts +294 -0
- package/src/api/core/tags.ts +911 -0
- package/src/api/core/units/index.ts +164 -0
- package/src/api/core/user.ts +46 -0
- package/src/api/core/zoom/index.ts +51 -0
- package/src/api/design/boolean/index.ts +179 -0
- package/src/api/design/create/bulk-items.ts +186 -0
- package/src/api/design/create/grids.ts +137 -0
- package/src/api/design/create/index.ts +1954 -0
- package/src/api/design/create/opening-fields.ts +37 -0
- package/src/api/design/delete/index.ts +74 -0
- package/src/api/design/dimensions.ts +453 -0
- package/src/api/design/doors/index.ts +500 -0
- package/src/api/design/edit/index.ts +54 -0
- package/src/api/design/erase/index.ts +151 -0
- package/src/api/design/family.ts +646 -0
- package/src/api/design/furniture/index.ts +319 -0
- package/src/api/design/grids.ts +237 -0
- package/src/api/design/index.ts +274 -0
- package/src/api/design/lock.ts +69 -0
- package/src/api/design/materials/index.ts +608 -0
- package/src/api/design/query/geometry/index.ts +288 -0
- package/src/api/design/query/grids.ts +197 -0
- package/src/api/design/query/index.ts +1176 -0
- package/src/api/design/query/referenceLines.ts +52 -0
- package/src/api/design/query/spaces.ts +275 -0
- package/src/api/design/selection/index.ts +273 -0
- package/src/api/design/shared.ts +40 -0
- package/src/api/design/transform/index.ts +254 -0
- package/src/api/design/types/index.ts +156 -0
- package/src/api/design/update/index.ts +798 -0
- package/src/api/design/visibility.ts +143 -0
- package/src/api/design/windows/index.ts +333 -0
- package/src/api/entity/buildableEnvelope.ts +322 -0
- package/src/api/entity/department.ts +0 -0
- package/src/api/entity/index.ts +30 -0
- package/src/api/entity/referenceLine.ts +235 -0
- package/src/api/entity/space.ts +612 -0
- package/src/api/entity/story.ts +517 -0
- package/src/api/index.ts +47 -0
- package/src/api/presentation/aiInspiration.ts +1116 -0
- package/src/api/presentation/annotate.ts +417 -0
- package/src/api/presentation/diagrams.ts +194 -0
- package/src/api/presentation/drawings.ts +529 -0
- package/src/api/presentation/export.ts +133 -0
- package/src/api/presentation/import.ts +159 -0
- package/src/api/presentation/index.ts +129 -0
- package/src/api/presentation/placedViews.ts +1203 -0
- package/src/api/presentation/shapes.ts +274 -0
- package/src/api/presentation/sheets.ts +616 -0
- package/src/api/presentation/slideshow.ts +134 -0
- package/src/api/presentation/tables.ts +84 -0
- package/src/api/presentation/viewPresets.ts +83 -0
- package/src/api/presentation/views.ts +698 -0
- package/src/api/program/adjacency.ts +164 -0
- package/src/api/program/areas.ts +408 -0
- package/src/api/program/classification.ts +138 -0
- package/src/api/program/cores.ts +83 -0
- package/src/api/program/departments.ts +517 -0
- package/src/api/program/index.ts +73 -0
- package/src/api/program/labels.ts +332 -0
- package/src/api/program/layout.ts +422 -0
- package/src/api/program/metadata.ts +364 -0
- package/src/api/program/metrics.ts +120 -0
- package/src/api/program/site.ts +748 -0
- package/src/api/program/spreadsheet.ts +2698 -0
- package/src/api/workspace/index.ts +612 -0
- package/src/errors/codes.ts +136 -0
- package/src/errors/envelope.ts +75 -0
- package/src/errors/index.ts +21 -0
- package/src/errors/plugin-error.ts +134 -0
- package/src/handles.ts +282 -0
- package/src/host-utils.ts +68 -0
- package/src/index.ts +5 -0
- package/src/types.ts +16 -0
- package/test/errors.test.mjs +184 -0
- package/tsconfig.json +22 -0
- package/tsup.config.ts +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAQlE,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AACrD,OAAO,EAAE,kCAAkC,EAAE,MAAM,kBAAkB,CAAA;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAMnD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;EAoB3B,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAM/D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe7B,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBA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CAC5B,UAAU,EAAE,eAAe,EAAE,GAC5B,eAAe,CAAC,cAAc,GAAG,IAAI,CAAC;IAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;aACa,aAAa,CAC3B,OAAO,CAAC,EAAE,0BAA0B,GACnC,eAAe,CAAC,yBAAyB,CAAC;CAC9C;AAGD,mFAAmF;AACnF,eAAO,MAAM,sBAAsB;;;iBAA6C,CAAA;AAChF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;iBAIrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAUhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,4DAA4D;AAC5D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;iBAKpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../../types";
|
|
3
|
+
import { PluginReferenceLineGetProperty, PluginReferenceLineGetResult } from "../../entity/referenceLine";
|
|
4
|
+
/**
|
|
5
|
+
* `design.query.referenceLines.*` — reference-line-specific reads.
|
|
6
|
+
*
|
|
7
|
+
* A **reference line** is a 2D guide line (or arc) in the scene, typically used
|
|
8
|
+
* for grid lines and alignment guides. Enumerate reference lines with
|
|
9
|
+
* `design.query.listReferenceLines`; read an individual line's properties here.
|
|
10
|
+
* This is the canonical home of the read formerly at `entity.referenceLine.get`
|
|
11
|
+
* (now deprecated).
|
|
12
|
+
*
|
|
13
|
+
* Accessed via `snaptrude.design.query.referenceLines`.
|
|
14
|
+
*/
|
|
15
|
+
export declare abstract class PluginDesignQueryReferenceLinesApi {
|
|
16
|
+
constructor();
|
|
17
|
+
/**
|
|
18
|
+
* Get properties of a reference line by its ID.
|
|
19
|
+
*
|
|
20
|
+
* Only the properties listed in `properties` are returned — unlisted
|
|
21
|
+
* properties will be `undefined` in the result.
|
|
22
|
+
*
|
|
23
|
+
* @param referenceLineId - The unique reference line ID
|
|
24
|
+
* @param properties - Array of property names to retrieve. See
|
|
25
|
+
* {@linkcode PluginReferenceLineGetProperty}.
|
|
26
|
+
* @returns A partial {@linkcode PluginReferenceLineGetResult} containing only the
|
|
27
|
+
* requested properties
|
|
28
|
+
* @throws If the reference line does not exist
|
|
29
|
+
*
|
|
30
|
+
* @examplePrompt Get the curve geometry of this reference line
|
|
31
|
+
* @examplePrompt Where does this grid line run?
|
|
32
|
+
* @examplePrompt Read the geometry of a guide line by its id
|
|
33
|
+
* @examplePrompt Look up the curve of the selected reference line
|
|
34
|
+
*
|
|
35
|
+
* # Example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const [refLine] = await snaptrude.design.query.listReferenceLines()
|
|
38
|
+
* const result = await snaptrude.design.query.referenceLines.get(refLine, ["curve"])
|
|
39
|
+
* // result.curve is an opaque CurveHandle; read its coordinates via
|
|
40
|
+
* // `snaptrude.core.geom.curve`.
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
abstract get(referenceLineId: string, properties: z.infer<typeof PluginReferenceLineGetProperty>[]): PluginApiReturn<PluginReferenceLineGetResult>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=referenceLines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"referenceLines.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/referenceLines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAC7B,MAAM,4BAA4B,CAAA;AAEnC;;;;;;;;;;GAUG;AACH,8BAAsB,kCAAkC;;IAGtD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;aACa,GAAG,CACjB,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,EAAE,GAC3D,eAAe,CAAC,4BAA4B,CAAC;CACjD"}
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../../types";
|
|
3
|
+
import { ComponentHandle, ContourHandle } from "../../../handles";
|
|
4
|
+
/**
|
|
5
|
+
* `design.query.spaces.*` — space-specific reads (a space is a room mass).
|
|
6
|
+
*
|
|
7
|
+
* Only the space queries feasible against the engine today are exposed here.
|
|
8
|
+
* `getFloor` / `listBoundingWalls` (space↔wall topology) are deferred — they need
|
|
9
|
+
* engine work that does not exist yet. `listAdjacent` stays deferred because the
|
|
10
|
+
* shipped surfaces already answer it with value semantics: per-space via the
|
|
11
|
+
* `adjacency` field of `design.query.getProperties`, in bulk via
|
|
12
|
+
* `program.adjacency.getMatrix`.
|
|
13
|
+
*
|
|
14
|
+
* Accessed via `snaptrude.design.query.spaces`.
|
|
15
|
+
*/
|
|
16
|
+
export declare abstract class PluginDesignQuerySpacesApi {
|
|
17
|
+
constructor();
|
|
18
|
+
/**
|
|
19
|
+
* Get selected properties of a space — the selective multi-property read.
|
|
20
|
+
*
|
|
21
|
+
* Only the properties listed in `properties` are returned — unlisted
|
|
22
|
+
* properties will be `undefined` in the result. This is the canonical home of
|
|
23
|
+
* the read formerly at `entity.space.get` (now deprecated). Adjacency is not
|
|
24
|
+
* part of this read — it is an entity property: read it via the `adjacency`
|
|
25
|
+
* field of {@linkcode PluginDesignQueryApi.getProperties}.
|
|
26
|
+
*
|
|
27
|
+
* @param space - The space (room mass) to read
|
|
28
|
+
* @param properties - Array of property names to retrieve. See
|
|
29
|
+
* {@linkcode PluginDesignQuerySpacesGetProperty} for available values.
|
|
30
|
+
* @returns A partial {@linkcode PluginDesignQuerySpacesGetResult} containing only
|
|
31
|
+
* the requested properties
|
|
32
|
+
* @throws If the space does not exist or the component is not a space/mass
|
|
33
|
+
*
|
|
34
|
+
* @examplePrompt What is the area of this room?
|
|
35
|
+
* @examplePrompt Get the name, storey and height of the selected space
|
|
36
|
+
* @examplePrompt Which department does this room belong to?
|
|
37
|
+
* @examplePrompt Where is this space positioned on the plan?
|
|
38
|
+
* @examplePrompt Read the room type and dimensions of the selected room
|
|
39
|
+
*
|
|
40
|
+
* # Example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const [space] = await snaptrude.design.query.listSpaces()
|
|
43
|
+
* const info = await snaptrude.design.query.spaces.get(space, ["name", "area", "position"])
|
|
44
|
+
* console.log(info.name, info.area, info.position)
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
abstract get(space: ComponentHandle, properties: PluginDesignQuerySpacesGetArgs["properties"]): PluginApiReturn<PluginDesignQuerySpacesGetResult>;
|
|
48
|
+
/**
|
|
49
|
+
* Get the **footprint** of a space — its bottom-face contour (outer profile +
|
|
50
|
+
* holes) as a reusable {@linkcode ContourHandle}. Equivalent to
|
|
51
|
+
* {@linkcode PluginDesignQueryGeometryApi.getBottomContour} narrowed to spaces.
|
|
52
|
+
*
|
|
53
|
+
* @param space - The space (room mass) to read
|
|
54
|
+
* @returns the footprint {@linkcode ContourHandle}, or `null` if the space has
|
|
55
|
+
* no extractable footprint
|
|
56
|
+
*
|
|
57
|
+
* @examplePrompt Get the footprint of this room
|
|
58
|
+
* @examplePrompt Trace the floor outline of the selected space
|
|
59
|
+
* @examplePrompt What is the plan boundary of this room, including any holes?
|
|
60
|
+
* @examplePrompt Give me the base profile of the selected room mass
|
|
61
|
+
*
|
|
62
|
+
* # Example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const [space] = await snaptrude.design.query.listSpaces()
|
|
65
|
+
* const footprint = await snaptrude.design.query.spaces.getFootprint(space)
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
abstract getFootprint(space: ComponentHandle): PluginApiReturn<ContourHandle | null>;
|
|
69
|
+
/**
|
|
70
|
+
* Get the **enclosure** of a space — the floor and ceiling that cap it, the
|
|
71
|
+
* bounding walls around it (with each wall's door/window openings), and the
|
|
72
|
+
* neighbouring spaces it shares a boundary with.
|
|
73
|
+
*
|
|
74
|
+
* **Geometric v1 — best effort.** The engine has no persisted space→surface
|
|
75
|
+
* topology, so this read is derived purely from *plan geometry*: the space
|
|
76
|
+
* footprint is matched against the plan footprints/baselines of the slabs and
|
|
77
|
+
* walls on the same storey. Consequences a caller must account for:
|
|
78
|
+
*
|
|
79
|
+
* - `faceIndices` is **always `[]`**. The triangle→B-rep-face provenance that
|
|
80
|
+
* would populate it is a separate engine capability that does not exist yet;
|
|
81
|
+
* read a surface's full geometry via
|
|
82
|
+
* {@linkcode PluginDesignQueryGeometryApi.getBrep} on its `component` instead.
|
|
83
|
+
* - After heavy edits (move / stretch / boolean) or on imported models the plan
|
|
84
|
+
* match can miss or mis-attribute a surface — treat the result as advisory,
|
|
85
|
+
* not authoritative.
|
|
86
|
+
* - `adjacentSpaces` comes from the same adjacency data as
|
|
87
|
+
* {@linkcode PluginProgramAdjacencyApi.getMatrix} (so the two agree on which
|
|
88
|
+
* spaces neighbour). `sharedEdgeLength` is `0` because that data exposes no
|
|
89
|
+
* edge length, and `sharedSurface` is the common boundary wall only when one
|
|
90
|
+
* is found geometrically (else `null`).
|
|
91
|
+
*
|
|
92
|
+
* Read-only; never mutates the model.
|
|
93
|
+
*
|
|
94
|
+
* @param space - The space (room mass) to read
|
|
95
|
+
* @returns the {@linkcode PluginSpaceEnclosure}, or `null` when `space` is not a
|
|
96
|
+
* space (room mass) or has no extractable plan footprint
|
|
97
|
+
*
|
|
98
|
+
* @examplePrompt What walls, floor and ceiling enclose this room?
|
|
99
|
+
* @examplePrompt Which of this room's walls are external?
|
|
100
|
+
* @examplePrompt List the doors and windows around the selected space
|
|
101
|
+
* @examplePrompt Which spaces are adjacent to this room, and through which wall?
|
|
102
|
+
*
|
|
103
|
+
* # Example
|
|
104
|
+
* ```ts
|
|
105
|
+
* const [space] = await snaptrude.design.query.listSpaces()
|
|
106
|
+
* const enclosure = await snaptrude.design.query.spaces.getEnclosure(space)
|
|
107
|
+
* if (enclosure) {
|
|
108
|
+
* const walls = enclosure.surfaces.filter((s) => s.role === "wall")
|
|
109
|
+
* const external = walls.filter((s) => s.isExternal)
|
|
110
|
+
* console.log(`${walls.length} walls, ${external.length} external`)
|
|
111
|
+
* }
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
abstract getEnclosure(space: ComponentHandle): PluginApiReturn<PluginSpaceEnclosure | null>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Arguments for {@linkcode PluginDesignQuerySpacesApi.getFootprint}.
|
|
118
|
+
*
|
|
119
|
+
* | Property | Type | Description |
|
|
120
|
+
* |---|---|---|
|
|
121
|
+
* | `space` | {@linkcode ComponentHandle} | The space (room mass) to read |
|
|
122
|
+
*/
|
|
123
|
+
export declare const PluginDesignQueryGetFootprintArgs: z.ZodObject<{
|
|
124
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
export type PluginDesignQueryGetFootprintArgs = z.infer<typeof PluginDesignQueryGetFootprintArgs>;
|
|
127
|
+
/**
|
|
128
|
+
* Property names readable via {@linkcode PluginDesignQuerySpacesApi.get} — the
|
|
129
|
+
* legacy {@linkcode PluginSpaceGetProperty} set minus `"adjacency"` (adjacency is
|
|
130
|
+
* an entity property: see the `adjacency` field of
|
|
131
|
+
* {@linkcode PluginDesignQueryApi.getProperties}).
|
|
132
|
+
*/
|
|
133
|
+
export declare const PluginDesignQuerySpacesGetProperty: z.ZodEnum<{
|
|
134
|
+
profile: "profile";
|
|
135
|
+
type: "type";
|
|
136
|
+
id: "id";
|
|
137
|
+
position: "position";
|
|
138
|
+
name: "name";
|
|
139
|
+
storey: "storey";
|
|
140
|
+
height: "height";
|
|
141
|
+
depth: "depth";
|
|
142
|
+
innerProfiles: "innerProfiles";
|
|
143
|
+
room_type: "room_type";
|
|
144
|
+
area: "area";
|
|
145
|
+
breadth: "breadth";
|
|
146
|
+
massType: "massType";
|
|
147
|
+
spaceType: "spaceType";
|
|
148
|
+
areaClass: "areaClass";
|
|
149
|
+
departmentId: "departmentId";
|
|
150
|
+
departmentName: "departmentName";
|
|
151
|
+
departmentColor: "departmentColor";
|
|
152
|
+
absolutePosition: "absolutePosition";
|
|
153
|
+
rotation: "rotation";
|
|
154
|
+
rotationQuaternion: "rotationQuaternion";
|
|
155
|
+
planPoints: "planPoints";
|
|
156
|
+
innerPlanPoints: "innerPlanPoints";
|
|
157
|
+
}>;
|
|
158
|
+
export type PluginDesignQuerySpacesGetProperty = z.infer<typeof PluginDesignQuerySpacesGetProperty>;
|
|
159
|
+
/**
|
|
160
|
+
* Arguments for {@linkcode PluginDesignQuerySpacesApi.get}.
|
|
161
|
+
*
|
|
162
|
+
* | Property | Type | Description |
|
|
163
|
+
* |---|---|---|
|
|
164
|
+
* | `space` | {@linkcode ComponentHandle} | The space (room mass) to read |
|
|
165
|
+
* | `properties` | {@linkcode PluginDesignQuerySpacesGetProperty}`[]` | Properties to retrieve |
|
|
166
|
+
*/
|
|
167
|
+
export declare const PluginDesignQuerySpacesGetArgs: z.ZodObject<{
|
|
168
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
169
|
+
properties: z.ZodArray<z.ZodEnum<{
|
|
170
|
+
profile: "profile";
|
|
171
|
+
type: "type";
|
|
172
|
+
id: "id";
|
|
173
|
+
position: "position";
|
|
174
|
+
name: "name";
|
|
175
|
+
storey: "storey";
|
|
176
|
+
height: "height";
|
|
177
|
+
depth: "depth";
|
|
178
|
+
innerProfiles: "innerProfiles";
|
|
179
|
+
room_type: "room_type";
|
|
180
|
+
area: "area";
|
|
181
|
+
breadth: "breadth";
|
|
182
|
+
massType: "massType";
|
|
183
|
+
spaceType: "spaceType";
|
|
184
|
+
areaClass: "areaClass";
|
|
185
|
+
departmentId: "departmentId";
|
|
186
|
+
departmentName: "departmentName";
|
|
187
|
+
departmentColor: "departmentColor";
|
|
188
|
+
absolutePosition: "absolutePosition";
|
|
189
|
+
rotation: "rotation";
|
|
190
|
+
rotationQuaternion: "rotationQuaternion";
|
|
191
|
+
planPoints: "planPoints";
|
|
192
|
+
innerPlanPoints: "innerPlanPoints";
|
|
193
|
+
}>>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
export type PluginDesignQuerySpacesGetArgs = z.infer<typeof PluginDesignQuerySpacesGetArgs>;
|
|
196
|
+
/**
|
|
197
|
+
* Result of {@linkcode PluginDesignQuerySpacesApi.get} — the legacy
|
|
198
|
+
* {@linkcode PluginSpaceGetResult} record minus `adjacency`. Partial: only the
|
|
199
|
+
* requested properties are present.
|
|
200
|
+
*/
|
|
201
|
+
export declare const PluginDesignQuerySpacesGetResult: z.ZodObject<{
|
|
202
|
+
profile: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"arc">, string>>]>>>;
|
|
203
|
+
type: z.ZodOptional<z.ZodString>;
|
|
204
|
+
id: z.ZodOptional<z.ZodString>;
|
|
205
|
+
position: z.ZodOptional<z.ZodObject<{
|
|
206
|
+
x: z.ZodNumber;
|
|
207
|
+
y: z.ZodNumber;
|
|
208
|
+
z: z.ZodNumber;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
name: z.ZodOptional<z.ZodString>;
|
|
211
|
+
storey: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
212
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
213
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
214
|
+
innerProfiles: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"arc">, string>>]>>>>;
|
|
215
|
+
room_type: z.ZodOptional<z.ZodString>;
|
|
216
|
+
area: z.ZodOptional<z.ZodNumber>;
|
|
217
|
+
breadth: z.ZodOptional<z.ZodNumber>;
|
|
218
|
+
massType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
spaceType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
220
|
+
Room: "Room";
|
|
221
|
+
"Program Block": "Program Block";
|
|
222
|
+
Balcony: "Balcony";
|
|
223
|
+
Road: "Road";
|
|
224
|
+
Garden: "Garden";
|
|
225
|
+
Deck: "Deck";
|
|
226
|
+
Pool: "Pool";
|
|
227
|
+
Walkway: "Walkway";
|
|
228
|
+
Envelope: "Envelope";
|
|
229
|
+
Parking: "Parking";
|
|
230
|
+
}>>>;
|
|
231
|
+
areaClass: z.ZodOptional<z.ZodEnum<{
|
|
232
|
+
NET: "NET";
|
|
233
|
+
GROSS: "GROSS";
|
|
234
|
+
EXCLUDED: "EXCLUDED";
|
|
235
|
+
}>>;
|
|
236
|
+
departmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
237
|
+
departmentName: z.ZodOptional<z.ZodString>;
|
|
238
|
+
departmentColor: z.ZodOptional<z.ZodString>;
|
|
239
|
+
absolutePosition: z.ZodOptional<z.ZodObject<{
|
|
240
|
+
x: z.ZodNumber;
|
|
241
|
+
y: z.ZodNumber;
|
|
242
|
+
z: z.ZodNumber;
|
|
243
|
+
}, z.core.$strip>>;
|
|
244
|
+
rotation: z.ZodOptional<z.ZodObject<{
|
|
245
|
+
x: z.ZodNumber;
|
|
246
|
+
y: z.ZodNumber;
|
|
247
|
+
z: z.ZodNumber;
|
|
248
|
+
}, z.core.$strip>>;
|
|
249
|
+
rotationQuaternion: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
250
|
+
x: z.ZodNumber;
|
|
251
|
+
y: z.ZodNumber;
|
|
252
|
+
z: z.ZodNumber;
|
|
253
|
+
w: z.ZodNumber;
|
|
254
|
+
}, z.core.$strip>>>;
|
|
255
|
+
planPoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
256
|
+
x: z.ZodNumber;
|
|
257
|
+
y: z.ZodNumber;
|
|
258
|
+
z: z.ZodNumber;
|
|
259
|
+
}, z.core.$strip>>>;
|
|
260
|
+
innerPlanPoints: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
261
|
+
x: z.ZodNumber;
|
|
262
|
+
y: z.ZodNumber;
|
|
263
|
+
z: z.ZodNumber;
|
|
264
|
+
}, z.core.$strip>>>>;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
export type PluginDesignQuerySpacesGetResult = z.infer<typeof PluginDesignQuerySpacesGetResult>;
|
|
267
|
+
/**
|
|
268
|
+
* Arguments for {@linkcode PluginDesignQuerySpacesApi.getEnclosure}.
|
|
269
|
+
*
|
|
270
|
+
* | Property | Type | Description |
|
|
271
|
+
* |---|---|---|
|
|
272
|
+
* | `space` | {@linkcode ComponentHandle} | The space (room mass) to read |
|
|
273
|
+
*/
|
|
274
|
+
export declare const PluginDesignQuerySpacesGetEnclosureArgs: z.ZodObject<{
|
|
275
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
276
|
+
}, z.core.$strip>;
|
|
277
|
+
export type PluginDesignQuerySpacesGetEnclosureArgs = z.infer<typeof PluginDesignQuerySpacesGetEnclosureArgs>;
|
|
278
|
+
/**
|
|
279
|
+
* The role a bounding surface plays in a {@linkcode PluginSpaceEnclosure}:
|
|
280
|
+
* `"floor"` (slab below), `"ceiling"` (slab/roof above), or `"wall"`.
|
|
281
|
+
*/
|
|
282
|
+
export declare const PluginEnclosureRole: z.ZodEnum<{
|
|
283
|
+
floor: "floor";
|
|
284
|
+
wall: "wall";
|
|
285
|
+
ceiling: "ceiling";
|
|
286
|
+
}>;
|
|
287
|
+
export type PluginEnclosureRole = z.infer<typeof PluginEnclosureRole>;
|
|
288
|
+
/** The kind of opening hosted in a bounding wall. */
|
|
289
|
+
export declare const PluginEnclosureOpeningKind: z.ZodEnum<{
|
|
290
|
+
void: "void";
|
|
291
|
+
door: "door";
|
|
292
|
+
window: "window";
|
|
293
|
+
}>;
|
|
294
|
+
export type PluginEnclosureOpeningKind = z.infer<typeof PluginEnclosureOpeningKind>;
|
|
295
|
+
/**
|
|
296
|
+
* One opening (door / window / void) in a bounding wall.
|
|
297
|
+
*
|
|
298
|
+
* | Property | Type | Description |
|
|
299
|
+
* |---|---|---|
|
|
300
|
+
* | `kind` | {@linkcode PluginEnclosureOpeningKind} | `"door"`, `"window"`, or `"void"` |
|
|
301
|
+
* | `component` | {@linkcode ComponentHandle} | The opening entity |
|
|
302
|
+
*/
|
|
303
|
+
export declare const PluginEnclosureOpening: z.ZodObject<{
|
|
304
|
+
kind: z.ZodEnum<{
|
|
305
|
+
void: "void";
|
|
306
|
+
door: "door";
|
|
307
|
+
window: "window";
|
|
308
|
+
}>;
|
|
309
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
export type PluginEnclosureOpening = z.infer<typeof PluginEnclosureOpening>;
|
|
312
|
+
/**
|
|
313
|
+
* One bounding surface of a space's enclosure.
|
|
314
|
+
*
|
|
315
|
+
* | Property | Type | Description |
|
|
316
|
+
* |---|---|---|
|
|
317
|
+
* | `role` | {@linkcode PluginEnclosureRole} | `"floor"`, `"ceiling"`, or `"wall"` |
|
|
318
|
+
* | `component` | {@linkcode ComponentHandle} | The wall / slab / roof entity |
|
|
319
|
+
* | `faceIndices` | `number[]` | B-rep face indices facing the space. **Always `[]` in geometric v1** (no triangle→face provenance yet) |
|
|
320
|
+
* | `isExternal` | `boolean` | No space on the other side — for a wall, no other room bounds it; for a floor/ceiling, no room caps the storey below/above |
|
|
321
|
+
* | `openings` | {@linkcode PluginEnclosureOpening}`[]` | Doors/windows/voids in the surface (walls only; `[]` for floor/ceiling in v1) |
|
|
322
|
+
*/
|
|
323
|
+
export declare const PluginEnclosureSurface: z.ZodObject<{
|
|
324
|
+
role: z.ZodEnum<{
|
|
325
|
+
floor: "floor";
|
|
326
|
+
wall: "wall";
|
|
327
|
+
ceiling: "ceiling";
|
|
328
|
+
}>;
|
|
329
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
330
|
+
faceIndices: z.ZodArray<z.ZodNumber>;
|
|
331
|
+
isExternal: z.ZodBoolean;
|
|
332
|
+
openings: z.ZodArray<z.ZodObject<{
|
|
333
|
+
kind: z.ZodEnum<{
|
|
334
|
+
void: "void";
|
|
335
|
+
door: "door";
|
|
336
|
+
window: "window";
|
|
337
|
+
}>;
|
|
338
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
339
|
+
}, z.core.$strip>>;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
export type PluginEnclosureSurface = z.infer<typeof PluginEnclosureSurface>;
|
|
342
|
+
/**
|
|
343
|
+
* A space that neighbours the queried space.
|
|
344
|
+
*
|
|
345
|
+
* | Property | Type | Description |
|
|
346
|
+
* |---|---|---|
|
|
347
|
+
* | `space` | {@linkcode ComponentHandle} | The neighbouring space |
|
|
348
|
+
* | `sharedSurface` | {@linkcode ComponentHandle}` \| null` | The common boundary wall when one is found geometrically, else `null` (e.g. an open-plan or non-physical adjacency) |
|
|
349
|
+
* | `sharedEdgeLength` | `number` | Plan-unit length of the shared boundary — **always `0` in geometric v1** (the adjacency data exposes no edge length) |
|
|
350
|
+
*/
|
|
351
|
+
export declare const PluginAdjacentSpace: z.ZodObject<{
|
|
352
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
353
|
+
sharedSurface: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
354
|
+
sharedEdgeLength: z.ZodNumber;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
export type PluginAdjacentSpace = z.infer<typeof PluginAdjacentSpace>;
|
|
357
|
+
/**
|
|
358
|
+
* Result of {@linkcode PluginDesignQuerySpacesApi.getEnclosure} — the geometric
|
|
359
|
+
* v1 enclosure of a space.
|
|
360
|
+
*
|
|
361
|
+
* | Property | Type | Description |
|
|
362
|
+
* |---|---|---|
|
|
363
|
+
* | `space` | {@linkcode ComponentHandle} | The queried space |
|
|
364
|
+
* | `surfaces` | {@linkcode PluginEnclosureSurface}`[]` | Floor + ceiling + bounding walls, as a flat list (any of the three may be absent when no plan match is found) |
|
|
365
|
+
* | `adjacentSpaces` | {@linkcode PluginAdjacentSpace}`[]` | Neighbouring spaces from the adjacency data (`[]` when adjacency was never computed) |
|
|
366
|
+
*/
|
|
367
|
+
export declare const PluginSpaceEnclosure: z.ZodObject<{
|
|
368
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
369
|
+
surfaces: z.ZodArray<z.ZodObject<{
|
|
370
|
+
role: z.ZodEnum<{
|
|
371
|
+
floor: "floor";
|
|
372
|
+
wall: "wall";
|
|
373
|
+
ceiling: "ceiling";
|
|
374
|
+
}>;
|
|
375
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
376
|
+
faceIndices: z.ZodArray<z.ZodNumber>;
|
|
377
|
+
isExternal: z.ZodBoolean;
|
|
378
|
+
openings: z.ZodArray<z.ZodObject<{
|
|
379
|
+
kind: z.ZodEnum<{
|
|
380
|
+
void: "void";
|
|
381
|
+
door: "door";
|
|
382
|
+
window: "window";
|
|
383
|
+
}>;
|
|
384
|
+
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
385
|
+
}, z.core.$strip>>;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
adjacentSpaces: z.ZodArray<z.ZodObject<{
|
|
388
|
+
space: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
389
|
+
sharedSurface: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
390
|
+
sharedEdgeLength: z.ZodNumber;
|
|
391
|
+
}, z.core.$strip>>;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
export type PluginSpaceEnclosure = z.infer<typeof PluginSpaceEnclosure>;
|
|
394
|
+
//# sourceMappingURL=spaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spaces.d.ts","sourceRoot":"","sources":["../../../../src/api/design/query/spaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAGjE;;;;;;;;;;;GAWG;AACH,8BAAsB,0BAA0B;;IAG9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;aACa,GAAG,CACjB,KAAK,EAAE,eAAe,EACtB,UAAU,EAAE,8BAA8B,CAAC,YAAY,CAAC,GACvD,eAAe,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