@snaptrude/plugin-core 0.9.7 → 0.9.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @snaptrude/plugin-core
2
2
 
3
+ ## 0.9.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 7fd374e: Add `hinge` to `design.create.door` / `window` (in `options`), `doors[]` / `windows[]` items and `opening`: a world point near the jamb the leaf is hinged on; the placed item is reflected along the wall when the catalog item's authored hinge side would land on the other jamb — one undo entry, no extra command.
8
+
9
+ **BEHAVIOUR FIX — `facing`.** The host placed the swing on the side OPPOSITE the `facing` point (the interactive tool's cursor convention) while the contract said "the room it opens into". The host now matches the contract: the leaf swings open toward `facing`. Callers that passed a point on the room side get the documented result; nothing in the contract changed shape.
10
+
11
+ `design.doors.getSwingDirection` is now derived from the placed mesh's orientation (hand as seen standing on the swing side facing the door); it previously read a scaling sign that placement never sets and reported `"left"` for every door. `mirror` axis docs now say what each axis does to a door (`'x'` swing side, `'z'` hinged jamb, `'y'` upside down); behaviour unchanged.
12
+
3
13
  ## 0.9.7
4
14
 
5
15
  ### Patch Changes
@@ -4299,7 +4299,8 @@
4299
4299
  "Put a door from the catalog at this point on the wall",
4300
4300
  "Insert the entrance door into this wall",
4301
4301
  "Add a door to the wall and call it Entry-01",
4302
- "Add a door that opens into the living room\n\n# Example\n```ts\nconst [wall] = await snaptrude.design.query.listWalls({ isSelected: true })\nconst [entry] = await snaptrude.design.doors.listCatalog()\nconst door = await snaptrude.design.create.door(\nentry.id,\nwall,\nawait snaptrude.core.math.vec3.new(3, 0, 5),\n{ label: \"Entry-01\" },\n)\n// …facing a specific side of the wall (pass a point inside that room):\nconst intoKitchen = await snaptrude.design.create.door(\nentry.id,\nwall,\nawait snaptrude.core.math.vec3.new(3, 0, 5),\nundefined,\nawait snaptrude.core.math.vec3.new(3, 0, 9),\n)\n```"
4302
+ "Add a door that opens into the living room",
4303
+ "Put a door here hinged on the north jamb\n\n# Example\n```ts\nconst [wall] = await snaptrude.design.query.listWalls({ isSelected: true })\nconst [entry] = await snaptrude.design.doors.listCatalog()\nconst door = await snaptrude.design.create.door(\nentry.id,\nwall,\nawait snaptrude.core.math.vec3.new(3, 0, 5),\n{ label: \"Entry-01\" },\n)\n// …facing a specific side of the wall (pass a point inside that room):\nconst intoKitchen = await snaptrude.design.create.door(\nentry.id,\nwall,\nawait snaptrude.core.math.vec3.new(3, 0, 5),\nundefined,\nawait snaptrude.core.math.vec3.new(3, 0, 9),\n)\n// …and hinged on the jamb nearest a point (here the +x end of the opening):\nconst hingedRight = await snaptrude.design.create.door(\nentry.id,\nwall,\nawait snaptrude.core.math.vec3.new(3, 0, 5),\n{ hinge: await snaptrude.core.math.vec3.new(3.5, 0, 5) },\nawait snaptrude.core.math.vec3.new(3, 0, 9),\n)\n```"
4303
4304
  ],
4304
4305
  "argsType": "string",
4305
4306
  "resultType": "ComponentHandle",
@@ -4328,11 +4329,11 @@
4328
4329
  "Create a floor from this room outline",
4329
4330
  "Add a 100mm thick floor over the footprint",
4330
4331
  "Lay flooring across the selected outline",
4331
- "Put a floor at this position with 150mm thickness"
4332
+ "Put a floor at this position with 150mm thickness\n\n# Example\n```ts\nconst rect = await snaptrude.core.geom.create.profileRect(5, 4)\nconst contour = await snaptrude.core.geom.create.contourFromProfile(rect)\nconst floor = await snaptrude.design.create.floor(contour, 0.1)\n```"
4332
4333
  ],
4333
4334
  "argsType": "ContourHandle",
4334
4335
  "resultType": "ComponentHandle",
4335
- "performance": "For MORE THAN ONE floor, call `design.create.floors(items[])` — one host round-trip and ONE undo entry for the whole batch. Looping this single-floor creator is N round-trips and N undo entries. # Example ```ts const rect = await snaptrude.core.geom.create.profileRect(5, 4) const contour = await snaptrude.core.geom.create.contourFromProfile(rect) const floor = await snaptrude.design.create.floor(contour, 0.1) ```"
4336
+ "performance": "For MORE THAN ONE floor, call `design.create.floors(items[])` — one host round-trip and ONE undo entry for the whole batch. Looping this single-floor creator is N round-trips and N undo entries."
4336
4337
  },
4337
4338
  {
4338
4339
  "path": "design.create.floors",
@@ -4752,7 +4753,7 @@
4752
4753
  {
4753
4754
  "path": "design.doors.getSwingDirection",
4754
4755
  "namespace": "design.doors",
4755
- "summary": "Get a door's swing (hinge) handedness whether it opens as a left-hand or right-hand door. Derived from the door mesh's reflection state, not a persisted field.",
4756
+ "summary": "Get a door's swing (hinge) handedness. Stand on the side the door swings open to, facing the door: `'left'` when the hinged jamb is on your left, `'right'` when it is on your right. Derived from the placed mesh's orientation (the same reflection `mirror` and the `hinge` placement option apply), not a persisted field.",
4756
4757
  "examplePrompts": [
4757
4758
  "Which way does this door swing?",
4758
4759
  "Is the selected door left-handed or right-handed?",
@@ -4817,13 +4818,13 @@
4817
4818
  {
4818
4819
  "path": "design.doors.mirror",
4819
4820
  "namespace": "design.doors",
4820
- "summary": "Mirror a door across an axis, flipping its swing so it opens from the other side. Undoable as a single command.",
4821
+ "summary": "Mirror a door about its own axes. `'x'` (default) flips the swing side the door opens to the other side of the wall; `'z'` swaps the hinged jamb (left-hand ↔ right-hand, same swing side); `'y'` turns it upside down. Undoable as a single command.",
4821
4822
  "examplePrompts": [
4822
4823
  "Flip this door's swing",
4823
4824
  "Mirror the selected door",
4824
4825
  "Make this door open the other way",
4825
4826
  "Reverse the hinge side of the entrance door",
4826
- "Change the door to swing from the other side\n\n# Example\n```ts\n// Flip the selected door's swing — axis defaults to \"x\" (the swing-flip\n// axis); pass \"y\" or \"z\" to reflect across a different axis\nconst [door] = await snaptrude.design.query.listDoors({ isSelected: true })\nconst { affected } = await snaptrude.design.doors.mirror(door)\n```"
4827
+ "Change the door to swing from the other side\n\n# Example\n```ts\n// Flip the selected door's swing side — axis defaults to \"x\"\nconst [door] = await snaptrude.design.query.listDoors({ isSelected: true })\nconst { affected } = await snaptrude.design.doors.mirror(door)\n// …or swap the hinged jamb instead (keeps the swing side)\nawait snaptrude.design.doors.mirror(door, \"z\")\n```"
4827
4828
  ],
4828
4829
  "argsType": "ComponentHandle",
4829
4830
  "resultType": "PluginDesignChangeResult"
package/api-manifest.json CHANGED
@@ -4299,7 +4299,8 @@
4299
4299
  "Put a door from the catalog at this point on the wall",
4300
4300
  "Insert the entrance door into this wall",
4301
4301
  "Add a door to the wall and call it Entry-01",
4302
- "Add a door that opens into the living room\n\n# Example\n```ts\nconst [wall] = await snaptrude.design.query.listWalls({ isSelected: true })\nconst [entry] = await snaptrude.design.doors.listCatalog()\nconst door = await snaptrude.design.create.door(\nentry.id,\nwall,\nawait snaptrude.core.math.vec3.new(3, 0, 5),\n{ label: \"Entry-01\" },\n)\n// …facing a specific side of the wall (pass a point inside that room):\nconst intoKitchen = await snaptrude.design.create.door(\nentry.id,\nwall,\nawait snaptrude.core.math.vec3.new(3, 0, 5),\nundefined,\nawait snaptrude.core.math.vec3.new(3, 0, 9),\n)\n```"
4302
+ "Add a door that opens into the living room",
4303
+ "Put a door here hinged on the north jamb\n\n# Example\n```ts\nconst [wall] = await snaptrude.design.query.listWalls({ isSelected: true })\nconst [entry] = await snaptrude.design.doors.listCatalog()\nconst door = await snaptrude.design.create.door(\nentry.id,\nwall,\nawait snaptrude.core.math.vec3.new(3, 0, 5),\n{ label: \"Entry-01\" },\n)\n// …facing a specific side of the wall (pass a point inside that room):\nconst intoKitchen = await snaptrude.design.create.door(\nentry.id,\nwall,\nawait snaptrude.core.math.vec3.new(3, 0, 5),\nundefined,\nawait snaptrude.core.math.vec3.new(3, 0, 9),\n)\n// …and hinged on the jamb nearest a point (here the +x end of the opening):\nconst hingedRight = await snaptrude.design.create.door(\nentry.id,\nwall,\nawait snaptrude.core.math.vec3.new(3, 0, 5),\n{ hinge: await snaptrude.core.math.vec3.new(3.5, 0, 5) },\nawait snaptrude.core.math.vec3.new(3, 0, 9),\n)\n```"
4303
4304
  ],
4304
4305
  "argsType": "string",
4305
4306
  "resultType": "ComponentHandle",
@@ -4752,7 +4753,7 @@
4752
4753
  {
4753
4754
  "path": "design.doors.getSwingDirection",
4754
4755
  "namespace": "design.doors",
4755
- "summary": "Get a door's swing (hinge) handedness whether it opens as a left-hand or right-hand door. Derived from the door mesh's reflection state, not a persisted field.",
4756
+ "summary": "Get a door's swing (hinge) handedness. Stand on the side the door swings open to, facing the door: `'left'` when the hinged jamb is on your left, `'right'` when it is on your right. Derived from the placed mesh's orientation (the same reflection `mirror` and the `hinge` placement option apply), not a persisted field.",
4756
4757
  "examplePrompts": [
4757
4758
  "Which way does this door swing?",
4758
4759
  "Is the selected door left-handed or right-handed?",
@@ -4817,13 +4818,13 @@
4817
4818
  {
4818
4819
  "path": "design.doors.mirror",
4819
4820
  "namespace": "design.doors",
4820
- "summary": "Mirror a door across an axis, flipping its swing so it opens from the other side. Undoable as a single command.",
4821
+ "summary": "Mirror a door about its own axes. `'x'` (default) flips the swing side the door opens to the other side of the wall; `'z'` swaps the hinged jamb (left-hand ↔ right-hand, same swing side); `'y'` turns it upside down. Undoable as a single command.",
4821
4822
  "examplePrompts": [
4822
4823
  "Flip this door's swing",
4823
4824
  "Mirror the selected door",
4824
4825
  "Make this door open the other way",
4825
4826
  "Reverse the hinge side of the entrance door",
4826
- "Change the door to swing from the other side\n\n# Example\n```ts\n// Flip the selected door's swing — axis defaults to \"x\" (the swing-flip\n// axis); pass \"y\" or \"z\" to reflect across a different axis\nconst [door] = await snaptrude.design.query.listDoors({ isSelected: true })\nconst { affected } = await snaptrude.design.doors.mirror(door)\n```"
4827
+ "Change the door to swing from the other side\n\n# Example\n```ts\n// Flip the selected door's swing side — axis defaults to \"x\"\nconst [door] = await snaptrude.design.query.listDoors({ isSelected: true })\nconst { affected } = await snaptrude.design.doors.mirror(door)\n// …or swap the hinged jamb instead (keeps the swing side)\nawait snaptrude.design.doors.mirror(door, \"z\")\n```"
4827
4828
  ],
4828
4829
  "argsType": "ComponentHandle",
4829
4830
  "resultType": "PluginDesignChangeResult"
@@ -61,15 +61,17 @@ export type PluginCreateFloorItems = z.infer<typeof PluginCreateFloorItems>;
61
61
  * One door to place via {@linkcode PluginDesignCreateApi.doors} — the same
62
62
  * fields as a `"door"` {@linkcode PluginDesignCreateOpeningOptions}, so the
63
63
  * size overrides singular {@linkcode PluginDesignCreateApi.door} lacks are
64
- * available per item. `facing` is a WORLD POINT on the side of the wall the
65
- * door opens into, not a direction. Rejects unknown fields.
64
+ * available per item. `facing` and `hinge` are WORLD POINTS, not directions:
65
+ * `facing` on the side of the wall the door swings open to, `hinge` near the
66
+ * jamb it is hinged on. Rejects unknown fields.
66
67
  *
67
68
  * | Property | Type | Description |
68
69
  * |---|---|---|
69
70
  * | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
70
71
  * | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
71
72
  * | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
72
- * | `facing` | {@linkcode Vec3Handle}? | World point on the side the door faces (default engine-chosen) |
73
+ * | `facing` | {@linkcode Vec3Handle}? | World point on the side the door swings open to (default engine-chosen) |
74
+ * | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the door is hinged on (default the catalog item's authored side) |
73
75
  * | `label` | `string`? | Instance name (optional) |
74
76
  * | `width` | `number`? | Width override (Snaptrude units, > 0; default the catalog item's) |
75
77
  * | `height` | `number`? | Height override (Snaptrude units, > 0; default the catalog item's) |
@@ -79,6 +81,7 @@ export declare const PluginCreateDoorItem: z.ZodObject<{
79
81
  hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
80
82
  position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
81
83
  facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
84
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
82
85
  label: z.ZodOptional<z.ZodString>;
83
86
  width: z.ZodOptional<z.ZodNumber>;
84
87
  height: z.ZodOptional<z.ZodNumber>;
@@ -90,6 +93,7 @@ export declare const PluginCreateDoorItems: z.ZodArray<z.ZodObject<{
90
93
  hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
91
94
  position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
92
95
  facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
96
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
93
97
  label: z.ZodOptional<z.ZodString>;
94
98
  width: z.ZodOptional<z.ZodNumber>;
95
99
  height: z.ZodOptional<z.ZodNumber>;
@@ -99,8 +103,9 @@ export type PluginCreateDoorItems = z.infer<typeof PluginCreateDoorItems>;
99
103
  * One window to place via {@linkcode PluginDesignCreateApi.windows} — the same
100
104
  * fields as a `"window"` {@linkcode PluginDesignCreateOpeningOptions}.
101
105
  * `sillHeight` is a nonnegative Snaptrude-unit distance from the host wall's
102
- * base to the BOTTOM of the window, not to its center. `facing` is a WORLD
103
- * POINT on the desired side of the wall, not a direction. Rejects unknown
106
+ * base to the BOTTOM of the window, not to its center. `facing` and `hinge`
107
+ * are WORLD POINTS, not directions: `facing` on the side of the wall the
108
+ * window opens to, `hinge` near the jamb it is hinged on. Rejects unknown
104
109
  * fields.
105
110
  *
106
111
  * | Property | Type | Description |
@@ -108,7 +113,8 @@ export type PluginCreateDoorItems = z.infer<typeof PluginCreateDoorItems>;
108
113
  * | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
109
114
  * | `hostWall` | {@linkcode ComponentHandle} | The wall to host the window |
110
115
  * | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
111
- * | `facing` | {@linkcode Vec3Handle}? | World point on the side the window faces (default engine-chosen) |
116
+ * | `facing` | {@linkcode Vec3Handle}? | World point on the side the window opens to (default engine-chosen) |
117
+ * | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the window is hinged on (default the catalog item's authored side) |
112
118
  * | `label` | `string`? | Instance name (optional) |
113
119
  * | `width` | `number`? | Width override (Snaptrude units, > 0; default the catalog item's) |
114
120
  * | `height` | `number`? | Height override (Snaptrude units, > 0; default the catalog item's) |
@@ -120,6 +126,7 @@ export declare const PluginCreateWindowItem: z.ZodObject<{
120
126
  hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
121
127
  position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
122
128
  facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
129
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
123
130
  label: z.ZodOptional<z.ZodString>;
124
131
  width: z.ZodOptional<z.ZodNumber>;
125
132
  height: z.ZodOptional<z.ZodNumber>;
@@ -132,6 +139,7 @@ export declare const PluginCreateWindowItems: z.ZodArray<z.ZodObject<{
132
139
  hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<import("../../..").ComponentHandle, string>>;
133
140
  position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
134
141
  facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
142
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
135
143
  label: z.ZodOptional<z.ZodString>;
136
144
  width: z.ZodOptional<z.ZodNumber>;
137
145
  height: z.ZodOptional<z.ZodNumber>;
@@ -1 +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;AAIxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,OAAO,CAAA;AAM7C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;;;;;;iBAMlC,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;;;;;;;;;;;;;;;;GAgBG;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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library id: team `_id` or general `fullName`
644
644
  * @param hostWall - The wall to host the door
645
645
  * @param position - World point projected onto the wall to locate the opening
646
- * @param options - Optional placement options: `label` — instance name
647
- * @param facing - World point selecting which side of the wall the door faces
648
- * (the room it opens into) the same convention as approaching the wall
649
- * from that side with the cursor in the interactive tool. Any point clearly
650
- * on that side works (e.g. the room's center). Default: the engine picks a
651
- * side (nondeterministic when `position` sits on the wall centerline).
646
+ * @param options - Optional placement options: `label` — instance name;
647
+ * `hinge` world point near the jamb the door is hinged on (the door is
648
+ * reflected along the wall so its hinged jamb is the one nearer this
649
+ * point; default the catalog item's authored hinge side)
650
+ * @param facing - World point on the side of the wall the door swings open
651
+ * to (the room it opens into — where the plan symbol draws the swing arc).
652
+ * Any point clearly on that side works (e.g. the room's center). Default:
653
+ * the engine picks a side (nondeterministic when `position` sits on the
654
+ * wall centerline).
652
655
  * @returns the {@linkcode ComponentHandle} of the placed door
653
656
  * @throws if the catalog id is unknown, the host is not a wall, the source
654
657
  * mesh fails to load, or the projected point falls **outside** the host wall
@@ -659,6 +662,7 @@ export declare abstract class PluginDesignCreateApi {
659
662
  * @examplePrompt Insert the entrance door into this wall
660
663
  * @examplePrompt Add a door to the wall and call it Entry-01
661
664
  * @examplePrompt Add a door that opens into the living room
665
+ * @examplePrompt Put a door here hinged on the north jamb
662
666
  *
663
667
  * # Example
664
668
  * ```ts
@@ -678,6 +682,14 @@ export declare abstract class PluginDesignCreateApi {
678
682
  * undefined,
679
683
  * await snaptrude.core.math.vec3.new(3, 0, 9),
680
684
  * )
685
+ * // …and hinged on the jamb nearest a point (here the +x end of the opening):
686
+ * const hingedRight = await snaptrude.design.create.door(
687
+ * entry.id,
688
+ * wall,
689
+ * await snaptrude.core.math.vec3.new(3, 0, 5),
690
+ * { hinge: await snaptrude.core.math.vec3.new(3.5, 0, 5) },
691
+ * await snaptrude.core.math.vec3.new(3, 0, 9),
692
+ * )
681
693
  * ```
682
694
  *
683
695
  * @performance For MORE THAN ONE door, call `design.create.doors(items[])` — one host
@@ -686,6 +698,7 @@ export declare abstract class PluginDesignCreateApi {
686
698
  */
687
699
  abstract door(catalogId: string, hostWall: ComponentHandle, position: Vec3Handle, options?: {
688
700
  label?: string;
701
+ hinge?: Vec3Handle;
689
702
  }, facing?: Vec3Handle): PluginApiReturn<ComponentHandle>;
690
703
  /**
691
704
  * Place **many doors** into host walls in one undoable operation (bulk plural
@@ -706,8 +719,8 @@ export declare abstract class PluginDesignCreateApi {
706
719
  * @returns the placed doors as {@linkcode ComponentHandle}`[]`, in input order
707
720
  * @throws `VALIDATION` if the items fail the schema (empty array, more than
708
721
  * 1000 items, unknown fields, a non-positive `width`/`height`);
709
- * `HANDLE_INVALID` if a `position` or `facing` handle is unknown or
710
- * released; `PRECONDITION_FAILED` if a catalog id is unknown, a `hostWall`
722
+ * `HANDLE_INVALID` if a `position`, `facing` or `hinge` handle is unknown
723
+ * or released; `PRECONDITION_FAILED` if a catalog id is unknown, a `hostWall`
711
724
  * is not a wall / is locked / is not in the active proposal, the projected
712
725
  * point falls outside its host wall, or a door tool is active;
713
726
  * `OPERATION_FAILED` if a source mesh fails to load or placement fails
@@ -752,11 +765,14 @@ export declare abstract class PluginDesignCreateApi {
752
765
  * @param catalogId - Library id: team `_id` or general `fullName`
753
766
  * @param hostWall - The wall to host the window
754
767
  * @param position - World point projected onto the wall to locate the opening
755
- * @param options - Optional placement options: `label` — instance name
756
- * @param facing - World point selecting which side of the wall the window
757
- * faces (matters for asymmetric windows, e.g. casement swing) same
758
- * convention as {@linkcode PluginDesignCreateApi.door}. Default: the engine
759
- * picks a side (nondeterministic when `position` sits on the centerline).
768
+ * @param options - Optional placement options: `label` — instance name;
769
+ * `hinge` world point near the jamb the window is hinged on (same rule
770
+ * as {@linkcode PluginDesignCreateApi.door}; default the catalog item's
771
+ * authored side)
772
+ * @param facing - World point on the side of the wall the window opens to
773
+ * (matters for asymmetric windows, e.g. casement swing) — same convention
774
+ * as {@linkcode PluginDesignCreateApi.door}. Default: the engine picks a
775
+ * side (nondeterministic when `position` sits on the centerline).
760
776
  * @returns the {@linkcode ComponentHandle} of the placed window
761
777
  * @throws if the catalog id is unknown, the host is not a wall, the source
762
778
  * mesh fails to load, or the projected point falls **outside** the host wall
@@ -786,6 +802,7 @@ export declare abstract class PluginDesignCreateApi {
786
802
  */
787
803
  abstract window(catalogId: string, hostWall: ComponentHandle, position: Vec3Handle, options?: {
788
804
  label?: string;
805
+ hinge?: Vec3Handle;
789
806
  }, facing?: Vec3Handle): PluginApiReturn<ComponentHandle>;
790
807
  /**
791
808
  * Place **many windows** into host walls in one undoable operation (bulk
@@ -808,8 +825,8 @@ export declare abstract class PluginDesignCreateApi {
808
825
  * @returns the placed windows as {@linkcode ComponentHandle}`[]`, in input order
809
826
  * @throws `VALIDATION` if the items fail the schema (empty array, more than
810
827
  * 1000 items, unknown fields, a non-positive `width`/`height`, a negative
811
- * `sillHeight`); `HANDLE_INVALID` if a `position` or `facing` handle is
812
- * unknown or released; `PRECONDITION_FAILED` if a catalog id is unknown, a
828
+ * `sillHeight`); `HANDLE_INVALID` if a `position`, `facing` or `hinge`
829
+ * handle is unknown or released; `PRECONDITION_FAILED` if a catalog id is unknown, a
813
830
  * `hostWall` is not a wall / is locked / is not in the active proposal, the
814
831
  * projected point falls outside its host wall, or a window tool is active;
815
832
  * `OPERATION_FAILED` if a source mesh fails to load or placement fails
@@ -849,7 +866,7 @@ export declare abstract class PluginDesignCreateApi {
849
866
  * its center. Placement is asynchronous and committed as one undoable creation.
850
867
  *
851
868
  * @param options - Opening kind, catalog and host references, placement, and
852
- * optional facing, label, and dimensions
869
+ * optional facing (swing side), hinge (hinged jamb), label, and dimensions
853
870
  * @returns the {@linkcode ComponentHandle} of the placed door or window
854
871
  * @throws if the options are invalid, the catalog id is unknown, the host is
855
872
  * not a wall, loading fails, or the opening cannot be placed on the host
@@ -1401,7 +1418,8 @@ export type PluginDesignCreateFurnitureArgs = z.infer<typeof PluginDesignCreateF
1401
1418
  * | `hostWall` | {@linkcode ComponentHandle} | The wall to host the door |
1402
1419
  * | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
1403
1420
  * | `label` | `string`? | Instance name (optional) |
1404
- * | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the door faces (default engine-chosen) |
1421
+ * | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the door swings open to (default engine-chosen) |
1422
+ * | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the door is hinged on (default the catalog item's authored side) |
1405
1423
  */
1406
1424
  export declare const PluginDesignCreateDoorArgs: z.ZodObject<{
1407
1425
  catalogId: z.ZodString;
@@ -1409,6 +1427,7 @@ export declare const PluginDesignCreateDoorArgs: z.ZodObject<{
1409
1427
  position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
1410
1428
  label: z.ZodOptional<z.ZodString>;
1411
1429
  facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
1430
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
1412
1431
  }, z.core.$strip>;
1413
1432
  export type PluginDesignCreateDoorArgs = z.infer<typeof PluginDesignCreateDoorArgs>;
1414
1433
  /**
@@ -1420,7 +1439,8 @@ export type PluginDesignCreateDoorArgs = z.infer<typeof PluginDesignCreateDoorAr
1420
1439
  * | `hostWall` | {@linkcode ComponentHandle} | The wall to host the window |
1421
1440
  * | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
1422
1441
  * | `label` | `string`? | Instance name (optional) |
1423
- * | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the window faces (default engine-chosen) |
1442
+ * | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the window opens to (default engine-chosen) |
1443
+ * | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the window is hinged on (default the catalog item's authored side) |
1424
1444
  */
1425
1445
  export declare const PluginDesignCreateWindowArgs: z.ZodObject<{
1426
1446
  catalogId: z.ZodString;
@@ -1428,6 +1448,7 @@ export declare const PluginDesignCreateWindowArgs: z.ZodObject<{
1428
1448
  position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
1429
1449
  label: z.ZodOptional<z.ZodString>;
1430
1450
  facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
1451
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
1431
1452
  }, z.core.$strip>;
1432
1453
  export type PluginDesignCreateWindowArgs = z.infer<typeof PluginDesignCreateWindowArgs>;
1433
1454
  /**
@@ -1441,6 +1462,7 @@ export declare const PluginDesignCreateOpeningOptions: z.ZodDiscriminatedUnion<[
1441
1462
  hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
1442
1463
  position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
1443
1464
  facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
1465
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
1444
1466
  label: z.ZodOptional<z.ZodString>;
1445
1467
  width: z.ZodOptional<z.ZodNumber>;
1446
1468
  height: z.ZodOptional<z.ZodNumber>;
@@ -1451,6 +1473,7 @@ export declare const PluginDesignCreateOpeningOptions: z.ZodDiscriminatedUnion<[
1451
1473
  hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
1452
1474
  position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
1453
1475
  facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
1476
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
1454
1477
  label: z.ZodOptional<z.ZodString>;
1455
1478
  width: z.ZodOptional<z.ZodNumber>;
1456
1479
  height: z.ZodOptional<z.ZodNumber>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EACL,UAAU,EACV,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,cAAc,CAAA;AAErB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG;aACa,KAAK,C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rC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,0BAA0B,CAClC,CAAA;AAQD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAShC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EACL,UAAU,EACV,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACX,MAAM,kBAAkB,CAAA;AACzB,OAAO,EACL,eAAe,EACf,cAAc,EACd,kBAAkB,EACnB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,oCAAoC,EACpC,kCAAkC,EAClC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,uBAAuB,EACvB,sBAAsB,EACvB,MAAM,cAAc,CAAA;AAErB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,8BAAsB,qBAAqB;;IAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG;aACa,KAAK,CACnB,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,UAAU,EACrB,SAAS,CAAC,EAAE,eAAe,EAC3B,QAAQ,CAAC,EAAE,cAAc,EACzB,YAAY,CAAC,EAAE,kBAAkB,EAC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;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAShC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
@@ -5,14 +5,21 @@ import { ComponentHandle } from "../../../handles";
5
5
  * {@linkcode PluginDesignCreateOpeningOptions} and by the bulk item schemas in
6
6
  * `bulk-items.ts`, so singular and plural openings validate identically.
7
7
  *
8
- * `facing` is a WORLD POINT on the desired side of the wall, not a direction.
8
+ * `facing` and `hinge` are WORLD POINTS, not directions: `facing` sits on the
9
+ * side of the wall the leaf swings open to (where the plan symbol draws the
10
+ * swing arc); `hinge` sits near the jamb the leaf is hinged on — the item is
11
+ * reflected along the wall so its hinged jamb is the one nearer that point.
12
+ * Either may be omitted (engine-chosen side / the catalog item's authored
13
+ * hinge side). Neither has a visible effect on symmetric items such as
14
+ * sliders or fixed windows.
9
15
  *
10
16
  * | Property | Type | Description |
11
17
  * |---|---|---|
12
18
  * | `catalogId` | `string` | Library id: team `_id` or general `fullName` |
13
19
  * | `hostWall` | {@linkcode ComponentHandle} | The wall to host the opening |
14
20
  * | `position` | {@linkcode Vec3Handle} | World point projected onto the wall |
15
- * | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the opening faces (default engine-chosen) |
21
+ * | `facing` | {@linkcode Vec3Handle}? | World point on the side of the wall the opening swings open to (default engine-chosen) |
22
+ * | `hinge` | {@linkcode Vec3Handle}? | World point near the jamb the opening is hinged on (default the catalog item's authored side) |
16
23
  * | `label` | `string`? | Instance name (optional) |
17
24
  * | `width` | `number`? | Width override (Snaptrude units, > 0; default the catalog item's) |
18
25
  * | `height` | `number`? | Height override (Snaptrude units, > 0; default the catalog item's) |
@@ -22,6 +29,7 @@ export declare const PluginOpeningBaseOptions: {
22
29
  hostWall: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
23
30
  position: z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>;
24
31
  facing: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
32
+ hinge: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>, z.ZodTransform<import("../../..").Handle<"vec3">, string>>>;
25
33
  label: z.ZodOptional<z.ZodString>;
26
34
  width: z.ZodOptional<z.ZodNumber>;
27
35
  height: z.ZodOptional<z.ZodNumber>;
@@ -1 +1 @@
1
- {"version":3,"file":"opening-fields.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/opening-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAc,MAAM,kBAAkB,CAAA;AAE9D;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;CAQpC,CAAA"}
1
+ {"version":3,"file":"opening-fields.d.ts","sourceRoot":"","sources":["../../../../src/api/design/create/opening-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAc,MAAM,kBAAkB,CAAA;AAE9D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;CASpC,CAAA"}
@@ -7,9 +7,11 @@ import { PluginDesignChangeResult } from "../lock";
7
7
  * `design.create.door`; generic reads (`listDoors`/`getHost`/`getProperties`) live at
8
8
  * `design.query.*`. Door targets are {@linkcode ComponentHandle}s.
9
9
  *
10
- * `getSwingDirection` is a DERIVED read (no persisted field) — computed from the door
11
- * mesh reflection state. `mirror` reflects the door across an axis (undoable, one
12
- * command); `setType` is intentionally absent (the engine has no in-place re-type
10
+ * `getSwingDirection` is a DERIVED read (no persisted field) — computed from the placed
11
+ * mesh's orientation: stand on the side the door swings open to, facing it; `'left'`
12
+ * when the hinged jamb is on your left. `mirror` reflects the door about one of its own
13
+ * axes (undoable, one command): `'x'` flips the swing side, `'z'` swaps the hinged jamb;
14
+ * `setType` is intentionally absent (the engine has no in-place re-type —
13
15
  * it would require delete+recreate).
14
16
  *
15
17
  * The **catalog** reads (`listCatalogGroups`/`listCatalog`/`getCatalogItem`/`exists`)
@@ -144,9 +146,11 @@ export declare abstract class PluginDesignDoorsApi {
144
146
  */
145
147
  abstract getSupportFloor(door: ComponentHandle): PluginApiReturn<ComponentHandle | null>;
146
148
  /**
147
- * Get a door's swing (hinge) handedness whether it opens as a left-hand or
148
- * right-hand door. Derived from the door mesh's reflection state, not a
149
- * persisted field.
149
+ * Get a door's swing (hinge) handedness. Stand on the side the door swings
150
+ * open to, facing the door: `'left'` when the hinged jamb is on your left,
151
+ * `'right'` when it is on your right. Derived from the placed mesh's
152
+ * orientation (the same reflection `mirror` and the `hinge` placement option
153
+ * apply), not a persisted field.
150
154
  *
151
155
  * @param door The door to query
152
156
  * @returns `'left'` / `'right'`, or `null` if indeterminate
@@ -165,11 +169,13 @@ export declare abstract class PluginDesignDoorsApi {
165
169
  */
166
170
  abstract getSwingDirection(door: ComponentHandle): PluginApiReturn<"left" | "right" | null>;
167
171
  /**
168
- * Mirror a door across an axis, flipping its swing so it opens from the
169
- * other side. Undoable as a single command.
172
+ * Mirror a door about its own axes. `'x'` (default) flips the swing side
173
+ * the door opens to the other side of the wall; `'z'` swaps the hinged jamb
174
+ * (left-hand ↔ right-hand, same swing side); `'y'` turns it upside down.
175
+ * Undoable as a single command.
170
176
  *
171
177
  * @param door The door to mirror
172
- * @param axis Reflection axis (optional; default `'x'` — the swing-flip axis)
178
+ * @param axis Reflection axis (optional; default `'x'` — the swing-flip axis; `'z'` — the hinge-jamb axis)
173
179
  * @returns The affected door(s)
174
180
  *
175
181
  * @examplePrompt Flip this door's swing
@@ -180,10 +186,11 @@ export declare abstract class PluginDesignDoorsApi {
180
186
  *
181
187
  * # Example
182
188
  * ```ts
183
- * // Flip the selected door's swing — axis defaults to "x" (the swing-flip
184
- * // axis); pass "y" or "z" to reflect across a different axis
189
+ * // Flip the selected door's swing side — axis defaults to "x"
185
190
  * const [door] = await snaptrude.design.query.listDoors({ isSelected: true })
186
191
  * const { affected } = await snaptrude.design.doors.mirror(door)
192
+ * // …or swap the hinged jamb instead (keeps the swing side)
193
+ * await snaptrude.design.doors.mirror(door, "z")
187
194
  * ```
188
195
  */
189
196
  abstract mirror(door: ComponentHandle, axis?: PluginMirrorAxis): PluginApiReturn<PluginDesignChangeResult>;
@@ -334,7 +341,7 @@ export declare const PluginDoorDimensions: z.ZodObject<{
334
341
  thickness: z.ZodNumber;
335
342
  }, z.core.$strip>;
336
343
  export type PluginDoorDimensions = z.infer<typeof PluginDoorDimensions>;
337
- /** Mirror axis — tokens mirror the engine `FlipDirection` verbatim (§6.1). */
344
+ /** Mirror axis — tokens mirror the engine `FlipDirection` verbatim: `'x'` flips the swing side, `'z'` swaps the hinged jamb, `'y'` turns the door upside down. */
338
345
  export declare const PluginMirrorAxis: z.ZodEnum<{
339
346
  x: "x";
340
347
  y: "y";
@@ -347,7 +354,7 @@ export type PluginMirrorAxis = z.infer<typeof PluginMirrorAxis>;
347
354
  * | Property | Type | Description |
348
355
  * |---|---|---|
349
356
  * | `door` | {@linkcode ComponentHandle} | The door to mirror |
350
- * | `axis` | {@linkcode PluginMirrorAxis} | Reflection axis (optional; default `'x'` — the swing-flip axis) |
357
+ * | `axis` | {@linkcode PluginMirrorAxis} | Reflection axis (optional; default `'x'` — the swing-flip axis; `'z'` — the hinge-jamb axis) |
351
358
  */
352
359
  export declare const PluginDesignDoorMirrorArgs: z.ZodObject<{
353
360
  door: z.ZodPipe<z.ZodString, z.ZodTransform<ComponentHandle, string>>;
@@ -1 +1 @@
1
- {"version":3,"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BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEvF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAA;AACF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAMzF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB;;;;;;;iBAInC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBASlC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAE7F;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC;;iBAE7C,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEnG,eAAO,MAAM,0BAA0B;;iBAAqC,CAAA;AAC5E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA"}
package/dist/index.cjs CHANGED
@@ -3139,6 +3139,7 @@ var PluginOpeningBaseOptions = {
3139
3139
  hostWall: ComponentHandle,
3140
3140
  position: Vec3Handle,
3141
3141
  facing: Vec3Handle.optional(),
3142
+ hinge: Vec3Handle.optional(),
3142
3143
  label: z39.string().optional(),
3143
3144
  width: z39.number().finite().positive().optional(),
3144
3145
  height: z39.number().finite().positive().optional()
@@ -3292,14 +3293,16 @@ var PluginDesignCreateDoorArgs = z41.object({
3292
3293
  hostWall: ComponentHandle,
3293
3294
  position: Vec3Handle,
3294
3295
  label: z41.string().optional(),
3295
- facing: Vec3Handle.optional()
3296
+ facing: Vec3Handle.optional(),
3297
+ hinge: Vec3Handle.optional()
3296
3298
  });
3297
3299
  var PluginDesignCreateWindowArgs = z41.object({
3298
3300
  catalogId: z41.string().min(1),
3299
3301
  hostWall: ComponentHandle,
3300
3302
  position: Vec3Handle,
3301
3303
  label: z41.string().optional(),
3302
- facing: Vec3Handle.optional()
3304
+ facing: Vec3Handle.optional(),
3305
+ hinge: Vec3Handle.optional()
3303
3306
  });
3304
3307
  var PluginDesignCreateOpeningOptions = z41.discriminatedUnion("kind", [
3305
3308
  z41.object({