@archilogic/extension-sdk 0.10.3 → 0.11.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 +7 -0
- package/dist/index.d.ts +102 -5
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -711,16 +711,18 @@ declare type EntityResult = {
|
|
|
711
711
|
export declare type ExtensionApi = {
|
|
712
712
|
onConnect(parameters?: Record<string, unknown>): Promise<unknown> | void;
|
|
713
713
|
onDestroy(): void;
|
|
714
|
-
onLayoutChange(
|
|
714
|
+
onLayoutChange({ operations }: {
|
|
715
|
+
operations?: OperationJson[];
|
|
716
|
+
}): void;
|
|
715
717
|
onSelectionChange({ selectedNodes }: {
|
|
716
718
|
selectedNodes: {
|
|
717
719
|
id: string;
|
|
718
720
|
type: string;
|
|
719
721
|
}[];
|
|
720
722
|
}): void;
|
|
721
|
-
onGraphicDrag({ position,
|
|
723
|
+
onGraphicDrag({ position, nodeId }: {
|
|
722
724
|
position: [number, number];
|
|
723
|
-
|
|
725
|
+
nodeId: string;
|
|
724
726
|
}): void;
|
|
725
727
|
onCanvasClick({ position, nodeId }: {
|
|
726
728
|
position: [number, number];
|
|
@@ -760,6 +762,53 @@ declare type FieldType = 'text' | 'number' | 'boolean' | 'select';
|
|
|
760
762
|
|
|
761
763
|
declare type FieldValueType = string | number | boolean;
|
|
762
764
|
|
|
765
|
+
declare type FloorAddress = {
|
|
766
|
+
line1?: string;
|
|
767
|
+
line2?: string;
|
|
768
|
+
city?: string;
|
|
769
|
+
state?: string;
|
|
770
|
+
postalCode?: string;
|
|
771
|
+
country?: string;
|
|
772
|
+
floor?: string;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
export declare type FloorData = {
|
|
776
|
+
id: string;
|
|
777
|
+
name: string;
|
|
778
|
+
level: string;
|
|
779
|
+
area: number;
|
|
780
|
+
createdAt: string;
|
|
781
|
+
updatedAt: string;
|
|
782
|
+
isPrivate: boolean;
|
|
783
|
+
isArchived: boolean;
|
|
784
|
+
labels: {
|
|
785
|
+
name: string;
|
|
786
|
+
color: string;
|
|
787
|
+
}[];
|
|
788
|
+
transform: {
|
|
789
|
+
position: [number, number, number];
|
|
790
|
+
rotation: number;
|
|
791
|
+
};
|
|
792
|
+
location: {
|
|
793
|
+
address: FloorAddress;
|
|
794
|
+
coordinates: {
|
|
795
|
+
lat: number;
|
|
796
|
+
long: number;
|
|
797
|
+
bearing: number;
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
export declare type FloorDefaultSelect = {
|
|
803
|
+
id: true;
|
|
804
|
+
name: true;
|
|
805
|
+
area: true;
|
|
806
|
+
level: true;
|
|
807
|
+
labels: true;
|
|
808
|
+
transform: true;
|
|
809
|
+
location: true;
|
|
810
|
+
};
|
|
811
|
+
|
|
763
812
|
/**
|
|
764
813
|
* This is the place to give the floor plan your own style
|
|
765
814
|
*/
|
|
@@ -787,6 +836,29 @@ export declare type FloorPlanTheme = {
|
|
|
787
836
|
byType?: ThemeStyles['byType'];
|
|
788
837
|
};
|
|
789
838
|
|
|
839
|
+
export declare type FloorSelect = {
|
|
840
|
+
id?: boolean;
|
|
841
|
+
name?: boolean;
|
|
842
|
+
level?: boolean;
|
|
843
|
+
area?: boolean;
|
|
844
|
+
createdAt?: boolean;
|
|
845
|
+
updatedAt?: boolean;
|
|
846
|
+
isPrivate?: boolean;
|
|
847
|
+
isArchived?: boolean;
|
|
848
|
+
labels?: boolean | {
|
|
849
|
+
name?: boolean;
|
|
850
|
+
color?: boolean;
|
|
851
|
+
};
|
|
852
|
+
transform?: boolean | {
|
|
853
|
+
position?: boolean;
|
|
854
|
+
rotation?: boolean;
|
|
855
|
+
};
|
|
856
|
+
location?: boolean | {
|
|
857
|
+
address?: boolean;
|
|
858
|
+
coordinates?: boolean;
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
|
|
790
862
|
declare class GeometryBase extends SpaceGraphNodeBase {
|
|
791
863
|
type: SpaceGraphGeometryType;
|
|
792
864
|
position: PositionEntry;
|
|
@@ -1048,6 +1120,9 @@ export declare type HostApi = {
|
|
|
1048
1120
|
getLayout: <S extends LayoutSelect = DefaultSelect>(args?: {
|
|
1049
1121
|
select?: S;
|
|
1050
1122
|
}) => Promise<QueryPick<LayoutData, S>>;
|
|
1123
|
+
getFloor: <S extends FloorSelect = FloorDefaultSelect>(args?: {
|
|
1124
|
+
select?: S;
|
|
1125
|
+
}) => Promise<QueryPick<FloorData, S>>;
|
|
1051
1126
|
runOperations: (args: {
|
|
1052
1127
|
operations: OperationJson[];
|
|
1053
1128
|
}) => Promise<OperationsResult>;
|
|
@@ -1061,9 +1136,14 @@ export declare type HostApi = {
|
|
|
1061
1136
|
}) => Promise<EntityResult>;
|
|
1062
1137
|
addPlanGraphic: (args: {
|
|
1063
1138
|
shapes: Shape[];
|
|
1064
|
-
|
|
1065
|
-
|
|
1139
|
+
interaction?: {
|
|
1140
|
+
click?: boolean;
|
|
1141
|
+
drag?: boolean;
|
|
1142
|
+
};
|
|
1143
|
+
position?: Vector2;
|
|
1144
|
+
fixedScreenSize?: boolean;
|
|
1066
1145
|
id?: string;
|
|
1146
|
+
layerId?: string;
|
|
1067
1147
|
clearLayer?: boolean;
|
|
1068
1148
|
}) => Promise<EntityResult>;
|
|
1069
1149
|
zoomToNode: (args: {
|
|
@@ -2948,6 +3028,11 @@ declare class SpaceGraphBasicMaterial extends SpaceGraphNodeBase {
|
|
|
2948
3028
|
colorSpecular: Rgb;
|
|
2949
3029
|
specularCoefficient: number;
|
|
2950
3030
|
opacity: number;
|
|
3031
|
+
textureDiffuse?: Texture;
|
|
3032
|
+
textureSpecular?: Texture;
|
|
3033
|
+
textureNormal?: Texture;
|
|
3034
|
+
textureAlpha?: Texture;
|
|
3035
|
+
dimensions?: [number, number];
|
|
2951
3036
|
constructor(id: string);
|
|
2952
3037
|
copyForClone(material: SpaceGraphBasicMaterial): void;
|
|
2953
3038
|
toJSON(): SpaceGraphMaterialResourceJson;
|
|
@@ -2959,6 +3044,11 @@ declare interface SpaceGraphBasicMaterialJson extends SpaceGraphMaterialBaseJson
|
|
|
2959
3044
|
colorSpecular?: Rgb;
|
|
2960
3045
|
specularCoefficient?: number;
|
|
2961
3046
|
opacity?: number;
|
|
3047
|
+
textureDiffuse?: Texture;
|
|
3048
|
+
textureSpecular?: Texture;
|
|
3049
|
+
textureNormal?: Texture;
|
|
3050
|
+
textureAlpha?: Texture;
|
|
3051
|
+
dimensions?: [number, number];
|
|
2962
3052
|
}
|
|
2963
3053
|
|
|
2964
3054
|
declare type SpaceGraphBasicMaterialType = typeof SpaceGraphBasicMaterialTypeValue;
|
|
@@ -3718,6 +3808,13 @@ declare interface TextShape extends BaseShape {
|
|
|
3718
3808
|
fontSize?: number;
|
|
3719
3809
|
}
|
|
3720
3810
|
|
|
3811
|
+
declare type Texture = {
|
|
3812
|
+
type: 'texture:uri';
|
|
3813
|
+
uri: string;
|
|
3814
|
+
preview?: string;
|
|
3815
|
+
source?: string;
|
|
3816
|
+
};
|
|
3817
|
+
|
|
3721
3818
|
declare type ThemeStyles = {
|
|
3722
3819
|
byId?: StyleByKey;
|
|
3723
3820
|
byType?: {
|
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.11.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,10 +27,9 @@
|
|
|
27
27
|
"types": "./dist/index.d.ts"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
"dependencies": {},
|
|
31
30
|
"devDependencies": {
|
|
32
|
-
"@archilogic/floor-plan-core": "^5.4.
|
|
33
|
-
"@archilogic/space-graph-sdk": "
|
|
31
|
+
"@archilogic/floor-plan-core": "^5.4.4",
|
|
32
|
+
"@archilogic/space-graph-sdk": "0.0.0-20260506123211",
|
|
34
33
|
"vite-plugin-static-copy": "^3.1.4"
|
|
35
34
|
},
|
|
36
35
|
"nx": {}
|