@bimdata/viewer 2.0.0-beta.96 → 2.0.0-beta.98

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/index.d.ts CHANGED
@@ -60,6 +60,12 @@ declare namespace BDV {
60
60
  projectId: number;
61
61
  modelIds?: number[];
62
62
 
63
+ offline?: {
64
+ enabled: boolean;
65
+ dataFile: string;
66
+ fallbackToNetwork?: boolean;
67
+ };
68
+
63
69
  /** @deprecated use `modelIds` instead */
64
70
  ifcIds?: number[];
65
71
  }
@@ -139,17 +145,18 @@ declare namespace BDV {
139
145
  "structure-properties"?:
140
146
  | boolean
141
147
  | {
142
- merge?: boolean;
143
- export?: boolean;
144
- editProperties?: boolean;
145
- translateIfcEntities?: boolean;
146
- customTranslations?: Object;
147
- };
148
+ merge?: boolean;
149
+ export?: boolean;
150
+ editProperties?: boolean;
151
+ translateIfcEntities?: boolean;
152
+ customTranslations?: Object;
153
+ };
148
154
  switch?: boolean;
149
155
  synchronization?: boolean;
150
156
  viewer2d?:
151
157
  | boolean
152
158
  | {
159
+ compass?: boolean;
153
160
  help?: boolean;
154
161
  modelLoader?: "hidden" | "disabled";
155
162
  };
@@ -162,7 +169,7 @@ declare namespace BDV {
162
169
  | {
163
170
  edges?: boolean;
164
171
  enableDynamicLOD?: boolean;
165
- enableOffsets: boolean;
172
+ enableOffsets?: boolean;
166
173
  home?: boolean;
167
174
  help?: boolean;
168
175
  modelLoader?: "hidden" | "disabled";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bimdata/viewer",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.96",
4
+ "version": "2.0.0-beta.98",
5
5
  "description": "A customizable BIM viewer.",
6
6
  "keywords": [
7
7
  "bim",
@@ -70,6 +70,7 @@
70
70
  "@vitejs/plugin-vue": "4.3.4",
71
71
  "@vue/vue3-jest": "29.2.6",
72
72
  "@xeokit/xeokit-sdk": "git+https://git@github.com/Amoki/xeokit-sdk.git#369bb4876e529995cd4c192bc7fda5e957f9634f",
73
+ "@zip.js/zip.js": "^2.7.32",
73
74
  "async": "^3.2.4",
74
75
  "autoprefixer": "^10.4.16",
75
76
  "babel-core": "^7.0.0-bridge.0",
package/types/api.d.ts CHANGED
@@ -43,12 +43,24 @@ declare namespace BDV {
43
43
  source: ModelSource;
44
44
  status: ModelStatus;
45
45
  archived: boolean;
46
- document?: ApiDocument;
47
46
  project_id: number;
47
+ document_id: number;
48
+ document?: ApiDocument;
49
+
50
+ // Model files
51
+ preview_file?: string;
48
52
  structure_file?: string;
49
- xkt_file?: string;
53
+ xkt_file?: string; // Deprecated: use `xkt_files` instead
54
+ xkt_files?: { version: number; file: string }[];
50
55
  gltf_file?: string;
51
56
  map_file?: string;
57
+ binary_2d_file?: string;
58
+
59
+ // Misc
60
+ world_position?: number[];
61
+ north_vector?: number[][];
62
+ recommanded_2d_angle?: number;
63
+ size_ratio?: number;
52
64
 
53
65
  // Multi-page PDF
54
66
  page_number?: number;