@snaptrude/plugin-core 0.2.2 → 0.2.3
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 +6 -0
- package/dist/api/entity/space.d.ts +153 -1
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/index.cjs +16 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/entity/space.ts +95 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { PluginApiReturn } from "../../types";
|
|
3
3
|
/**
|
|
4
|
-
* Space (room/mass) management — create, query, and delete spaces.
|
|
4
|
+
* Space (room/mass) management — create, query, update, and delete spaces.
|
|
5
5
|
*
|
|
6
6
|
* A **space** is a 3D volume representing a room or mass in the
|
|
7
7
|
* Snaptrude scene. Spaces live on a particular story and carry
|
|
@@ -85,6 +85,56 @@ export declare abstract class PluginSpaceApi {
|
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
87
|
abstract createFromProfile({ profile, extrudeHeight, position, }: PluginSpaceCreateFromProfileArgs): PluginApiReturn<PluginSpaceCreateFromProfileResult>;
|
|
88
|
+
/**
|
|
89
|
+
* Update a space's BRep and mesh geometry by extruding a 2D profile.
|
|
90
|
+
*
|
|
91
|
+
* The {@linkcode PluginSpaceUpdateGeometryFromProfileArgs.profile profile} is
|
|
92
|
+
* extruded upward (along the Y axis) by
|
|
93
|
+
* {@linkcode PluginSpaceUpdateGeometryFromProfileArgs.extrudeHeight extrudeHeight}
|
|
94
|
+
* and applied to the existing space. The space keeps the same `spaceId`,
|
|
95
|
+
* metadata, department, and transform; only its geometry is replaced.
|
|
96
|
+
*
|
|
97
|
+
* Profile points are interpreted in scene coordinates. Profiles returned by
|
|
98
|
+
* {@linkcode PluginSpaceApi.get} with `"profile"` can be passed back directly;
|
|
99
|
+
* `"planPoints"` can be used to construct line-only profiles in the same X/Z
|
|
100
|
+
* plan coordinate space.
|
|
101
|
+
*
|
|
102
|
+
* Use {@linkcode PluginProfileApi.fromLinePoints} to quickly build a profile
|
|
103
|
+
* from a list of points.
|
|
104
|
+
*
|
|
105
|
+
* @param args - An object containing:
|
|
106
|
+
* - {@linkcode PluginSpaceUpdateGeometryFromProfileArgs.spaceId args.spaceId} —
|
|
107
|
+
* The unique space ID to update
|
|
108
|
+
* - {@linkcode PluginSpaceUpdateGeometryFromProfileArgs.profile args.profile} —
|
|
109
|
+
* A closed {@linkcode PProfile} defining the new floor shape
|
|
110
|
+
* - {@linkcode PluginSpaceUpdateGeometryFromProfileArgs.extrudeHeight
|
|
111
|
+
* args.extrudeHeight} — New extrusion height in Babylon units
|
|
112
|
+
* @returns A {@linkcode PluginSpaceUpdateGeometryFromProfileResult} with the
|
|
113
|
+
* `spaceId` of the updated space
|
|
114
|
+
* @throws If the space does not exist, the component is not a space/mass, the
|
|
115
|
+
* height is not positive, or the profile cannot create valid geometry
|
|
116
|
+
*
|
|
117
|
+
* # Example
|
|
118
|
+
* ```ts
|
|
119
|
+
* const { vec3 } = snaptrude.core.math
|
|
120
|
+
*
|
|
121
|
+
* const profile = await snaptrude.core.geom.profile.fromLinePoints({
|
|
122
|
+
* points: [
|
|
123
|
+
* vec3.new(0, 0, 0),
|
|
124
|
+
* vec3.new(12, 0, 0),
|
|
125
|
+
* vec3.new(12, 0, 6),
|
|
126
|
+
* vec3.new(0, 0, 6),
|
|
127
|
+
* ],
|
|
128
|
+
* })
|
|
129
|
+
*
|
|
130
|
+
* const { spaceId } = await snaptrude.entity.space.updateGeometryFromProfile({
|
|
131
|
+
* spaceId: "some-space-id",
|
|
132
|
+
* profile,
|
|
133
|
+
* extrudeHeight: 4,
|
|
134
|
+
* })
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
abstract updateGeometryFromProfile({ spaceId, profile, extrudeHeight, }: PluginSpaceUpdateGeometryFromProfileArgs): PluginApiReturn<PluginSpaceUpdateGeometryFromProfileResult>;
|
|
88
138
|
/**
|
|
89
139
|
* Get the IDs of all spaces in the current project.
|
|
90
140
|
*
|
|
@@ -272,6 +322,68 @@ export declare const PluginSpaceCreateFromProfileResult: z.ZodObject<{
|
|
|
272
322
|
spaceId: z.ZodString;
|
|
273
323
|
}, z.core.$strip>;
|
|
274
324
|
export type PluginSpaceCreateFromProfileResult = z.infer<typeof PluginSpaceCreateFromProfileResult>;
|
|
325
|
+
/**
|
|
326
|
+
* Arguments for {@linkcode PluginSpaceApi.updateGeometryFromProfile}.
|
|
327
|
+
*
|
|
328
|
+
* | Property | Type | Description |
|
|
329
|
+
* |---|---|---|
|
|
330
|
+
* | `spaceId` | `string` | Space to update |
|
|
331
|
+
* | `profile` | {@linkcode PProfile} | Closed 2D profile defining the new floor shape |
|
|
332
|
+
* | `extrudeHeight` | `number` | New extrusion height in Babylon units |
|
|
333
|
+
*/
|
|
334
|
+
export declare const PluginSpaceUpdateGeometryFromProfileArgs: z.ZodObject<{
|
|
335
|
+
spaceId: z.ZodString;
|
|
336
|
+
profile: z.ZodObject<{
|
|
337
|
+
curves: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
338
|
+
curveType: z.ZodLiteral<"Line">;
|
|
339
|
+
startPoint: z.ZodObject<{
|
|
340
|
+
x: z.ZodNumber;
|
|
341
|
+
y: z.ZodNumber;
|
|
342
|
+
z: z.ZodNumber;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
endPoint: z.ZodObject<{
|
|
345
|
+
x: z.ZodNumber;
|
|
346
|
+
y: z.ZodNumber;
|
|
347
|
+
z: z.ZodNumber;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
350
|
+
curveType: z.ZodLiteral<"Arc">;
|
|
351
|
+
startPoint: z.ZodObject<{
|
|
352
|
+
x: z.ZodNumber;
|
|
353
|
+
y: z.ZodNumber;
|
|
354
|
+
z: z.ZodNumber;
|
|
355
|
+
}, z.core.$strip>;
|
|
356
|
+
endPoint: z.ZodObject<{
|
|
357
|
+
x: z.ZodNumber;
|
|
358
|
+
y: z.ZodNumber;
|
|
359
|
+
z: z.ZodNumber;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
centrePoint: z.ZodObject<{
|
|
362
|
+
x: z.ZodNumber;
|
|
363
|
+
y: z.ZodNumber;
|
|
364
|
+
z: z.ZodNumber;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
axis: z.ZodObject<{
|
|
367
|
+
x: z.ZodNumber;
|
|
368
|
+
y: z.ZodNumber;
|
|
369
|
+
z: z.ZodNumber;
|
|
370
|
+
}, z.core.$strip>;
|
|
371
|
+
}, z.core.$strip>], "curveType">>;
|
|
372
|
+
}, z.core.$strip>;
|
|
373
|
+
extrudeHeight: z.ZodNumber;
|
|
374
|
+
}, z.core.$strip>;
|
|
375
|
+
export type PluginSpaceUpdateGeometryFromProfileArgs = z.infer<typeof PluginSpaceUpdateGeometryFromProfileArgs>;
|
|
376
|
+
/**
|
|
377
|
+
* Result of {@linkcode PluginSpaceApi.updateGeometryFromProfile}.
|
|
378
|
+
*
|
|
379
|
+
* | Property | Type | Description |
|
|
380
|
+
* |---|---|---|
|
|
381
|
+
* | `spaceId` | `string` | Unique ID of the updated space |
|
|
382
|
+
*/
|
|
383
|
+
export declare const PluginSpaceUpdateGeometryFromProfileResult: z.ZodObject<{
|
|
384
|
+
spaceId: z.ZodString;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
export type PluginSpaceUpdateGeometryFromProfileResult = z.infer<typeof PluginSpaceUpdateGeometryFromProfileResult>;
|
|
275
387
|
/**
|
|
276
388
|
* Available properties that can be queried on a space.
|
|
277
389
|
*
|
|
@@ -309,12 +421,14 @@ export type PluginSpaceCreateFromProfileResult = z.infer<typeof PluginSpaceCreat
|
|
|
309
421
|
* | Value | Return Type | Description |
|
|
310
422
|
* |---|---|---|
|
|
311
423
|
* | `"planPoints"` | {@linkcode PVec3}`[]` | Bottom outer profile points in world space with `y = 0` (2D plan). No closing duplicate point. |
|
|
424
|
+
* | `"profile"` | {@linkcode PProfile} | Bottom outer profile in world space, preserving line/arc curve data. |
|
|
312
425
|
*/
|
|
313
426
|
export declare const PluginSpaceGetProperty: z.ZodEnum<{
|
|
314
427
|
type: "type";
|
|
315
428
|
name: "name";
|
|
316
429
|
departmentId: "departmentId";
|
|
317
430
|
id: "id";
|
|
431
|
+
profile: "profile";
|
|
318
432
|
position: "position";
|
|
319
433
|
height: "height";
|
|
320
434
|
depth: "depth";
|
|
@@ -346,6 +460,7 @@ export declare const PluginSpaceGetArgs: z.ZodObject<{
|
|
|
346
460
|
name: "name";
|
|
347
461
|
departmentId: "departmentId";
|
|
348
462
|
id: "id";
|
|
463
|
+
profile: "profile";
|
|
349
464
|
position: "position";
|
|
350
465
|
height: "height";
|
|
351
466
|
depth: "depth";
|
|
@@ -452,6 +567,43 @@ export declare const PluginSpaceGetResult: z.ZodObject<{
|
|
|
452
567
|
y: z.ZodNumber;
|
|
453
568
|
z: z.ZodNumber;
|
|
454
569
|
}, z.core.$strip>>>;
|
|
570
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
571
|
+
curves: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
572
|
+
curveType: z.ZodLiteral<"Line">;
|
|
573
|
+
startPoint: z.ZodObject<{
|
|
574
|
+
x: z.ZodNumber;
|
|
575
|
+
y: z.ZodNumber;
|
|
576
|
+
z: z.ZodNumber;
|
|
577
|
+
}, z.core.$strip>;
|
|
578
|
+
endPoint: z.ZodObject<{
|
|
579
|
+
x: z.ZodNumber;
|
|
580
|
+
y: z.ZodNumber;
|
|
581
|
+
z: z.ZodNumber;
|
|
582
|
+
}, z.core.$strip>;
|
|
583
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
584
|
+
curveType: z.ZodLiteral<"Arc">;
|
|
585
|
+
startPoint: z.ZodObject<{
|
|
586
|
+
x: z.ZodNumber;
|
|
587
|
+
y: z.ZodNumber;
|
|
588
|
+
z: z.ZodNumber;
|
|
589
|
+
}, z.core.$strip>;
|
|
590
|
+
endPoint: z.ZodObject<{
|
|
591
|
+
x: z.ZodNumber;
|
|
592
|
+
y: z.ZodNumber;
|
|
593
|
+
z: z.ZodNumber;
|
|
594
|
+
}, z.core.$strip>;
|
|
595
|
+
centrePoint: z.ZodObject<{
|
|
596
|
+
x: z.ZodNumber;
|
|
597
|
+
y: z.ZodNumber;
|
|
598
|
+
z: z.ZodNumber;
|
|
599
|
+
}, z.core.$strip>;
|
|
600
|
+
axis: z.ZodObject<{
|
|
601
|
+
x: z.ZodNumber;
|
|
602
|
+
y: z.ZodNumber;
|
|
603
|
+
z: z.ZodNumber;
|
|
604
|
+
}, z.core.$strip>;
|
|
605
|
+
}, z.core.$strip>], "curveType">>;
|
|
606
|
+
}, z.core.$strip>>;
|
|
455
607
|
}, z.core.$strip>;
|
|
456
608
|
export type PluginSpaceGetResult = z.infer<typeof PluginSpaceGetResult>;
|
|
457
609
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../../src/api/entity/space.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAK7C;;;;;;;;;;;GAWG;AACH,8BAAsB,cAAc;;IAGlC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;aACa,iBAAiB,CAAC,EAChC,QAAQ,EACR,UAAU,GACX,EAAE,gCAAgC,GAAG,eAAe,CAAC,kCAAkC,CAAC;IAEzF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;aACa,iBAAiB,CAAC,EAChC,OAAO,EACP,aAAa,EACb,QAAQ,GACT,EAAE,gCAAgC,GAAG,eAAe,CAAC,kCAAkC,CAAC;IAEzF;;;;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A;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;iBAElC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,sFAAsF;AACtF,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAA;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;EAazB,CAAA;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B;;;;;EAKtC,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;eAG7B,CAAA;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQhC,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;;;;;iBAMlC,CAAA;AAEF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -92,6 +92,8 @@ __export(index_exports, {
|
|
|
92
92
|
PluginSpaceGetResult: () => PluginSpaceGetResult,
|
|
93
93
|
PluginSpaceType: () => PluginSpaceType,
|
|
94
94
|
PluginSpaceUpdateArgs: () => PluginSpaceUpdateArgs,
|
|
95
|
+
PluginSpaceUpdateGeometryFromProfileArgs: () => PluginSpaceUpdateGeometryFromProfileArgs,
|
|
96
|
+
PluginSpaceUpdateGeometryFromProfileResult: () => PluginSpaceUpdateGeometryFromProfileResult,
|
|
95
97
|
PluginSpaceUpdateResult: () => PluginSpaceUpdateResult,
|
|
96
98
|
PluginStoryApi: () => PluginStoryApi,
|
|
97
99
|
PluginStoryCreateArgs: () => PluginStoryCreateArgs,
|
|
@@ -842,6 +844,14 @@ var PluginSpaceCreateFromProfileArgs = z10.object({
|
|
|
842
844
|
var PluginSpaceCreateFromProfileResult = z10.object({
|
|
843
845
|
spaceId: z10.string()
|
|
844
846
|
});
|
|
847
|
+
var PluginSpaceUpdateGeometryFromProfileArgs = z10.object({
|
|
848
|
+
spaceId: z10.string(),
|
|
849
|
+
profile: PProfile,
|
|
850
|
+
extrudeHeight: z10.number()
|
|
851
|
+
});
|
|
852
|
+
var PluginSpaceUpdateGeometryFromProfileResult = z10.object({
|
|
853
|
+
spaceId: z10.string()
|
|
854
|
+
});
|
|
845
855
|
var PluginSpaceGetProperty = z10.enum([
|
|
846
856
|
// Basic
|
|
847
857
|
"id",
|
|
@@ -865,7 +875,8 @@ var PluginSpaceGetProperty = z10.enum([
|
|
|
865
875
|
"rotation",
|
|
866
876
|
"rotationQuaternion",
|
|
867
877
|
// Derived from brep
|
|
868
|
-
"planPoints"
|
|
878
|
+
"planPoints",
|
|
879
|
+
"profile"
|
|
869
880
|
]);
|
|
870
881
|
var PluginSpaceGetArgs = z10.object({
|
|
871
882
|
spaceId: z10.string(),
|
|
@@ -906,7 +917,8 @@ var PluginSpaceGetResult = z10.object({
|
|
|
906
917
|
rotation: PVec3,
|
|
907
918
|
rotationQuaternion: PQuat.nullable(),
|
|
908
919
|
// Derived from brep
|
|
909
|
-
planPoints: z10.array(PVec3)
|
|
920
|
+
planPoints: z10.array(PVec3),
|
|
921
|
+
profile: PProfile
|
|
910
922
|
}).partial();
|
|
911
923
|
var PluginSpaceGetAllResult = z10.object({
|
|
912
924
|
spacesIds: z10.array(z10.string())
|
|
@@ -1176,6 +1188,8 @@ var PluginApi = class {
|
|
|
1176
1188
|
PluginSpaceGetResult,
|
|
1177
1189
|
PluginSpaceType,
|
|
1178
1190
|
PluginSpaceUpdateArgs,
|
|
1191
|
+
PluginSpaceUpdateGeometryFromProfileArgs,
|
|
1192
|
+
PluginSpaceUpdateGeometryFromProfileResult,
|
|
1179
1193
|
PluginSpaceUpdateResult,
|
|
1180
1194
|
PluginStoryApi,
|
|
1181
1195
|
PluginStoryCreateArgs,
|