@archilogic/extension-sdk 0.17.2 → 0.18.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 +14 -0
- package/dist/actions.d.ts +12 -0
- package/dist/actions.js +1 -2
- package/dist/index.d.ts +12 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @archilogic/extension-sdk
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4c40dff: feat: `setPlanConfig` takes `showFloorPlan` to show or hide the floor plan underlay (image or DXF) through the host's floor plan toggle; `null` puts back the user's setting from when the extension started. Older hosts ignore it.
|
|
8
|
+
|
|
9
|
+
## 0.17.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a8b0411: feat: expose the organization's shared view styles to extensions
|
|
14
|
+
|
|
15
|
+
`hostApi.getSharedViewStyles()` returns the organization's shared view styles (`SharedViewStyle`: id, name, parameters), which the Space API serves and no layout holds. Hosts without shared views return an empty list.
|
|
16
|
+
|
|
3
17
|
## 0.17.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/actions.d.ts
CHANGED
|
@@ -1045,6 +1045,10 @@ declare type FloorPlanTheme = {
|
|
|
1045
1045
|
fontSize?: number;
|
|
1046
1046
|
};
|
|
1047
1047
|
byId?: StyleByKey;
|
|
1048
|
+
/**
|
|
1049
|
+
* style by query, applied in order: every matching entry contributes the keys it sets,
|
|
1050
|
+
* so a later match overrides only those keys and keeps the rest from earlier matches
|
|
1051
|
+
*/
|
|
1048
1052
|
byFilter?: ThemeStyles['byFilter'];
|
|
1049
1053
|
/* Excluded from this release type: byResolvedFilter */
|
|
1050
1054
|
byType?: ThemeStyles['byType'];
|
|
@@ -1355,6 +1359,7 @@ declare type HostApi = {
|
|
|
1355
1359
|
setPlanConfig: (config: {
|
|
1356
1360
|
theme?: FloorPlanTheme;
|
|
1357
1361
|
hideElements?: HideableElement[];
|
|
1362
|
+
showFloorPlan?: boolean | null;
|
|
1358
1363
|
}) => Promise<boolean>;
|
|
1359
1364
|
addPlanLayer: (args: {
|
|
1360
1365
|
id?: string;
|
|
@@ -1398,6 +1403,7 @@ declare type HostApi = {
|
|
|
1398
1403
|
nodeIds: string[];
|
|
1399
1404
|
}) => Promise<NodeResult[]>;
|
|
1400
1405
|
getSpaceGraphJson: () => Promise<SpaceGraphJson>;
|
|
1406
|
+
getSharedViewStyles: () => Promise<SharedViewStyle[]>;
|
|
1401
1407
|
exportPdf: (args?: ExportPdfOptions) => Promise<void | ExportPdfResult>;
|
|
1402
1408
|
exportSvg: (args?: ExportSvgOptions) => Promise<void | ExportSvgResult>;
|
|
1403
1409
|
getPath: (args: {
|
|
@@ -3329,6 +3335,12 @@ declare interface ShapeStyle {
|
|
|
3329
3335
|
alignment?: 0 | 0.5 | 1;
|
|
3330
3336
|
}
|
|
3331
3337
|
|
|
3338
|
+
declare type SharedViewStyle = {
|
|
3339
|
+
id: string;
|
|
3340
|
+
name: string;
|
|
3341
|
+
parameters: LayoutViewStyleParametersJson;
|
|
3342
|
+
};
|
|
3343
|
+
|
|
3332
3344
|
declare type SimpleTransform3d = {
|
|
3333
3345
|
position: Vector3;
|
|
3334
3346
|
rotation: number;
|
package/dist/actions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/action-runner.ts
|
|
2
2
|
var e = (e) => {
|
|
3
3
|
if (!e || typeof e != "object") return !1;
|
|
4
4
|
let { code: t, message: n } = e;
|
|
@@ -70,5 +70,4 @@ var e = (e) => {
|
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
-
//#endregion
|
|
74
73
|
export { t as createActionRunner };
|
package/dist/index.d.ts
CHANGED
|
@@ -952,6 +952,10 @@ export declare type FloorPlanTheme = {
|
|
|
952
952
|
fontSize?: number;
|
|
953
953
|
};
|
|
954
954
|
byId?: StyleByKey;
|
|
955
|
+
/**
|
|
956
|
+
* style by query, applied in order: every matching entry contributes the keys it sets,
|
|
957
|
+
* so a later match overrides only those keys and keeps the rest from earlier matches
|
|
958
|
+
*/
|
|
955
959
|
byFilter?: ThemeStyles['byFilter'];
|
|
956
960
|
/* Excluded from this release type: byResolvedFilter */
|
|
957
961
|
byType?: ThemeStyles['byType'];
|
|
@@ -1262,6 +1266,7 @@ export declare type HostApi = {
|
|
|
1262
1266
|
setPlanConfig: (config: {
|
|
1263
1267
|
theme?: FloorPlanTheme;
|
|
1264
1268
|
hideElements?: HideableElement[];
|
|
1269
|
+
showFloorPlan?: boolean | null;
|
|
1265
1270
|
}) => Promise<boolean>;
|
|
1266
1271
|
addPlanLayer: (args: {
|
|
1267
1272
|
id?: string;
|
|
@@ -1305,6 +1310,7 @@ export declare type HostApi = {
|
|
|
1305
1310
|
nodeIds: string[];
|
|
1306
1311
|
}) => Promise<NodeResult[]>;
|
|
1307
1312
|
getSpaceGraphJson: () => Promise<SpaceGraphJson>;
|
|
1313
|
+
getSharedViewStyles: () => Promise<SharedViewStyle[]>;
|
|
1308
1314
|
exportPdf: (args?: ExportPdfOptions) => Promise<void | ExportPdfResult>;
|
|
1309
1315
|
exportSvg: (args?: ExportSvgOptions) => Promise<void | ExportSvgResult>;
|
|
1310
1316
|
getPath: (args: {
|
|
@@ -3234,6 +3240,12 @@ declare interface ShapeStyle {
|
|
|
3234
3240
|
alignment?: 0 | 0.5 | 1;
|
|
3235
3241
|
}
|
|
3236
3242
|
|
|
3243
|
+
export declare type SharedViewStyle = {
|
|
3244
|
+
id: string;
|
|
3245
|
+
name: string;
|
|
3246
|
+
parameters: LayoutViewStyleParametersJson;
|
|
3247
|
+
};
|
|
3248
|
+
|
|
3237
3249
|
declare type SimpleTransform3d = {
|
|
3238
3250
|
position: Vector3;
|
|
3239
3251
|
rotation: number;
|
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.18.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@archilogic/floor-plan-core": "^5.
|
|
36
|
+
"@archilogic/floor-plan-core": "^5.15.0",
|
|
37
37
|
"@archilogic/space-graph-core": "^0.34.2",
|
|
38
38
|
"@archilogic/space-graph-sdk": "^0.11.4",
|
|
39
39
|
"vite-plugin-static-copy": "^4.1.1"
|