@snaptrude/plugin-core 0.10.0 → 1.0.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/AGENTS.md +4 -0
- package/CHANGELOG.md +187 -3
- package/api-manifest.json +929 -25
- package/dist/api/analysis/daylight.d.ts +5 -5
- package/dist/api/analysis/solar.d.ts +2 -2
- package/dist/api/core/camera/index.d.ts +463 -0
- package/dist/api/core/camera/index.d.ts.map +1 -1
- package/dist/api/core/geom/create/index.d.ts +942 -101
- package/dist/api/core/geom/create/index.d.ts.map +1 -1
- package/dist/api/core/geom/query/brep.d.ts +59 -2
- package/dist/api/core/geom/query/brep.d.ts.map +1 -1
- package/dist/api/core/geom/query/curve.d.ts +59 -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/contour.d.ts +10 -2
- package/dist/api/core/geom/update/contour.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 +3 -1
- package/dist/api/core/geom/update/profile.d.ts.map +1 -1
- package/dist/api/core/handles/index.d.ts +4 -2
- package/dist/api/core/handles/index.d.ts.map +1 -1
- package/dist/api/core/index.d.ts +4 -4
- package/dist/api/core/index.d.ts.map +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/core/layers.d.ts +377 -255
- package/dist/api/core/layers.d.ts.map +1 -1
- package/dist/api/core/mode/index.d.ts +19 -7
- package/dist/api/core/mode/index.d.ts.map +1 -1
- package/dist/api/core/project/index.d.ts +68 -1
- package/dist/api/core/project/index.d.ts.map +1 -1
- package/dist/api/core/proposals/index.d.ts +4 -3
- package/dist/api/core/proposals/index.d.ts.map +1 -1
- package/dist/api/core/storeys/index.d.ts +31 -2
- package/dist/api/core/storeys/index.d.ts.map +1 -1
- package/dist/api/core/storeys/layers.d.ts +408 -0
- package/dist/api/core/storeys/layers.d.ts.map +1 -0
- package/dist/api/core/tags.d.ts +84 -3
- package/dist/api/core/tags.d.ts.map +1 -1
- package/dist/api/core/zoom/index.d.ts +13 -0
- package/dist/api/core/zoom/index.d.ts.map +1 -1
- package/dist/api/design/bim.d.ts +299 -0
- package/dist/api/design/bim.d.ts.map +1 -0
- package/dist/api/design/boolean/index.d.ts +2 -0
- package/dist/api/design/boolean/index.d.ts.map +1 -1
- package/dist/api/design/catalog.d.ts +320 -0
- package/dist/api/design/catalog.d.ts.map +1 -0
- package/dist/api/design/create/bulk-items.d.ts +269 -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 +752 -78
- package/dist/api/design/create/index.d.ts.map +1 -1
- package/dist/api/design/create/opening-fields.d.ts +38 -0
- package/dist/api/design/create/opening-fields.d.ts.map +1 -0
- package/dist/api/design/delete/index.d.ts +5 -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 +24 -23
- package/dist/api/design/doors/index.d.ts.map +1 -1
- package/dist/api/design/family.d.ts +1446 -0
- package/dist/api/design/family.d.ts.map +1 -0
- package/dist/api/design/furniture/index.d.ts +33 -0
- package/dist/api/design/furniture/index.d.ts.map +1 -1
- 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 +30 -0
- package/dist/api/design/index.d.ts.map +1 -1
- package/dist/api/design/networks.d.ts +1703 -0
- package/dist/api/design/networks.d.ts.map +1 -0
- package/dist/api/design/query/geometry/index.d.ts +33 -5
- package/dist/api/design/query/geometry/index.d.ts.map +1 -1
- 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 +143 -34
- 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/selection/index.d.ts +12 -12
- package/dist/api/design/types/index.d.ts +40 -24
- package/dist/api/design/types/index.d.ts.map +1 -1
- package/dist/api/design/update/index.d.ts +412 -8
- package/dist/api/design/update/index.d.ts.map +1 -1
- package/dist/api/design/visibility.d.ts +28 -0
- package/dist/api/design/visibility.d.ts.map +1 -1
- package/dist/api/design/windows/index.d.ts +8 -8
- package/dist/api/design/windows/index.d.ts.map +1 -1
- package/dist/api/entity/buildableEnvelope.d.ts +84 -2
- package/dist/api/entity/buildableEnvelope.d.ts.map +1 -1
- package/dist/api/entity/referenceLine.d.ts +13 -1
- package/dist/api/entity/referenceLine.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +12 -12
- package/dist/api/entity/story.d.ts +4 -4
- package/dist/api/presentation/aiInspiration.d.ts +24 -24
- package/dist/api/presentation/annotate.d.ts +38 -22
- package/dist/api/presentation/annotate.d.ts.map +1 -1
- package/dist/api/presentation/camera.d.ts +265 -0
- package/dist/api/presentation/camera.d.ts.map +1 -0
- package/dist/api/presentation/drawingContract.d.ts +32 -0
- package/dist/api/presentation/drawingContract.d.ts.map +1 -0
- package/dist/api/presentation/drawings.d.ts +3523 -0
- package/dist/api/presentation/drawings.d.ts.map +1 -0
- package/dist/api/presentation/export.d.ts +23 -5
- package/dist/api/presentation/export.d.ts.map +1 -1
- package/dist/api/presentation/graphics.d.ts +419 -0
- package/dist/api/presentation/graphics.d.ts.map +1 -0
- package/dist/api/presentation/index.d.ts +66 -12
- package/dist/api/presentation/index.d.ts.map +1 -1
- package/dist/api/presentation/placedViews.d.ts +116 -16
- package/dist/api/presentation/placedViews.d.ts.map +1 -1
- package/dist/api/presentation/sections.d.ts +461 -0
- package/dist/api/presentation/sections.d.ts.map +1 -0
- package/dist/api/presentation/shapes.d.ts +2 -2
- package/dist/api/presentation/sheets.d.ts +175 -19
- package/dist/api/presentation/sheets.d.ts.map +1 -1
- package/dist/api/presentation/standards.d.ts +590 -0
- package/dist/api/presentation/standards.d.ts.map +1 -0
- package/dist/api/presentation/viewPresets.d.ts +222 -0
- package/dist/api/presentation/viewPresets.d.ts.map +1 -0
- package/dist/api/presentation/views.d.ts +144 -9
- package/dist/api/presentation/views.d.ts.map +1 -1
- package/dist/api/presentation/walkthroughs.d.ts +1350 -0
- package/dist/api/presentation/walkthroughs.d.ts.map +1 -0
- package/dist/api/program/departments.d.ts +58 -2
- package/dist/api/program/departments.d.ts.map +1 -1
- package/dist/api/program/index.d.ts +16 -6
- package/dist/api/program/index.d.ts.map +1 -1
- package/dist/api/program/labels.d.ts +355 -0
- package/dist/api/program/labels.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/site.d.ts +4 -4
- package/dist/api/program/spreadsheet.d.ts +267 -4
- package/dist/api/program/spreadsheet.d.ts.map +1 -1
- package/dist/api/workspace/index.d.ts +49 -2
- package/dist/api/workspace/index.d.ts.map +1 -1
- package/dist/errors/codes.d.ts +3 -1
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/handles.d.ts +32 -3
- package/dist/handles.d.ts.map +1 -1
- package/dist/index.cjs +6539 -2804
- 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 +6121 -2801
- package/dist/index.js.map +1 -1
- package/dist/massParameters.d.ts +287 -0
- package/dist/massParameters.d.ts.map +1 -0
- package/dist/massParameters.ops.d.ts +138 -0
- package/dist/massParameters.ops.d.ts.map +1 -0
- package/package.json +14 -13
- package/scripts/check-dist-fresh.mjs +22 -0
- package/scripts/generate-manifest.mjs +5 -0
- package/scripts/generate-manifest.test.mjs +14 -3
- package/src/api/core/camera/index.ts +446 -1
- package/src/api/core/geom/create/index.ts +1037 -102
- package/src/api/core/geom/query/brep.ts +60 -2
- package/src/api/core/geom/query/curve.ts +26 -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/geom/update/contour.ts +10 -2
- package/src/api/core/geom/update/profile.ts +2 -0
- package/src/api/core/handles/index.ts +3 -2
- package/src/api/core/index.ts +4 -4
- package/src/api/core/io/import/index.ts +11 -3
- package/src/api/core/layers.ts +380 -173
- package/src/api/core/mode/index.ts +19 -7
- package/src/api/core/project/index.ts +62 -1
- package/src/api/core/proposals/index.ts +4 -3
- package/src/api/core/storeys/index.ts +34 -2
- package/src/api/core/storeys/layers.ts +339 -0
- package/src/api/core/tags.ts +76 -0
- package/src/api/core/zoom/index.ts +13 -0
- package/src/api/design/bim.ts +210 -0
- package/src/api/design/boolean/index.ts +2 -0
- package/src/api/design/catalog.ts +203 -0
- package/src/api/design/create/bulk-items.ts +294 -0
- package/src/api/design/create/grids.ts +137 -0
- package/src/api/design/create/index.ts +823 -114
- package/src/api/design/create/opening-fields.ts +40 -0
- package/src/api/design/delete/index.ts +5 -0
- package/src/api/design/dimensions.ts +453 -0
- package/src/api/design/doors/index.ts +64 -41
- package/src/api/design/family.ts +1342 -0
- package/src/api/design/furniture/index.ts +34 -0
- package/src/api/design/grids.ts +237 -0
- package/src/api/design/index.ts +49 -4
- package/src/api/design/networks.ts +607 -0
- package/src/api/design/query/geometry/index.ts +35 -4
- package/src/api/design/query/grids.ts +197 -0
- package/src/api/design/query/index.ts +105 -3
- package/src/api/design/types/index.ts +31 -24
- package/src/api/design/update/index.ts +398 -4
- package/src/api/design/visibility.ts +34 -0
- package/src/api/design/windows/index.ts +40 -22
- package/src/api/entity/buildableEnvelope.ts +77 -2
- package/src/api/entity/referenceLine.ts +25 -12
- package/src/api/presentation/annotate.ts +90 -58
- package/src/api/presentation/camera.ts +289 -0
- package/src/api/presentation/drawingContract.ts +70 -0
- package/src/api/presentation/drawings.ts +1179 -0
- package/src/api/presentation/export.ts +32 -6
- package/src/api/presentation/graphics.ts +324 -0
- package/src/api/presentation/index.ts +73 -14
- package/src/api/presentation/placedViews.ts +119 -28
- package/src/api/presentation/sections.ts +420 -0
- package/src/api/presentation/sheets.ts +181 -20
- package/src/api/presentation/standards.ts +445 -0
- package/src/api/presentation/viewPresets.ts +241 -0
- package/src/api/presentation/views.ts +81 -10
- package/src/api/presentation/walkthroughs.ts +1201 -0
- package/src/api/program/departments.ts +54 -2
- package/src/api/program/index.ts +16 -6
- package/src/api/program/labels.ts +332 -0
- package/src/api/program/metadata.ts +364 -0
- package/src/api/program/spreadsheet.ts +282 -0
- package/src/api/workspace/index.ts +51 -2
- package/src/errors/codes.ts +7 -0
- package/src/handles.ts +42 -3
- package/src/index.ts +2 -0
- package/src/massParameters.ops.ts +246 -0
- package/src/massParameters.ts +427 -0
- package/test/drawingContract.test.mjs +288 -0
- package/test/errors.test.mjs +1 -0
- package/test/massParameters.test.mjs +952 -0
- package/test/paperPensContract.test.mjs +75 -0
- package/test/presentationViewSettings.test.mjs +85 -0
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ComponentHandle } from "../../../handles";
|
|
3
|
+
/**
|
|
4
|
+
* Maximum items per bulk `design.create.*` call. A bounded request keeps
|
|
5
|
+
* validation, command capture and rollback work finite; split a larger import
|
|
6
|
+
* into separate awaited batches, each with its own undo entry.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PLUGIN_CREATE_BATCH_LIMIT = 1000;
|
|
9
|
+
/**
|
|
10
|
+
* One break point of a wall's top edge — see {@linkcode PluginWallTopProfile}.
|
|
11
|
+
*
|
|
12
|
+
* | Property | Type | Description |
|
|
13
|
+
* |---|---|---|
|
|
14
|
+
* | `along` | `number` | Position along the wall centerline as a fraction: `0` = start of the curve, `1` = end |
|
|
15
|
+
* | `height` | `number` | Top height above the wall base at that point (Snaptrude units, > 0) |
|
|
16
|
+
*/
|
|
17
|
+
export declare const PluginWallTopProfilePoint: z.ZodObject<{
|
|
18
|
+
along: z.ZodNumber;
|
|
19
|
+
height: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type PluginWallTopProfilePoint = z.infer<typeof PluginWallTopProfilePoint>;
|
|
22
|
+
/**
|
|
23
|
+
* The top edge of ONE wall as a polyline over its centerline: at least two
|
|
24
|
+
* points, `along` strictly increasing from `0` (curve start) to `1` (curve end),
|
|
25
|
+
* straight segments between them. Two points give a single slope (a raked
|
|
26
|
+
* wall), three give a gable, more give any stepped or folded ridge. Heights are
|
|
27
|
+
* measured from the wall base, like `height`. Both long faces follow the same
|
|
28
|
+
* profile, so the top stays a set of flat faces and the wall keeps its thickness
|
|
29
|
+
* end to end.
|
|
30
|
+
*
|
|
31
|
+
* Only straight centerlines take a top profile (an arc curve with one is
|
|
32
|
+
* rejected). A wall built this way is a real Wall — doors and windows host on
|
|
33
|
+
* it, corners mitre, quantities and Revit export read its geometry — but it is
|
|
34
|
+
* **non-parametric**: the parametric wall graph does not rebuild it, so a later
|
|
35
|
+
* move of a neighbour does not re-mitre its corner, exactly like a wall whose
|
|
36
|
+
* top edge was dragged by hand. `design.update.wall({ height })` scales it
|
|
37
|
+
* proportionally.
|
|
38
|
+
*/
|
|
39
|
+
export declare const PluginWallTopProfile: z.ZodArray<z.ZodObject<{
|
|
40
|
+
along: z.ZodNumber;
|
|
41
|
+
height: z.ZodNumber;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
export type PluginWallTopProfile = z.infer<typeof PluginWallTopProfile>;
|
|
44
|
+
/**
|
|
45
|
+
* One wall run to create via {@linkcode PluginDesignCreateApi.wallRuns} — the
|
|
46
|
+
* same inputs as {@linkcode PluginDesignCreateApi.walls}, one run per item.
|
|
47
|
+
*
|
|
48
|
+
* | Property | Type | Description |
|
|
49
|
+
* |---|---|---|
|
|
50
|
+
* | `profile` | {@linkcode ProfileHandle} | Ordered curve chain (wall centerlines) |
|
|
51
|
+
* | `height` | `number`? | Wall height (Snaptrude units, > 0; default engine default) |
|
|
52
|
+
* | `thickness` | `number`? | Wall thickness (Snaptrude units, > 0; default: `wallType`'s total layer thickness when given, else engine default) |
|
|
53
|
+
* | `wallType` | {@linkcode PluginWallType}? | Legacy name/id or exact native `{ id, version }` pin from `design.types.list("wall")` (default generic) |
|
|
54
|
+
* | `storey` | `number`? (int) | Target storey (must exist) — the run's walls are assigned + lifted to its base in the same undo entry (default: geometry-derived) |
|
|
55
|
+
* | `topProfiles` | ({@linkcode PluginWallTopProfile} \| `null`)[]? | Top edge per curve of `profile`, same order; a `null` or missing entry keeps that wall flat at `height`. Raked / gabled walls (straight curves only) |
|
|
56
|
+
*/
|
|
57
|
+
export declare const PluginCreateWallRunItem: z.ZodObject<{
|
|
58
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
59
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
thickness: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
wallType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
version: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>]>>;
|
|
65
|
+
storey: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
67
|
+
along: z.ZodNumber;
|
|
68
|
+
height: z.ZodNumber;
|
|
69
|
+
}, z.core.$strip>>>>>;
|
|
70
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type PluginCreateWallRunItem = z.infer<typeof PluginCreateWallRunItem>;
|
|
73
|
+
/** The `items` array of {@linkcode PluginDesignCreateApi.wallRuns} (1…1000). */
|
|
74
|
+
export declare const PluginCreateWallRunItems: z.ZodArray<z.ZodObject<{
|
|
75
|
+
profile: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
76
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
thickness: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
wallType: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
version: z.ZodNumber;
|
|
81
|
+
}, z.core.$strip>]>>;
|
|
82
|
+
storey: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
topProfiles: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
84
|
+
along: z.ZodNumber;
|
|
85
|
+
height: z.ZodNumber;
|
|
86
|
+
}, z.core.$strip>>>>>;
|
|
87
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean]>>>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
export type PluginCreateWallRunItems = z.infer<typeof PluginCreateWallRunItems>;
|
|
90
|
+
/**
|
|
91
|
+
* One floor to create via {@linkcode PluginDesignCreateApi.floors} — the same
|
|
92
|
+
* footprint-extrude inputs as {@linkcode PluginDesignCreateApi.floor}.
|
|
93
|
+
*
|
|
94
|
+
* | Property | Type | Description |
|
|
95
|
+
* |---|---|---|
|
|
96
|
+
* | `contour` | {@linkcode ContourHandle} | Footprint (outer profile + holes) |
|
|
97
|
+
* | `thickness` | `number` | Floor thickness (Snaptrude units, > 0) |
|
|
98
|
+
* | `position` | {@linkcode Vec3Handle}? | Offset from origin (default origin) |
|
|
99
|
+
*/
|
|
100
|
+
export declare const PluginCreateFloorItem: z.ZodObject<{
|
|
101
|
+
contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
|
|
102
|
+
thickness: z.ZodNumber;
|
|
103
|
+
position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export type PluginCreateFloorItem = z.infer<typeof PluginCreateFloorItem>;
|
|
106
|
+
/** The `items` array of {@linkcode PluginDesignCreateApi.floors} (1…1000). */
|
|
107
|
+
export declare const PluginCreateFloorItems: z.ZodArray<z.ZodObject<{
|
|
108
|
+
contour: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"contour">, string>>;
|
|
109
|
+
thickness: z.ZodNumber;
|
|
110
|
+
position: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
export type PluginCreateFloorItems = z.infer<typeof PluginCreateFloorItems>;
|
|
113
|
+
/**
|
|
114
|
+
* One door to place via {@linkcode PluginDesignCreateApi.doors} — the same
|
|
115
|
+
* fields as a `"door"` {@linkcode PluginDesignCreateOpeningOptions}.
|
|
116
|
+
* Values are evaluated before cutting. Numeric lengths use SU; unit strings
|
|
117
|
+
* are accepted in values. `facing` selects local +Z; `hinge` sets the declared
|
|
118
|
+
* hand enum (left = local -X, right = +X). Both are world points.
|
|
119
|
+
*
|
|
120
|
+
* | Property | Type | Description |
|
|
121
|
+
* |---|---|---|
|
|
122
|
+
* | `familyId` | `string` | Hosted door family definition ID |
|
|
123
|
+
* | `version` | `number`? | Exact version; newest known by default |
|
|
124
|
+
* | `values` | `Record<string, number \| string>`? | Authored parameter overrides |
|
|
125
|
+
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
|
|
126
|
+
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
127
|
+
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the door swings open to (default engine-chosen) |
|
|
128
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged jamb; requires hand control |
|
|
129
|
+
* | `label` | `string`? | Instance name (optional) |
|
|
130
|
+
* | `width` | `number`? | Declared width parameter (SU, > 0), not evaluated hole width |
|
|
131
|
+
* | `height` | `number`? | Declared height parameter (SU, > 0) |
|
|
132
|
+
*/
|
|
133
|
+
export declare const PluginCreateDoorItem: z.ZodObject<{
|
|
134
|
+
familyId: z.ZodString;
|
|
135
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
137
|
+
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
138
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
139
|
+
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
140
|
+
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
141
|
+
label: z.ZodOptional<z.ZodString>;
|
|
142
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
}, z.core.$strict>;
|
|
145
|
+
export type PluginCreateDoorItem = z.infer<typeof PluginCreateDoorItem>;
|
|
146
|
+
/** The `items` array of {@linkcode PluginDesignCreateApi.doors} (1…1000). */
|
|
147
|
+
export declare const PluginCreateDoorItems: z.ZodArray<z.ZodObject<{
|
|
148
|
+
familyId: z.ZodString;
|
|
149
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
150
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
151
|
+
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
152
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
153
|
+
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
154
|
+
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
155
|
+
label: z.ZodOptional<z.ZodString>;
|
|
156
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
158
|
+
}, z.core.$strict>>;
|
|
159
|
+
export type PluginCreateDoorItems = z.infer<typeof PluginCreateDoorItems>;
|
|
160
|
+
/**
|
|
161
|
+
* One window to place via {@linkcode PluginDesignCreateApi.windows} — the same
|
|
162
|
+
* fields as a `"window"` {@linkcode PluginDesignCreateOpeningOptions}.
|
|
163
|
+
* `sillHeight` is a nonnegative Snaptrude-unit distance from the host wall's
|
|
164
|
+
* base to the BOTTOM of the window, not to its center. `facing` and `hinge`
|
|
165
|
+
* are WORLD POINTS, not directions: `facing` on the side of the wall the
|
|
166
|
+
* window opens to, `hinge` near the jamb it is hinged on. Rejects unknown
|
|
167
|
+
* fields.
|
|
168
|
+
*
|
|
169
|
+
* | Property | Type | Description |
|
|
170
|
+
* |---|---|---|
|
|
171
|
+
* | `familyId` | `string` | Hosted window family definition ID |
|
|
172
|
+
* | `version` | `number`? | Exact version; newest known by default |
|
|
173
|
+
* | `values` | `Record<string, number \| string>`? | Authored parameter overrides; numeric lengths use SU |
|
|
174
|
+
* | `hostWall` | {@linkcode ComponentHandle} | The wall to host the window |
|
|
175
|
+
* | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
|
|
176
|
+
* | `facing` | {@linkcode Vec3Handle}? | World point on the side the window opens to (default engine-chosen) |
|
|
177
|
+
* | `hinge` | {@linkcode Vec3Handle}? | World point near the hinged jamb; requires hand control |
|
|
178
|
+
* | `label` | `string`? | Instance name (optional) |
|
|
179
|
+
* | `width` | `number`? | Declared width parameter (SU, > 0), not evaluated hole width |
|
|
180
|
+
* | `height` | `number`? | Declared height parameter (SU, > 0) |
|
|
181
|
+
* | `sillHeight` | `number`? | Declared sill parameter (SU, ≥ 0); position Y is ignored |
|
|
182
|
+
*/
|
|
183
|
+
export declare const PluginCreateWindowItem: z.ZodObject<{
|
|
184
|
+
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
familyId: z.ZodString;
|
|
186
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
188
|
+
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
189
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
190
|
+
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
191
|
+
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
192
|
+
label: z.ZodOptional<z.ZodString>;
|
|
193
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
194
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
export type PluginCreateWindowItem = z.infer<typeof PluginCreateWindowItem>;
|
|
197
|
+
/** The `items` array of {@linkcode PluginDesignCreateApi.windows} (1…1000). */
|
|
198
|
+
export declare const PluginCreateWindowItems: z.ZodArray<z.ZodObject<{
|
|
199
|
+
sillHeight: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
familyId: z.ZodString;
|
|
201
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
203
|
+
hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
204
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
205
|
+
facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
206
|
+
hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
207
|
+
label: z.ZodOptional<z.ZodString>;
|
|
208
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
209
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
export type PluginCreateWindowItems = z.infer<typeof PluginCreateWindowItems>;
|
|
212
|
+
/**
|
|
213
|
+
* One furniture instance to place via
|
|
214
|
+
* {@linkcode PluginDesignCreateApi.furnitureItems} — the same inputs as
|
|
215
|
+
* {@linkcode PluginDesignCreateApi.furniture} minus `createNewSourceMesh`: in a
|
|
216
|
+
* batch the host owns source-mesh persistence (a source is recorded once per
|
|
217
|
+
* call, however many items reuse it).
|
|
218
|
+
*
|
|
219
|
+
* `position.y` is the REST elevation: the item is grounded so its bounding-box
|
|
220
|
+
* base sits exactly at `position.y` (the same surface-flush contract as
|
|
221
|
+
* interactive drag-drop) — pass the floor/storey elevation to stand furniture
|
|
222
|
+
* on it; never add half the item's height yourself.
|
|
223
|
+
*
|
|
224
|
+
* | Property | Type | Description |
|
|
225
|
+
* |---|---|---|
|
|
226
|
+
* | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
|
|
227
|
+
* | `position` | {@linkcode Vec3Handle} | Absolute world placement point (`y` = rest elevation) |
|
|
228
|
+
* | `label` | `string`? | Instance name and readable label (default auto `${name}Ins${n}`) |
|
|
229
|
+
* | `angleInDegrees` | `number`? | Rotation about the vertical axis, in degrees (default unrotated) |
|
|
230
|
+
*/
|
|
231
|
+
export declare const PluginCreateFurnitureItem: z.ZodObject<{
|
|
232
|
+
catalogId: z.ZodString;
|
|
233
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
234
|
+
label: z.ZodOptional<z.ZodString>;
|
|
235
|
+
angleInDegrees: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
export type PluginCreateFurnitureItem = z.infer<typeof PluginCreateFurnitureItem>;
|
|
238
|
+
/**
|
|
239
|
+
* The `items` array of {@linkcode PluginDesignCreateApi.furnitureItems}
|
|
240
|
+
* (1…1000).
|
|
241
|
+
*/
|
|
242
|
+
export declare const PluginCreateFurnitureItems: z.ZodArray<z.ZodObject<{
|
|
243
|
+
catalogId: z.ZodString;
|
|
244
|
+
position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
|
|
245
|
+
label: z.ZodOptional<z.ZodString>;
|
|
246
|
+
angleInDegrees: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
export type PluginCreateFurnitureItems = z.infer<typeof PluginCreateFurnitureItems>;
|
|
249
|
+
/**
|
|
250
|
+
* One void to cut via {@linkcode PluginDesignCreateApi.voids} — the same fields as
|
|
251
|
+
* {@linkcode PluginDesignCreateApi.void}. Rejects unknown fields.
|
|
252
|
+
*
|
|
253
|
+
* | Property | Type | Description |
|
|
254
|
+
* | --- | --- | --- |
|
|
255
|
+
* | `host` | {@linkcode ComponentHandle} | The slab, floor, roof or ceiling to cut through. Not a wall. |
|
|
256
|
+
* | `outline` | {@linkcode ProfileHandle} | Closed, flat plan outline in world SU (all points at one height). That height is ignored: it is dropped straight onto the host's top face. |
|
|
257
|
+
*/
|
|
258
|
+
export declare const PluginCreateVoidItem: z.ZodObject<{
|
|
259
|
+
host: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
260
|
+
outline: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
261
|
+
}, z.core.$strict>;
|
|
262
|
+
export type PluginCreateVoidItem = z.infer<typeof PluginCreateVoidItem>;
|
|
263
|
+
/** The `items` array of {@linkcode PluginDesignCreateApi.voids} (1…1000; the host takes at most 200, 50 per host). */
|
|
264
|
+
export declare const PluginCreateVoidItems: z.ZodArray<z.ZodObject<{
|
|
265
|
+
host: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
|
|
266
|
+
outline: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"profile">, string>>;
|
|
267
|
+
}, z.core.$strict>>;
|
|
268
|
+
export type PluginCreateVoidItems = z.infer<typeof PluginCreateVoidItems>;
|
|
269
|
+
//# sourceMappingURL=bulk-items.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-items.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/bulk-items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EACL,eAAe,EAIhB,MAAM,kBAAkB,CAAA;AAKzB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,OAAO,CAAA;AAM7C;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,oBAAoB;;;kBA0B7B,CAAA;AACJ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAMvE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBASlC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,gFAAgF;AAChF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;kBAGJ,CAAA;AACjC,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAM/E;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB;;;;kBAGF,CAAA;AACjC,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAM3E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;kBAEtB,CAAA;AACX,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB;;;;;;;;;;;mBAGD,CAAA;AACjC,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;kBAKxB,CAAA;AACX,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;mBAGH,CAAA;AACjC,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAM7E;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAA;AACF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;kBAGN,CAAA;AACjC,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAMD;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;;;kBAKtB,CAAA;AACX,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,sHAAsH;AACtH,eAAO,MAAM,qBAAqB;;;mBAGD,CAAA;AACjC,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ComponentHandle } from "../../../handles";
|
|
3
|
+
/**
|
|
4
|
+
* Grid line style (mirrors the engine `LineMode` values verbatim — the same
|
|
5
|
+
* vocabulary as {@linkcode PluginReferenceLineStyle}).
|
|
6
|
+
*/
|
|
7
|
+
export declare const PluginGridLineStyle: z.ZodEnum<{
|
|
8
|
+
SOLID: "SOLID";
|
|
9
|
+
DASHED: "DASHED";
|
|
10
|
+
DOT_DASH: "DOT_DASH";
|
|
11
|
+
}>;
|
|
12
|
+
export type PluginGridLineStyle = z.infer<typeof PluginGridLineStyle>;
|
|
13
|
+
/**
|
|
14
|
+
* Optional visual styling shared by every grid creator (and reused as the
|
|
15
|
+
* patch shape by `design.update.grid`). All fields optional; engine defaults
|
|
16
|
+
* apply when omitted.
|
|
17
|
+
*
|
|
18
|
+
* | Property | Type | Description |
|
|
19
|
+
* |---|---|---|
|
|
20
|
+
* | `style` | {@linkcode PluginGridLineStyle}? | Line style |
|
|
21
|
+
* | `weight` | `number`? | Line weight (> 0) |
|
|
22
|
+
* | `color` | `string`? | Line color as a `#rrggbb` hex string |
|
|
23
|
+
* | `showStart` | `boolean`? | Show the start-end tag bubble |
|
|
24
|
+
* | `showEnd` | `boolean`? | Show the end-end tag bubble |
|
|
25
|
+
*/
|
|
26
|
+
export declare const PluginGridStyleOptions: z.ZodObject<{
|
|
27
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
28
|
+
SOLID: "SOLID";
|
|
29
|
+
DASHED: "DASHED";
|
|
30
|
+
DOT_DASH: "DOT_DASH";
|
|
31
|
+
}>>;
|
|
32
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
color: z.ZodOptional<z.ZodString>;
|
|
34
|
+
showStart: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
showEnd: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type PluginGridStyleOptions = z.infer<typeof PluginGridStyleOptions>;
|
|
38
|
+
/**
|
|
39
|
+
* Arguments for {@linkcode PluginDesignCreateApi.grid}.
|
|
40
|
+
*
|
|
41
|
+
* | Property | Type | Description |
|
|
42
|
+
* |---|---|---|
|
|
43
|
+
* | `linesX` | `number` | Line count of the first family (integer ≥ 1) |
|
|
44
|
+
* | `linesY` | `number` | Line count of the second family (integer ≥ 1) |
|
|
45
|
+
* | `spacingX` | `number` | Spacing of the first family (Snaptrude units, > 0) |
|
|
46
|
+
* | `spacingY` | `number` | Spacing of the second family (Snaptrude units, > 0) |
|
|
47
|
+
* | `angle` | `number`? | Rotation in degrees, CCW about +Y (default 0) |
|
|
48
|
+
* | `center` | {@linkcode Vec3Handle}? | Placement centre; defaults to the native viewport-centre behavior |
|
|
49
|
+
* | …style | {@linkcode PluginGridStyleOptions} | Optional line styling |
|
|
50
|
+
*/
|
|
51
|
+
export declare const PluginDesignCreateGridArgs: z.ZodObject<{
|
|
52
|
+
linesX: z.ZodNumber;
|
|
53
|
+
linesY: z.ZodNumber;
|
|
54
|
+
spacingX: z.ZodNumber;
|
|
55
|
+
spacingY: z.ZodNumber;
|
|
56
|
+
angle: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
center: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
|
|
58
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
59
|
+
SOLID: "SOLID";
|
|
60
|
+
DASHED: "DASHED";
|
|
61
|
+
DOT_DASH: "DOT_DASH";
|
|
62
|
+
}>>;
|
|
63
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
color: z.ZodOptional<z.ZodString>;
|
|
65
|
+
showStart: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
showEnd: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type PluginDesignCreateGridArgs = z.infer<typeof PluginDesignCreateGridArgs>;
|
|
69
|
+
/**
|
|
70
|
+
* Arguments for {@linkcode PluginDesignCreateApi.gridFromCurve}.
|
|
71
|
+
*
|
|
72
|
+
* | Property | Type | Description |
|
|
73
|
+
* |---|---|---|
|
|
74
|
+
* | `curve` | {@linkcode CurveHandle} | The grid line's geometry — a line or arc (circles are rejected) |
|
|
75
|
+
* | `tag` | `string`? | The line's grid tag (defaults to the draw tool's next tag) |
|
|
76
|
+
* | …style | {@linkcode PluginGridStyleOptions} | Optional line styling |
|
|
77
|
+
*/
|
|
78
|
+
export declare const PluginDesignCreateGridFromCurveArgs: z.ZodObject<{
|
|
79
|
+
curve: 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>>, z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"spline">, string>>]>;
|
|
80
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
81
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
SOLID: "SOLID";
|
|
83
|
+
DASHED: "DASHED";
|
|
84
|
+
DOT_DASH: "DOT_DASH";
|
|
85
|
+
}>>;
|
|
86
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
color: z.ZodOptional<z.ZodString>;
|
|
88
|
+
showStart: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
showEnd: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
export type PluginDesignCreateGridFromCurveArgs = z.infer<typeof PluginDesignCreateGridFromCurveArgs>;
|
|
92
|
+
/**
|
|
93
|
+
* Arguments for {@linkcode PluginDesignCreateApi.gridsFromMasses}.
|
|
94
|
+
*
|
|
95
|
+
* | Property | Type | Description |
|
|
96
|
+
* |---|---|---|
|
|
97
|
+
* | `masses` | {@linkcode ComponentHandle}`[]` | Masses whose footprints seat the grids |
|
|
98
|
+
* | `spacingX` | `number` | First-family spacing (Snaptrude units, > 0) |
|
|
99
|
+
* | `spacingY` | `number` | Second-family spacing (Snaptrude units, > 0) |
|
|
100
|
+
* | …style | {@linkcode PluginGridStyleOptions} | Optional line styling |
|
|
101
|
+
*/
|
|
102
|
+
export declare const PluginDesignCreateGridsFromMassesArgs: z.ZodObject<{
|
|
103
|
+
masses: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
104
|
+
spacingX: z.ZodNumber;
|
|
105
|
+
spacingY: z.ZodNumber;
|
|
106
|
+
style: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
SOLID: "SOLID";
|
|
108
|
+
DASHED: "DASHED";
|
|
109
|
+
DOT_DASH: "DOT_DASH";
|
|
110
|
+
}>>;
|
|
111
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
color: z.ZodOptional<z.ZodString>;
|
|
113
|
+
showStart: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
showEnd: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export type PluginDesignCreateGridsFromMassesArgs = z.infer<typeof PluginDesignCreateGridsFromMassesArgs>;
|
|
117
|
+
/**
|
|
118
|
+
* Arguments for {@linkcode PluginDesignCreateApi.columnsFromGrids}.
|
|
119
|
+
*
|
|
120
|
+
* | Property | Type | Description |
|
|
121
|
+
* |---|---|---|
|
|
122
|
+
* | `grids` | {@linkcode ComponentHandle}`[]` | Grid groups whose line intersections seat the columns |
|
|
123
|
+
* | `width` | `number` | Column width (Snaptrude units, > 0) |
|
|
124
|
+
* | `depth` | `number` | Column depth (Snaptrude units, > 0) |
|
|
125
|
+
*/
|
|
126
|
+
export declare const PluginDesignCreateColumnsFromGridsArgs: z.ZodObject<{
|
|
127
|
+
grids: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>>;
|
|
128
|
+
width: z.ZodNumber;
|
|
129
|
+
depth: z.ZodNumber;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export type PluginDesignCreateColumnsFromGridsArgs = z.infer<typeof PluginDesignCreateColumnsFromGridsArgs>;
|
|
132
|
+
//# sourceMappingURL=grids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grids.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/grids.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAA2B,MAAM,kBAAkB,CAAA;AAM3E;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;EAA0C,CAAA;AAC1E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;iBASjC,CAAA;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAM3E;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;iBASP,CAAA;AAChC,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAMnF;;;;;;;;GAQG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;iBAKhB,CAAA;AAChC,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AAMD;;;;;;;;;GASG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;iBAMlB,CAAA;AAChC,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,qCAAqC,CAC7C,CAAA;AAMD;;;;;;;;GAQG;AACH,eAAO,MAAM,sCAAsC;;;;iBAIjD,CAAA;AACF,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,sCAAsC,CAC9C,CAAA"}
|