@archilogic/extension-sdk 0.7.0 → 0.8.0
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 +34 -3
- package/dist/manifest-schema.json +4 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @archilogic/extension-sdk
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- be74edc: feat(extension-sdk): update space-graph-sdk
|
|
8
|
+
|
|
9
|
+
## 0.7.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 9b06638: feat: add description to extension manifest
|
|
14
|
+
|
|
3
15
|
## 0.7.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -109,9 +109,9 @@ declare interface BaseField {
|
|
|
109
109
|
declare interface BaseFilter {
|
|
110
110
|
id?: StringComparator;
|
|
111
111
|
type?: StringComparator;
|
|
112
|
-
name?: StringComparator;
|
|
113
|
-
customId?: StringComparator;
|
|
114
|
-
customAttributes?: Record<string, StringComparator | NumberComparator | BooleanComparator>;
|
|
112
|
+
name?: StringComparator | NullComparator;
|
|
113
|
+
customId?: StringComparator | NullComparator;
|
|
114
|
+
customAttributes?: Record<string, StringComparator | NumberComparator | BooleanComparator | NullComparator>;
|
|
115
115
|
dimensions?: {
|
|
116
116
|
width?: NumberComparator;
|
|
117
117
|
length?: NumberComparator;
|
|
@@ -633,6 +633,8 @@ export declare interface ElementData extends BaseData {
|
|
|
633
633
|
type: LayoutElementJson['type'];
|
|
634
634
|
isExternal: boolean;
|
|
635
635
|
parameters: LayoutElementJson['parameters'];
|
|
636
|
+
category: string;
|
|
637
|
+
subCategory: string;
|
|
636
638
|
product: ProductData;
|
|
637
639
|
/** local transform for nested elements like openings, windows */
|
|
638
640
|
localTransform: SimpleTransform3d;
|
|
@@ -646,6 +648,15 @@ export declare interface ElementData extends BaseData {
|
|
|
646
648
|
|
|
647
649
|
export declare interface ElementFilter extends BaseFilter {
|
|
648
650
|
product?: ProductFilter;
|
|
651
|
+
category?: StringComparator;
|
|
652
|
+
subCategory?: StringComparator;
|
|
653
|
+
/** point query */
|
|
654
|
+
at?: Vector2;
|
|
655
|
+
/** 2d bounding box intersection */
|
|
656
|
+
within?: {
|
|
657
|
+
min: Vector2;
|
|
658
|
+
max: Vector2;
|
|
659
|
+
};
|
|
649
660
|
isExternal?: BooleanComparator;
|
|
650
661
|
}
|
|
651
662
|
|
|
@@ -670,6 +681,8 @@ declare const ElementRemoveTypeValue: "operation:elementRemove";
|
|
|
670
681
|
|
|
671
682
|
export declare interface ElementSelect extends BaseSelect {
|
|
672
683
|
product?: ProductSelect | boolean;
|
|
684
|
+
category?: boolean;
|
|
685
|
+
subCategory?: boolean;
|
|
673
686
|
isExternal?: boolean;
|
|
674
687
|
localBoundingBox?: boolean;
|
|
675
688
|
localTransform?: boolean;
|
|
@@ -777,6 +790,7 @@ export declare type FloorPlanTheme = {
|
|
|
777
790
|
};
|
|
778
791
|
byId?: StyleByKey;
|
|
779
792
|
byFilter?: ThemeStyles['byFilter'];
|
|
793
|
+
/* Excluded from this release type: byResolvedFilter */
|
|
780
794
|
byType?: ThemeStyles['byType'];
|
|
781
795
|
};
|
|
782
796
|
|
|
@@ -2334,12 +2348,18 @@ declare type NodesByType<NodeMap extends NodeTypeMap = {}> = {
|
|
|
2334
2348
|
|
|
2335
2349
|
declare type NodeTypeMap = Record<string, any>;
|
|
2336
2350
|
|
|
2351
|
+
declare type NullComparator = {
|
|
2352
|
+
null: boolean;
|
|
2353
|
+
};
|
|
2354
|
+
|
|
2337
2355
|
declare type NumberComparator = number | {
|
|
2338
2356
|
eq: number;
|
|
2339
2357
|
} | {
|
|
2340
2358
|
neq: number;
|
|
2341
2359
|
} | {
|
|
2342
2360
|
in: number[];
|
|
2361
|
+
} | {
|
|
2362
|
+
nin: number[];
|
|
2343
2363
|
} | {
|
|
2344
2364
|
gt: number;
|
|
2345
2365
|
} | {
|
|
@@ -2763,6 +2783,13 @@ export declare interface SpaceFilter extends BaseFilter {
|
|
|
2763
2783
|
seatCapacity?: NumberComparator;
|
|
2764
2784
|
isExternal?: BooleanComparator;
|
|
2765
2785
|
area?: NumberComparator;
|
|
2786
|
+
/** point query */
|
|
2787
|
+
at?: Vector2;
|
|
2788
|
+
/** 2d bounding box intersection */
|
|
2789
|
+
within?: {
|
|
2790
|
+
min: Vector2;
|
|
2791
|
+
max: Vector2;
|
|
2792
|
+
};
|
|
2766
2793
|
}
|
|
2767
2794
|
|
|
2768
2795
|
declare class SpaceGraph {
|
|
@@ -3607,6 +3634,10 @@ declare type StringComparator = string | {
|
|
|
3607
3634
|
neq: string;
|
|
3608
3635
|
} | {
|
|
3609
3636
|
in: string[];
|
|
3637
|
+
} | {
|
|
3638
|
+
nin: string[];
|
|
3639
|
+
} | {
|
|
3640
|
+
contains: string;
|
|
3610
3641
|
};
|
|
3611
3642
|
|
|
3612
3643
|
declare type StyleByKey = Record<string, ShapeStyle>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archilogic/extension-sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.8.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"tiny-emitter": "^2.1.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@archilogic/floor-plan-core": "^5.
|
|
39
|
-
"@archilogic/space-graph-sdk": "^0.
|
|
38
|
+
"@archilogic/floor-plan-core": "^5.4.0",
|
|
39
|
+
"@archilogic/space-graph-sdk": "^0.6.0",
|
|
40
40
|
"vite-plugin-static-copy": "^3.1.4"
|
|
41
41
|
},
|
|
42
42
|
"nx": {}
|