@snaptrude/plugin-core 0.0.0-dev-20260907135026 → 0.0.0-dev-20260911064951
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 +25 -0
- package/api-manifest.json +12 -151
- package/dist/api/core/geom/create/index.d.ts +86 -559
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/query/brep.d.ts +0 -50
- package/dist/api/core/geom/query/brep.d.ts.map +1 -1
- package/dist/api/core/geom/query/curve.d.ts +35 -58
- package/dist/api/core/geom/query/curve.d.ts.map +1 -1
- package/dist/api/core/geom/query/edge.d.ts +2 -2
- package/dist/api/core/geom/query/face.d.ts +0 -45
- package/dist/api/core/geom/query/face.d.ts.map +1 -1
- package/dist/api/core/geom/update/curve.d.ts +5 -5
- package/dist/api/core/geom/update/profile.d.ts +1 -1
- package/dist/api/core/io/import/index.d.ts +3 -1
- package/dist/api/core/io/import/index.d.ts.map +1 -1
- 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/index.d.ts +310 -22
- package/dist/api/design/create/index.d.ts.map +1 -1
- 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 +4 -0
- package/dist/api/design/delete/index.d.ts.map +1 -1
- 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 +20 -13
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +5 -0
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/query/geometry/index.d.ts +1 -27
- package/dist/api/design/query/geometry/index.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +0 -47
- package/dist/api/design/query/index.d.ts.map +1 -1
- package/dist/api/design/query/spaces.d.ts +5 -5
- package/dist/api/design/update/index.d.ts +0 -87
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/entity/referenceLine.d.ts +2 -2
- package/dist/api/entity/referenceLine.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +4 -5
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/api/entity/story.d.ts +4 -4
- package/dist/api/presentation/annotate.d.ts +2 -2
- package/dist/api/presentation/shapes.d.ts +2 -2
- package/dist/api/program/spreadsheet.d.ts +4 -4
- package/dist/handles.d.ts +22 -12
- package/dist/handles.d.ts.map +1 -1
- package/dist/index.cjs +2867 -3040
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2844 -3006
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/core/geom/create/index.ts +84 -588
- package/src/api/core/geom/query/brep.ts +0 -51
- package/src/api/core/geom/query/curve.ts +2 -25
- package/src/api/core/geom/query/edge.ts +2 -2
- package/src/api/core/geom/query/face.ts +0 -49
- package/src/api/core/io/import/index.ts +11 -3
- package/src/api/design/create/bulk-items.ts +186 -0
- package/src/api/design/create/index.ts +335 -38
- package/src/api/design/create/opening-fields.ts +37 -0
- package/src/api/design/delete/index.ts +4 -0
- package/src/api/design/dimensions.ts +453 -0
- package/src/api/design/doors/index.ts +20 -13
- package/src/api/design/index.ts +5 -0
- package/src/api/design/query/geometry/index.ts +0 -29
- package/src/api/design/query/index.ts +0 -50
- package/src/api/design/update/index.ts +0 -94
- package/src/handles.ts +27 -15
- package/src/index.ts +0 -1
- package/dist/massParameters.d.ts +0 -319
- package/dist/massParameters.d.ts.map +0 -1
- package/src/massParameters.ts +0 -472
- package/test/massParameters.test.mjs +0 -500
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../../types";
|
|
3
3
|
import { ComponentHandle, BBoxComponents } from "../../../handles";
|
|
4
|
-
import type { MassParametersRecord } from "../../../massParameters";
|
|
5
4
|
import { PluginDesignQueryGeometryApi } from "./geometry";
|
|
6
5
|
import { PluginDesignQuerySpacesApi } from "./spaces";
|
|
7
6
|
import { PluginDesignQueryReferenceLinesApi } from "./referenceLines";
|
|
@@ -1128,52 +1127,6 @@ export declare abstract class PluginDesignQueryApi {
|
|
|
1128
1127
|
* ```
|
|
1129
1128
|
*/
|
|
1130
1129
|
abstract getStaircaseParams(staircase: ComponentHandle): PluginApiReturn<PluginStaircaseParams | null>;
|
|
1131
|
-
/**
|
|
1132
|
-
* Read a mass's creation-parameter record — the recipe it was built from
|
|
1133
|
-
* (`kind` plus the values that constructor was called with). Present on
|
|
1134
|
-
* masses committed from a `core.geom.create` brep constructor that carries a
|
|
1135
|
-
* recipe: {@linkcode MassParametersRecord} covers the four primitives
|
|
1136
|
-
* (sphere, cylinder, cone, torus), extrusions, revolutions, lofts and sweeps.
|
|
1137
|
-
*
|
|
1138
|
-
* A fillet, chamfer, shell or offset of a recorded solid keeps the record
|
|
1139
|
-
* too: `kind` stays the base constructor and the operation is appended to the
|
|
1140
|
-
* record's `operations` list. Edit any of it with `design.update.parameters`.
|
|
1141
|
-
*
|
|
1142
|
-
* `null` for everything else — drawn masses, imported geometry, booleans,
|
|
1143
|
-
* split parts, `brepFromFaces` / `brepFromMesh`, and results built on a
|
|
1144
|
-
* source that carried no record — and for a mass whose record no longer
|
|
1145
|
-
* matches what is on
|
|
1146
|
-
* screen (a later free-form edit dropped the recipe, or the mass carries a
|
|
1147
|
-
* baked scale). `null` too when the recipe was not recordable: the record
|
|
1148
|
-
* schema has its own caps (a sweep path of at most 512 points, a loft of at
|
|
1149
|
-
* most 32 sections, at most 8 chained `operations`, at most 256 curves in one
|
|
1150
|
-
* profile loop and 64 holes in one contour), and a mass built past one of
|
|
1151
|
-
* them — through a route that does not enforce the matching creator cap —
|
|
1152
|
-
* commits as ordinary geometry carrying no record. The `operations` cap is
|
|
1153
|
-
* the one an agent can walk into by accident: a 9th chained
|
|
1154
|
-
* fillet/chamfer/shell/offset drops the record silently, so the result
|
|
1155
|
-
* commits as ordinary geometry and reads back `null` here. A record is never
|
|
1156
|
-
* reported unless it is still the truth.
|
|
1157
|
-
*
|
|
1158
|
-
* Points and axes come back in **world** coordinates. Pure read — nothing is
|
|
1159
|
-
* created or modified.
|
|
1160
|
-
*
|
|
1161
|
-
* @param component - the mass's {@linkcode ComponentHandle}
|
|
1162
|
-
* @returns the {@linkcode MassParametersRecord}, or `null`
|
|
1163
|
-
*
|
|
1164
|
-
* @examplePrompt What radius is this sphere?
|
|
1165
|
-
* @examplePrompt Is this mass parametric?
|
|
1166
|
-
* @examplePrompt Read back the dome's creation parameters
|
|
1167
|
-
* @examplePrompt How tall was this cylinder made?
|
|
1168
|
-
*
|
|
1169
|
-
* # Example
|
|
1170
|
-
* ```ts
|
|
1171
|
-
* const [mass] = await snaptrude.design.query.listMasses({ isSelected: true })
|
|
1172
|
-
* const params = await snaptrude.design.query.getParameters(mass)
|
|
1173
|
-
* if (params?.kind === "sphere") console.log("radius:", params.values.radius)
|
|
1174
|
-
* ```
|
|
1175
|
-
*/
|
|
1176
|
-
abstract getParameters(component: ComponentHandle): PluginApiReturn<MassParametersRecord | null>;
|
|
1177
1130
|
/**
|
|
1178
1131
|
* Get the **union** axis-aligned bounding box enclosing a set of entities.
|
|
1179
1132
|
*
|
|
@@ -1 +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;
|
|
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,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AAyB;;;;;;;;;;;;;;;;;;;;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"}
|
|
@@ -134,10 +134,10 @@ export declare const PluginDesignQuerySpacesGetProperty: z.ZodEnum<{
|
|
|
134
134
|
profile: "profile";
|
|
135
135
|
type: "type";
|
|
136
136
|
id: "id";
|
|
137
|
-
height: "height";
|
|
138
137
|
position: "position";
|
|
139
138
|
name: "name";
|
|
140
139
|
storey: "storey";
|
|
140
|
+
height: "height";
|
|
141
141
|
depth: "depth";
|
|
142
142
|
innerProfiles: "innerProfiles";
|
|
143
143
|
room_type: "room_type";
|
|
@@ -170,10 +170,10 @@ export declare const PluginDesignQuerySpacesGetArgs: z.ZodObject<{
|
|
|
170
170
|
profile: "profile";
|
|
171
171
|
type: "type";
|
|
172
172
|
id: "id";
|
|
173
|
-
height: "height";
|
|
174
173
|
position: "position";
|
|
175
174
|
name: "name";
|
|
176
175
|
storey: "storey";
|
|
176
|
+
height: "height";
|
|
177
177
|
depth: "depth";
|
|
178
178
|
innerProfiles: "innerProfiles";
|
|
179
179
|
room_type: "room_type";
|
|
@@ -199,10 +199,9 @@ export type PluginDesignQuerySpacesGetArgs = z.infer<typeof PluginDesignQuerySpa
|
|
|
199
199
|
* requested properties are present.
|
|
200
200
|
*/
|
|
201
201
|
export declare const PluginDesignQuerySpacesGetResult: z.ZodObject<{
|
|
202
|
-
profile: z.ZodOptional<z.ZodArray<z.
|
|
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
203
|
type: z.ZodOptional<z.ZodString>;
|
|
204
204
|
id: z.ZodOptional<z.ZodString>;
|
|
205
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
206
205
|
position: z.ZodOptional<z.ZodObject<{
|
|
207
206
|
x: z.ZodNumber;
|
|
208
207
|
y: z.ZodNumber;
|
|
@@ -210,8 +209,9 @@ export declare const PluginDesignQuerySpacesGetResult: z.ZodObject<{
|
|
|
210
209
|
}, z.core.$strip>>;
|
|
211
210
|
name: z.ZodOptional<z.ZodString>;
|
|
212
211
|
storey: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
212
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
213
213
|
depth: z.ZodOptional<z.ZodNumber>;
|
|
214
|
-
innerProfiles: z.ZodOptional<z.ZodArray<z.ZodArray<z.
|
|
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
215
|
room_type: z.ZodOptional<z.ZodString>;
|
|
216
216
|
area: z.ZodOptional<z.ZodNumber>;
|
|
217
217
|
breadth: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3,7 +3,6 @@ import { PluginApiReturn } from "../../../types";
|
|
|
3
3
|
import { ComponentHandle } from "../../../handles";
|
|
4
4
|
import { PluginSpaceUpdateResult } from "../../entity/space";
|
|
5
5
|
import { PluginDesignChangeResult } from "../lock";
|
|
6
|
-
import { MassParametersPatch, type MassParametersRecord } from "../../../massParameters";
|
|
7
6
|
import { PluginBuildableEnvelopePolygonVertex, PluginBuildableEnvelopeSetbackTier, PluginBuildableEnvelopeVerticalCap, PluginBuildableEnvelopeUpdateResult } from "../../entity/buildableEnvelope";
|
|
8
7
|
/**
|
|
9
8
|
* Sparse property updates for a space. Only provided fields change.
|
|
@@ -195,19 +194,6 @@ export declare const PluginDesignUpdateStaircaseArgs: z.ZodObject<{
|
|
|
195
194
|
}, z.core.$strip>;
|
|
196
195
|
}, z.core.$strip>;
|
|
197
196
|
export type PluginDesignUpdateStaircaseArgs = z.infer<typeof PluginDesignUpdateStaircaseArgs>;
|
|
198
|
-
/**
|
|
199
|
-
* Arguments for {@linkcode PluginDesignUpdateApi.parameters}.
|
|
200
|
-
*
|
|
201
|
-
* | Property | Type | Description |
|
|
202
|
-
* |---|---|---|
|
|
203
|
-
* | `component` | {@linkcode ComponentHandle} | The parametric mass to edit |
|
|
204
|
-
* | `patch` | {@linkcode MassParametersPatch} | Partial `values` (+ optional `operations`), or the full edited record |
|
|
205
|
-
*/
|
|
206
|
-
export declare const PluginDesignUpdateParametersArgs: z.ZodObject<{
|
|
207
|
-
component: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
208
|
-
patch: z.ZodType<MassParametersPatch, MassParametersPatch, z.core.$ZodTypeInternals<MassParametersPatch, MassParametersPatch>>;
|
|
209
|
-
}, z.core.$strip>;
|
|
210
|
-
export type PluginDesignUpdateParametersArgs = z.infer<typeof PluginDesignUpdateParametersArgs>;
|
|
211
197
|
/**
|
|
212
198
|
* Sparse edits for a wall (all optional; at least one required). Only the
|
|
213
199
|
* fields you provide change. Dimensions are in **engine units** (the same
|
|
@@ -447,79 +433,6 @@ export declare abstract class PluginDesignUpdateApi {
|
|
|
447
433
|
* ```
|
|
448
434
|
*/
|
|
449
435
|
abstract staircase(staircases: ComponentHandle[], params: PluginStaircaseParamUpdates): PluginApiReturn<PluginDesignChangeResult>;
|
|
450
|
-
/**
|
|
451
|
-
* Edit a parametric mass by patching its creation recipe and rebuilding the
|
|
452
|
-
* solid in place — the mass keeps its id, storey, materials, position and
|
|
453
|
-
* linked copies; only the geometry changes. Read the current record with
|
|
454
|
-
* `design.query.getParameters` first.
|
|
455
|
-
*
|
|
456
|
-
* `patch` is a partial of `record.values` — or the whole record you read
|
|
457
|
-
* back, edited. A key you leave out is unchanged (that includes
|
|
458
|
-
* `operations`). Scalars and points MERGE by key (`{ radius: 8 }` changes
|
|
459
|
-
* only the radius); arrays (`contour`, `sections`, `path`, `profile`,
|
|
460
|
-
* `operations`) REPLACE WHOLE when present — send the complete new list;
|
|
461
|
-
* `{ operations: [] }` drops every operation. A patch that changes nothing
|
|
462
|
-
* returns the current record and records no edit (no undo step). `kind` and
|
|
463
|
-
* `version` are immutable: to change the kind, build a new mass. Keys are the
|
|
464
|
-
* record's `values` keys for its `kind` (sphere: `centre`, `radius`;
|
|
465
|
-
* cylinder: `base`, `axis`, `radius`, `height`; torus: `centre`, `axis`,
|
|
466
|
-
* `majorRadius`, `minorRadius`; …) plus `operations`. To change a fillet
|
|
467
|
-
* radius, edit `operations[i].radius` in the record you read and send
|
|
468
|
-
* `{ operations }` back. Points and axes are WORLD coordinates in internal
|
|
469
|
-
* units, exactly as `getParameters` reports them.
|
|
470
|
-
*
|
|
471
|
-
* Rebuilds in memory first, then swaps onto the SAME component; every linked
|
|
472
|
-
* copy regenerates together. One undo step; saves and syncs to collaborators
|
|
473
|
-
* like any geometry edit. Kernel kinds (revolution, sweep, loft, primitives,
|
|
474
|
-
* any `operations`) run on OpenCascade — expect a short pause.
|
|
475
|
-
*
|
|
476
|
-
* @param component - a mass whose `getParameters` is non-null
|
|
477
|
-
* @param patch - partial `values` (+ optional `operations`), or the full edited record
|
|
478
|
-
* @returns the complete post-edit record, world coordinates (what
|
|
479
|
-
* `getParameters` now returns)
|
|
480
|
-
* @throws PRECONDITION_FAILED when the mass carries no live recipe — built
|
|
481
|
-
* from a boolean, split, `brepFromFaces`/`brepFromMesh` or drawn; edited
|
|
482
|
-
* free-form since (push/pull, move face, boolean); or scaled with the
|
|
483
|
-
* transform tool. `getParameters` returns `null` for exactly these.
|
|
484
|
-
* Do not retry — rebuild it with a recipe constructor and say so.
|
|
485
|
-
* Also PRECONDITION_FAILED when the mass is **locked** (the message says
|
|
486
|
-
* so). Locking is invisible to `getParameters` — a locked parametric mass
|
|
487
|
-
* still reads back a full record — so this is the one PRECONDITION_FAILED
|
|
488
|
-
* the read cannot predict. Unlock the mass and call again; never rebuild
|
|
489
|
-
* it, the recipe is intact.
|
|
490
|
-
* Also PRECONDITION_FAILED when an `operations` entry's edge/face selectors
|
|
491
|
-
* no longer resolve on the rebuilt base (the message names the operation
|
|
492
|
-
* and edge): re-select the edges on the new shape and re-apply that
|
|
493
|
-
* operation.
|
|
494
|
-
* @throws VALIDATION for a key the kind does not have (the message lists the
|
|
495
|
-
* kind's keys), `kind` or `version` in a partial patch, or a value outside
|
|
496
|
-
* the constructor's own rules (torus tube ≥ ring, revolution angle ∉
|
|
497
|
-
* (0, 360], a profile crossing its axis, a spline with fewer than
|
|
498
|
-
* degree + 1 poles).
|
|
499
|
-
* @throws OPERATION_FAILED when the kernel cannot build the edited recipe;
|
|
500
|
-
* the model is left unchanged.
|
|
501
|
-
*
|
|
502
|
-
* @examplePrompt Make the dome's radius 8 metres
|
|
503
|
-
* @examplePrompt Raise the podium to 5 m
|
|
504
|
-
* @examplePrompt Widen the vase — move its profile points 20 cm outward
|
|
505
|
-
* @examplePrompt Change the fillet on the rounded column to 300 mm
|
|
506
|
-
*
|
|
507
|
-
* # Example
|
|
508
|
-
* ```ts
|
|
509
|
-
* // { kind: "sphere", values: { centre, radius: 19.685 }, … }
|
|
510
|
-
* const before = await snaptrude.design.query.getParameters(dome)
|
|
511
|
-
* const after = await snaptrude.design.update.parameters(dome, { radius: 31.496 }) // 8 m in internal units
|
|
512
|
-
*
|
|
513
|
-
* // Fillet radius on a recorded result: read → edit → send the array back
|
|
514
|
-
* const rec = await snaptrude.design.query.getParameters(column)
|
|
515
|
-
* const operations = rec?.operations ?? []
|
|
516
|
-
* if (operations[0]?.op === "fillet") {
|
|
517
|
-
* operations[0].radius = 1.181
|
|
518
|
-
* await snaptrude.design.update.parameters(column, { operations })
|
|
519
|
-
* }
|
|
520
|
-
* ```
|
|
521
|
-
*/
|
|
522
|
-
abstract parameters(component: ComponentHandle, patch: MassParametersPatch): PluginApiReturn<MassParametersRecord>;
|
|
523
436
|
/**
|
|
524
437
|
* Edit a **wall** — its thickness and/or height (the same command the
|
|
525
438
|
* properties panel's Thickness/Height fields drive) and/or its **wall type**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/update/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAiB,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAKL,uBAAuB,EACxB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/update/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,eAAe,EAAiB,MAAM,kBAAkB,CAAA;AACjE,OAAO,EAKL,uBAAuB,EACxB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMrC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;aACa,iBAAiB,CAC/B,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,oCAAoC,EAAE,EACnD,UAAU,EAAE,IAAI,GAAG,GAAG,EACtB,QAAQ,EAAE,kCAAkC,EAAE,EAC9C,WAAW,EAAE,kCAAkC,EAC/C,YAAY,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,MAAM,EACjB,iBAAiB,CAAC,EAAE,MAAM,GACzB,eAAe,CAAC,mCAAmC,CAAC;CACxD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../types";
|
|
3
|
-
import { ProfileHandle
|
|
3
|
+
import { ProfileHandle } from "../../handles";
|
|
4
4
|
/**
|
|
5
5
|
* Reference line management — create, query, and delete reference lines.
|
|
6
6
|
*
|
|
@@ -180,7 +180,7 @@ export type PluginReferenceLineGetArgs = z.infer<typeof PluginReferenceLineGetAr
|
|
|
180
180
|
* {@linkcode PluginReferenceLineGetArgs.properties} will be present.
|
|
181
181
|
*/
|
|
182
182
|
export declare const PluginReferenceLineGetResult: z.ZodObject<{
|
|
183
|
-
curve: z.ZodOptional<z.
|
|
183
|
+
curve: z.ZodOptional<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>>]>>;
|
|
184
184
|
}, z.core.$strip>;
|
|
185
185
|
export type PluginReferenceLineGetResult = z.infer<typeof PluginReferenceLineGetResult>;
|
|
186
186
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referenceLine.d.ts","sourceRoot":"","sources":["../../../src/api/entity/referenceLine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CA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BAA0B;;;;;iBAGrC,CAAA;AAEF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEnF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B;;iBAI7B,CAAA;AAEZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEvF;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE7F;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B;;iBAExC,CAAA;AAEF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAEzF,8FAA8F;AAC9F,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { CurveHandle } from "../../handles";
|
|
3
2
|
/**
|
|
4
3
|
* Arguments for `createRectangular`.
|
|
5
4
|
*
|
|
@@ -132,10 +131,10 @@ export declare const PluginSpaceGetProperty: z.ZodEnum<{
|
|
|
132
131
|
profile: "profile";
|
|
133
132
|
type: "type";
|
|
134
133
|
id: "id";
|
|
135
|
-
height: "height";
|
|
136
134
|
position: "position";
|
|
137
135
|
name: "name";
|
|
138
136
|
storey: "storey";
|
|
137
|
+
height: "height";
|
|
139
138
|
depth: "depth";
|
|
140
139
|
innerProfiles: "innerProfiles";
|
|
141
140
|
room_type: "room_type";
|
|
@@ -168,10 +167,10 @@ export declare const PluginSpaceGetArgs: z.ZodObject<{
|
|
|
168
167
|
profile: "profile";
|
|
169
168
|
type: "type";
|
|
170
169
|
id: "id";
|
|
171
|
-
height: "height";
|
|
172
170
|
position: "position";
|
|
173
171
|
name: "name";
|
|
174
172
|
storey: "storey";
|
|
173
|
+
height: "height";
|
|
175
174
|
depth: "depth";
|
|
176
175
|
innerProfiles: "innerProfiles";
|
|
177
176
|
room_type: "room_type";
|
|
@@ -301,8 +300,8 @@ export declare const PluginSpaceGetResult: z.ZodObject<{
|
|
|
301
300
|
y: z.ZodNumber;
|
|
302
301
|
z: z.ZodNumber;
|
|
303
302
|
}, z.core.$strip>>>;
|
|
304
|
-
profile: z.ZodOptional<z.ZodArray<z.
|
|
305
|
-
innerProfiles: z.ZodOptional<z.ZodArray<z.ZodArray<z.
|
|
303
|
+
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>>]>>>;
|
|
304
|
+
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>>]>>>>;
|
|
306
305
|
innerPlanPoints: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
307
306
|
x: z.ZodNumber;
|
|
308
307
|
y: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../../src/api/entity/space.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../../src/api/entity/space.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAUxB;;;;;;;GAOG;AACH,eAAO,MAAM,g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AO,yBAAyB,CAAC,CAAA;AAEjF;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;iBAEtC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;iBAEpC,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEjF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;iBAEtC,CAAA;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,2BAA2B,CACnC,CAAA"}
|
|
@@ -271,10 +271,10 @@ export declare abstract class PluginStoryApi {
|
|
|
271
271
|
export declare const PluginStoryGetProperty: z.ZodEnum<{
|
|
272
272
|
value: "value";
|
|
273
273
|
id: "id";
|
|
274
|
-
base: "base";
|
|
275
|
-
height: "height";
|
|
276
274
|
name: "name";
|
|
277
275
|
hidden: "hidden";
|
|
276
|
+
height: "height";
|
|
277
|
+
base: "base";
|
|
278
278
|
spacesCount: "spacesCount";
|
|
279
279
|
totalArea: "totalArea";
|
|
280
280
|
}>;
|
|
@@ -292,10 +292,10 @@ export declare const PluginStoryGetArgs: z.ZodObject<{
|
|
|
292
292
|
properties: z.ZodArray<z.ZodEnum<{
|
|
293
293
|
value: "value";
|
|
294
294
|
id: "id";
|
|
295
|
-
base: "base";
|
|
296
|
-
height: "height";
|
|
297
295
|
name: "name";
|
|
298
296
|
hidden: "hidden";
|
|
297
|
+
height: "height";
|
|
298
|
+
base: "base";
|
|
299
299
|
spacesCount: "spacesCount";
|
|
300
300
|
totalArea: "totalArea";
|
|
301
301
|
}>>;
|
|
@@ -301,8 +301,8 @@ export type PluginAnnotateGeoKind = z.infer<typeof PluginAnnotateGeoKind>;
|
|
|
301
301
|
/** Fill style for geo shapes (the same fills as the Present-mode style panel). */
|
|
302
302
|
export declare const PluginAnnotateFill: z.ZodEnum<{
|
|
303
303
|
pattern: "pattern";
|
|
304
|
-
solid: "solid";
|
|
305
304
|
none: "none";
|
|
305
|
+
solid: "solid";
|
|
306
306
|
semi: "semi";
|
|
307
307
|
}>;
|
|
308
308
|
export type PluginAnnotateFill = z.infer<typeof PluginAnnotateFill>;
|
|
@@ -445,8 +445,8 @@ export declare const PluginPresentationAnnotateShapeArgs: z.ZodObject<{
|
|
|
445
445
|
}>>;
|
|
446
446
|
fill: z.ZodOptional<z.ZodEnum<{
|
|
447
447
|
pattern: "pattern";
|
|
448
|
-
solid: "solid";
|
|
449
448
|
none: "none";
|
|
449
|
+
solid: "solid";
|
|
450
450
|
semi: "semi";
|
|
451
451
|
}>>;
|
|
452
452
|
}, z.core.$strip>;
|
|
@@ -271,8 +271,8 @@ export declare const PluginPresentationShapeSpec: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
271
271
|
}>>;
|
|
272
272
|
fill: z.ZodOptional<z.ZodEnum<{
|
|
273
273
|
pattern: "pattern";
|
|
274
|
-
solid: "solid";
|
|
275
274
|
none: "none";
|
|
275
|
+
solid: "solid";
|
|
276
276
|
semi: "semi";
|
|
277
277
|
}>>;
|
|
278
278
|
}, z.core.$strip>], "type">;
|
|
@@ -426,8 +426,8 @@ export declare const PluginPresentationShapesUpsertArgs: z.ZodObject<{
|
|
|
426
426
|
}>>;
|
|
427
427
|
fill: z.ZodOptional<z.ZodEnum<{
|
|
428
428
|
pattern: "pattern";
|
|
429
|
-
solid: "solid";
|
|
430
429
|
none: "none";
|
|
430
|
+
solid: "solid";
|
|
431
431
|
semi: "semi";
|
|
432
432
|
}>>;
|
|
433
433
|
}, z.core.$strip>], "type">;
|
|
@@ -1545,8 +1545,8 @@ export declare const PluginProgramSpreadsheetSetFormulasResult: z.ZodObject<{
|
|
|
1545
1545
|
export type PluginProgramSpreadsheetSetFormulasResult = z.infer<typeof PluginProgramSpreadsheetSetFormulasResult>;
|
|
1546
1546
|
/** Font weight for a {@linkcode PluginSpreadsheetCellStyle}. */
|
|
1547
1547
|
export declare const PluginSpreadsheetFontWeight: z.ZodEnum<{
|
|
1548
|
-
bold: "bold";
|
|
1549
1548
|
normal: "normal";
|
|
1549
|
+
bold: "bold";
|
|
1550
1550
|
}>;
|
|
1551
1551
|
export type PluginSpreadsheetFontWeight = z.infer<typeof PluginSpreadsheetFontWeight>;
|
|
1552
1552
|
/** Font style for a {@linkcode PluginSpreadsheetCellStyle}. */
|
|
@@ -1594,8 +1594,8 @@ export declare const PluginSpreadsheetCellStyle: z.ZodObject<{
|
|
|
1594
1594
|
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1595
1595
|
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
1596
1596
|
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
1597
|
-
bold: "bold";
|
|
1598
1597
|
normal: "normal";
|
|
1598
|
+
bold: "bold";
|
|
1599
1599
|
}>>;
|
|
1600
1600
|
fontStyle: z.ZodOptional<z.ZodEnum<{
|
|
1601
1601
|
normal: "normal";
|
|
@@ -1632,8 +1632,8 @@ export declare const PluginSpreadsheetRangeStyle: z.ZodObject<{
|
|
|
1632
1632
|
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1633
1633
|
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
1634
1634
|
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
1635
|
-
bold: "bold";
|
|
1636
1635
|
normal: "normal";
|
|
1636
|
+
bold: "bold";
|
|
1637
1637
|
}>>;
|
|
1638
1638
|
fontStyle: z.ZodOptional<z.ZodEnum<{
|
|
1639
1639
|
normal: "normal";
|
|
@@ -1673,8 +1673,8 @@ export declare const PluginProgramSpreadsheetSetStylesArgs: z.ZodObject<{
|
|
|
1673
1673
|
fontFamily: z.ZodOptional<z.ZodString>;
|
|
1674
1674
|
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
1675
1675
|
fontWeight: z.ZodOptional<z.ZodEnum<{
|
|
1676
|
-
bold: "bold";
|
|
1677
1676
|
normal: "normal";
|
|
1677
|
+
bold: "bold";
|
|
1678
1678
|
}>>;
|
|
1679
1679
|
fontStyle: z.ZodOptional<z.ZodEnum<{
|
|
1680
1680
|
normal: "normal";
|
package/dist/handles.d.ts
CHANGED
|
@@ -93,6 +93,18 @@ export type UnderlayHandle = EntityId<"underlay">;
|
|
|
93
93
|
* Returned by `core.io.import.terrain`.
|
|
94
94
|
*/
|
|
95
95
|
export type TerrainHandle = EntityId<"terrain">;
|
|
96
|
+
/**
|
|
97
|
+
* A **dimension line** — one measurement annotation left behind by the Measuring
|
|
98
|
+
* Tape tool (NOT a width/height/depth property; see `design.dimensions`).
|
|
99
|
+
* Entity-style: the token IS the raw engine dimension id (`dim_…`), resolved live
|
|
100
|
+
* host-side from the dimension-line registry (`getDimensionLineMap()`) — not via
|
|
101
|
+
* `ComponentUtility.FindComponentById`, which does not index dimension lines (a
|
|
102
|
+
* dimension line is not a Component). No arena, no quota, stable across
|
|
103
|
+
* undo/redo and across reloads (the record persists with the project). Returned
|
|
104
|
+
* by `design.dimensions.create` and consumed by every other
|
|
105
|
+
* `design.dimensions.*` method.
|
|
106
|
+
*/
|
|
107
|
+
export type DimensionHandle = EntityId<"dimension">;
|
|
96
108
|
/**
|
|
97
109
|
* A handle to an **asynchronous import job** (today: a DWG → Forge conversion, which
|
|
98
110
|
* can take minutes). Returned immediately by `core.io.import.dwg`; poll it via
|
|
@@ -104,16 +116,8 @@ export type Vec3Handle = Handle<"vec3">;
|
|
|
104
116
|
export type QuatHandle = Handle<"quat">;
|
|
105
117
|
export type LineHandle = Handle<"line">;
|
|
106
118
|
export type ArcHandle = Handle<"arc">;
|
|
107
|
-
/**
|
|
108
|
-
|
|
109
|
-
* `core.geom.create.splineFromPoints` / `splineFromControlPoints`, accepted everywhere a
|
|
110
|
-
* {@linkcode CurveHandle} is (profileFromCurves, query.curve.*).
|
|
111
|
-
* Closed spline loops never exist as a single handle — a closed run is built
|
|
112
|
-
* directly as a profile via `core.geom.create.profileFromSplinePoints`.
|
|
113
|
-
*/
|
|
114
|
-
export type SplineHandle = Handle<"spline">;
|
|
115
|
-
/** A curve is a line, an arc, or a spline — its handle is one of those kinds. */
|
|
116
|
-
export type CurveHandle = LineHandle | ArcHandle | SplineHandle;
|
|
119
|
+
/** A curve is a line or an arc — its handle is one of those kinds. */
|
|
120
|
+
export type CurveHandle = LineHandle | ArcHandle;
|
|
117
121
|
/**
|
|
118
122
|
* A circle value handle. A circle is a CLOSED curve — it deliberately does NOT
|
|
119
123
|
* join {@linkcode CurveHandle} (it has no stable start/end and would break the
|
|
@@ -181,12 +185,18 @@ export declare const MaterialHandle: z.ZodPipe<z.ZodString, z.ZodTransform<Mater
|
|
|
181
185
|
export declare const UnderlayHandle: z.ZodPipe<z.ZodString, z.ZodTransform<UnderlayHandle, string>>;
|
|
182
186
|
export declare const TerrainHandle: z.ZodPipe<z.ZodString, z.ZodTransform<TerrainHandle, string>>;
|
|
183
187
|
export declare const ImportJobHandle: z.ZodPipe<z.ZodString, z.ZodTransform<ImportJobHandle, string>>;
|
|
188
|
+
/**
|
|
189
|
+
* {@linkcode DimensionHandle} is an entity-style handle — the raw `dim_…` engine
|
|
190
|
+
* id, validated only as a non-empty string (no `"<kind>_"` prefix enforcement),
|
|
191
|
+
* resolved live host-side against the dimension-line registry (existence
|
|
192
|
+
* enforced there, as `HANDLE_INVALID`).
|
|
193
|
+
*/
|
|
194
|
+
export declare const DimensionHandle: z.ZodPipe<z.ZodString, z.ZodTransform<DimensionHandle, string>>;
|
|
184
195
|
export declare const Vec3Handle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"vec3">, string>>;
|
|
185
196
|
export declare const QuatHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"quat">, string>>;
|
|
186
197
|
export declare const LineHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"line">, string>>;
|
|
187
198
|
export declare const ArcHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"arc">, string>>;
|
|
188
|
-
export declare const
|
|
189
|
-
export declare const CurveHandle: z.ZodType<CurveHandle>;
|
|
199
|
+
export declare const CurveHandle: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"line">, string>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"arc">, string>>]>;
|
|
190
200
|
export declare const CircleHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"circle">, string>>;
|
|
191
201
|
export declare const BrepHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"brep">, string>>;
|
|
192
202
|
export declare const FaceHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"face">, string>>;
|
package/dist/handles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handles.d.ts","sourceRoot":"","sources":["../src/handles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAKlD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,MAAM,CAAC,CAAC,SAAS,MAAM;IAItB,QAAQ,CAAC,EAAE,EAAE,MAAM;IAH/B,iFAAiF;IACjF,SAAiB,QAAQ,EAAE,CAAC,CAAA;gBAEP,EAAE,EAAE,MAAM;IAE/B,+EAA+E;IAC/E,MAAM,IAAI;QAAE,GAAG,EAAE,MAAM,CAAA;K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