@archilogic/extension-sdk 0.13.0 → 0.13.2
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 +12 -0
- package/dist/index.d.ts +146 -172
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @archilogic/extension-sdk
|
|
2
2
|
|
|
3
|
+
## 0.13.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2ab8113: chore: bump space graph and floor plan engine dependencies for extension-sdk
|
|
8
|
+
|
|
9
|
+
## 0.13.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 5b9044b: Update `@archilogic` engine and SDK dependencies to their latest releases: `floor-plan-core`/`floor-plan-webgl` `5.8.0`, `floor-plan-io` `5.21.1`, `space-graph-core`/`space-graph-io` `0.25.6`, `spaceapi-sdk` `4.2.0`, `taxonomy` `1.5.0`, and `types` `4.12.0`.
|
|
14
|
+
|
|
3
15
|
## 0.13.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -44,14 +44,7 @@ declare type AnnotationUpdateValue = Partial<LayoutAnnotationJson> & {
|
|
|
44
44
|
|
|
45
45
|
declare interface ArcCurve extends CurveBase {
|
|
46
46
|
type: ArcCurveType;
|
|
47
|
-
|
|
48
|
-
startAngle: number;
|
|
49
|
-
endAngle: number;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare interface ArcCurve_2 extends BaseShape {
|
|
53
|
-
type: 'curve:arc';
|
|
54
|
-
position: Vector2_2;
|
|
47
|
+
position?: Vector2;
|
|
55
48
|
radius: number;
|
|
56
49
|
startAngle: number;
|
|
57
50
|
endAngle: number;
|
|
@@ -105,7 +98,7 @@ declare interface BaseField {
|
|
|
105
98
|
required?: boolean;
|
|
106
99
|
}
|
|
107
100
|
|
|
108
|
-
declare interface
|
|
101
|
+
declare interface BaseNodeFilter {
|
|
109
102
|
id?: StringComparator;
|
|
110
103
|
type?: StringComparator;
|
|
111
104
|
name?: StringComparator | NullComparator;
|
|
@@ -118,19 +111,6 @@ declare interface BaseFilter {
|
|
|
118
111
|
};
|
|
119
112
|
}
|
|
120
113
|
|
|
121
|
-
declare interface BaseFilter_2 {
|
|
122
|
-
id?: StringComparator_2;
|
|
123
|
-
type?: StringComparator_2;
|
|
124
|
-
name?: StringComparator_2 | NullComparator_2;
|
|
125
|
-
customId?: StringComparator_2 | NullComparator_2;
|
|
126
|
-
customAttributes?: Record<string, StringComparator_2 | NumberComparator_2 | BooleanComparator_2 | NullComparator_2>;
|
|
127
|
-
dimensions?: {
|
|
128
|
-
width?: NumberComparator_2;
|
|
129
|
-
length?: NumberComparator_2;
|
|
130
|
-
height?: NumberComparator_2;
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
114
|
declare interface BaseSelect {
|
|
135
115
|
id?: boolean;
|
|
136
116
|
type?: boolean;
|
|
@@ -148,23 +128,16 @@ declare interface BaseSelect {
|
|
|
148
128
|
contour?: boolean;
|
|
149
129
|
}
|
|
150
130
|
|
|
151
|
-
declare interface
|
|
152
|
-
type:
|
|
153
|
-
|
|
131
|
+
declare interface BezierCurve extends CurveBase {
|
|
132
|
+
type: BezierCurveType;
|
|
133
|
+
points: Vector2[];
|
|
154
134
|
}
|
|
155
135
|
|
|
156
|
-
declare
|
|
157
|
-
type: 'curve:quadraticBezier';
|
|
158
|
-
points: Polygon_2;
|
|
159
|
-
}
|
|
136
|
+
declare type BezierCurveType = typeof BezierCurveTypeValue;
|
|
160
137
|
|
|
161
|
-
declare
|
|
162
|
-
eq: boolean;
|
|
163
|
-
} | {
|
|
164
|
-
neq: boolean;
|
|
165
|
-
};
|
|
138
|
+
declare const BezierCurveTypeValue = "curve:quadraticBezier";
|
|
166
139
|
|
|
167
|
-
declare type
|
|
140
|
+
declare type BooleanComparator = boolean | {
|
|
168
141
|
eq: boolean;
|
|
169
142
|
} | {
|
|
170
143
|
neq: boolean;
|
|
@@ -196,12 +169,7 @@ declare type BoundingBox3d = {
|
|
|
196
169
|
|
|
197
170
|
declare interface CircleCurve extends CurveBase {
|
|
198
171
|
type: CircleCurveType;
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
declare interface CircleCurve_2 extends BaseShape {
|
|
203
|
-
type: 'curve:circle';
|
|
204
|
-
position: Vector2_2;
|
|
172
|
+
position?: Vector2;
|
|
205
173
|
radius: number;
|
|
206
174
|
}
|
|
207
175
|
|
|
@@ -275,11 +243,6 @@ declare interface CompositeCurve extends CurveBase {
|
|
|
275
243
|
segments: OpenCurve[];
|
|
276
244
|
}
|
|
277
245
|
|
|
278
|
-
declare interface CompositeCurve_2 extends BaseShape {
|
|
279
|
-
type: 'curve:composite';
|
|
280
|
-
segments: OpenCurves[];
|
|
281
|
-
}
|
|
282
|
-
|
|
283
246
|
declare type CompositeCurveType = typeof CompositeCurveTypeValue;
|
|
284
247
|
|
|
285
248
|
declare const CompositeCurveTypeValue = "curve:composite";
|
|
@@ -306,10 +269,16 @@ declare type CuboidGeometryType = typeof CuboidGeometryTypeValue;
|
|
|
306
269
|
|
|
307
270
|
declare const CuboidGeometryTypeValue = "geometry:cuboid";
|
|
308
271
|
|
|
272
|
+
declare type Curve = ClosedCurve | OpenCurve;
|
|
273
|
+
|
|
309
274
|
declare interface CurveBase {
|
|
310
275
|
type: CurveType;
|
|
311
276
|
}
|
|
312
277
|
|
|
278
|
+
declare type CurveShape = Curve & {
|
|
279
|
+
style?: ShapeStyle;
|
|
280
|
+
};
|
|
281
|
+
|
|
313
282
|
declare type CurveType = ClosedCurveType | OpenCurveType;
|
|
314
283
|
|
|
315
284
|
declare class CustomAttributeCreate extends OperationBase {
|
|
@@ -627,7 +596,7 @@ export declare interface ElementData extends BaseData {
|
|
|
627
596
|
parent: ElementData;
|
|
628
597
|
}
|
|
629
598
|
|
|
630
|
-
export declare interface ElementFilter extends
|
|
599
|
+
export declare interface ElementFilter extends BaseNodeFilter {
|
|
631
600
|
product?: ProductFilter;
|
|
632
601
|
category?: StringComparator;
|
|
633
602
|
subCategory?: StringComparator;
|
|
@@ -641,20 +610,6 @@ export declare interface ElementFilter extends BaseFilter {
|
|
|
641
610
|
isExternal?: BooleanComparator;
|
|
642
611
|
}
|
|
643
612
|
|
|
644
|
-
declare interface ElementFilter_2 extends BaseFilter_2 {
|
|
645
|
-
product?: ProductFilter_2;
|
|
646
|
-
category?: StringComparator_2;
|
|
647
|
-
subCategory?: StringComparator_2;
|
|
648
|
-
/** point query */
|
|
649
|
-
at?: Vector2;
|
|
650
|
-
/** 2d bounding box intersection */
|
|
651
|
-
within?: {
|
|
652
|
-
min: Vector2;
|
|
653
|
-
max: Vector2;
|
|
654
|
-
};
|
|
655
|
-
isExternal?: BooleanComparator_2;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
613
|
declare type ElementQuery = {
|
|
659
614
|
select?: ElementSelect;
|
|
660
615
|
where?: ElementFilter;
|
|
@@ -1077,11 +1032,12 @@ declare type GroupRelationType = typeof GroupRelationTypeValue;
|
|
|
1077
1032
|
|
|
1078
1033
|
declare const GroupRelationTypeValue = "relation:group";
|
|
1079
1034
|
|
|
1080
|
-
declare interface GroupShape
|
|
1035
|
+
declare interface GroupShape {
|
|
1081
1036
|
type: 'group';
|
|
1082
|
-
position?:
|
|
1037
|
+
position?: Vector2;
|
|
1083
1038
|
rotation?: number;
|
|
1084
1039
|
children: Shape[];
|
|
1040
|
+
style?: ShapeStyle;
|
|
1085
1041
|
}
|
|
1086
1042
|
|
|
1087
1043
|
/**
|
|
@@ -1235,6 +1191,41 @@ declare type IndexRange = {
|
|
|
1235
1191
|
end: number;
|
|
1236
1192
|
};
|
|
1237
1193
|
|
|
1194
|
+
declare interface LabelAppearance {
|
|
1195
|
+
text?: string;
|
|
1196
|
+
icon?: LabelIcon;
|
|
1197
|
+
fontSize?: number;
|
|
1198
|
+
color?: string;
|
|
1199
|
+
textOutline?: boolean;
|
|
1200
|
+
/** Only render within this zoom range */
|
|
1201
|
+
visible?: [number, number];
|
|
1202
|
+
fixedScreenSize?: boolean | [number, number];
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
declare interface LabelIcon {
|
|
1206
|
+
/** Well-known symbol id, e.g. 'iso7010:F001' (fire extinguisher). Preferred over uri */
|
|
1207
|
+
symbol?: string;
|
|
1208
|
+
/** Custom SVG by URI (SVG-only, so every output stays vector), for icons outside the symbol library */
|
|
1209
|
+
uri?: string;
|
|
1210
|
+
/** Icon height in meters at world scale; the label's fixedScreenSize applies on top */
|
|
1211
|
+
size?: number;
|
|
1212
|
+
/** Arrangement relative to the text when both are set. Default 'above' */
|
|
1213
|
+
placement?: 'above' | 'below' | 'left' | 'right';
|
|
1214
|
+
/** Tint for monochrome symbols */
|
|
1215
|
+
color?: string;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
declare interface LabelRule extends LabelAppearance {
|
|
1219
|
+
query: NodeQuery;
|
|
1220
|
+
offset?: Vector2;
|
|
1221
|
+
frame?: 'local' | 'world';
|
|
1222
|
+
overrides?: Record<string, {
|
|
1223
|
+
offset?: Vector2;
|
|
1224
|
+
hidden?: boolean;
|
|
1225
|
+
}>;
|
|
1226
|
+
name?: string;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1238
1229
|
declare class Layout2dView extends LayoutViewBase {
|
|
1239
1230
|
type: Layout2dViewType;
|
|
1240
1231
|
parameters: Layout2dViewParameters;
|
|
@@ -1321,7 +1312,7 @@ declare type Layout3dViewType = typeof Layout3dViewTypeValue;
|
|
|
1321
1312
|
|
|
1322
1313
|
declare const Layout3dViewTypeValue = "view:3d";
|
|
1323
1314
|
|
|
1324
|
-
declare type LayoutAnnotation = LayoutFloorPlanDxfAnnotation | LayoutFloorPlanImageAnnotation;
|
|
1315
|
+
declare type LayoutAnnotation = LayoutFloorPlanDxfAnnotation | LayoutFloorPlanImageAnnotation | LayoutLabelAnnotation;
|
|
1325
1316
|
|
|
1326
1317
|
declare class LayoutAnnotationBase extends LayoutNodeBase {
|
|
1327
1318
|
type: LayoutAnnotationType;
|
|
@@ -1341,13 +1332,13 @@ declare interface LayoutAnnotationBaseJson extends LayoutNodeBaseJson {
|
|
|
1341
1332
|
parameters?: LayoutAnnotationParametersJson;
|
|
1342
1333
|
}
|
|
1343
1334
|
|
|
1344
|
-
declare type LayoutAnnotationJson = LayoutFloorPlanDxfAnnotationJson | LayoutFloorPlanImageAnnotationJson;
|
|
1335
|
+
declare type LayoutAnnotationJson = LayoutFloorPlanDxfAnnotationJson | LayoutFloorPlanImageAnnotationJson | LayoutLabelAnnotationJson;
|
|
1345
1336
|
|
|
1346
|
-
declare type LayoutAnnotationParameters = LayoutFloorPlanDxfParameters | LayoutFloorPlanImageParameters;
|
|
1337
|
+
declare type LayoutAnnotationParameters = LayoutFloorPlanDxfParameters | LayoutFloorPlanImageParameters | LayoutLabelAnnotationParameters;
|
|
1347
1338
|
|
|
1348
|
-
declare type LayoutAnnotationParametersJson = LayoutFloorPlanDxfParametersJson | LayoutFloorPlanImageParametersJson;
|
|
1339
|
+
declare type LayoutAnnotationParametersJson = LayoutFloorPlanDxfParametersJson | LayoutFloorPlanImageParametersJson | LayoutLabelAnnotationParametersJson;
|
|
1349
1340
|
|
|
1350
|
-
declare type LayoutAnnotationType = LayoutFloorPlanDxfType | LayoutFloorPlanImageType;
|
|
1341
|
+
declare type LayoutAnnotationType = LayoutFloorPlanDxfType | LayoutFloorPlanImageType | LayoutLabelAnnotationType;
|
|
1351
1342
|
|
|
1352
1343
|
declare class LayoutAsset extends LayoutTransformElementBase {
|
|
1353
1344
|
type: LayoutAssetType;
|
|
@@ -1845,6 +1836,32 @@ declare type LayoutKitchenType = typeof LayoutKitchenTypeValue;
|
|
|
1845
1836
|
|
|
1846
1837
|
declare const LayoutKitchenTypeValue = "element:kitchen";
|
|
1847
1838
|
|
|
1839
|
+
declare class LayoutLabelAnnotation extends LayoutAnnotationBase {
|
|
1840
|
+
type: LayoutLabelAnnotationType;
|
|
1841
|
+
parameters: LayoutLabelAnnotationParameters;
|
|
1842
|
+
constructor(id: string);
|
|
1843
|
+
setParameters(parameters: RecursivePartial<LayoutLabelAnnotationParameters>): void;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
declare interface LayoutLabelAnnotationJson extends LayoutAnnotationBaseJson {
|
|
1847
|
+
type: LayoutLabelAnnotationType;
|
|
1848
|
+
parameters?: LayoutLabelAnnotationParametersJson;
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
declare interface LayoutLabelAnnotationParameters extends LabelAppearance {
|
|
1852
|
+
anchor?: {
|
|
1853
|
+
node: string;
|
|
1854
|
+
offset?: Vector2;
|
|
1855
|
+
frame?: 'local' | 'world';
|
|
1856
|
+
};
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
declare type LayoutLabelAnnotationParametersJson = LayoutLabelAnnotationParameters;
|
|
1860
|
+
|
|
1861
|
+
declare type LayoutLabelAnnotationType = typeof LayoutLabelAnnotationTypeValue;
|
|
1862
|
+
|
|
1863
|
+
declare const LayoutLabelAnnotationTypeValue = "annotation:label";
|
|
1864
|
+
|
|
1848
1865
|
declare type LayoutNode = SpatialGraphNode_2 | LayoutSpace | LayoutElement | LayoutAnnotation | LayoutView;
|
|
1849
1866
|
|
|
1850
1867
|
declare class LayoutNodeBase extends SpaceGraphNodeWithCustomAttributesBase {
|
|
@@ -2262,7 +2279,7 @@ declare const LayoutUpdateTypeValue = "operation:layoutUpdate";
|
|
|
2262
2279
|
|
|
2263
2280
|
declare type LayoutUpdateValue = Partial<SpaceGraphNodeWithCustomAttributesBaseJson>;
|
|
2264
2281
|
|
|
2265
|
-
declare type LayoutView = Layout2dView | Layout3dView;
|
|
2282
|
+
declare type LayoutView = Layout2dView | Layout3dView | LayoutViewStyle;
|
|
2266
2283
|
|
|
2267
2284
|
declare class LayoutViewBase extends LayoutNodeBase {
|
|
2268
2285
|
type: LayoutViewType;
|
|
@@ -2277,13 +2294,36 @@ declare interface LayoutViewBaseJson extends LayoutNodeBaseJson {
|
|
|
2277
2294
|
parameters?: LayoutViewParametersJson;
|
|
2278
2295
|
}
|
|
2279
2296
|
|
|
2280
|
-
declare type LayoutViewJson = Layout2dViewJson | Layout3dViewJson;
|
|
2297
|
+
declare type LayoutViewJson = Layout2dViewJson | Layout3dViewJson | LayoutViewStyleJson;
|
|
2298
|
+
|
|
2299
|
+
declare type LayoutViewParameters = Layout2dViewParameters | Layout3dViewParameters | LayoutViewStyleParameters;
|
|
2300
|
+
|
|
2301
|
+
declare type LayoutViewParametersJson = Layout2dViewParametersJson | Layout3dViewParametersJson | LayoutViewStyleParametersJson;
|
|
2302
|
+
|
|
2303
|
+
declare class LayoutViewStyle extends LayoutViewBase {
|
|
2304
|
+
type: LayoutViewStyleType;
|
|
2305
|
+
parameters: LayoutViewStyleParameters;
|
|
2306
|
+
constructor(id: string);
|
|
2307
|
+
setParameters(parameters: RecursivePartial<LayoutViewStyleParameters>): void;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
declare interface LayoutViewStyleJson extends LayoutViewBaseJson {
|
|
2311
|
+
type: LayoutViewStyleType;
|
|
2312
|
+
parameters?: LayoutViewStyleParametersJson;
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
declare interface LayoutViewStyleParameters {
|
|
2316
|
+
labelRules?: LabelRule[];
|
|
2317
|
+
annotations?: string[];
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
declare type LayoutViewStyleParametersJson = LayoutViewStyleParameters;
|
|
2281
2321
|
|
|
2282
|
-
declare type
|
|
2322
|
+
declare type LayoutViewStyleType = typeof LayoutViewStyleTypeValue;
|
|
2283
2323
|
|
|
2284
|
-
declare
|
|
2324
|
+
declare const LayoutViewStyleTypeValue = "view:style";
|
|
2285
2325
|
|
|
2286
|
-
declare type LayoutViewType = Layout2dViewType | Layout3dViewType;
|
|
2326
|
+
declare type LayoutViewType = Layout2dViewType | Layout3dViewType | LayoutViewStyleType;
|
|
2287
2327
|
|
|
2288
2328
|
declare class LayoutWall extends LayoutEdgeElementBase {
|
|
2289
2329
|
type: LayoutWallType;
|
|
@@ -2292,6 +2332,8 @@ declare class LayoutWall extends LayoutEdgeElementBase {
|
|
|
2292
2332
|
constructor(id: string, edges: SpatialGraphEdge[]);
|
|
2293
2333
|
copyForClone(wall: LayoutWall): void;
|
|
2294
2334
|
setParameters(parameters: RecursivePartial<LayoutWallParameters>): void;
|
|
2335
|
+
insertElement(element: LayoutElement): void;
|
|
2336
|
+
removeElement(element: LayoutElement): void;
|
|
2295
2337
|
calculateBoundingBox(): BoundingBox3d;
|
|
2296
2338
|
}
|
|
2297
2339
|
|
|
@@ -2367,12 +2409,6 @@ declare interface LineCurve extends CurveBase {
|
|
|
2367
2409
|
end: Vector2;
|
|
2368
2410
|
}
|
|
2369
2411
|
|
|
2370
|
-
declare interface LineCurve_2 extends BaseShape {
|
|
2371
|
-
type: 'curve:line';
|
|
2372
|
-
start: Vector2_2;
|
|
2373
|
-
end: Vector2_2;
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2376
2412
|
declare type LineCurveType = typeof LineCurveTypeValue;
|
|
2377
2413
|
|
|
2378
2414
|
declare const LineCurveTypeValue = "curve:line";
|
|
@@ -2448,14 +2484,26 @@ declare type NodeLabel = {
|
|
|
2448
2484
|
text?: Rgb;
|
|
2449
2485
|
textOutline?: boolean;
|
|
2450
2486
|
/** Only render the label when zoom is within [min, max]. */
|
|
2451
|
-
visible?:
|
|
2487
|
+
visible?: ZoomRange;
|
|
2452
2488
|
/**
|
|
2453
2489
|
* Controls fixed screen size (1/zoom) scaling:
|
|
2454
2490
|
* - `false`: render at world scale
|
|
2455
2491
|
* - `true` or omitted: always apply 1/zoom scaling
|
|
2456
2492
|
* - `[min, max]`: apply 1/zoom scaling within the zoom range; outside it, clamp to the scale at the boundary (1/min or 1/max) to avoid jumps
|
|
2457
2493
|
*/
|
|
2458
|
-
fixedScreenSize?: boolean |
|
|
2494
|
+
fixedScreenSize?: boolean | ZoomRange;
|
|
2495
|
+
};
|
|
2496
|
+
|
|
2497
|
+
/**
|
|
2498
|
+
* A persisted node query. The explicit target tells consumers whether to
|
|
2499
|
+
* resolve the filter with queryElements or querySpaces
|
|
2500
|
+
*/
|
|
2501
|
+
declare type NodeQuery = {
|
|
2502
|
+
target: 'elements';
|
|
2503
|
+
where: ElementFilter;
|
|
2504
|
+
} | {
|
|
2505
|
+
target: 'spaces';
|
|
2506
|
+
where: SpaceFilter;
|
|
2459
2507
|
};
|
|
2460
2508
|
|
|
2461
2509
|
declare type NodeResult = {
|
|
@@ -2473,10 +2521,6 @@ declare type NullComparator = {
|
|
|
2473
2521
|
null: boolean;
|
|
2474
2522
|
};
|
|
2475
2523
|
|
|
2476
|
-
declare type NullComparator_2 = {
|
|
2477
|
-
null: boolean;
|
|
2478
|
-
};
|
|
2479
|
-
|
|
2480
2524
|
declare type NumberComparator = number | {
|
|
2481
2525
|
eq: number;
|
|
2482
2526
|
} | {
|
|
@@ -2495,24 +2539,6 @@ declare type NumberComparator = number | {
|
|
|
2495
2539
|
lte: number;
|
|
2496
2540
|
};
|
|
2497
2541
|
|
|
2498
|
-
declare type NumberComparator_2 = number | {
|
|
2499
|
-
eq: number;
|
|
2500
|
-
} | {
|
|
2501
|
-
neq: number;
|
|
2502
|
-
} | {
|
|
2503
|
-
in: number[];
|
|
2504
|
-
} | {
|
|
2505
|
-
nin: number[];
|
|
2506
|
-
} | {
|
|
2507
|
-
gt: number;
|
|
2508
|
-
} | {
|
|
2509
|
-
gte: number;
|
|
2510
|
-
} | {
|
|
2511
|
-
lt: number;
|
|
2512
|
-
} | {
|
|
2513
|
-
lte: number;
|
|
2514
|
-
};
|
|
2515
|
-
|
|
2516
2542
|
declare interface NumberField extends BaseField {
|
|
2517
2543
|
type: 'number';
|
|
2518
2544
|
min: number;
|
|
@@ -2535,11 +2561,9 @@ declare interface NumberRange extends SpaceGraphTypedValueJson {
|
|
|
2535
2561
|
};
|
|
2536
2562
|
}
|
|
2537
2563
|
|
|
2538
|
-
declare type OpenCurve = LineCurve | PolylineCurve | ArcCurve;
|
|
2539
|
-
|
|
2540
|
-
declare type OpenCurves = LineCurve_2 | ArcCurve_2 | PolylineCurve_2 | BezierCurve;
|
|
2564
|
+
declare type OpenCurve = LineCurve | PolylineCurve | ArcCurve | BezierCurve;
|
|
2541
2565
|
|
|
2542
|
-
declare type OpenCurveType = LineCurveType | PolylineCurveType | ArcCurveType;
|
|
2566
|
+
declare type OpenCurveType = LineCurveType | PolylineCurveType | ArcCurveType | BezierCurveType;
|
|
2543
2567
|
|
|
2544
2568
|
declare class OperationBase {
|
|
2545
2569
|
/** @format uuid */
|
|
@@ -2624,37 +2648,22 @@ declare const PlaneGeometryTypeValue = "geometry:plane";
|
|
|
2624
2648
|
|
|
2625
2649
|
declare type Polygon = Vector2[];
|
|
2626
2650
|
|
|
2627
|
-
declare type Polygon_2 = Vector2_2[];
|
|
2628
|
-
|
|
2629
2651
|
declare interface PolygonCurve extends CurveBase {
|
|
2630
2652
|
type: PolygonCurveType;
|
|
2631
2653
|
points: Vector2[];
|
|
2632
2654
|
}
|
|
2633
2655
|
|
|
2634
|
-
declare interface PolygonCurve_2 extends BaseShape {
|
|
2635
|
-
type: 'curve:polygon';
|
|
2636
|
-
points: Polygon_2;
|
|
2637
|
-
}
|
|
2638
|
-
|
|
2639
2656
|
declare type PolygonCurveType = typeof PolygonCurveTypeValue;
|
|
2640
2657
|
|
|
2641
2658
|
declare const PolygonCurveTypeValue = "curve:polygon";
|
|
2642
2659
|
|
|
2643
2660
|
declare type PolygonWithHoles = Vector2[][];
|
|
2644
2661
|
|
|
2645
|
-
/** outer ring counter clockwise, inner rings ( holes ) clockwise */
|
|
2646
|
-
declare type PolygonWithHoles_2 = Polygon_2[];
|
|
2647
|
-
|
|
2648
2662
|
declare interface PolygonWithHolesCurve extends CurveBase {
|
|
2649
2663
|
type: PolygonWithHolesCurveType;
|
|
2650
2664
|
polygons: Vector2[][];
|
|
2651
2665
|
}
|
|
2652
2666
|
|
|
2653
|
-
declare interface PolygonWithHolesCurve_2 extends BaseShape {
|
|
2654
|
-
type: 'curve:polygonWithHoles';
|
|
2655
|
-
polygons: PolygonWithHoles_2;
|
|
2656
|
-
}
|
|
2657
|
-
|
|
2658
2667
|
declare type PolygonWithHolesCurveType = typeof PolygonWithHolesCurveTypeValue;
|
|
2659
2668
|
|
|
2660
2669
|
declare const PolygonWithHolesCurveTypeValue = "curve:polygonWithHoles";
|
|
@@ -2664,11 +2673,6 @@ declare interface PolylineCurve extends CurveBase {
|
|
|
2664
2673
|
points: Vector2[];
|
|
2665
2674
|
}
|
|
2666
2675
|
|
|
2667
|
-
declare interface PolylineCurve_2 extends BaseShape {
|
|
2668
|
-
type: 'curve:polyline';
|
|
2669
|
-
points: Polygon_2;
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
2676
|
declare type PolylineCurveType = typeof PolylineCurveTypeValue;
|
|
2673
2677
|
|
|
2674
2678
|
declare const PolylineCurveTypeValue = "curve:polyline";
|
|
@@ -2700,18 +2704,12 @@ export declare interface ProductData extends BaseData {
|
|
|
2700
2704
|
seatCapacity: number;
|
|
2701
2705
|
}
|
|
2702
2706
|
|
|
2703
|
-
declare interface ProductFilter extends
|
|
2707
|
+
declare interface ProductFilter extends BaseNodeFilter {
|
|
2704
2708
|
category?: StringComparator;
|
|
2705
2709
|
subCategory?: StringComparator;
|
|
2706
2710
|
seatCapacity?: NumberComparator;
|
|
2707
2711
|
}
|
|
2708
2712
|
|
|
2709
|
-
declare interface ProductFilter_2 extends BaseFilter_2 {
|
|
2710
|
-
category?: StringComparator_2;
|
|
2711
|
-
subCategory?: StringComparator_2;
|
|
2712
|
-
seatCapacity?: NumberComparator_2;
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
2713
|
declare class ProductRemove extends OperationBase {
|
|
2716
2714
|
type: typeof ProductRemoveTypeValue;
|
|
2717
2715
|
value: ProductRemoveValue;
|
|
@@ -2762,15 +2760,10 @@ export declare type QueryPick<T, S> = {
|
|
|
2762
2760
|
|
|
2763
2761
|
declare interface RectangleCurve extends CurveBase {
|
|
2764
2762
|
type: RectangleCurveType;
|
|
2763
|
+
position?: Vector2;
|
|
2765
2764
|
dimensions: Vector2;
|
|
2766
2765
|
}
|
|
2767
2766
|
|
|
2768
|
-
declare interface RectangleCurve_2 extends BaseShape {
|
|
2769
|
-
type: 'curve:rectangle';
|
|
2770
|
-
position: Vector2_2;
|
|
2771
|
-
dimensions: [number, number];
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
2767
|
declare type RectangleCurveType = typeof RectangleCurveTypeValue;
|
|
2775
2768
|
|
|
2776
2769
|
declare const RectangleCurveTypeValue = "curve:rectangle";
|
|
@@ -2866,7 +2859,7 @@ declare interface SelectOption {
|
|
|
2866
2859
|
label: string;
|
|
2867
2860
|
}
|
|
2868
2861
|
|
|
2869
|
-
export declare type Shape =
|
|
2862
|
+
export declare type Shape = CurveShape | TextShape | GroupShape;
|
|
2870
2863
|
|
|
2871
2864
|
declare interface ShapeStyle {
|
|
2872
2865
|
stroke?: string | number | number[];
|
|
@@ -2908,7 +2901,7 @@ export declare interface SpaceData extends BaseData {
|
|
|
2908
2901
|
boundaries: BoundaryData[];
|
|
2909
2902
|
}
|
|
2910
2903
|
|
|
2911
|
-
export declare interface SpaceFilter extends
|
|
2904
|
+
export declare interface SpaceFilter extends BaseNodeFilter {
|
|
2912
2905
|
category?: StringComparator;
|
|
2913
2906
|
subCategory?: StringComparator;
|
|
2914
2907
|
seatCapacity?: NumberComparator;
|
|
@@ -2923,21 +2916,6 @@ export declare interface SpaceFilter extends BaseFilter {
|
|
|
2923
2916
|
};
|
|
2924
2917
|
}
|
|
2925
2918
|
|
|
2926
|
-
declare interface SpaceFilter_2 extends BaseFilter_2 {
|
|
2927
|
-
category?: StringComparator_2;
|
|
2928
|
-
subCategory?: StringComparator_2;
|
|
2929
|
-
seatCapacity?: NumberComparator_2;
|
|
2930
|
-
isExternal?: BooleanComparator_2;
|
|
2931
|
-
area?: NumberComparator_2;
|
|
2932
|
-
/** point query */
|
|
2933
|
-
at?: Vector2;
|
|
2934
|
-
/** 2d bounding box intersection */
|
|
2935
|
-
within?: {
|
|
2936
|
-
min: Vector2;
|
|
2937
|
-
max: Vector2;
|
|
2938
|
-
};
|
|
2939
|
-
}
|
|
2940
|
-
|
|
2941
2919
|
declare class SpaceGraph {
|
|
2942
2920
|
spatialStructure: SpaceGraphSpatialStructure;
|
|
2943
2921
|
products: SpaceGraphProduct[];
|
|
@@ -2998,8 +2976,10 @@ declare class SpaceGraph {
|
|
|
2998
2976
|
readonly 'layout:space': LayoutSpace;
|
|
2999
2977
|
readonly 'view:2d': Layout2dView;
|
|
3000
2978
|
readonly 'view:3d': Layout3dView;
|
|
2979
|
+
readonly 'view:style': LayoutViewStyle;
|
|
3001
2980
|
readonly 'annotation:floorPlanDxf': LayoutFloorPlanDxfAnnotation;
|
|
3002
2981
|
readonly 'annotation:floorPlanImage': LayoutFloorPlanImageAnnotation;
|
|
2982
|
+
readonly 'annotation:label': LayoutLabelAnnotation;
|
|
3003
2983
|
readonly 'element:ceiling': LayoutBoundarySlab;
|
|
3004
2984
|
readonly 'element:floor': LayoutBoundarySlab;
|
|
3005
2985
|
readonly 'element:boundaryWall': LayoutBoundaryWall;
|
|
@@ -3325,12 +3305,14 @@ declare class SpaceGraphLayout extends SpaceGraphSpatialStructureBase {
|
|
|
3325
3305
|
annotationsByType: NodesByType<{
|
|
3326
3306
|
readonly 'annotation:floorPlanDxf': LayoutFloorPlanDxfAnnotation;
|
|
3327
3307
|
readonly 'annotation:floorPlanImage': LayoutFloorPlanImageAnnotation;
|
|
3308
|
+
readonly 'annotation:label': LayoutLabelAnnotation;
|
|
3328
3309
|
}>;
|
|
3329
3310
|
views: LayoutView[];
|
|
3330
3311
|
viewsById: Record<string, LayoutView>;
|
|
3331
3312
|
viewsByType: NodesByType<{
|
|
3332
3313
|
readonly 'view:2d': Layout2dView;
|
|
3333
3314
|
readonly 'view:3d': Layout3dView;
|
|
3315
|
+
readonly 'view:style': LayoutViewStyle;
|
|
3334
3316
|
}>;
|
|
3335
3317
|
spatialIndex: SpatialIndex;
|
|
3336
3318
|
debugIds: boolean;
|
|
@@ -3804,22 +3786,10 @@ declare type StringComparator = string | {
|
|
|
3804
3786
|
contains: string;
|
|
3805
3787
|
};
|
|
3806
3788
|
|
|
3807
|
-
declare type StringComparator_2 = string | {
|
|
3808
|
-
eq: string;
|
|
3809
|
-
} | {
|
|
3810
|
-
neq: string;
|
|
3811
|
-
} | {
|
|
3812
|
-
in: string[];
|
|
3813
|
-
} | {
|
|
3814
|
-
nin: string[];
|
|
3815
|
-
} | {
|
|
3816
|
-
contains: string;
|
|
3817
|
-
};
|
|
3818
|
-
|
|
3819
3789
|
declare type StyleByKey = Record<string, ShapeStyle>;
|
|
3820
3790
|
|
|
3821
3791
|
declare type StyledFilter = {
|
|
3822
|
-
where:
|
|
3792
|
+
where: ElementFilter | SpaceFilter;
|
|
3823
3793
|
style: ShapeStyle;
|
|
3824
3794
|
};
|
|
3825
3795
|
|
|
@@ -3842,14 +3812,15 @@ declare interface TextField extends BaseField {
|
|
|
3842
3812
|
default?: string;
|
|
3843
3813
|
}
|
|
3844
3814
|
|
|
3845
|
-
declare interface TextShape
|
|
3815
|
+
declare interface TextShape {
|
|
3846
3816
|
type: 'text';
|
|
3847
|
-
position:
|
|
3817
|
+
position: Vector2;
|
|
3848
3818
|
text: string;
|
|
3849
3819
|
rotation?: number;
|
|
3850
3820
|
alignV?: 'center' | 'bottom' | 'top';
|
|
3851
3821
|
alignH?: 'center' | 'left' | 'right';
|
|
3852
3822
|
fontSize?: number;
|
|
3823
|
+
style?: ShapeStyle;
|
|
3853
3824
|
}
|
|
3854
3825
|
|
|
3855
3826
|
declare type Texture = {
|
|
@@ -4065,4 +4036,7 @@ declare type ViewUpdateValue = Partial<LayoutViewJson> & {
|
|
|
4065
4036
|
parameters?: Partial<LayoutViewJson['parameters']>;
|
|
4066
4037
|
};
|
|
4067
4038
|
|
|
4039
|
+
/** A `[min, max]` zoom range (inclusive bounds) used for zoom-dependent rendering. */
|
|
4040
|
+
declare type ZoomRange = [min: number, max: number];
|
|
4041
|
+
|
|
4068
4042
|
export { }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archilogic/extension-sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@archilogic/floor-plan-core": "^5.
|
|
32
|
-
"@archilogic/space-graph-sdk": "^0.
|
|
33
|
-
"vite-plugin-static-copy": "^
|
|
31
|
+
"@archilogic/floor-plan-core": "^5.8.2",
|
|
32
|
+
"@archilogic/space-graph-sdk": "^0.10.0",
|
|
33
|
+
"vite-plugin-static-copy": "^4.1.1"
|
|
34
34
|
},
|
|
35
35
|
"nx": {}
|
|
36
36
|
}
|