@archilogic/extension-sdk 0.13.1 → 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 +6 -0
- package/dist/index.d.ts +139 -170
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
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
|
+
}
|
|
2281
2309
|
|
|
2282
|
-
declare
|
|
2310
|
+
declare interface LayoutViewStyleJson extends LayoutViewBaseJson {
|
|
2311
|
+
type: LayoutViewStyleType;
|
|
2312
|
+
parameters?: LayoutViewStyleParametersJson;
|
|
2313
|
+
}
|
|
2283
2314
|
|
|
2284
|
-
declare
|
|
2315
|
+
declare interface LayoutViewStyleParameters {
|
|
2316
|
+
labelRules?: LabelRule[];
|
|
2317
|
+
annotations?: string[];
|
|
2318
|
+
}
|
|
2285
2319
|
|
|
2286
|
-
declare type
|
|
2320
|
+
declare type LayoutViewStyleParametersJson = LayoutViewStyleParameters;
|
|
2321
|
+
|
|
2322
|
+
declare type LayoutViewStyleType = typeof LayoutViewStyleTypeValue;
|
|
2323
|
+
|
|
2324
|
+
declare const LayoutViewStyleTypeValue = "view:style";
|
|
2325
|
+
|
|
2326
|
+
declare type LayoutViewType = Layout2dViewType | Layout3dViewType | LayoutViewStyleType;
|
|
2287
2327
|
|
|
2288
2328
|
declare class LayoutWall extends LayoutEdgeElementBase {
|
|
2289
2329
|
type: LayoutWallType;
|
|
@@ -2369,12 +2409,6 @@ declare interface LineCurve extends CurveBase {
|
|
|
2369
2409
|
end: Vector2;
|
|
2370
2410
|
}
|
|
2371
2411
|
|
|
2372
|
-
declare interface LineCurve_2 extends BaseShape {
|
|
2373
|
-
type: 'curve:line';
|
|
2374
|
-
start: Vector2_2;
|
|
2375
|
-
end: Vector2_2;
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
2412
|
declare type LineCurveType = typeof LineCurveTypeValue;
|
|
2379
2413
|
|
|
2380
2414
|
declare const LineCurveTypeValue = "curve:line";
|
|
@@ -2460,6 +2494,18 @@ declare type NodeLabel = {
|
|
|
2460
2494
|
fixedScreenSize?: boolean | ZoomRange;
|
|
2461
2495
|
};
|
|
2462
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;
|
|
2507
|
+
};
|
|
2508
|
+
|
|
2463
2509
|
declare type NodeResult = {
|
|
2464
2510
|
id: string;
|
|
2465
2511
|
type: string;
|
|
@@ -2475,10 +2521,6 @@ declare type NullComparator = {
|
|
|
2475
2521
|
null: boolean;
|
|
2476
2522
|
};
|
|
2477
2523
|
|
|
2478
|
-
declare type NullComparator_2 = {
|
|
2479
|
-
null: boolean;
|
|
2480
|
-
};
|
|
2481
|
-
|
|
2482
2524
|
declare type NumberComparator = number | {
|
|
2483
2525
|
eq: number;
|
|
2484
2526
|
} | {
|
|
@@ -2497,24 +2539,6 @@ declare type NumberComparator = number | {
|
|
|
2497
2539
|
lte: number;
|
|
2498
2540
|
};
|
|
2499
2541
|
|
|
2500
|
-
declare type NumberComparator_2 = number | {
|
|
2501
|
-
eq: number;
|
|
2502
|
-
} | {
|
|
2503
|
-
neq: number;
|
|
2504
|
-
} | {
|
|
2505
|
-
in: number[];
|
|
2506
|
-
} | {
|
|
2507
|
-
nin: number[];
|
|
2508
|
-
} | {
|
|
2509
|
-
gt: number;
|
|
2510
|
-
} | {
|
|
2511
|
-
gte: number;
|
|
2512
|
-
} | {
|
|
2513
|
-
lt: number;
|
|
2514
|
-
} | {
|
|
2515
|
-
lte: number;
|
|
2516
|
-
};
|
|
2517
|
-
|
|
2518
2542
|
declare interface NumberField extends BaseField {
|
|
2519
2543
|
type: 'number';
|
|
2520
2544
|
min: number;
|
|
@@ -2537,11 +2561,9 @@ declare interface NumberRange extends SpaceGraphTypedValueJson {
|
|
|
2537
2561
|
};
|
|
2538
2562
|
}
|
|
2539
2563
|
|
|
2540
|
-
declare type OpenCurve = LineCurve | PolylineCurve | ArcCurve;
|
|
2541
|
-
|
|
2542
|
-
declare type OpenCurves = LineCurve_2 | ArcCurve_2 | PolylineCurve_2 | BezierCurve;
|
|
2564
|
+
declare type OpenCurve = LineCurve | PolylineCurve | ArcCurve | BezierCurve;
|
|
2543
2565
|
|
|
2544
|
-
declare type OpenCurveType = LineCurveType | PolylineCurveType | ArcCurveType;
|
|
2566
|
+
declare type OpenCurveType = LineCurveType | PolylineCurveType | ArcCurveType | BezierCurveType;
|
|
2545
2567
|
|
|
2546
2568
|
declare class OperationBase {
|
|
2547
2569
|
/** @format uuid */
|
|
@@ -2626,37 +2648,22 @@ declare const PlaneGeometryTypeValue = "geometry:plane";
|
|
|
2626
2648
|
|
|
2627
2649
|
declare type Polygon = Vector2[];
|
|
2628
2650
|
|
|
2629
|
-
declare type Polygon_2 = Vector2_2[];
|
|
2630
|
-
|
|
2631
2651
|
declare interface PolygonCurve extends CurveBase {
|
|
2632
2652
|
type: PolygonCurveType;
|
|
2633
2653
|
points: Vector2[];
|
|
2634
2654
|
}
|
|
2635
2655
|
|
|
2636
|
-
declare interface PolygonCurve_2 extends BaseShape {
|
|
2637
|
-
type: 'curve:polygon';
|
|
2638
|
-
points: Polygon_2;
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2641
2656
|
declare type PolygonCurveType = typeof PolygonCurveTypeValue;
|
|
2642
2657
|
|
|
2643
2658
|
declare const PolygonCurveTypeValue = "curve:polygon";
|
|
2644
2659
|
|
|
2645
2660
|
declare type PolygonWithHoles = Vector2[][];
|
|
2646
2661
|
|
|
2647
|
-
/** outer ring counter clockwise, inner rings ( holes ) clockwise */
|
|
2648
|
-
declare type PolygonWithHoles_2 = Polygon_2[];
|
|
2649
|
-
|
|
2650
2662
|
declare interface PolygonWithHolesCurve extends CurveBase {
|
|
2651
2663
|
type: PolygonWithHolesCurveType;
|
|
2652
2664
|
polygons: Vector2[][];
|
|
2653
2665
|
}
|
|
2654
2666
|
|
|
2655
|
-
declare interface PolygonWithHolesCurve_2 extends BaseShape {
|
|
2656
|
-
type: 'curve:polygonWithHoles';
|
|
2657
|
-
polygons: PolygonWithHoles_2;
|
|
2658
|
-
}
|
|
2659
|
-
|
|
2660
2667
|
declare type PolygonWithHolesCurveType = typeof PolygonWithHolesCurveTypeValue;
|
|
2661
2668
|
|
|
2662
2669
|
declare const PolygonWithHolesCurveTypeValue = "curve:polygonWithHoles";
|
|
@@ -2666,11 +2673,6 @@ declare interface PolylineCurve extends CurveBase {
|
|
|
2666
2673
|
points: Vector2[];
|
|
2667
2674
|
}
|
|
2668
2675
|
|
|
2669
|
-
declare interface PolylineCurve_2 extends BaseShape {
|
|
2670
|
-
type: 'curve:polyline';
|
|
2671
|
-
points: Polygon_2;
|
|
2672
|
-
}
|
|
2673
|
-
|
|
2674
2676
|
declare type PolylineCurveType = typeof PolylineCurveTypeValue;
|
|
2675
2677
|
|
|
2676
2678
|
declare const PolylineCurveTypeValue = "curve:polyline";
|
|
@@ -2702,18 +2704,12 @@ export declare interface ProductData extends BaseData {
|
|
|
2702
2704
|
seatCapacity: number;
|
|
2703
2705
|
}
|
|
2704
2706
|
|
|
2705
|
-
declare interface ProductFilter extends
|
|
2707
|
+
declare interface ProductFilter extends BaseNodeFilter {
|
|
2706
2708
|
category?: StringComparator;
|
|
2707
2709
|
subCategory?: StringComparator;
|
|
2708
2710
|
seatCapacity?: NumberComparator;
|
|
2709
2711
|
}
|
|
2710
2712
|
|
|
2711
|
-
declare interface ProductFilter_2 extends BaseFilter_2 {
|
|
2712
|
-
category?: StringComparator_2;
|
|
2713
|
-
subCategory?: StringComparator_2;
|
|
2714
|
-
seatCapacity?: NumberComparator_2;
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
2713
|
declare class ProductRemove extends OperationBase {
|
|
2718
2714
|
type: typeof ProductRemoveTypeValue;
|
|
2719
2715
|
value: ProductRemoveValue;
|
|
@@ -2764,15 +2760,10 @@ export declare type QueryPick<T, S> = {
|
|
|
2764
2760
|
|
|
2765
2761
|
declare interface RectangleCurve extends CurveBase {
|
|
2766
2762
|
type: RectangleCurveType;
|
|
2763
|
+
position?: Vector2;
|
|
2767
2764
|
dimensions: Vector2;
|
|
2768
2765
|
}
|
|
2769
2766
|
|
|
2770
|
-
declare interface RectangleCurve_2 extends BaseShape {
|
|
2771
|
-
type: 'curve:rectangle';
|
|
2772
|
-
position: Vector2_2;
|
|
2773
|
-
dimensions: [number, number];
|
|
2774
|
-
}
|
|
2775
|
-
|
|
2776
2767
|
declare type RectangleCurveType = typeof RectangleCurveTypeValue;
|
|
2777
2768
|
|
|
2778
2769
|
declare const RectangleCurveTypeValue = "curve:rectangle";
|
|
@@ -2868,7 +2859,7 @@ declare interface SelectOption {
|
|
|
2868
2859
|
label: string;
|
|
2869
2860
|
}
|
|
2870
2861
|
|
|
2871
|
-
export declare type Shape =
|
|
2862
|
+
export declare type Shape = CurveShape | TextShape | GroupShape;
|
|
2872
2863
|
|
|
2873
2864
|
declare interface ShapeStyle {
|
|
2874
2865
|
stroke?: string | number | number[];
|
|
@@ -2910,7 +2901,7 @@ export declare interface SpaceData extends BaseData {
|
|
|
2910
2901
|
boundaries: BoundaryData[];
|
|
2911
2902
|
}
|
|
2912
2903
|
|
|
2913
|
-
export declare interface SpaceFilter extends
|
|
2904
|
+
export declare interface SpaceFilter extends BaseNodeFilter {
|
|
2914
2905
|
category?: StringComparator;
|
|
2915
2906
|
subCategory?: StringComparator;
|
|
2916
2907
|
seatCapacity?: NumberComparator;
|
|
@@ -2925,21 +2916,6 @@ export declare interface SpaceFilter extends BaseFilter {
|
|
|
2925
2916
|
};
|
|
2926
2917
|
}
|
|
2927
2918
|
|
|
2928
|
-
declare interface SpaceFilter_2 extends BaseFilter_2 {
|
|
2929
|
-
category?: StringComparator_2;
|
|
2930
|
-
subCategory?: StringComparator_2;
|
|
2931
|
-
seatCapacity?: NumberComparator_2;
|
|
2932
|
-
isExternal?: BooleanComparator_2;
|
|
2933
|
-
area?: NumberComparator_2;
|
|
2934
|
-
/** point query */
|
|
2935
|
-
at?: Vector2;
|
|
2936
|
-
/** 2d bounding box intersection */
|
|
2937
|
-
within?: {
|
|
2938
|
-
min: Vector2;
|
|
2939
|
-
max: Vector2;
|
|
2940
|
-
};
|
|
2941
|
-
}
|
|
2942
|
-
|
|
2943
2919
|
declare class SpaceGraph {
|
|
2944
2920
|
spatialStructure: SpaceGraphSpatialStructure;
|
|
2945
2921
|
products: SpaceGraphProduct[];
|
|
@@ -3000,8 +2976,10 @@ declare class SpaceGraph {
|
|
|
3000
2976
|
readonly 'layout:space': LayoutSpace;
|
|
3001
2977
|
readonly 'view:2d': Layout2dView;
|
|
3002
2978
|
readonly 'view:3d': Layout3dView;
|
|
2979
|
+
readonly 'view:style': LayoutViewStyle;
|
|
3003
2980
|
readonly 'annotation:floorPlanDxf': LayoutFloorPlanDxfAnnotation;
|
|
3004
2981
|
readonly 'annotation:floorPlanImage': LayoutFloorPlanImageAnnotation;
|
|
2982
|
+
readonly 'annotation:label': LayoutLabelAnnotation;
|
|
3005
2983
|
readonly 'element:ceiling': LayoutBoundarySlab;
|
|
3006
2984
|
readonly 'element:floor': LayoutBoundarySlab;
|
|
3007
2985
|
readonly 'element:boundaryWall': LayoutBoundaryWall;
|
|
@@ -3327,12 +3305,14 @@ declare class SpaceGraphLayout extends SpaceGraphSpatialStructureBase {
|
|
|
3327
3305
|
annotationsByType: NodesByType<{
|
|
3328
3306
|
readonly 'annotation:floorPlanDxf': LayoutFloorPlanDxfAnnotation;
|
|
3329
3307
|
readonly 'annotation:floorPlanImage': LayoutFloorPlanImageAnnotation;
|
|
3308
|
+
readonly 'annotation:label': LayoutLabelAnnotation;
|
|
3330
3309
|
}>;
|
|
3331
3310
|
views: LayoutView[];
|
|
3332
3311
|
viewsById: Record<string, LayoutView>;
|
|
3333
3312
|
viewsByType: NodesByType<{
|
|
3334
3313
|
readonly 'view:2d': Layout2dView;
|
|
3335
3314
|
readonly 'view:3d': Layout3dView;
|
|
3315
|
+
readonly 'view:style': LayoutViewStyle;
|
|
3336
3316
|
}>;
|
|
3337
3317
|
spatialIndex: SpatialIndex;
|
|
3338
3318
|
debugIds: boolean;
|
|
@@ -3806,22 +3786,10 @@ declare type StringComparator = string | {
|
|
|
3806
3786
|
contains: string;
|
|
3807
3787
|
};
|
|
3808
3788
|
|
|
3809
|
-
declare type StringComparator_2 = string | {
|
|
3810
|
-
eq: string;
|
|
3811
|
-
} | {
|
|
3812
|
-
neq: string;
|
|
3813
|
-
} | {
|
|
3814
|
-
in: string[];
|
|
3815
|
-
} | {
|
|
3816
|
-
nin: string[];
|
|
3817
|
-
} | {
|
|
3818
|
-
contains: string;
|
|
3819
|
-
};
|
|
3820
|
-
|
|
3821
3789
|
declare type StyleByKey = Record<string, ShapeStyle>;
|
|
3822
3790
|
|
|
3823
3791
|
declare type StyledFilter = {
|
|
3824
|
-
where:
|
|
3792
|
+
where: ElementFilter | SpaceFilter;
|
|
3825
3793
|
style: ShapeStyle;
|
|
3826
3794
|
};
|
|
3827
3795
|
|
|
@@ -3844,14 +3812,15 @@ declare interface TextField extends BaseField {
|
|
|
3844
3812
|
default?: string;
|
|
3845
3813
|
}
|
|
3846
3814
|
|
|
3847
|
-
declare interface TextShape
|
|
3815
|
+
declare interface TextShape {
|
|
3848
3816
|
type: 'text';
|
|
3849
|
-
position:
|
|
3817
|
+
position: Vector2;
|
|
3850
3818
|
text: string;
|
|
3851
3819
|
rotation?: number;
|
|
3852
3820
|
alignV?: 'center' | 'bottom' | 'top';
|
|
3853
3821
|
alignH?: 'center' | 'left' | 'right';
|
|
3854
3822
|
fontSize?: number;
|
|
3823
|
+
style?: ShapeStyle;
|
|
3855
3824
|
}
|
|
3856
3825
|
|
|
3857
3826
|
declare type Texture = {
|
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,8 +28,8 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@archilogic/floor-plan-core": "^5.8.
|
|
32
|
-
"@archilogic/space-graph-sdk": "^0.
|
|
31
|
+
"@archilogic/floor-plan-core": "^5.8.2",
|
|
32
|
+
"@archilogic/space-graph-sdk": "^0.10.0",
|
|
33
33
|
"vite-plugin-static-copy": "^4.1.1"
|
|
34
34
|
},
|
|
35
35
|
"nx": {}
|