@archilogic/extension-sdk 0.11.0 → 0.12.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @archilogic/extension-sdk
2
2
 
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 72f5652: feat(extension-sdk): added exportPdf
8
+
9
+ ### Patch Changes
10
+
11
+ - 72f5652: chore: bump dependencies [snapshot]
12
+
3
13
  ## 0.11.0
4
14
 
5
15
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -708,6 +708,11 @@ declare type EntityResult = {
708
708
  id: string;
709
709
  };
710
710
 
711
+ declare interface ExportPdfOptions {
712
+ orientation: 'landscape' | 'portrait';
713
+ format: 'a4' | 'a3' | 'letter';
714
+ }
715
+
711
716
  export declare type ExtensionApi = {
712
717
  onConnect(parameters?: Record<string, unknown>): Promise<unknown> | void;
713
718
  onDestroy(): void;
@@ -1163,6 +1168,7 @@ export declare type HostApi = {
1163
1168
  nodeIds: string[];
1164
1169
  }) => Promise<NodeResult[]>;
1165
1170
  getSpaceGraphJson: () => Promise<SpaceGraphJson>;
1171
+ exportPdf: (args?: ExportPdfOptions) => Promise<void>;
1166
1172
  getPath: (args: {
1167
1173
  start: Vector2;
1168
1174
  end: Vector2;
@@ -2421,6 +2427,22 @@ declare type MeshGeometryType = typeof MeshGeometryTypeValue;
2421
2427
 
2422
2428
  declare const MeshGeometryTypeValue = "geometry:mesh";
2423
2429
 
2430
+ declare type NodeLabel = {
2431
+ display: 'customId'[];
2432
+ fontSize?: number;
2433
+ text?: Rgb;
2434
+ textOutline?: boolean;
2435
+ /** Only render the label when zoom is within [min, max]. */
2436
+ visible?: [number, number];
2437
+ /**
2438
+ * Controls fixed screen size (1/zoom) scaling:
2439
+ * - `false`: render at world scale
2440
+ * - `true` or omitted: always apply 1/zoom scaling
2441
+ * - `[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
2442
+ */
2443
+ fixedScreenSize?: boolean | [number, number];
2444
+ };
2445
+
2424
2446
  declare type NodeResult = {
2425
2447
  id: string;
2426
2448
  type: string;
@@ -3818,7 +3840,9 @@ declare type Texture = {
3818
3840
  declare type ThemeStyles = {
3819
3841
  byId?: StyleByKey;
3820
3842
  byType?: {
3821
- 'element:asset'?: ShapeStyle;
3843
+ 'element:asset'?: ShapeStyle & {
3844
+ label?: NodeLabel;
3845
+ };
3822
3846
  'element:beam'?: ShapeStyle;
3823
3847
  'element:boundaryWall'?: ShapeStyle;
3824
3848
  'element:casework'?: ShapeStyle;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@archilogic/extension-sdk",
3
3
  "description": "",
4
- "version": "0.11.0",
4
+ "version": "0.12.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -17,7 +17,7 @@
17
17
  "serve": "vite preview",
18
18
  "test": "vitest --run",
19
19
  "typecheck": "tsc --noEmit",
20
- "format": "prettier . -w -u --log-level silent",
20
+ "format": "oxfmt",
21
21
  "codecheck": "npm run typecheck && npm run lint && npm run format"
22
22
  },
23
23
  "type": "module",
@@ -28,9 +28,9 @@
28
28
  }
29
29
  },
30
30
  "devDependencies": {
31
- "@archilogic/floor-plan-core": "^5.4.4",
32
- "@archilogic/space-graph-sdk": "0.0.0-20260506123211",
31
+ "@archilogic/floor-plan-core": "^5.5.0",
32
+ "@archilogic/space-graph-sdk": "^0.9.0",
33
33
  "vite-plugin-static-copy": "^3.1.4"
34
34
  },
35
35
  "nx": {}
36
- }
36
+ }