@snaptrude/plugin-core 0.9.16 → 0.9.18-voids-20261016.1

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.
Files changed (107) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/api-manifest.full.json +10406 -0
  3. package/api-manifest.json +827 -51
  4. package/dist/api/analysis/daylight.d.ts +5 -5
  5. package/dist/api/analysis/solar.d.ts +2 -2
  6. package/dist/api/core/camera/index.d.ts +29 -0
  7. package/dist/api/core/camera/index.d.ts.map +1 -1
  8. package/dist/api/core/geom/create/index.d.ts +7 -1
  9. package/dist/api/core/geom/create/index.d.ts.map +1 -1
  10. package/dist/api/core/geom/update/contour.d.ts +8 -2
  11. package/dist/api/core/geom/update/contour.d.ts.map +1 -1
  12. package/dist/api/core/zoom/index.d.ts +13 -0
  13. package/dist/api/core/zoom/index.d.ts.map +1 -1
  14. package/dist/api/design/bim.d.ts +209 -0
  15. package/dist/api/design/bim.d.ts.map +1 -0
  16. package/dist/api/design/boolean/index.d.ts +2 -0
  17. package/dist/api/design/boolean/index.d.ts.map +1 -1
  18. package/dist/api/design/catalog.d.ts +320 -0
  19. package/dist/api/design/catalog.d.ts.map +1 -0
  20. package/dist/api/design/create/bulk-items.d.ts +65 -25
  21. package/dist/api/design/create/bulk-items.d.ts.map +1 -1
  22. package/dist/api/design/create/index.d.ts +272 -99
  23. package/dist/api/design/create/index.d.ts.map +1 -1
  24. package/dist/api/design/create/opening-fields.d.ts +13 -12
  25. package/dist/api/design/create/opening-fields.d.ts.map +1 -1
  26. package/dist/api/design/delete/index.d.ts +1 -0
  27. package/dist/api/design/delete/index.d.ts.map +1 -1
  28. package/dist/api/design/doors/index.d.ts +18 -24
  29. package/dist/api/design/doors/index.d.ts.map +1 -1
  30. package/dist/api/design/family.d.ts +797 -27
  31. package/dist/api/design/family.d.ts.map +1 -1
  32. package/dist/api/design/index.d.ts +16 -0
  33. package/dist/api/design/index.d.ts.map +1 -1
  34. package/dist/api/design/networks.d.ts +1703 -0
  35. package/dist/api/design/networks.d.ts.map +1 -0
  36. package/dist/api/design/query/index.d.ts +42 -32
  37. package/dist/api/design/query/index.d.ts.map +1 -1
  38. package/dist/api/design/selection/index.d.ts +10 -10
  39. package/dist/api/design/types/index.d.ts +40 -24
  40. package/dist/api/design/types/index.d.ts.map +1 -1
  41. package/dist/api/design/update/index.d.ts +43 -3
  42. package/dist/api/design/update/index.d.ts.map +1 -1
  43. package/dist/api/design/windows/index.d.ts +8 -8
  44. package/dist/api/design/windows/index.d.ts.map +1 -1
  45. package/dist/api/presentation/aiInspiration.d.ts +10 -10
  46. package/dist/api/presentation/annotate.d.ts +38 -22
  47. package/dist/api/presentation/annotate.d.ts.map +1 -1
  48. package/dist/api/presentation/drawingContract.d.ts +32 -0
  49. package/dist/api/presentation/drawingContract.d.ts.map +1 -0
  50. package/dist/api/presentation/drawings.d.ts +3523 -0
  51. package/dist/api/presentation/drawings.d.ts.map +1 -0
  52. package/dist/api/presentation/export.d.ts +23 -5
  53. package/dist/api/presentation/export.d.ts.map +1 -1
  54. package/dist/api/presentation/index.d.ts +41 -12
  55. package/dist/api/presentation/index.d.ts.map +1 -1
  56. package/dist/api/presentation/placedViews.d.ts +106 -6
  57. package/dist/api/presentation/placedViews.d.ts.map +1 -1
  58. package/dist/api/presentation/sections.d.ts +461 -0
  59. package/dist/api/presentation/sections.d.ts.map +1 -0
  60. package/dist/api/presentation/shapes.d.ts +2 -2
  61. package/dist/api/presentation/sheets.d.ts +175 -19
  62. package/dist/api/presentation/sheets.d.ts.map +1 -1
  63. package/dist/api/presentation/viewPresets.d.ts +222 -0
  64. package/dist/api/presentation/viewPresets.d.ts.map +1 -0
  65. package/dist/api/presentation/views.d.ts +103 -5
  66. package/dist/api/presentation/views.d.ts.map +1 -1
  67. package/dist/api/presentation/walkthroughs.d.ts +6 -6
  68. package/dist/errors/codes.d.ts +3 -1
  69. package/dist/errors/codes.d.ts.map +1 -1
  70. package/dist/index.cjs +3749 -2328
  71. package/dist/index.cjs.map +1 -1
  72. package/dist/index.js +3616 -2328
  73. package/dist/index.js.map +1 -1
  74. package/package.json +1 -1
  75. package/scripts/generate-manifest.mjs +5 -0
  76. package/src/api/core/camera/index.ts +29 -0
  77. package/src/api/core/geom/create/index.ts +7 -1
  78. package/src/api/core/geom/update/contour.ts +8 -2
  79. package/src/api/core/zoom/index.ts +13 -0
  80. package/src/api/design/bim.ts +121 -0
  81. package/src/api/design/boolean/index.ts +2 -0
  82. package/src/api/design/catalog.ts +203 -0
  83. package/src/api/design/create/bulk-items.ts +57 -17
  84. package/src/api/design/create/index.ts +288 -120
  85. package/src/api/design/create/opening-fields.ts +15 -12
  86. package/src/api/design/delete/index.ts +1 -0
  87. package/src/api/design/doors/index.ts +58 -42
  88. package/src/api/design/family.ts +662 -32
  89. package/src/api/design/index.ts +34 -4
  90. package/src/api/design/networks.ts +607 -0
  91. package/src/api/design/query/index.ts +12 -2
  92. package/src/api/design/types/index.ts +31 -24
  93. package/src/api/design/update/index.ts +44 -3
  94. package/src/api/design/windows/index.ts +40 -22
  95. package/src/api/presentation/annotate.ts +90 -58
  96. package/src/api/presentation/drawingContract.ts +70 -0
  97. package/src/api/presentation/drawings.ts +1179 -0
  98. package/src/api/presentation/export.ts +32 -6
  99. package/src/api/presentation/index.ts +48 -14
  100. package/src/api/presentation/placedViews.ts +119 -28
  101. package/src/api/presentation/sections.ts +420 -0
  102. package/src/api/presentation/sheets.ts +181 -20
  103. package/src/api/presentation/viewPresets.ts +241 -0
  104. package/src/api/presentation/views.ts +46 -6
  105. package/src/errors/codes.ts +7 -0
  106. package/test/drawingContract.test.mjs +288 -0
  107. package/test/errors.test.mjs +1 -0
@@ -59,10 +59,10 @@ export declare const PluginAIInspirationVideoDuration: z.ZodEnum<{
59
59
  export type PluginAIInspirationVideoDuration = z.infer<typeof PluginAIInspirationVideoDuration>;
60
60
  export declare const PluginAIInspirationJobStatus: z.ZodEnum<{
61
61
  failed: "failed";
62
- running: "running";
63
62
  queued: "queued";
64
- completed: "completed";
65
63
  cancelled: "cancelled";
64
+ running: "running";
65
+ completed: "completed";
66
66
  }>;
67
67
  export type PluginAIInspirationJobStatus = z.infer<typeof PluginAIInspirationJobStatus>;
68
68
  export declare const PluginAIInspirationWorkflowRunState: z.ZodEnum<{
@@ -552,10 +552,10 @@ export declare const PluginAIInspirationJob: z.ZodObject<{
552
552
  jobId: z.ZodString;
553
553
  status: z.ZodEnum<{
554
554
  failed: "failed";
555
- running: "running";
556
555
  queued: "queued";
557
- completed: "completed";
558
556
  cancelled: "cancelled";
557
+ running: "running";
558
+ completed: "completed";
559
559
  }>;
560
560
  createdAt: z.ZodNumber;
561
561
  updatedAt: z.ZodNumber;
@@ -619,10 +619,10 @@ export declare const PluginAIInspirationGetJobResult: z.ZodObject<{
619
619
  jobId: z.ZodString;
620
620
  status: z.ZodEnum<{
621
621
  failed: "failed";
622
- running: "running";
623
622
  queued: "queued";
624
- completed: "completed";
625
623
  cancelled: "cancelled";
624
+ running: "running";
625
+ completed: "completed";
626
626
  }>;
627
627
  createdAt: z.ZodNumber;
628
628
  updatedAt: z.ZodNumber;
@@ -683,10 +683,10 @@ export declare const PluginAIInspirationCancelJobResult: z.ZodObject<{
683
683
  jobId: z.ZodString;
684
684
  status: z.ZodEnum<{
685
685
  failed: "failed";
686
- running: "running";
687
686
  queued: "queued";
688
- completed: "completed";
689
687
  cancelled: "cancelled";
688
+ running: "running";
689
+ completed: "completed";
690
690
  }>;
691
691
  createdAt: z.ZodNumber;
692
692
  updatedAt: z.ZodNumber;
@@ -747,10 +747,10 @@ export declare const PluginAIInspirationListJobsResult: z.ZodObject<{
747
747
  jobId: z.ZodString;
748
748
  status: z.ZodEnum<{
749
749
  failed: "failed";
750
- running: "running";
751
750
  queued: "queued";
752
- completed: "completed";
753
751
  cancelled: "cancelled";
752
+ running: "running";
753
+ completed: "completed";
754
754
  }>;
755
755
  createdAt: z.ZodNumber;
756
756
  updatedAt: z.ZodNumber;
@@ -32,14 +32,15 @@ export declare abstract class PluginPresentationAnnotateApi {
32
32
  * falls back to regular. `fontSizePx` sets an exact pixel size, overriding
33
33
  * the `size` preset when both are given (`size` alone keeps working).
34
34
  *
35
- * @param sheetId - The sheet to annotate.
35
+ * @param sheetId - The sheet to annotate, or `undefined` when `options.drawingId` is used.
36
36
  * @param text - The label text.
37
37
  * @param options - Optional `position` (`{ x, y }`, relative to the sheet's
38
38
  * top-left, in canvas units — defaults to the sheet's top-left corner),
39
39
  * `size` (`"s" | "m" | "l" | "xl"`, default `"m"`), `color` (a named
40
40
  * palette color, default `"black"`), and typography: `fontFamily`,
41
41
  * `fontWeight` (numeric string, `-italic` suffix allowed), `fontSizePx`
42
- * (positive px size overriding the `size` preset).
42
+ * (positive px size overriding the `size` preset), and `drawingId` to parent
43
+ * the annotation to a drawing. Pass exactly one parent: `sheetId` or `drawingId`.
43
44
  * @returns A {@linkcode PluginPresentationAnnotateTextResult} with the created
44
45
  * `shapeId`.
45
46
  * @throws If Present mode is not open or the sheet id is invalid.
@@ -58,7 +59,7 @@ export declare abstract class PluginPresentationAnnotateApi {
58
59
  * )
59
60
  * ```
60
61
  */
61
- abstract text(sheetId: string, text: string, options?: {
62
+ abstract text(sheetId: string | undefined, text: string, options?: {
62
63
  position?: {
63
64
  x: number;
64
65
  y: number;
@@ -68,6 +69,7 @@ export declare abstract class PluginPresentationAnnotateApi {
68
69
  fontFamily?: string;
69
70
  fontWeight?: string;
70
71
  fontSizePx?: number;
72
+ drawingId?: string;
71
73
  }): PluginApiReturn<PluginPresentationAnnotateTextResult>;
72
74
  /**
73
75
  * Draw an arrow on a sheet.
@@ -76,11 +78,12 @@ export declare abstract class PluginPresentationAnnotateApi {
76
78
  * top-left, in canvas units — the same Arrow tool as the Present toolbar) and
77
79
  * returns the id of the created canvas shape. Requires Present mode to be open.
78
80
  *
79
- * @param sheetId - The sheet to annotate.
81
+ * @param sheetId - The sheet to annotate, or `undefined` when `options.drawingId` is used.
80
82
  * @param start - Arrow tail position (`{ x, y }`, relative to the sheet's top-left).
81
83
  * @param end - Arrow head position (`{ x, y }`, relative to the sheet's top-left).
82
84
  * @param options - Optional `color` (a named palette color, default `"black"`)
83
- * and `size` (stroke weight preset, `"s" | "m" | "l" | "xl"`, default `"m"`).
85
+ * `size` (stroke weight preset, `"s" | "m" | "l" | "xl"`, default `"m"`),
86
+ * and `drawingId` to parent the arrow to a drawing. Pass exactly one parent.
84
87
  * @returns A {@linkcode PluginPresentationAnnotateResult} with the created
85
88
  * `shapeId`.
86
89
  * @throws If Present mode is not open or the sheet id is invalid.
@@ -99,7 +102,7 @@ export declare abstract class PluginPresentationAnnotateApi {
99
102
  * )
100
103
  * ```
101
104
  */
102
- abstract arrow(sheetId: string, start: {
105
+ abstract arrow(sheetId: string | undefined, start: {
103
106
  x: number;
104
107
  y: number;
105
108
  }, end: {
@@ -108,6 +111,7 @@ export declare abstract class PluginPresentationAnnotateApi {
108
111
  }, options?: {
109
112
  color?: PluginAnnotateTextColor;
110
113
  size?: PluginAnnotateTextSize;
114
+ drawingId?: string;
111
115
  }): PluginApiReturn<PluginPresentationAnnotateResult>;
112
116
  /**
113
117
  * Add a sticky note to a sheet.
@@ -116,13 +120,14 @@ export declare abstract class PluginPresentationAnnotateApi {
116
120
  * fixed-size sticky square that grows with its text) and returns the id of
117
121
  * the created canvas shape. Requires Present mode to be open.
118
122
  *
119
- * @param sheetId - The sheet to annotate.
123
+ * @param sheetId - The sheet to annotate, or `undefined` when `options.drawingId` is used.
120
124
  * @param text - The note text.
121
125
  * @param options - Optional `position` (`{ x, y }`, relative to the sheet's
122
126
  * top-left, in canvas units — defaults to the sheet's top-left corner),
123
127
  * `color` (a named palette color, default `"black"` — rendered as the
124
128
  * note's sticky fill), and `size` (text size preset,
125
- * `"s" | "m" | "l" | "xl"`, default `"m"`).
129
+ * `"s" | "m" | "l" | "xl"`, default `"m"`), and `drawingId` to parent
130
+ * the note to a drawing. Pass exactly one parent.
126
131
  * @returns A {@linkcode PluginPresentationAnnotateResult} with the created
127
132
  * `shapeId`.
128
133
  * @throws If Present mode is not open or the sheet id is invalid.
@@ -140,13 +145,14 @@ export declare abstract class PluginPresentationAnnotateApi {
140
145
  * )
141
146
  * ```
142
147
  */
143
- abstract note(sheetId: string, text: string, options?: {
148
+ abstract note(sheetId: string | undefined, text: string, options?: {
144
149
  position?: {
145
150
  x: number;
146
151
  y: number;
147
152
  };
148
153
  color?: PluginAnnotateTextColor;
149
154
  size?: PluginAnnotateTextSize;
155
+ drawingId?: string;
150
156
  }): PluginApiReturn<PluginPresentationAnnotateResult>;
151
157
  /**
152
158
  * Draw a geo shape (rectangle, ellipse, cloud, …) on a sheet.
@@ -156,14 +162,15 @@ export declare abstract class PluginPresentationAnnotateApi {
156
162
  * top-left, in canvas units) and returns the id of the created canvas shape.
157
163
  * Requires Present mode to be open.
158
164
  *
159
- * @param sheetId - The sheet to annotate.
165
+ * @param sheetId - The sheet to annotate, or `undefined` when `options.drawingId` is used.
160
166
  * @param kind - The shape kind ({@linkcode PluginAnnotateGeoKind}), e.g.
161
167
  * `"rectangle"`, `"ellipse"`, `"cloud"`.
162
168
  * @param bounds - Placement box `{ x, y, w, h }` — `x`/`y` are the shape's
163
169
  * top-left relative to the sheet's top-left; `w`/`h` must be positive.
164
170
  * @param options - Optional `color` (a named palette color, default
165
171
  * `"black"`) and `fill` ({@linkcode PluginAnnotateFill}, default `"none"` —
166
- * outline only).
172
+ * outline only), and `drawingId` to parent the shape to a drawing. Pass
173
+ * exactly one parent: `sheetId` or `drawingId`.
167
174
  * @returns A {@linkcode PluginPresentationAnnotateResult} with the created
168
175
  * `shapeId`.
169
176
  * @throws If Present mode is not open or the sheet id is invalid.
@@ -182,7 +189,7 @@ export declare abstract class PluginPresentationAnnotateApi {
182
189
  * )
183
190
  * ```
184
191
  */
185
- abstract shape(sheetId: string, kind: PluginAnnotateGeoKind, bounds: {
192
+ abstract shape(sheetId: string | undefined, kind: PluginAnnotateGeoKind, bounds: {
186
193
  x: number;
187
194
  y: number;
188
195
  w: number;
@@ -190,6 +197,7 @@ export declare abstract class PluginPresentationAnnotateApi {
190
197
  }, options?: {
191
198
  color?: PluginAnnotateTextColor;
192
199
  fill?: PluginAnnotateFill;
200
+ drawingId?: string;
193
201
  }): PluginApiReturn<PluginPresentationAnnotateResult>;
194
202
  }
195
203
  /** Text size preset (the same s/m/l/xl scale as the Present-mode text tool). */
@@ -222,7 +230,8 @@ export type PluginAnnotateTextColor = z.infer<typeof PluginAnnotateTextColor>;
222
230
  *
223
231
  * | Property | Type | Description |
224
232
  * |---|---|---|
225
- * | `sheetId` | `string` | The sheet to annotate |
233
+ * | `sheetId` | `string \| undefined` | The sheet parent; omit when `drawingId` is set |
234
+ * | `drawingId` | `string \| undefined` | The drawing parent; mutually exclusive with `sheetId` |
226
235
  * | `text` | `string` | The label text |
227
236
  * | `position` | `{ x: number; y: number } \| undefined` | Where to place it (relative to the sheet) |
228
237
  * | `size` | {@linkcode PluginAnnotateTextSize}` \| undefined` | Text size preset |
@@ -232,7 +241,8 @@ export type PluginAnnotateTextColor = z.infer<typeof PluginAnnotateTextColor>;
232
241
  * | `fontSizePx` | `number \| undefined` | Exact px size (overrides the `size` preset) |
233
242
  */
234
243
  export declare const PluginPresentationAnnotateTextArgs: z.ZodObject<{
235
- sheetId: z.ZodString;
244
+ sheetId: z.ZodOptional<z.ZodString>;
245
+ drawingId: z.ZodOptional<z.ZodString>;
236
246
  text: z.ZodString;
237
247
  position: z.ZodOptional<z.ZodObject<{
238
248
  x: z.ZodNumber;
@@ -280,11 +290,11 @@ export type PluginPresentationAnnotateTextResult = z.infer<typeof PluginPresenta
280
290
  * flyout.
281
291
  */
282
292
  export declare const PluginAnnotateGeoKind: z.ZodEnum<{
293
+ hexagon: "hexagon";
283
294
  rectangle: "rectangle";
284
295
  ellipse: "ellipse";
285
296
  triangle: "triangle";
286
297
  diamond: "diamond";
287
- hexagon: "hexagon";
288
298
  oval: "oval";
289
299
  rhombus: "rhombus";
290
300
  star: "star";
@@ -311,14 +321,16 @@ export type PluginAnnotateFill = z.infer<typeof PluginAnnotateFill>;
311
321
  *
312
322
  * | Property | Type | Description |
313
323
  * |---|---|---|
314
- * | `sheetId` | `string` | The sheet to annotate |
324
+ * | `sheetId` | `string \| undefined` | The sheet parent; omit when `drawingId` is set |
325
+ * | `drawingId` | `string \| undefined` | The drawing parent; mutually exclusive with `sheetId` |
315
326
  * | `start` | `{ x: number; y: number }` | Arrow tail (relative to the sheet) |
316
327
  * | `end` | `{ x: number; y: number }` | Arrow head (relative to the sheet) |
317
328
  * | `color` | {@linkcode PluginAnnotateTextColor}` \| undefined` | Arrow color |
318
329
  * | `size` | {@linkcode PluginAnnotateTextSize}` \| undefined` | Stroke weight preset |
319
330
  */
320
331
  export declare const PluginPresentationAnnotateArrowArgs: z.ZodObject<{
321
- sheetId: z.ZodString;
332
+ sheetId: z.ZodOptional<z.ZodString>;
333
+ drawingId: z.ZodOptional<z.ZodString>;
322
334
  start: z.ZodObject<{
323
335
  x: z.ZodNumber;
324
336
  y: z.ZodNumber;
@@ -355,14 +367,16 @@ export type PluginPresentationAnnotateArrowArgs = z.infer<typeof PluginPresentat
355
367
  *
356
368
  * | Property | Type | Description |
357
369
  * |---|---|---|
358
- * | `sheetId` | `string` | The sheet to annotate |
370
+ * | `sheetId` | `string \| undefined` | The sheet parent; omit when `drawingId` is set |
371
+ * | `drawingId` | `string \| undefined` | The drawing parent; mutually exclusive with `sheetId` |
359
372
  * | `text` | `string` | The note text |
360
373
  * | `position` | `{ x: number; y: number } \| undefined` | Where to place it (relative to the sheet) |
361
374
  * | `color` | {@linkcode PluginAnnotateTextColor}` \| undefined` | Sticky fill color |
362
375
  * | `size` | {@linkcode PluginAnnotateTextSize}` \| undefined` | Text size preset |
363
376
  */
364
377
  export declare const PluginPresentationAnnotateNoteArgs: z.ZodObject<{
365
- sheetId: z.ZodString;
378
+ sheetId: z.ZodOptional<z.ZodString>;
379
+ drawingId: z.ZodOptional<z.ZodString>;
366
380
  text: z.ZodString;
367
381
  position: z.ZodOptional<z.ZodObject<{
368
382
  x: z.ZodNumber;
@@ -396,20 +410,22 @@ export type PluginPresentationAnnotateNoteArgs = z.infer<typeof PluginPresentati
396
410
  *
397
411
  * | Property | Type | Description |
398
412
  * |---|---|---|
399
- * | `sheetId` | `string` | The sheet to annotate |
413
+ * | `sheetId` | `string \| undefined` | The sheet parent; omit when `drawingId` is set |
414
+ * | `drawingId` | `string \| undefined` | The drawing parent; mutually exclusive with `sheetId` |
400
415
  * | `kind` | {@linkcode PluginAnnotateGeoKind} | The shape kind |
401
416
  * | `bounds` | `{ x: number; y: number; w: number; h: number }` | Placement box (relative to the sheet; `w`/`h` positive) |
402
417
  * | `color` | {@linkcode PluginAnnotateTextColor}` \| undefined` | Outline color |
403
418
  * | `fill` | {@linkcode PluginAnnotateFill}` \| undefined` | Fill style |
404
419
  */
405
420
  export declare const PluginPresentationAnnotateShapeArgs: z.ZodObject<{
406
- sheetId: z.ZodString;
421
+ sheetId: z.ZodOptional<z.ZodString>;
422
+ drawingId: z.ZodOptional<z.ZodString>;
407
423
  kind: z.ZodEnum<{
424
+ hexagon: "hexagon";
408
425
  rectangle: "rectangle";
409
426
  ellipse: "ellipse";
410
427
  triangle: "triangle";
411
428
  diamond: "diamond";
412
- hexagon: "hexagon";
413
429
  oval: "oval";
414
430
  rhombus: "rhombus";
415
431
  star: "star";
@@ -1 +1 @@
1
- {"version":3,"file":"annotate.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/annotate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;;;;;;;GAeG;AACH,8BAAsB,6BAA6B;;IAGjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;aACa,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,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AAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW3C,CAAA;AACJ,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,kCAAkC,CAC1C,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgB5C,CAAA;AACJ,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAAgC;;iBAE3C,CAAA;AACF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,gCAAgC,CACxC,CAAA"}
@@ -0,0 +1,32 @@
1
+ import * as z from "zod";
2
+ /**
3
+ * Metric architectural scale denominators (`100` means 1:100), the metric
4
+ * values of the placed view's Scale dropdown.
5
+ */
6
+ export declare const METRIC_DRAWING_SCALES: readonly [10, 20, 50, 100, 150, 200, 250, 500, 1000];
7
+ /**
8
+ * Imperial detail scale denominators, 1" = 1' (12) to 1/128" = 1' (1536):
9
+ * `48` is 1/4" = 1', `96` is 1/8" = 1'.
10
+ */
11
+ export declare const IMPERIAL_DETAIL_DRAWING_SCALES: readonly [12, 16, 24, 32, 48, 64, 96, 128, 192, 384, 768, 1536];
12
+ /** Imperial site (engineering) scale denominators, 1" = 10' (120) to 1" = 400' (4800). */
13
+ export declare const IMPERIAL_SITE_DRAWING_SCALES: readonly [120, 240, 360, 480, 600, 1200, 2400, 3600, 4800];
14
+ /**
15
+ * Imperial architectural scale denominators, ascending: the imperial detail
16
+ * and site values of the placed view's Scale dropdown.
17
+ */
18
+ export declare const IMPERIAL_DRAWING_SCALES: readonly number[];
19
+ /**
20
+ * Every standard architectural scale denominator, metric and imperial,
21
+ * ascending. Drawing and placed-view scale arguments accept only these; the
22
+ * host may further restrict them to the project's unit system.
23
+ */
24
+ export declare const STANDARD_DRAWING_SCALES: readonly number[];
25
+ /** A standard architectural scale denominator; anything else is rejected with the allowed list. */
26
+ export declare const PluginStandardDrawingScale: z.ZodNumber;
27
+ /**
28
+ * An export base file name without an extension, not ending in a dot or
29
+ * whitespace; the host adds `.pdf`, `.svg`, `.png` or `.jpg`.
30
+ */
31
+ export declare const PluginExportFileName: z.ZodString;
32
+ //# sourceMappingURL=drawingContract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drawingContract.d.ts","sourceRoot":"","sources":["../../../src/api/presentation/drawingContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB;;;GAGG;AACH,eAAO,MAAM,qBAAqB,sDAExB,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,8BAA8B,iEAEjC,CAAA;AAEV,0FAA0F;AAC1F,eAAO,MAAM,4BAA4B,4DAE/B,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAG9B,CAAA;AAEvB;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAG9B,CAAA;AAIvB,mGAAmG;AACnG,eAAO,MAAM,0BAA0B,aAKnC,CAAA;AAOJ;;;GAGG;AACH,eAAO,MAAM,oBAAoB,aAQ9B,CAAA"}