@snaptrude/plugin-core 0.0.0-dev-20260911064951 → 0.0.0-surfaces-20260921090636
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 +0 -25
- package/api-manifest.json +151 -12
- package/dist/api/core/geom/create/index.d.ts +918 -93
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/query/brep.d.ts +50 -0
- package/dist/api/core/geom/query/brep.d.ts.map +1 -1
- package/dist/api/core/geom/query/curve.d.ts +58 -35
- 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 +105 -0
- 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 +1 -3
- package/dist/api/core/io/import/index.d.ts.map +1 -1
- package/dist/api/design/create/index.d.ts +22 -310
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/delete/index.d.ts +0 -4
- package/dist/api/design/delete/index.d.ts.map +1 -1
- package/dist/api/design/doors/index.d.ts +13 -20
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/index.d.ts +0 -5
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/query/geometry/index.d.ts +27 -1
- package/dist/api/design/query/geometry/index.d.ts.map +1 -1
- package/dist/api/design/query/index.d.ts +47 -0
- 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 +87 -0
- 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 +5 -4
- 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/site.d.ts +4 -4
- package/dist/api/program/spreadsheet.d.ts +4 -4
- package/dist/handles.d.ts +12 -22
- package/dist/handles.d.ts.map +1 -1
- package/dist/index.cjs +2773 -2445
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2726 -2422
- package/dist/index.js.map +1 -1
- package/dist/massParameters.d.ts +280 -0
- package/dist/massParameters.d.ts.map +1 -0
- package/dist/massParameters.ops.d.ts +135 -0
- package/dist/massParameters.ops.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/api/core/geom/create/index.ts +1011 -94
- package/src/api/core/geom/query/brep.ts +51 -0
- package/src/api/core/geom/query/curve.ts +25 -2
- package/src/api/core/geom/query/edge.ts +2 -2
- package/src/api/core/geom/query/face.ts +109 -4
- package/src/api/core/io/import/index.ts +3 -11
- package/src/api/design/create/index.ts +38 -335
- package/src/api/design/delete/index.ts +0 -4
- package/src/api/design/doors/index.ts +13 -20
- package/src/api/design/index.ts +0 -5
- package/src/api/design/query/geometry/index.ts +29 -0
- package/src/api/design/query/index.ts +50 -0
- package/src/api/design/update/index.ts +94 -0
- package/src/handles.ts +15 -27
- package/src/index.ts +2 -0
- package/src/massParameters.ops.ts +243 -0
- package/src/massParameters.ts +418 -0
- package/test/massParameters.test.mjs +936 -0
- package/dist/api/design/create/bulk-items.d.ts +0 -185
- package/dist/api/design/create/bulk-items.d.ts.map +0 -1
- package/dist/api/design/create/opening-fields.d.ts +0 -37
- package/dist/api/design/create/opening-fields.d.ts.map +0 -1
- package/dist/api/design/dimensions.d.ts +0 -427
- package/dist/api/design/dimensions.d.ts.map +0 -1
- package/src/api/design/create/bulk-items.ts +0 -186
- package/src/api/design/create/opening-fields.ts +0 -37
- package/src/api/design/dimensions.ts +0 -453
|
@@ -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
|
-
normal: "normal";
|
|
1549
1548
|
bold: "bold";
|
|
1549
|
+
normal: "normal";
|
|
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
|
-
normal: "normal";
|
|
1598
1597
|
bold: "bold";
|
|
1598
|
+
normal: "normal";
|
|
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
|
-
normal: "normal";
|
|
1636
1635
|
bold: "bold";
|
|
1636
|
+
normal: "normal";
|
|
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
|
-
normal: "normal";
|
|
1677
1676
|
bold: "bold";
|
|
1677
|
+
normal: "normal";
|
|
1678
1678
|
}>>;
|
|
1679
1679
|
fontStyle: z.ZodOptional<z.ZodEnum<{
|
|
1680
1680
|
normal: "normal";
|
package/dist/handles.d.ts
CHANGED
|
@@ -93,18 +93,6 @@ 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">;
|
|
108
96
|
/**
|
|
109
97
|
* A handle to an **asynchronous import job** (today: a DWG → Forge conversion, which
|
|
110
98
|
* can take minutes). Returned immediately by `core.io.import.dwg`; poll it via
|
|
@@ -116,8 +104,16 @@ export type Vec3Handle = Handle<"vec3">;
|
|
|
116
104
|
export type QuatHandle = Handle<"quat">;
|
|
117
105
|
export type LineHandle = Handle<"line">;
|
|
118
106
|
export type ArcHandle = Handle<"arc">;
|
|
119
|
-
/**
|
|
120
|
-
|
|
107
|
+
/**
|
|
108
|
+
* A NURBS curve value handle (open B-spline curve). Minted by
|
|
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;
|
|
121
117
|
/**
|
|
122
118
|
* A circle value handle. A circle is a CLOSED curve — it deliberately does NOT
|
|
123
119
|
* join {@linkcode CurveHandle} (it has no stable start/end and would break the
|
|
@@ -185,18 +181,12 @@ export declare const MaterialHandle: z.ZodPipe<z.ZodString, z.ZodTransform<Mater
|
|
|
185
181
|
export declare const UnderlayHandle: z.ZodPipe<z.ZodString, z.ZodTransform<UnderlayHandle, string>>;
|
|
186
182
|
export declare const TerrainHandle: z.ZodPipe<z.ZodString, z.ZodTransform<TerrainHandle, string>>;
|
|
187
183
|
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>>;
|
|
195
184
|
export declare const Vec3Handle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"vec3">, string>>;
|
|
196
185
|
export declare const QuatHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"quat">, string>>;
|
|
197
186
|
export declare const LineHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"line">, string>>;
|
|
198
187
|
export declare const ArcHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"arc">, string>>;
|
|
199
|
-
export declare const
|
|
188
|
+
export declare const SplineHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"spline">, string>>;
|
|
189
|
+
export declare const CurveHandle: z.ZodType<CurveHandle>;
|
|
200
190
|
export declare const CircleHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"circle">, string>>;
|
|
201
191
|
export declare const BrepHandle: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<Handle<"brep">, string>>;
|
|
202
192
|
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;KAAE;IAIzB,wDAA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