@bimdata/viewer 1.10.2 → 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,20 +1,73 @@
1
- ## [1.10.2](https://github.com/bimdata/viewer/compare/v1.10.1...v1.10.2) (2023-06-21)
2
-
3
-
4
- ### PATCH
5
-
6
- * replace big gif with webp ([3b386db](https://github.com/bimdata/viewer/commit/3b386db01a78a4c7dbc1579742150f7aee0231c0))
7
-
8
- ## [1.10.1](https://github.com/bimdata/viewer/compare/v1.10.0...v1.10.1) (2023-06-14)
9
-
10
-
11
- ### PATCH
12
-
13
- * 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
+ ```
14
68
 
15
69
  # [1.10.0](https://github.com/bimdata/viewer/compare/v1.9.0...v1.10.0) (2023-06-13)
16
70
 
17
-
18
71
  ### chore
19
72
 
20
73
  * rename platform repo ([81a4183](https://github.com/bimdata/viewer/commit/81a418399eda6a471aa89b0ed161c9087d2db651))
@@ -111,7 +164,6 @@
111
164
 
112
165
  # [1.9.0](https://github.com/bimdata/viewer/compare/v1.8.2...v1.9.0) (2022-11-24)
113
166
 
114
-
115
167
  ### ci
116
168
 
117
169
  * add sdk-viewer on triggering ([5aecddc](https://github.com/bimdata/viewer/commit/5aecddcf1765db80ad0126beed344897e11eaa85))
@@ -320,21 +372,18 @@
320
372
 
321
373
  ## [1.8.2](https://github.com/bimdata/viewer/compare/v1.8.1...v1.8.2) (2021-11-12)
322
374
 
323
-
324
375
  ### PATCH
325
376
 
326
377
  * IFC entities are not translated by default ([dd88067](https://github.com/bimdata/viewer/commit/dd88067efd01436e91f6526e49df69ac440b0983))
327
378
 
328
379
  ## [1.8.1](https://github.com/bimdata/viewer/compare/v1.8.0...v1.8.1) (2021-11-10)
329
380
 
330
-
331
381
  ### PATCH
332
382
 
333
383
  * add getLastEvent type ([3fee282](https://github.com/bimdata/viewer/commit/3fee282a92d92263702c7d644e2d62f7acada525))
334
384
 
335
385
  # [1.8.0](https://github.com/bimdata/viewer/compare/v1.7.5...v1.8.0) (2021-11-10)
336
386
 
337
-
338
387
  ### chore
339
388
 
340
389
  * update dev readme (#581) ([1883c4b](https://github.com/bimdata/viewer/commit/1883c4b170bdb76f3f13cac713b511e5d79a561e)), closes [#581](https://github.com/bimdata/viewer/issues/581)
@@ -361,21 +410,18 @@
361
410
 
362
411
  ## [1.7.5](https://github.com/bimdata/viewer/compare/v1.7.4...v1.7.5) (2021-10-19)
363
412
 
364
-
365
413
  ### PATCH
366
414
 
367
415
  * improve BCF search (#585) ([e11f738](https://github.com/bimdata/viewer/commit/e11f738214cce60700161acf1c8aa32381ed2862)), closes [#585](https://github.com/bimdata/viewer/issues/585)
368
416
 
369
417
  ## [1.7.4](https://github.com/bimdata/viewer/compare/v1.7.3...v1.7.4) (2021-10-18)
370
418
 
371
-
372
419
  ### PATCH
373
420
 
374
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)
375
422
 
376
423
  ## [1.7.3](https://github.com/bimdata/viewer/compare/v1.7.2...v1.7.3) (2021-10-13)
377
424
 
378
-
379
425
  ### Chore
380
426
 
381
427
  * Update README (#578) ([a59fa7f](https://github.com/bimdata/viewer/commit/a59fa7f2e127181ce60fd1a9d70c81d2682d8301)), closes [#578](https://github.com/bimdata/viewer/issues/578)
@@ -399,7 +445,6 @@
399
445
 
400
446
  ## [1.6.2](https://github.com/bimdata/viewer/compare/v1.6.1...v1.6.2) (2021-05-12)
401
447
 
402
-
403
448
  ### PATCH
404
449
 
405
450
  * fix logarithmicDepthBuffer (#527) ([d34b1aa](https://github.com/bimdata/viewer/commit/d34b1aa02f836cc8bcb891ff84bc05bfc87df460)), closes [#527](https://github.com/bimdata/viewer/issues/527)
@@ -407,14 +452,12 @@
407
452
 
408
453
  ## [1.6.1](https://github.com/bimdata/viewer/compare/v1.6.0...v1.6.1) (2021-05-10)
409
454
 
410
-
411
455
  ### PATCH
412
456
 
413
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)
414
458
 
415
459
  # [1.6.0](https://github.com/bimdata/viewer/compare/v1.5.6...v1.6.0) (2021-05-10)
416
460
 
417
-
418
461
  ### chore
419
462
 
420
463
  * update package.lock with npm 7 ([8ed2250](https://github.com/bimdata/viewer/commit/8ed225084e5a3cb15ff817bdb1d9bf7d24423934))
@@ -481,7 +524,6 @@
481
524
 
482
525
  # [1.5.0](https://github.com/bimdata/viewer/compare/v1.4.2...v1.5.0) (2021-02-19)
483
526
 
484
-
485
527
  ### MINOR
486
528
 
487
529
  * add showAllAnnotations ([ab45dd2](https://github.com/bimdata/viewer/commit/ab45dd2278801e409bf716ac4972703597368d8f))
@@ -496,14 +538,12 @@
496
538
 
497
539
  ## [1.4.2](https://github.com/bimdata/viewer/compare/v1.4.1...v1.4.2) (2021-02-15)
498
540
 
499
-
500
541
  ### PATCH
501
542
 
502
543
  * fix BCF users ([06b8022](https://github.com/bimdata/viewer/commit/06b80227a627ef2718f85f76da3921387c127f2d))
503
544
 
504
545
  ## [1.4.1](https://github.com/bimdata/viewer/compare/v1.4.0...v1.4.1) (2021-02-08)
505
546
 
506
-
507
547
  ### PATCH
508
548
 
509
549
  * fix sections in section tool plugin ([2db10b4](https://github.com/bimdata/viewer/commit/2db10b4020bb2500e0d799df24174e09df409851))
@@ -513,10 +553,9 @@
513
553
 
514
554
  # [1.4.0](https://github.com/bimdata/viewer/compare/v1.3.0...v1.4.0) (2021-02-02)
515
555
 
516
-
517
556
  ### MINOR
518
557
 
519
- * $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))
520
559
  * add getRawElements method ([1cd193a](https://github.com/bimdata/viewer/commit/1cd193af29ed1cfcd629ea2e5df443ac9f78d126))
521
560
  * add structure-properties plugin reloadTrees ([b5c513e](https://github.com/bimdata/viewer/commit/b5c513e672afedd353ce0b4e2b13dd9a388bdd03))
522
561
 
@@ -531,21 +570,18 @@
531
570
 
532
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)
533
572
 
534
-
535
573
  ### PATCH
536
574
 
537
575
  * advanced object getters were not enumerable ([72b1997](https://github.com/bimdata/viewer/commit/72b1997280610e5a6cbfb5d7fea974db91c05ce4))
538
576
 
539
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)
540
578
 
541
-
542
579
  ### PATCH
543
580
 
544
581
  * fix component $close triggered when clicked away ([cf1a9c8](https://github.com/bimdata/viewer/commit/cf1a9c860f8cea7ad60d5a49e48be255d7ded32b))
545
582
 
546
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)
547
584
 
548
-
549
585
  ### MINOR
550
586
 
551
587
  * add getRawElements method ([1cd193a](https://github.com/bimdata/viewer/commit/1cd193af29ed1cfcd629ea2e5df443ac9f78d126))
@@ -553,28 +589,24 @@
553
589
 
554
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)
555
591
 
556
-
557
592
  ### MINOR
558
593
 
559
- * $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))
560
595
 
561
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)
562
597
 
563
-
564
598
  ### PATCH
565
599
 
566
600
  * fix xeokit version ([6521cb7](https://github.com/bimdata/viewer/commit/6521cb7b1d82b2100c093b8f533d5232d89ec429))
567
601
 
568
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)
569
603
 
570
-
571
604
  ### PATCH
572
605
 
573
606
  * fix logarithmicDepthBuffer, upgrade xeokit ([530b5d9](https://github.com/bimdata/viewer/commit/530b5d969d6961dfb68ebd01879dd0b461c7a075))
574
607
 
575
608
  ## [1.3.1-rc.1](https://github.com/bimdata/viewer/compare/v1.3.0...v1.3.1-rc.1) (2021-01-26)
576
609
 
577
-
578
610
  ### PATCH
579
611
 
580
612
  * populate BCF calls with current user ([da701a7](https://github.com/bimdata/viewer/commit/da701a74a7fbfc232baeb3f228c76be280bd0a8f))