@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,590 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import type { PluginApiReturn } from "../../types";
|
|
3
|
+
/** All widths and annotation geometry here are paper millimetres, in either project unit system. */
|
|
4
|
+
export declare const PluginStandardUnits: z.ZodEnum<{
|
|
5
|
+
METRIC: "METRIC";
|
|
6
|
+
IMPERIAL: "IMPERIAL";
|
|
7
|
+
}>;
|
|
8
|
+
export declare const PluginStandardWidth: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>;
|
|
9
|
+
/**
|
|
10
|
+
* The project's stored sparse graphic standard. stockId is read-only through
|
|
11
|
+
* the API: update never accepts it. The native commit pins a stock when needed;
|
|
12
|
+
* native standard-file import preserves a validated file's stock choice.
|
|
13
|
+
* Omitted values inherit stock defaults; all numeric lengths are paper mm.
|
|
14
|
+
*/
|
|
15
|
+
export declare const PluginGraphicStandard: z.ZodObject<{
|
|
16
|
+
stockId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
lineWeights: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
model: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>>>;
|
|
19
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>>;
|
|
20
|
+
perspective: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>>;
|
|
21
|
+
columns: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
added: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
23
|
+
deleted: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
24
|
+
}, z.core.$strict>>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
objectStyles: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
27
|
+
"Buildable Envelope": "Buildable Envelope";
|
|
28
|
+
Ceilings: "Ceilings";
|
|
29
|
+
Columns: "Columns";
|
|
30
|
+
Departments: "Departments";
|
|
31
|
+
Doors: "Doors";
|
|
32
|
+
Floors: "Floors";
|
|
33
|
+
Furniture: "Furniture";
|
|
34
|
+
Families: "Families";
|
|
35
|
+
"Facade/Mass": "Facade/Mass";
|
|
36
|
+
Roofs: "Roofs";
|
|
37
|
+
Slabs: "Slabs";
|
|
38
|
+
Space: "Space";
|
|
39
|
+
Staircase: "Staircase";
|
|
40
|
+
Beams: "Beams";
|
|
41
|
+
Walls: "Walls";
|
|
42
|
+
Windows: "Windows";
|
|
43
|
+
Dimension: "Dimension";
|
|
44
|
+
Grids: "Grids";
|
|
45
|
+
Sections: "Sections";
|
|
46
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
47
|
+
projection: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
cut: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
color: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strict>>>;
|
|
51
|
+
annotationText: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
Dimension: z.ZodOptional<z.ZodObject<{
|
|
53
|
+
textMm: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, z.core.$strict>>;
|
|
55
|
+
Grids: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
textMm: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
bubbleRadiusMm: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
Space: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
nameTextMm: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
areaTextMm: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
Sections: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
textMm: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
headRadiusMm: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
}, z.core.$strict>>;
|
|
67
|
+
}, z.core.$strict>>;
|
|
68
|
+
lineStyles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
69
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
pattern: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
center: "center";
|
|
72
|
+
hidden: "hidden";
|
|
73
|
+
overhead: "overhead";
|
|
74
|
+
demolished: "demolished";
|
|
75
|
+
solid: "solid";
|
|
76
|
+
dash: "dash";
|
|
77
|
+
"long-dash": "long-dash";
|
|
78
|
+
"loose-dash": "loose-dash";
|
|
79
|
+
dot: "dot";
|
|
80
|
+
"dash-dot": "dash-dot";
|
|
81
|
+
"dash-dot-dot": "dash-dot-dot";
|
|
82
|
+
"double-dash": "double-dash";
|
|
83
|
+
"triple-dash": "triple-dash";
|
|
84
|
+
}>>;
|
|
85
|
+
}, z.core.$strict>>>;
|
|
86
|
+
dimensionStyle: z.ZodOptional<z.ZodObject<{
|
|
87
|
+
tickMm: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
witnessGapMm: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
witnessExtensionMm: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
lineExtensionMm: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
textOffsetMm: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
textBackground: z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
opaque: "opaque";
|
|
94
|
+
transparent: "transparent";
|
|
95
|
+
}>>;
|
|
96
|
+
}, z.core.$strict>>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
export type PluginGraphicStandard = z.infer<typeof PluginGraphicStandard>;
|
|
99
|
+
/**
|
|
100
|
+
* Column operations for one standard update, not the stored added/deleted lists.
|
|
101
|
+
* Added columns copy the currently resolved column. Only listed scales can be
|
|
102
|
+
* columns; at least one column must remain. reset restores a whole column,
|
|
103
|
+
* including an added column whose individual cells have no stock default.
|
|
104
|
+
*/
|
|
105
|
+
export declare const PluginStandardColumnPatch: z.ZodObject<{
|
|
106
|
+
add: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
107
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
108
|
+
reset: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
export type PluginStandardColumnPatch = z.infer<typeof PluginStandardColumnPatch>;
|
|
111
|
+
/**
|
|
112
|
+
* Sparse edits, applied atomically as one native commit. Omitted leaves stay
|
|
113
|
+
* unchanged; null resets a leaf through its native setter. No stockId field.
|
|
114
|
+
* In an imperial project, newly edited nonzero widths must be at least 0.0254 mm
|
|
115
|
+
* (0.001in), even though API values are always paper mm. Native file import has
|
|
116
|
+
* its own cross-unit normalization and does not convert physical widths.
|
|
117
|
+
*/
|
|
118
|
+
export declare const PluginGraphicStandardPatch: z.ZodObject<{
|
|
119
|
+
lineWeights: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
model: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>>>>;
|
|
121
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>>>;
|
|
122
|
+
perspective: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>>>;
|
|
123
|
+
columns: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
add: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
125
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
126
|
+
reset: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
127
|
+
}, z.core.$strict>>;
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
objectStyles: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
130
|
+
"Buildable Envelope": "Buildable Envelope";
|
|
131
|
+
Ceilings: "Ceilings";
|
|
132
|
+
Columns: "Columns";
|
|
133
|
+
Departments: "Departments";
|
|
134
|
+
Doors: "Doors";
|
|
135
|
+
Floors: "Floors";
|
|
136
|
+
Furniture: "Furniture";
|
|
137
|
+
Families: "Families";
|
|
138
|
+
"Facade/Mass": "Facade/Mass";
|
|
139
|
+
Roofs: "Roofs";
|
|
140
|
+
Slabs: "Slabs";
|
|
141
|
+
Space: "Space";
|
|
142
|
+
Staircase: "Staircase";
|
|
143
|
+
Beams: "Beams";
|
|
144
|
+
Walls: "Walls";
|
|
145
|
+
Windows: "Windows";
|
|
146
|
+
Dimension: "Dimension";
|
|
147
|
+
Grids: "Grids";
|
|
148
|
+
Sections: "Sections";
|
|
149
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
150
|
+
projection: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
151
|
+
cut: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
152
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
}, z.core.$strict>>>;
|
|
154
|
+
annotationText: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
Dimension: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
textMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
157
|
+
}, z.core.$strict>>;
|
|
158
|
+
Grids: z.ZodOptional<z.ZodObject<{
|
|
159
|
+
textMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
160
|
+
bubbleRadiusMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
161
|
+
}, z.core.$strict>>;
|
|
162
|
+
Space: z.ZodOptional<z.ZodObject<{
|
|
163
|
+
nameTextMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
164
|
+
areaTextMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
165
|
+
}, z.core.$strict>>;
|
|
166
|
+
Sections: z.ZodOptional<z.ZodObject<{
|
|
167
|
+
textMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
168
|
+
headRadiusMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
169
|
+
}, z.core.$strict>>;
|
|
170
|
+
}, z.core.$strict>>;
|
|
171
|
+
lineStyles: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
172
|
+
hidden: "hidden";
|
|
173
|
+
thin: "thin";
|
|
174
|
+
medium: "medium";
|
|
175
|
+
wide: "wide";
|
|
176
|
+
overhead: "overhead";
|
|
177
|
+
demolished: "demolished";
|
|
178
|
+
centerline: "centerline";
|
|
179
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
180
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
181
|
+
pattern: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
182
|
+
center: "center";
|
|
183
|
+
hidden: "hidden";
|
|
184
|
+
overhead: "overhead";
|
|
185
|
+
demolished: "demolished";
|
|
186
|
+
solid: "solid";
|
|
187
|
+
dash: "dash";
|
|
188
|
+
"long-dash": "long-dash";
|
|
189
|
+
"loose-dash": "loose-dash";
|
|
190
|
+
dot: "dot";
|
|
191
|
+
"dash-dot": "dash-dot";
|
|
192
|
+
"dash-dot-dot": "dash-dot-dot";
|
|
193
|
+
"double-dash": "double-dash";
|
|
194
|
+
"triple-dash": "triple-dash";
|
|
195
|
+
}>>>;
|
|
196
|
+
}, z.core.$strict>>>;
|
|
197
|
+
dimensionStyle: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
tickMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
199
|
+
witnessGapMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
200
|
+
witnessExtensionMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
201
|
+
lineExtensionMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
202
|
+
textOffsetMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
203
|
+
textBackground: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
204
|
+
opaque: "opaque";
|
|
205
|
+
transparent: "transparent";
|
|
206
|
+
}>>>;
|
|
207
|
+
}, z.core.$strict>>;
|
|
208
|
+
}, z.core.$strict>;
|
|
209
|
+
export type PluginGraphicStandardPatch = z.infer<typeof PluginGraphicStandardPatch>;
|
|
210
|
+
/** Reset tab ids. text resets annotation sizes and dimension geometry together, like the UI. */
|
|
211
|
+
export declare const PluginGraphicStandardTab: z.ZodEnum<{
|
|
212
|
+
text: "text";
|
|
213
|
+
perspective: "perspective";
|
|
214
|
+
annotation: "annotation";
|
|
215
|
+
model: "model";
|
|
216
|
+
objectStyles: "objectStyles";
|
|
217
|
+
lineStyles: "lineStyles";
|
|
218
|
+
}>;
|
|
219
|
+
export type PluginGraphicStandardTab = z.infer<typeof PluginGraphicStandardTab>;
|
|
220
|
+
/**
|
|
221
|
+
* Native resolved values for a target view/scale. Pens are numbered 1–16;
|
|
222
|
+
* widths, text, dash lengths and dimension geometry are paper mm. Model pens
|
|
223
|
+
* use the reported nearest column (finer column wins a tie). Perspective and
|
|
224
|
+
* annotation pens are scale-free. Category overrides are included where the
|
|
225
|
+
* native canvas applies them; hidden/halftone are arrays, never engine Sets.
|
|
226
|
+
* A disabled free3D renderer uses legacy widths, not these configured paper pens.
|
|
227
|
+
*/
|
|
228
|
+
export declare const PluginResolvedGraphicStandard: z.ZodObject<{
|
|
229
|
+
viewId: z.ZodNullable<z.ZodString>;
|
|
230
|
+
kind: z.ZodEnum<{
|
|
231
|
+
elevation: "elevation";
|
|
232
|
+
plan: "plan";
|
|
233
|
+
section: "section";
|
|
234
|
+
"three-d": "three-d";
|
|
235
|
+
}>;
|
|
236
|
+
units: z.ZodEnum<{
|
|
237
|
+
METRIC: "METRIC";
|
|
238
|
+
IMPERIAL: "IMPERIAL";
|
|
239
|
+
}>;
|
|
240
|
+
stockId: z.ZodString;
|
|
241
|
+
scale: z.ZodNumber;
|
|
242
|
+
column: z.ZodNumber;
|
|
243
|
+
columns: z.ZodArray<z.ZodNumber>;
|
|
244
|
+
table: z.ZodEnum<{
|
|
245
|
+
perspective: "perspective";
|
|
246
|
+
model: "model";
|
|
247
|
+
}>;
|
|
248
|
+
featureEnabled: z.ZodBoolean;
|
|
249
|
+
viewOverridesApplied: z.ZodBoolean;
|
|
250
|
+
pens: z.ZodObject<{
|
|
251
|
+
model: z.ZodArray<z.ZodObject<{
|
|
252
|
+
pen: z.ZodNumber;
|
|
253
|
+
mm: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>;
|
|
254
|
+
}, z.core.$strip>>;
|
|
255
|
+
perspective: z.ZodArray<z.ZodObject<{
|
|
256
|
+
pen: z.ZodNumber;
|
|
257
|
+
mm: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
annotation: z.ZodArray<z.ZodObject<{
|
|
260
|
+
pen: z.ZodNumber;
|
|
261
|
+
mm: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
model: z.ZodRecord<z.ZodEnum<{
|
|
265
|
+
"Buildable Envelope": "Buildable Envelope";
|
|
266
|
+
Ceilings: "Ceilings";
|
|
267
|
+
Columns: "Columns";
|
|
268
|
+
Departments: "Departments";
|
|
269
|
+
Doors: "Doors";
|
|
270
|
+
Floors: "Floors";
|
|
271
|
+
Furniture: "Furniture";
|
|
272
|
+
Families: "Families";
|
|
273
|
+
"Facade/Mass": "Facade/Mass";
|
|
274
|
+
Roofs: "Roofs";
|
|
275
|
+
Slabs: "Slabs";
|
|
276
|
+
Space: "Space";
|
|
277
|
+
Staircase: "Staircase";
|
|
278
|
+
Beams: "Beams";
|
|
279
|
+
Walls: "Walls";
|
|
280
|
+
Windows: "Windows";
|
|
281
|
+
}>, z.ZodObject<{
|
|
282
|
+
projection: z.ZodNumber;
|
|
283
|
+
cut: z.ZodNullable<z.ZodNumber>;
|
|
284
|
+
projectionMm: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>;
|
|
285
|
+
cutMm: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>;
|
|
286
|
+
color: z.ZodString;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
annotation: z.ZodRecord<z.ZodEnum<{
|
|
289
|
+
Dimension: "Dimension";
|
|
290
|
+
Grids: "Grids";
|
|
291
|
+
Sections: "Sections";
|
|
292
|
+
}>, z.ZodObject<{
|
|
293
|
+
projection: z.ZodNumber;
|
|
294
|
+
lineMm: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
lines: z.ZodRecord<z.ZodEnum<{
|
|
297
|
+
hidden: "hidden";
|
|
298
|
+
thin: "thin";
|
|
299
|
+
medium: "medium";
|
|
300
|
+
wide: "wide";
|
|
301
|
+
overhead: "overhead";
|
|
302
|
+
demolished: "demolished";
|
|
303
|
+
centerline: "centerline";
|
|
304
|
+
}>, z.ZodObject<{
|
|
305
|
+
weight: z.ZodNumber;
|
|
306
|
+
pattern: z.ZodEnum<{
|
|
307
|
+
center: "center";
|
|
308
|
+
hidden: "hidden";
|
|
309
|
+
overhead: "overhead";
|
|
310
|
+
demolished: "demolished";
|
|
311
|
+
solid: "solid";
|
|
312
|
+
dash: "dash";
|
|
313
|
+
"long-dash": "long-dash";
|
|
314
|
+
"loose-dash": "loose-dash";
|
|
315
|
+
dot: "dot";
|
|
316
|
+
"dash-dot": "dash-dot";
|
|
317
|
+
"dash-dot-dot": "dash-dot-dot";
|
|
318
|
+
"double-dash": "double-dash";
|
|
319
|
+
"triple-dash": "triple-dash";
|
|
320
|
+
}>;
|
|
321
|
+
mm: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>;
|
|
322
|
+
}, z.core.$strip>>;
|
|
323
|
+
patterns: z.ZodRecord<z.ZodEnum<{
|
|
324
|
+
center: "center";
|
|
325
|
+
hidden: "hidden";
|
|
326
|
+
overhead: "overhead";
|
|
327
|
+
demolished: "demolished";
|
|
328
|
+
solid: "solid";
|
|
329
|
+
dash: "dash";
|
|
330
|
+
"long-dash": "long-dash";
|
|
331
|
+
"loose-dash": "loose-dash";
|
|
332
|
+
dot: "dot";
|
|
333
|
+
"dash-dot": "dash-dot";
|
|
334
|
+
"dash-dot-dot": "dash-dot-dot";
|
|
335
|
+
"double-dash": "double-dash";
|
|
336
|
+
"triple-dash": "triple-dash";
|
|
337
|
+
}>, z.ZodArray<z.ZodNumber>>;
|
|
338
|
+
text: z.ZodObject<{
|
|
339
|
+
nameMm: z.ZodNumber;
|
|
340
|
+
areaMm: z.ZodNumber;
|
|
341
|
+
dimensionMm: z.ZodNumber;
|
|
342
|
+
gridTextMm: z.ZodNumber;
|
|
343
|
+
gridBubbleRadiusMm: z.ZodNumber;
|
|
344
|
+
sectionTextMm: z.ZodNumber;
|
|
345
|
+
sectionHeadRadiusMm: z.ZodNumber;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
dimension: z.ZodObject<{
|
|
348
|
+
tickMm: z.ZodNumber;
|
|
349
|
+
witnessGapMm: z.ZodNumber;
|
|
350
|
+
witnessExtensionMm: z.ZodNumber;
|
|
351
|
+
lineExtensionMm: z.ZodNumber;
|
|
352
|
+
textOffsetMm: z.ZodNumber;
|
|
353
|
+
opaque: z.ZodBoolean;
|
|
354
|
+
}, z.core.$strip>;
|
|
355
|
+
hidden: z.ZodArray<z.ZodEnum<{
|
|
356
|
+
"Buildable Envelope": "Buildable Envelope";
|
|
357
|
+
Ceilings: "Ceilings";
|
|
358
|
+
Columns: "Columns";
|
|
359
|
+
Departments: "Departments";
|
|
360
|
+
Doors: "Doors";
|
|
361
|
+
Floors: "Floors";
|
|
362
|
+
Furniture: "Furniture";
|
|
363
|
+
Families: "Families";
|
|
364
|
+
"Facade/Mass": "Facade/Mass";
|
|
365
|
+
Roofs: "Roofs";
|
|
366
|
+
Slabs: "Slabs";
|
|
367
|
+
Space: "Space";
|
|
368
|
+
Staircase: "Staircase";
|
|
369
|
+
Beams: "Beams";
|
|
370
|
+
Walls: "Walls";
|
|
371
|
+
Windows: "Windows";
|
|
372
|
+
Dimension: "Dimension";
|
|
373
|
+
Grids: "Grids";
|
|
374
|
+
Sections: "Sections";
|
|
375
|
+
Lines: "Lines";
|
|
376
|
+
}>>;
|
|
377
|
+
halftone: z.ZodArray<z.ZodEnum<{
|
|
378
|
+
"Buildable Envelope": "Buildable Envelope";
|
|
379
|
+
Ceilings: "Ceilings";
|
|
380
|
+
Columns: "Columns";
|
|
381
|
+
Departments: "Departments";
|
|
382
|
+
Doors: "Doors";
|
|
383
|
+
Floors: "Floors";
|
|
384
|
+
Furniture: "Furniture";
|
|
385
|
+
Families: "Families";
|
|
386
|
+
"Facade/Mass": "Facade/Mass";
|
|
387
|
+
Roofs: "Roofs";
|
|
388
|
+
Slabs: "Slabs";
|
|
389
|
+
Space: "Space";
|
|
390
|
+
Staircase: "Staircase";
|
|
391
|
+
Beams: "Beams";
|
|
392
|
+
Walls: "Walls";
|
|
393
|
+
Windows: "Windows";
|
|
394
|
+
Dimension: "Dimension";
|
|
395
|
+
Grids: "Grids";
|
|
396
|
+
Sections: "Sections";
|
|
397
|
+
Lines: "Lines";
|
|
398
|
+
}>>;
|
|
399
|
+
}, z.core.$strip>;
|
|
400
|
+
export type PluginResolvedGraphicStandard = z.infer<typeof PluginResolvedGraphicStandard>;
|
|
401
|
+
/**
|
|
402
|
+
* Resolve for the current view by default. A supplied denominator previews a
|
|
403
|
+
* different paper scale without moving the camera or writing the saved view.
|
|
404
|
+
* The table defaults to model for paper views and perspective for free3D.
|
|
405
|
+
*/
|
|
406
|
+
export declare const PluginGraphicStandardResolveOptions: z.ZodObject<{
|
|
407
|
+
viewId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
408
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
409
|
+
table: z.ZodOptional<z.ZodEnum<{
|
|
410
|
+
perspective: "perspective";
|
|
411
|
+
model: "model";
|
|
412
|
+
}>>;
|
|
413
|
+
}, z.core.$strict>;
|
|
414
|
+
export type PluginGraphicStandardResolveOptions = z.infer<typeof PluginGraphicStandardResolveOptions>;
|
|
415
|
+
export declare const PluginGraphicStandardResolveArgs: z.ZodObject<{
|
|
416
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
417
|
+
viewId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
418
|
+
scale: z.ZodOptional<z.ZodNumber>;
|
|
419
|
+
table: z.ZodOptional<z.ZodEnum<{
|
|
420
|
+
perspective: "perspective";
|
|
421
|
+
model: "model";
|
|
422
|
+
}>>;
|
|
423
|
+
}, z.core.$strict>>;
|
|
424
|
+
}, z.core.$strict>;
|
|
425
|
+
export declare const PluginGraphicStandardUpdateArgs: z.ZodObject<{
|
|
426
|
+
patch: z.ZodObject<{
|
|
427
|
+
lineWeights: z.ZodOptional<z.ZodObject<{
|
|
428
|
+
model: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>>>>;
|
|
429
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>>>;
|
|
430
|
+
perspective: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodNumber]>>>>;
|
|
431
|
+
columns: z.ZodOptional<z.ZodObject<{
|
|
432
|
+
add: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
433
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
434
|
+
reset: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
435
|
+
}, z.core.$strict>>;
|
|
436
|
+
}, z.core.$strict>>;
|
|
437
|
+
objectStyles: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
438
|
+
"Buildable Envelope": "Buildable Envelope";
|
|
439
|
+
Ceilings: "Ceilings";
|
|
440
|
+
Columns: "Columns";
|
|
441
|
+
Departments: "Departments";
|
|
442
|
+
Doors: "Doors";
|
|
443
|
+
Floors: "Floors";
|
|
444
|
+
Furniture: "Furniture";
|
|
445
|
+
Families: "Families";
|
|
446
|
+
"Facade/Mass": "Facade/Mass";
|
|
447
|
+
Roofs: "Roofs";
|
|
448
|
+
Slabs: "Slabs";
|
|
449
|
+
Space: "Space";
|
|
450
|
+
Staircase: "Staircase";
|
|
451
|
+
Beams: "Beams";
|
|
452
|
+
Walls: "Walls";
|
|
453
|
+
Windows: "Windows";
|
|
454
|
+
Dimension: "Dimension";
|
|
455
|
+
Grids: "Grids";
|
|
456
|
+
Sections: "Sections";
|
|
457
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
458
|
+
projection: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
459
|
+
cut: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
460
|
+
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
461
|
+
}, z.core.$strict>>>;
|
|
462
|
+
annotationText: z.ZodOptional<z.ZodObject<{
|
|
463
|
+
Dimension: z.ZodOptional<z.ZodObject<{
|
|
464
|
+
textMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
465
|
+
}, z.core.$strict>>;
|
|
466
|
+
Grids: z.ZodOptional<z.ZodObject<{
|
|
467
|
+
textMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
468
|
+
bubbleRadiusMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
469
|
+
}, z.core.$strict>>;
|
|
470
|
+
Space: z.ZodOptional<z.ZodObject<{
|
|
471
|
+
nameTextMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
472
|
+
areaTextMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
473
|
+
}, z.core.$strict>>;
|
|
474
|
+
Sections: z.ZodOptional<z.ZodObject<{
|
|
475
|
+
textMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
476
|
+
headRadiusMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
477
|
+
}, z.core.$strict>>;
|
|
478
|
+
}, z.core.$strict>>;
|
|
479
|
+
lineStyles: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
480
|
+
hidden: "hidden";
|
|
481
|
+
thin: "thin";
|
|
482
|
+
medium: "medium";
|
|
483
|
+
wide: "wide";
|
|
484
|
+
overhead: "overhead";
|
|
485
|
+
demolished: "demolished";
|
|
486
|
+
centerline: "centerline";
|
|
487
|
+
}> & z.core.$partial, z.ZodObject<{
|
|
488
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
489
|
+
pattern: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
490
|
+
center: "center";
|
|
491
|
+
hidden: "hidden";
|
|
492
|
+
overhead: "overhead";
|
|
493
|
+
demolished: "demolished";
|
|
494
|
+
solid: "solid";
|
|
495
|
+
dash: "dash";
|
|
496
|
+
"long-dash": "long-dash";
|
|
497
|
+
"loose-dash": "loose-dash";
|
|
498
|
+
dot: "dot";
|
|
499
|
+
"dash-dot": "dash-dot";
|
|
500
|
+
"dash-dot-dot": "dash-dot-dot";
|
|
501
|
+
"double-dash": "double-dash";
|
|
502
|
+
"triple-dash": "triple-dash";
|
|
503
|
+
}>>>;
|
|
504
|
+
}, z.core.$strict>>>;
|
|
505
|
+
dimensionStyle: z.ZodOptional<z.ZodObject<{
|
|
506
|
+
tickMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
507
|
+
witnessGapMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
508
|
+
witnessExtensionMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
509
|
+
lineExtensionMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
510
|
+
textOffsetMm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
511
|
+
textBackground: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
512
|
+
opaque: "opaque";
|
|
513
|
+
transparent: "transparent";
|
|
514
|
+
}>>>;
|
|
515
|
+
}, z.core.$strict>>;
|
|
516
|
+
}, z.core.$strict>;
|
|
517
|
+
}, z.core.$strict>;
|
|
518
|
+
export declare const PluginGraphicStandardResetArgs: z.ZodObject<{
|
|
519
|
+
tab: z.ZodOptional<z.ZodEnum<{
|
|
520
|
+
text: "text";
|
|
521
|
+
perspective: "perspective";
|
|
522
|
+
annotation: "annotation";
|
|
523
|
+
model: "model";
|
|
524
|
+
objectStyles: "objectStyles";
|
|
525
|
+
lineStyles: "lineStyles";
|
|
526
|
+
}>>;
|
|
527
|
+
}, z.core.$strict>;
|
|
528
|
+
export declare const PluginGraphicStandardImportArgs: z.ZodObject<{
|
|
529
|
+
text: z.ZodString;
|
|
530
|
+
}, z.core.$strict>;
|
|
531
|
+
/**
|
|
532
|
+
* Project graphic standards, shared across views and saved through the same
|
|
533
|
+
* undoable native commit as Object Styles. No team standard access or writes.
|
|
534
|
+
* Do not write stockId: update refuses it, while the native commit pins the
|
|
535
|
+
* appropriate stock. Validated file import follows the UI's version/stock rules.
|
|
536
|
+
* All writes are flag-gated; reads and export remain available with the flag off.
|
|
537
|
+
*/
|
|
538
|
+
export declare abstract class PluginPresentationStandardsApi {
|
|
539
|
+
/**
|
|
540
|
+
* Read the stored sparse standard; omitted fields inherit stock values.
|
|
541
|
+
* @returns A detached settings record. stockId is read-only through this API.
|
|
542
|
+
*/
|
|
543
|
+
abstract get(): PluginApiReturn<PluginGraphicStandard>;
|
|
544
|
+
/**
|
|
545
|
+
* Read the actual native resolution, including applicable view overrides.
|
|
546
|
+
* No camera, view, preference or project data changes.
|
|
547
|
+
* @param options - Target view, denominator and optional model/perspective table.
|
|
548
|
+
* @returns Resolved paper-mm values, or null for an unknown/inaccessible explicit view.
|
|
549
|
+
* @examplePrompt How thick are the wall cut lines at 1:50?
|
|
550
|
+
* @example await snaptrude.presentation.standards.getResolved({ scale: 50, table: "model" })
|
|
551
|
+
*/
|
|
552
|
+
abstract getResolved(options?: PluginGraphicStandardResolveOptions): PluginApiReturn<PluginResolvedGraphicStandard | null>;
|
|
553
|
+
/**
|
|
554
|
+
* Apply only supplied fields as one saved, undoable native commit. Validate
|
|
555
|
+
* the whole patch first; invalid fields never leave a partial edit behind.
|
|
556
|
+
* @param patch - Sparse edits; lengths are paper mm, pens are integers 1–16.
|
|
557
|
+
* @returns The resulting stored sparse standard.
|
|
558
|
+
* @throws VALIDATION for invalid/unknown fields, imperial minima, invalid
|
|
559
|
+
* columns or stockId. PRECONDITION_FAILED while Paper Pens is disabled.
|
|
560
|
+
* @examplePrompt Make wall cut lines heavier throughout the project
|
|
561
|
+
* @example await snaptrude.presentation.standards.update({ objectStyles: { Walls: { cut: 6 } } })
|
|
562
|
+
*/
|
|
563
|
+
abstract update(patch: PluginGraphicStandardPatch): PluginApiReturn<PluginGraphicStandard>;
|
|
564
|
+
/**
|
|
565
|
+
* Reset an editable tab, or all tabs, through the native reset functions.
|
|
566
|
+
* One saved undo step; stock retention/pruning follows the native commit.
|
|
567
|
+
* @param tab - Omit for all tabs. text includes dimension geometry.
|
|
568
|
+
* @returns The resulting stored standard.
|
|
569
|
+
*/
|
|
570
|
+
abstract reset(tab?: PluginGraphicStandardTab): PluginApiReturn<PluginGraphicStandard>;
|
|
571
|
+
/**
|
|
572
|
+
* Serialize the native standard-file format. No browser download or save.
|
|
573
|
+
* The file includes its stock/version and stores widths in paper mm.
|
|
574
|
+
* @returns JSON text suitable for import in another project, including cross-unit import.
|
|
575
|
+
* @examplePrompt Export the line standard
|
|
576
|
+
*/
|
|
577
|
+
abstract export(): PluginApiReturn<string>;
|
|
578
|
+
/**
|
|
579
|
+
* Import native standard-file JSON exactly as the dialog does, replacing the
|
|
580
|
+
* project standard in one saved undo step. Never edits team preferences.
|
|
581
|
+
* @param text - File text, at most 1,000,000 UTF-8 bytes.
|
|
582
|
+
* @returns The resulting stored standard.
|
|
583
|
+
* @throws VALIDATION with details.reason NOT_A_STANDARD, NEWER_STANDARD or
|
|
584
|
+
* STANDARD_TOO_LARGE. PRECONDITION_FAILED with reason PAPER_PENS_DISABLED
|
|
585
|
+
* when the feature is off. Existing project data is unchanged on failure.
|
|
586
|
+
* @examplePrompt Match the line weights in this standard file
|
|
587
|
+
*/
|
|
588
|
+
abstract import(text: string): PluginApiReturn<PluginGraphicStandard>;
|
|
589
|
+
}
|
|
590
|
+
//# sourceMappingURL=standards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standards.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/standards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAclD,oGAAoG;AACpG,eAAO,MAAM,mBAAmB;;;EAAiC,CAAA;AACjE,eAAO,MAAM,mBAAmB,qDAG9B,CAAA;AAmFF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAYvB,CAAA;AACX,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;kBAqBlC,CAAA;AACJ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,yBAAyB,CACjC,CAAA;AAwBD;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqE5B,CAAA;AACX,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAED,gGAAgG;AAChG,eAAO,MAAM,wBAAwB;;;;;;;EAOnC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAqB/E;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6CxC,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CACjD,OAAO,6BAA6B,CACrC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,mCAAmC;;;;;;;kBAMrC,CAAA;AACX,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AACD,eAAO,MAAM,gCAAgC;;;;;;;;;kBAElC,CAAA;AACX,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAEjC,CAAA;AACX,eAAO,MAAM,8BAA8B;;;;;;;;;kBAEhC,CAAA;AACX,eAAO,MAAM,+BAA+B;;kBAEjC,CAAA;AAEX;;;;;;GAMG;AACH,8BAAsB,8BAA8B;IAClD;;;OAGG;aACa,GAAG,IAAI,eAAe,CAAC,qBAAqB,CAAC;IAE7D;;;;;;;OAOG;aACa,WAAW,CACzB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,eAAe,CAAC,6BAA6B,GAAG,IAAI,CAAC;IAExD;;;;;;;;;OASG;aACa,MAAM,CACpB,KAAK,EAAE,0BAA0B,GAChC,eAAe,CAAC,qBAAqB,CAAC;IAEzC;;;;;OAKG;aACa,KAAK,CACnB,GAAG,CAAC,EAAE,wBAAwB,GAC7B,eAAe,CAAC,qBAAqB,CAAC;IAEzC;;;;;OAKG;aACa,MAAM,IAAI,eAAe,CAAC,MAAM,CAAC;IAEjD;;;;;;;;;OASG;aACa,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAC,qBAAqB,CAAC;CAC7E"}
|