@bimdata/viewer 1.10.3 → 2.0.0-alpha-zone-editor.1

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,27 +1,73 @@
1
- ## [1.10.3](https://github.com/bimdata/viewer/compare/v1.10.2...v1.10.3) (2023-07-26)
2
-
3
-
4
- ### PATCH
5
-
6
- * fix BCF comments creation in viewer ([a00be50](https://github.com/bimdata/viewer/commit/a00be5062db6f3c077ffb464fd01be2fa918684b))
7
-
8
- ## [1.10.2](https://github.com/bimdata/viewer/compare/v1.10.1...v1.10.2) (2023-06-21)
9
-
10
-
11
- ### PATCH
12
-
13
- * replace big gif with webp ([3b386db](https://github.com/bimdata/viewer/commit/3b386db01a78a4c7dbc1579742150f7aee0231c0))
14
-
15
- ## [1.10.1](https://github.com/bimdata/viewer/compare/v1.10.0...v1.10.1) (2023-06-14)
16
-
17
-
18
- ### PATCH
19
-
20
- * add (types) after type pset names (#891) ([2c9479a](https://github.com/bimdata/viewer/commit/2c9479ac32383555668dc6faf6b1ab19bbcfc7d5)), closes [#891](https://github.com/bimdata/viewer/issues/891)
1
+ # [2.0.0-alpha.1](https://github.com/bimdata/viewer/compare/v2.0.0-alpha.1...v1.9.0) (2023-04-14)
2
+
3
+ Update to [Vue.js](https://vuejs.org/) framework version 3.
4
+ This brings some breaking changes in the writting of plugins due to the major version increase.
5
+ Please follow [this guide](https://v3-migration.vuejs.org/) to update your plugins.
6
+
7
+ ## FEATURES
8
+
9
+ [Vue.js](https://vuejs.org/) v3 brings the new [composition API](https://vuejs.org/guide/introduction.html#composition-api) & the [script setup support](https://vuejs.org/api/sfc-script-setup.html).
10
+
11
+ `$viewer` is available as injection.
12
+
13
+ Example of a plugin using the composition API:
14
+
15
+ ```js
16
+ import { inject } from "vue";
17
+
18
+ export default {
19
+ setup() {
20
+ const $viewer = inject("$viewer");
21
+ // your code here
22
+ }
23
+ };
24
+ ```
25
+
26
+ ## DEPRECATED
27
+
28
+ * To limit incompatibility issues, `destroyed` & `beforeDestroy` vue.js component lifecyles are still available but logged as deprecated. Please migrate to `beforeUnmount` & `unmounted`.
29
+ * `localContext` & `globalContext` `incrementSpinnerProcesses` & `decrementSpinnerProcesses` are deprecated, please use `loadingProcessStart` & `loadingProcessEnd` instead.
30
+ * `localContext.getPlugin(pluginName: string): Plugin` is deprecated, please use `localContext.plugins: Map<string, Plugin>` instead.
31
+ * `globalContext.getPlugins(pluginName: string): Plugin[]` is deprecated, please use `globalContext.plugins: Map<string, Plugin[]>` instead.
32
+ * `BIMDataViewerVue` is the `vue.js` instance the viewer is based on. Use it to write render functions or if you use the composition API in your plugins.
33
+
34
+ ## PLUGIN BUILD
35
+
36
+ Due to the major Vue.js update, plugin build configuration must be updated. As the `h` function is now exposed on the vue.js instance, please use the globally available `BIMDataViewerVue` singleton.
37
+
38
+ Example of vite configuration:
39
+
40
+ ```js
41
+ import { defineConfig } from "vite";
42
+
43
+ import vue from "@vitejs/plugin-vue";
44
+ import cssInjectedByJsPlugin from "vite-plugin-css-injected-by-js";
45
+ import externalGlobals from "rollup-plugin-external-globals";
46
+
47
+ export default defineConfig(() => {
48
+ return {
49
+ build: {
50
+ lib: {
51
+ entry: "./src/myPlugin.js",
52
+ formats: ["es"],
53
+ name: "myPlugin",
54
+ fileName: "myPlugin.plugin",
55
+ },
56
+ minify: 'terser',
57
+ },
58
+ plugins: [
59
+ vue(),
60
+ cssInjectedByJsPlugin(),
61
+ externalGlobals({
62
+ vue: 'BIMDataViewerVue', // MANDATORY
63
+ }),
64
+ ],
65
+ };
66
+ });
67
+ ```
21
68
 
22
69
  # [1.10.0](https://github.com/bimdata/viewer/compare/v1.9.0...v1.10.0) (2023-06-13)
23
70
 
24
-
25
71
  ### chore
26
72
 
27
73
  * rename platform repo ([81a4183](https://github.com/bimdata/viewer/commit/81a418399eda6a471aa89b0ed161c9087d2db651))
@@ -118,7 +164,6 @@
118
164
 
119
165
  # [1.9.0](https://github.com/bimdata/viewer/compare/v1.8.2...v1.9.0) (2022-11-24)
120
166
 
121
-
122
167
  ### ci
123
168
 
124
169
  * add sdk-viewer on triggering ([5aecddc](https://github.com/bimdata/viewer/commit/5aecddcf1765db80ad0126beed344897e11eaa85))
@@ -327,21 +372,18 @@
327
372
 
328
373
  ## [1.8.2](https://github.com/bimdata/viewer/compare/v1.8.1...v1.8.2) (2021-11-12)
329
374
 
330
-
331
375
  ### PATCH
332
376
 
333
377
  * IFC entities are not translated by default ([dd88067](https://github.com/bimdata/viewer/commit/dd88067efd01436e91f6526e49df69ac440b0983))
334
378
 
335
379
  ## [1.8.1](https://github.com/bimdata/viewer/compare/v1.8.0...v1.8.1) (2021-11-10)
336
380
 
337
-
338
381
  ### PATCH
339
382
 
340
383
  * add getLastEvent type ([3fee282](https://github.com/bimdata/viewer/commit/3fee282a92d92263702c7d644e2d62f7acada525))
341
384
 
342
385
  # [1.8.0](https://github.com/bimdata/viewer/compare/v1.7.5...v1.8.0) (2021-11-10)
343
386
 
344
-
345
387
  ### chore
346
388
 
347
389
  * update dev readme (#581) ([1883c4b](https://github.com/bimdata/viewer/commit/1883c4b170bdb76f3f13cac713b511e5d79a561e)), closes [#581](https://github.com/bimdata/viewer/issues/581)
@@ -368,21 +410,18 @@
368
410
 
369
411
  ## [1.7.5](https://github.com/bimdata/viewer/compare/v1.7.4...v1.7.5) (2021-10-19)
370
412
 
371
-
372
413
  ### PATCH
373
414
 
374
415
  * improve BCF search (#585) ([e11f738](https://github.com/bimdata/viewer/commit/e11f738214cce60700161acf1c8aa32381ed2862)), closes [#585](https://github.com/bimdata/viewer/issues/585)
375
416
 
376
417
  ## [1.7.4](https://github.com/bimdata/viewer/compare/v1.7.3...v1.7.4) (2021-10-18)
377
418
 
378
-
379
419
  ### PATCH
380
420
 
381
421
  * ignore archived ifc visibility if an archived model is loaded (#582) ([9dbf4cf](https://github.com/bimdata/viewer/commit/9dbf4cf9942df277b6a682724f4dfb76aa86d71b)), closes [#582](https://github.com/bimdata/viewer/issues/582)
382
422
 
383
423
  ## [1.7.3](https://github.com/bimdata/viewer/compare/v1.7.2...v1.7.3) (2021-10-13)
384
424
 
385
-
386
425
  ### Chore
387
426
 
388
427
  * Update README (#578) ([a59fa7f](https://github.com/bimdata/viewer/commit/a59fa7f2e127181ce60fd1a9d70c81d2682d8301)), closes [#578](https://github.com/bimdata/viewer/issues/578)
@@ -406,7 +445,6 @@
406
445
 
407
446
  ## [1.6.2](https://github.com/bimdata/viewer/compare/v1.6.1...v1.6.2) (2021-05-12)
408
447
 
409
-
410
448
  ### PATCH
411
449
 
412
450
  * fix logarithmicDepthBuffer (#527) ([d34b1aa](https://github.com/bimdata/viewer/commit/d34b1aa02f836cc8bcb891ff84bc05bfc87df460)), closes [#527](https://github.com/bimdata/viewer/issues/527)
@@ -414,14 +452,12 @@
414
452
 
415
453
  ## [1.6.1](https://github.com/bimdata/viewer/compare/v1.6.0...v1.6.1) (2021-05-10)
416
454
 
417
-
418
455
  ### PATCH
419
456
 
420
457
  * improve default 2D and 3D parameters (#526) ([02e3cd1](https://github.com/bimdata/viewer/commit/02e3cd1369654076eb4ecc4b996101e18c2b9473)), closes [#526](https://github.com/bimdata/viewer/issues/526)
421
458
 
422
459
  # [1.6.0](https://github.com/bimdata/viewer/compare/v1.5.6...v1.6.0) (2021-05-10)
423
460
 
424
-
425
461
  ### chore
426
462
 
427
463
  * update package.lock with npm 7 ([8ed2250](https://github.com/bimdata/viewer/commit/8ed225084e5a3cb15ff817bdb1d9bf7d24423934))
@@ -488,7 +524,6 @@
488
524
 
489
525
  # [1.5.0](https://github.com/bimdata/viewer/compare/v1.4.2...v1.5.0) (2021-02-19)
490
526
 
491
-
492
527
  ### MINOR
493
528
 
494
529
  * add showAllAnnotations ([ab45dd2](https://github.com/bimdata/viewer/commit/ab45dd2278801e409bf716ac4972703597368d8f))
@@ -503,14 +538,12 @@
503
538
 
504
539
  ## [1.4.2](https://github.com/bimdata/viewer/compare/v1.4.1...v1.4.2) (2021-02-15)
505
540
 
506
-
507
541
  ### PATCH
508
542
 
509
543
  * fix BCF users ([06b8022](https://github.com/bimdata/viewer/commit/06b80227a627ef2718f85f76da3921387c127f2d))
510
544
 
511
545
  ## [1.4.1](https://github.com/bimdata/viewer/compare/v1.4.0...v1.4.1) (2021-02-08)
512
546
 
513
-
514
547
  ### PATCH
515
548
 
516
549
  * fix sections in section tool plugin ([2db10b4](https://github.com/bimdata/viewer/commit/2db10b4020bb2500e0d799df24174e09df409851))
@@ -520,10 +553,9 @@
520
553
 
521
554
  # [1.4.0](https://github.com/bimdata/viewer/compare/v1.3.0...v1.4.0) (2021-02-02)
522
555
 
523
-
524
556
  ### MINOR
525
557
 
526
- * $viewer.currentContext is now a localContext ([9adabf2](https://github.com/bimdata/viewer/commit/9adabf25f31a9ceac9b8d1bc5ccfb6a117e82d62))
558
+ * $viewer.currentLocalContext is now a localContext ([9adabf2](https://github.com/bimdata/viewer/commit/9adabf25f31a9ceac9b8d1bc5ccfb6a117e82d62))
527
559
  * add getRawElements method ([1cd193a](https://github.com/bimdata/viewer/commit/1cd193af29ed1cfcd629ea2e5df443ac9f78d126))
528
560
  * add structure-properties plugin reloadTrees ([b5c513e](https://github.com/bimdata/viewer/commit/b5c513e672afedd353ce0b4e2b13dd9a388bdd03))
529
561
 
@@ -538,21 +570,18 @@
538
570
 
539
571
  # [1.4.0-rc.4](https://github.com/bimdata/viewer/compare/v1.4.0-rc.3...v1.4.0-rc.4) (2021-02-02)
540
572
 
541
-
542
573
  ### PATCH
543
574
 
544
575
  * advanced object getters were not enumerable ([72b1997](https://github.com/bimdata/viewer/commit/72b1997280610e5a6cbfb5d7fea974db91c05ce4))
545
576
 
546
577
  # [1.4.0-rc.3](https://github.com/bimdata/viewer/compare/v1.4.0-rc.2...v1.4.0-rc.3) (2021-02-02)
547
578
 
548
-
549
579
  ### PATCH
550
580
 
551
581
  * fix component $close triggered when clicked away ([cf1a9c8](https://github.com/bimdata/viewer/commit/cf1a9c860f8cea7ad60d5a49e48be255d7ded32b))
552
582
 
553
583
  # [1.4.0-rc.2](https://github.com/bimdata/viewer/compare/v1.4.0-rc.1...v1.4.0-rc.2) (2021-02-02)
554
584
 
555
-
556
585
  ### MINOR
557
586
 
558
587
  * add getRawElements method ([1cd193a](https://github.com/bimdata/viewer/commit/1cd193af29ed1cfcd629ea2e5df443ac9f78d126))
@@ -560,28 +589,24 @@
560
589
 
561
590
  # [1.4.0-rc.1](https://github.com/bimdata/viewer/compare/v1.3.1-rc.3...v1.4.0-rc.1) (2021-02-01)
562
591
 
563
-
564
592
  ### MINOR
565
593
 
566
- * $viewer.currentContext is now a localContext ([9adabf2](https://github.com/bimdata/viewer/commit/9adabf25f31a9ceac9b8d1bc5ccfb6a117e82d62))
594
+ * $viewer.currentLocalContext is now a localContext ([9adabf2](https://github.com/bimdata/viewer/commit/9adabf25f31a9ceac9b8d1bc5ccfb6a117e82d62))
567
595
 
568
596
  ## [1.3.1-rc.3](https://github.com/bimdata/viewer/compare/v1.3.1-rc.2...v1.3.1-rc.3) (2021-01-28)
569
597
 
570
-
571
598
  ### PATCH
572
599
 
573
600
  * fix xeokit version ([6521cb7](https://github.com/bimdata/viewer/commit/6521cb7b1d82b2100c093b8f533d5232d89ec429))
574
601
 
575
602
  ## [1.3.1-rc.2](https://github.com/bimdata/viewer/compare/v1.3.1-rc.1...v1.3.1-rc.2) (2021-01-28)
576
603
 
577
-
578
604
  ### PATCH
579
605
 
580
606
  * fix logarithmicDepthBuffer, upgrade xeokit ([530b5d9](https://github.com/bimdata/viewer/commit/530b5d969d6961dfb68ebd01879dd0b461c7a075))
581
607
 
582
608
  ## [1.3.1-rc.1](https://github.com/bimdata/viewer/compare/v1.3.0...v1.3.1-rc.1) (2021-01-26)
583
609
 
584
-
585
610
  ### PATCH
586
611
 
587
612
  * populate BCF calls with current user ([da701a7](https://github.com/bimdata/viewer/commit/da701a74a7fbfc232baeb3f228c76be280bd0a8f))