@xeokit/xeokit-sdk 2.4.0-alpha-6 → 2.4.0-alpha-8

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.
@@ -8208,7 +8208,7 @@ const tempIntRGB$1 = new Uint16Array([0, 0, 0]);
8208
8208
  /**
8209
8209
  * @private
8210
8210
  */
8211
- class VBOSceneModelNode$1 {
8211
+ class VBOSceneModelNode {
8212
8212
 
8213
8213
  /**
8214
8214
  * @private
@@ -9259,7 +9259,7 @@ class Marker extends Component {
9259
9259
  }
9260
9260
  this._entity = entity;
9261
9261
  if (this._entity) {
9262
- if (this._entity instanceof VBOSceneModelNode$1) {
9262
+ if (this._entity instanceof VBOSceneModelNode) {
9263
9263
  this._onEntityModelDestroyed = this._entity.model.on("destroyed", () => { // VBOSceneModelNode does not fire events, and cannot exist beyond its VBOSceneModel
9264
9264
  this._entity = null; // Marker now may become visible, if it was synched to invisible Entity
9265
9265
  this._onEntityModelDestroyed = null;
@@ -9470,6 +9470,7 @@ class Wire {
9470
9470
  wireStyle['-o-transform'] = 'rotate(0deg)';
9471
9471
  wireStyle['transform'] = 'rotate(0deg)';
9472
9472
  wireStyle["opacity"] = 1.0;
9473
+ wireStyle["pointer-events"] = "none";
9473
9474
  if (cfg.onContextMenu) ;
9474
9475
 
9475
9476
  parentElement.appendChild(wire);
@@ -9637,7 +9638,7 @@ class Dot {
9637
9638
  dotStyle.left = 0 + "px";
9638
9639
  dotStyle["box-shadow"] = "0 2px 5px 0 #182A3D;";
9639
9640
  dotStyle["opacity"] = 1.0;
9640
- dotStyle["pointer-events"] = "all";
9641
+ dotStyle["pointer-events"] = "none";
9641
9642
  if (cfg.onContextMenu) ;
9642
9643
  parentElement.appendChild(dot);
9643
9644
 
@@ -9715,7 +9716,6 @@ class Dot {
9715
9716
 
9716
9717
  setClickable(clickable) {
9717
9718
  this._dotClickable.style["pointer-events"] = (!!clickable) ? "all" : "none";
9718
- this._dot.style["pointer-events"] = (!!clickable) ? "all" : "none";
9719
9719
  }
9720
9720
 
9721
9721
  setHighlighted(highlighted) {
@@ -16211,7 +16211,7 @@ var buildEdgeIndices = (function () {
16211
16211
  * @private
16212
16212
  * @implements Pickable
16213
16213
  */
16214
- class VBOSceneModelMesh$1 {
16214
+ class DataTextureSceneModelMesh {
16215
16215
 
16216
16216
  constructor(model, id, color, opacity, layer = null, portionId = 0) {
16217
16217
 
@@ -16227,9 +16227,9 @@ class VBOSceneModelMesh$1 {
16227
16227
  this.model = model;
16228
16228
 
16229
16229
  /**
16230
- * The VBOSceneModelNode that contains this PerformanceModelMesh.
16230
+ * The DataTextureSceneModelNode that contains this PerformanceModelMesh.
16231
16231
  *
16232
- * A PerformanceModelMesh always belongs to exactly one VBOSceneModelNode.
16232
+ * A PerformanceModelMesh always belongs to exactly one DataTextureSceneModelNode.
16233
16233
  *
16234
16234
  * @property object
16235
16235
  * @type {VBOSceneModelNode}
@@ -16238,9 +16238,9 @@ class VBOSceneModelMesh$1 {
16238
16238
  this.object = null;
16239
16239
 
16240
16240
  /**
16241
- * The VBOSceneModelNode that contains this PerformanceModelMesh.
16241
+ * The DataTextureSceneModelNode that contains this PerformanceModelMesh.
16242
16242
  *
16243
- * A PerformanceModelMesh always belongs to exactly one VBOSceneModelNode.
16243
+ * A PerformanceModelMesh always belongs to exactly one DataTextureSceneModelNode.
16244
16244
  *
16245
16245
  * @property object
16246
16246
  * @type {VBOSceneModelNode}
@@ -16288,7 +16288,7 @@ class VBOSceneModelMesh$1 {
16288
16288
  this.numTriangles = 0;
16289
16289
 
16290
16290
  /**
16291
- * 3D origin of the VBOSceneModelMesh's vertex positions, if they are in relative-to-center (RTC) coordinates.
16291
+ * 3D origin of the DataTextureSceneModelMesh's vertex positions, if they are in relative-to-center (RTC) coordinates.
16292
16292
  *
16293
16293
  * When this is defined, then the positions are RTC, which means that they are relative to this position.
16294
16294
  *
@@ -16506,7 +16506,7 @@ const tempIntRGB = new Uint16Array([0, 0, 0]);
16506
16506
  /**
16507
16507
  * @private
16508
16508
  */
16509
- class VBOSceneModelNode {
16509
+ class DataTextureSceneModelNode {
16510
16510
 
16511
16511
  /**
16512
16512
  * @private
@@ -16516,7 +16516,7 @@ class VBOSceneModelNode {
16516
16516
  this._isObject = isObject;
16517
16517
 
16518
16518
  /**
16519
- * The {@link Scene} that contains this VBOSceneModelNode.
16519
+ * The {@link Scene} that contains this DataTextureSceneModelNode.
16520
16520
  *
16521
16521
  * @property scene
16522
16522
  * @type {Scene}
@@ -16525,7 +16525,7 @@ class VBOSceneModelNode {
16525
16525
  this.scene = model.scene;
16526
16526
 
16527
16527
  /**
16528
- * The VBOSceneModel that contains this VBOSceneModelNode.
16528
+ * The VBOSceneModel that contains this DataTextureSceneModelNode.
16529
16529
  * @property model
16530
16530
  * @type {VBOSceneModel}
16531
16531
  * @final
@@ -16533,7 +16533,7 @@ class VBOSceneModelNode {
16533
16533
  this.model = model;
16534
16534
 
16535
16535
  /**
16536
- * The PerformanceModelMesh instances contained by this VBOSceneModelNode
16536
+ * The PerformanceModelMesh instances contained by this DataTextureSceneModelNode
16537
16537
  * @property meshes
16538
16538
  * @type {{Array of PerformanceModelMesh}}
16539
16539
  * @final
@@ -16549,7 +16549,7 @@ class VBOSceneModelNode {
16549
16549
  }
16550
16550
 
16551
16551
  /**
16552
- * ID of this VBOSceneModelNode, unique within the {@link Scene}.
16552
+ * ID of this DataTextureSceneModelNode, unique within the {@link Scene}.
16553
16553
  * @property id
16554
16554
  * @type {String|Number}
16555
16555
  * @final
@@ -16587,7 +16587,7 @@ class VBOSceneModelNode {
16587
16587
  //------------------------------------------------------------------------------------------------------------------
16588
16588
 
16589
16589
  /**
16590
- * Returns true to indicate that VBOSceneModelNode is an {@link Entity}.
16590
+ * Returns true to indicate that DataTextureSceneModelNode is an {@link Entity}.
16591
16591
  * @type {Boolean}
16592
16592
  */
16593
16593
  get isEntity() {
@@ -16595,7 +16595,7 @@ class VBOSceneModelNode {
16595
16595
  }
16596
16596
 
16597
16597
  /**
16598
- * Always returns ````false```` because a VBOSceneModelNode can never represent a model.
16598
+ * Always returns ````false```` because a DataTextureSceneModelNode can never represent a model.
16599
16599
  *
16600
16600
  * @type {Boolean}
16601
16601
  */
@@ -16604,9 +16604,9 @@ class VBOSceneModelNode {
16604
16604
  }
16605
16605
 
16606
16606
  /**
16607
- * Returns ````true```` if this VBOSceneModelNode represents an object.
16607
+ * Returns ````true```` if this DataTextureSceneModelNode represents an object.
16608
16608
  *
16609
- * When ````true```` the VBOSceneModelNode will be registered by {@link VBOSceneModelNode#id} in
16609
+ * When ````true```` the DataTextureSceneModelNode will be registered by {@link DataTextureSceneModelNode#id} in
16610
16610
  * {@link Scene#objects} and may also have a {@link MetaObject} with matching {@link MetaObject#id}.
16611
16611
  *
16612
16612
  * @type {Boolean}
@@ -16616,7 +16616,7 @@ class VBOSceneModelNode {
16616
16616
  }
16617
16617
 
16618
16618
  /**
16619
- * World-space 3D axis-aligned bounding box (AABB) of this VBOSceneModelNode.
16619
+ * World-space 3D axis-aligned bounding box (AABB) of this DataTextureSceneModelNode.
16620
16620
  *
16621
16621
  * Represented by a six-element Float64Array containing the min/max extents of the
16622
16622
  * axis-aligned volume, ie. ````[xmin, ymin,zmin,xmax,ymax, zmax]````.
@@ -16628,7 +16628,7 @@ class VBOSceneModelNode {
16628
16628
  }
16629
16629
 
16630
16630
  /**
16631
- * The approximate number of triangles in this VBOSceneModelNode.
16631
+ * The approximate number of triangles in this DataTextureSceneModelNode.
16632
16632
  *
16633
16633
  * @type {Number}
16634
16634
  */
@@ -16637,12 +16637,12 @@ class VBOSceneModelNode {
16637
16637
  }
16638
16638
 
16639
16639
  /**
16640
- * Gets if this VBOSceneModelNode is visible.
16640
+ * Gets if this DataTextureSceneModelNode is visible.
16641
16641
  *
16642
- * Only rendered when {@link VBOSceneModelNode#visible} is ````true```` and {@link VBOSceneModelNode#culled} is ````false````.
16642
+ * Only rendered when {@link DataTextureSceneModelNode#visible} is ````true```` and {@link DataTextureSceneModelNode#culled} is ````false````.
16643
16643
  *
16644
- * When both {@link VBOSceneModelNode#isObject} and {@link VBOSceneModelNode#visible} are ````true```` the VBOSceneModelNode will be
16645
- * registered by {@link VBOSceneModelNode#id} in {@link Scene#visibleObjects}.
16644
+ * When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#visible} are ````true```` the DataTextureSceneModelNode will be
16645
+ * registered by {@link DataTextureSceneModelNode#id} in {@link Scene#visibleObjects}.
16646
16646
  *
16647
16647
  * @type {Boolean}
16648
16648
  */
@@ -16651,12 +16651,12 @@ class VBOSceneModelNode {
16651
16651
  }
16652
16652
 
16653
16653
  /**
16654
- * Sets if this VBOSceneModelNode is visible.
16654
+ * Sets if this DataTextureSceneModelNode is visible.
16655
16655
  *
16656
- * Only rendered when {@link VBOSceneModelNode#visible} is ````true```` and {@link VBOSceneModelNode#culled} is ````false````.
16656
+ * Only rendered when {@link DataTextureSceneModelNode#visible} is ````true```` and {@link DataTextureSceneModelNode#culled} is ````false````.
16657
16657
  *
16658
- * When both {@link VBOSceneModelNode#isObject} and {@link VBOSceneModelNode#visible} are ````true```` the VBOSceneModelNode will be
16659
- * registered by {@link VBOSceneModelNode#id} in {@link Scene#visibleObjects}.
16658
+ * When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#visible} are ````true```` the DataTextureSceneModelNode will be
16659
+ * registered by {@link DataTextureSceneModelNode#id} in {@link Scene#visibleObjects}.
16660
16660
  *
16661
16661
  * @type {Boolean}
16662
16662
  */
@@ -16679,10 +16679,10 @@ class VBOSceneModelNode {
16679
16679
  }
16680
16680
 
16681
16681
  /**
16682
- * Gets if this VBOSceneModelNode is highlighted.
16682
+ * Gets if this DataTextureSceneModelNode is highlighted.
16683
16683
  *
16684
- * When both {@link VBOSceneModelNode#isObject} and {@link VBOSceneModelNode#highlighted} are ````true```` the VBOSceneModelNode will be
16685
- * registered by {@link VBOSceneModelNode#id} in {@link Scene#highlightedObjects}.
16684
+ * When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#highlighted} are ````true```` the DataTextureSceneModelNode will be
16685
+ * registered by {@link DataTextureSceneModelNode#id} in {@link Scene#highlightedObjects}.
16686
16686
  *
16687
16687
  * @type {Boolean}
16688
16688
  */
@@ -16691,10 +16691,10 @@ class VBOSceneModelNode {
16691
16691
  }
16692
16692
 
16693
16693
  /**
16694
- * Sets if this VBOSceneModelNode is highlighted.
16694
+ * Sets if this DataTextureSceneModelNode is highlighted.
16695
16695
  *
16696
- * When both {@link VBOSceneModelNode#isObject} and {@link VBOSceneModelNode#highlighted} are ````true```` the VBOSceneModelNode will be
16697
- * registered by {@link VBOSceneModelNode#id} in {@link Scene#highlightedObjects}.
16696
+ * When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#highlighted} are ````true```` the DataTextureSceneModelNode will be
16697
+ * registered by {@link DataTextureSceneModelNode#id} in {@link Scene#highlightedObjects}.
16698
16698
  *
16699
16699
  * @type {Boolean}
16700
16700
  */
@@ -16717,10 +16717,10 @@ class VBOSceneModelNode {
16717
16717
  }
16718
16718
 
16719
16719
  /**
16720
- * Gets if this VBOSceneModelNode is xrayed.
16720
+ * Gets if this DataTextureSceneModelNode is xrayed.
16721
16721
  *
16722
- * When both {@link VBOSceneModelNode#isObject} and {@link VBOSceneModelNode#xrayed} are ````true```` the VBOSceneModelNode will be
16723
- * registered by {@link VBOSceneModelNode#id} in {@link Scene#xrayedObjects}.
16722
+ * When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#xrayed} are ````true```` the DataTextureSceneModelNode will be
16723
+ * registered by {@link DataTextureSceneModelNode#id} in {@link Scene#xrayedObjects}.
16724
16724
  *
16725
16725
  * @type {Boolean}
16726
16726
  */
@@ -16729,10 +16729,10 @@ class VBOSceneModelNode {
16729
16729
  }
16730
16730
 
16731
16731
  /**
16732
- * Sets if this VBOSceneModelNode is xrayed.
16732
+ * Sets if this DataTextureSceneModelNode is xrayed.
16733
16733
  *
16734
- * When both {@link VBOSceneModelNode#isObject} and {@link VBOSceneModelNode#xrayed} are ````true```` the VBOSceneModelNode will be
16735
- * registered by {@link VBOSceneModelNode#id} in {@link Scene#xrayedObjects}.
16734
+ * When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#xrayed} are ````true```` the DataTextureSceneModelNode will be
16735
+ * registered by {@link DataTextureSceneModelNode#id} in {@link Scene#xrayedObjects}.
16736
16736
  *
16737
16737
  * @type {Boolean}
16738
16738
  */
@@ -16755,10 +16755,10 @@ class VBOSceneModelNode {
16755
16755
  }
16756
16756
 
16757
16757
  /**
16758
- * Sets if this VBOSceneModelNode is selected.
16758
+ * Sets if this DataTextureSceneModelNode is selected.
16759
16759
  *
16760
- * When both {@link VBOSceneModelNode#isObject} and {@link VBOSceneModelNode#selected} are ````true```` the VBOSceneModelNode will be
16761
- * registered by {@link VBOSceneModelNode#id} in {@link Scene#selectedObjects}.
16760
+ * When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#selected} are ````true```` the DataTextureSceneModelNode will be
16761
+ * registered by {@link DataTextureSceneModelNode#id} in {@link Scene#selectedObjects}.
16762
16762
  *
16763
16763
  * @type {Boolean}
16764
16764
  */
@@ -16767,10 +16767,10 @@ class VBOSceneModelNode {
16767
16767
  }
16768
16768
 
16769
16769
  /**
16770
- * Gets if this VBOSceneModelNode is selected.
16770
+ * Gets if this DataTextureSceneModelNode is selected.
16771
16771
  *
16772
- * When both {@link VBOSceneModelNode#isObject} and {@link VBOSceneModelNode#selected} are ````true```` the VBOSceneModelNode will be
16773
- * registered by {@link VBOSceneModelNode#id} in {@link Scene#selectedObjects}.
16772
+ * When both {@link DataTextureSceneModelNode#isObject} and {@link DataTextureSceneModelNode#selected} are ````true```` the DataTextureSceneModelNode will be
16773
+ * registered by {@link DataTextureSceneModelNode#id} in {@link Scene#selectedObjects}.
16774
16774
  *
16775
16775
  * @type {Boolean}
16776
16776
  */
@@ -16793,7 +16793,7 @@ class VBOSceneModelNode {
16793
16793
  }
16794
16794
 
16795
16795
  /**
16796
- * Gets if this VBOSceneModelNode's edges are enhanced.
16796
+ * Gets if this DataTextureSceneModelNode's edges are enhanced.
16797
16797
  *
16798
16798
  * @type {Boolean}
16799
16799
  */
@@ -16802,7 +16802,7 @@ class VBOSceneModelNode {
16802
16802
  }
16803
16803
 
16804
16804
  /**
16805
- * Sets if this VBOSceneModelNode's edges are enhanced.
16805
+ * Sets if this DataTextureSceneModelNode's edges are enhanced.
16806
16806
  *
16807
16807
  * @type {Boolean}
16808
16808
  */
@@ -16840,9 +16840,9 @@ class VBOSceneModelNode {
16840
16840
  }
16841
16841
 
16842
16842
  /**
16843
- * Gets if this VBOSceneModelNode is culled.
16843
+ * Gets if this DataTextureSceneModelNode is culled.
16844
16844
  *
16845
- * Only rendered when {@link VBOSceneModelNode#visible} is ````true```` and {@link VBOSceneModelNode#culled} is ````false````.
16845
+ * Only rendered when {@link DataTextureSceneModelNode#visible} is ````true```` and {@link DataTextureSceneModelNode#culled} is ````false````.
16846
16846
  *
16847
16847
  * @type {Boolean}
16848
16848
  */
@@ -16852,9 +16852,9 @@ class VBOSceneModelNode {
16852
16852
  }
16853
16853
 
16854
16854
  /**
16855
- * Sets if this VBOSceneModelNode is culled.
16855
+ * Sets if this DataTextureSceneModelNode is culled.
16856
16856
  *
16857
- * Only rendered when {@link VBOSceneModelNode#visible} is ````true```` and {@link VBOSceneModelNode#culled} is ````false````.
16857
+ * Only rendered when {@link DataTextureSceneModelNode#visible} is ````true```` and {@link DataTextureSceneModelNode#culled} is ````false````.
16858
16858
  *
16859
16859
  * @type {Boolean}
16860
16860
  */
@@ -16882,7 +16882,7 @@ class VBOSceneModelNode {
16882
16882
  }
16883
16883
 
16884
16884
  /**
16885
- * Gets if this VBOSceneModelNode is clippable.
16885
+ * Gets if this DataTextureSceneModelNode is clippable.
16886
16886
  *
16887
16887
  * Clipping is done by the {@link SectionPlane}s in {@link Scene#sectionPlanes}.
16888
16888
  *
@@ -16893,7 +16893,7 @@ class VBOSceneModelNode {
16893
16893
  }
16894
16894
 
16895
16895
  /**
16896
- * Sets if this VBOSceneModelNode is clippable.
16896
+ * Sets if this DataTextureSceneModelNode is clippable.
16897
16897
  *
16898
16898
  * Clipping is done by the {@link SectionPlane}s in {@link Scene#sectionPlanes}.
16899
16899
  *
@@ -16915,7 +16915,7 @@ class VBOSceneModelNode {
16915
16915
  }
16916
16916
 
16917
16917
  /**
16918
- * Gets if this VBOSceneModelNode is included in boundary calculations.
16918
+ * Gets if this DataTextureSceneModelNode is included in boundary calculations.
16919
16919
  *
16920
16920
  * @type {Boolean}
16921
16921
  */
@@ -16924,7 +16924,7 @@ class VBOSceneModelNode {
16924
16924
  }
16925
16925
 
16926
16926
  /**
16927
- * Sets if this VBOSceneModelNode is included in boundary calculations.
16927
+ * Sets if this DataTextureSceneModelNode is included in boundary calculations.
16928
16928
  *
16929
16929
  * @type {Boolean}
16930
16930
  */
@@ -16943,7 +16943,7 @@ class VBOSceneModelNode {
16943
16943
  }
16944
16944
 
16945
16945
  /**
16946
- * Gets if this VBOSceneModelNode is pickable.
16946
+ * Gets if this DataTextureSceneModelNode is pickable.
16947
16947
  *
16948
16948
  * Picking is done via calls to {@link Scene#pick}.
16949
16949
  *
@@ -16954,7 +16954,7 @@ class VBOSceneModelNode {
16954
16954
  }
16955
16955
 
16956
16956
  /**
16957
- * Sets if this VBOSceneModelNode is pickable.
16957
+ * Sets if this DataTextureSceneModelNode is pickable.
16958
16958
  *
16959
16959
  * Picking is done via calls to {@link Scene#pick}.
16960
16960
  *
@@ -16975,7 +16975,7 @@ class VBOSceneModelNode {
16975
16975
  }
16976
16976
 
16977
16977
  /**
16978
- * Gets the VBOSceneModelNode's RGB colorize color.
16978
+ * Gets the DataTextureSceneModelNode's RGB colorize color.
16979
16979
  *
16980
16980
  * Each element of the color is in range ````[0..1]````.
16981
16981
  *
@@ -16993,7 +16993,7 @@ class VBOSceneModelNode {
16993
16993
  }
16994
16994
 
16995
16995
  /**
16996
- * Sets the VBOSceneModelNode's RGB colorize color.
16996
+ * Sets the DataTextureSceneModelNode's RGB colorize color.
16997
16997
  *
16998
16998
  * Each element of the color is in range ````[0..1]````.
16999
16999
  *
@@ -17021,7 +17021,7 @@ class VBOSceneModelNode {
17021
17021
  }
17022
17022
 
17023
17023
  /**
17024
- * Gets the VBOSceneModelNode's opacity factor.
17024
+ * Gets the DataTextureSceneModelNode's opacity factor.
17025
17025
  *
17026
17026
  * This is a factor in range ````[0..1]```` which multiplies by the rendered fragment alphas.
17027
17027
  *
@@ -17036,7 +17036,7 @@ class VBOSceneModelNode {
17036
17036
  }
17037
17037
 
17038
17038
  /**
17039
- * Sets the VBOSceneModelNode's opacity factor, multiplies by the VBOSceneModelNode's rendered fragment alphas.
17039
+ * Sets the DataTextureSceneModelNode's opacity factor, multiplies by the DataTextureSceneModelNode's rendered fragment alphas.
17040
17040
  *
17041
17041
  * This is a factor in range ````[0..1]````.
17042
17042
  *
@@ -17076,7 +17076,7 @@ class VBOSceneModelNode {
17076
17076
  }
17077
17077
 
17078
17078
  /**
17079
- * Gets the VBOSceneModelNode's 3D World-space offset.
17079
+ * Gets the DataTextureSceneModelNode's 3D World-space offset.
17080
17080
  *
17081
17081
  * Default value is ````[0,0,0]````.
17082
17082
  *
@@ -17087,9 +17087,9 @@ class VBOSceneModelNode {
17087
17087
  }
17088
17088
 
17089
17089
  /**
17090
- * Sets the VBOSceneModelNode's 3D World-space offset.
17090
+ * Sets the DataTextureSceneModelNode's 3D World-space offset.
17091
17091
  *
17092
- * The offset dynamically translates the VBOSceneModelNode in World-space.
17092
+ * The offset dynamically translates the DataTextureSceneModelNode in World-space.
17093
17093
  *
17094
17094
  * Default value is ````[0, 0, 0]````.
17095
17095
  *
@@ -17123,7 +17123,7 @@ class VBOSceneModelNode {
17123
17123
  }
17124
17124
 
17125
17125
  /**
17126
- * Gets if this VBOSceneModelNode casts shadows.
17126
+ * Gets if this DataTextureSceneModelNode casts shadows.
17127
17127
  *
17128
17128
  * @type {Boolean}
17129
17129
  */
@@ -17132,7 +17132,7 @@ class VBOSceneModelNode {
17132
17132
  }
17133
17133
 
17134
17134
  /**
17135
- * Sets if to this VBOSceneModelNode casts shadows.
17135
+ * Sets if to this DataTextureSceneModelNode casts shadows.
17136
17136
  *
17137
17137
  * @type {Boolean}
17138
17138
  */
@@ -17141,7 +17141,7 @@ class VBOSceneModelNode {
17141
17141
  }
17142
17142
 
17143
17143
  /**
17144
- * Whether or not this VBOSceneModelNode can have shadows cast upon it
17144
+ * Whether or not this DataTextureSceneModelNode can have shadows cast upon it
17145
17145
  *
17146
17146
  * @type {Boolean}
17147
17147
  */
@@ -17150,7 +17150,7 @@ class VBOSceneModelNode {
17150
17150
  }
17151
17151
 
17152
17152
  /**
17153
- * Whether or not this VBOSceneModelNode can have shadows cast upon it
17153
+ * Whether or not this DataTextureSceneModelNode can have shadows cast upon it
17154
17154
  *
17155
17155
  * @type {Boolean}
17156
17156
  */
@@ -17159,7 +17159,7 @@ class VBOSceneModelNode {
17159
17159
  }
17160
17160
 
17161
17161
  /**
17162
- * Gets if Scalable Ambient Obscurance (SAO) will apply to this VBOSceneModelNode.
17162
+ * Gets if Scalable Ambient Obscurance (SAO) will apply to this DataTextureSceneModelNode.
17163
17163
  *
17164
17164
  * SAO is configured by the Scene's {@link SAO} component.
17165
17165
  *
@@ -17233,68 +17233,6 @@ class VBOSceneModelNode {
17233
17233
 
17234
17234
  }
17235
17235
 
17236
- /**
17237
- * Provides scratch memory for methods like TrianglesBatchingLayer setFlags() and setColors(),
17238
- * so they don't need to allocate temporary arrays that need garbage collection.
17239
- *
17240
- * @private
17241
- */
17242
- class ScratchMemory$1 {
17243
-
17244
- constructor() {
17245
- this._uint8Arrays = {};
17246
- this._float32Arrays = {};
17247
- }
17248
-
17249
- _clear() {
17250
- this._uint8Arrays = {};
17251
- this._float32Arrays = {};
17252
- }
17253
-
17254
- getUInt8Array(len) {
17255
- let uint8Array = this._uint8Arrays[len];
17256
- if (!uint8Array) {
17257
- uint8Array = new Uint8Array(len);
17258
- this._uint8Arrays[len] = uint8Array;
17259
- }
17260
- return uint8Array;
17261
- }
17262
-
17263
- getFloat32Array(len) {
17264
- let float32Array = this._float32Arrays[len];
17265
- if (!float32Array) {
17266
- float32Array = new Float32Array(len);
17267
- this._float32Arrays[len] = float32Array;
17268
- }
17269
- return float32Array;
17270
- }
17271
- }
17272
-
17273
- const batchingLayerScratchMemory$1 = new ScratchMemory$1();
17274
-
17275
- let countUsers$1 = 0;
17276
-
17277
- /**
17278
- * @private
17279
- */
17280
- function getScratchMemory$1() {
17281
- countUsers$1++;
17282
- return batchingLayerScratchMemory$1;
17283
- }
17284
-
17285
- /**
17286
- * @private
17287
- */
17288
- function putScratchMemory$1() {
17289
- if (countUsers$1 === 0) {
17290
- return;
17291
- }
17292
- countUsers$1--;
17293
- if (countUsers$1 === 0) {
17294
- batchingLayerScratchMemory$1._clear();
17295
- }
17296
- }
17297
-
17298
17236
  /**
17299
17237
  * @private
17300
17238
  */
@@ -19991,15 +19929,6 @@ class TrianglesDataTextureColorRenderer {
19991
19929
 
19992
19930
  src.push("void main(void) {");
19993
19931
 
19994
- // camera matrices
19995
- src.push ("mat4 viewMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 0), 0));");
19996
- src.push ("mat4 viewNormalMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 1), 0));");
19997
- src.push ("mat4 projMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 2), 0));");
19998
-
19999
- // model matrices
20000
- src.push ("mat4 worldMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 0), 0), texelFetch (uTextureModelMatrices, ivec2(1, 0), 0), texelFetch (uTextureModelMatrices, ivec2(2, 0), 0), texelFetch (uTextureModelMatrices, ivec2(3, 0), 0));");
20001
- src.push ("mat4 worldNormalMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 1), 0), texelFetch (uTextureModelMatrices, ivec2(1, 1), 0), texelFetch (uTextureModelMatrices, ivec2(2, 1), 0), texelFetch (uTextureModelMatrices, ivec2(3, 1), 0));");
20002
-
20003
19932
  // constants
20004
19933
  src.push("int polygonIndex = gl_VertexID / 3;");
20005
19934
 
@@ -20022,6 +19951,15 @@ class TrianglesDataTextureColorRenderer {
20022
19951
  src.push(" return;"); // Cull vertex
20023
19952
  src.push("} else {");
20024
19953
 
19954
+ // camera matrices
19955
+ src.push ("mat4 viewMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 0), 0));");
19956
+ src.push ("mat4 viewNormalMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 1), 0));");
19957
+ src.push ("mat4 projMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 2), 0));");
19958
+
19959
+ // model matrices
19960
+ src.push ("mat4 worldMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 0), 0), texelFetch (uTextureModelMatrices, ivec2(1, 0), 0), texelFetch (uTextureModelMatrices, ivec2(2, 0), 0), texelFetch (uTextureModelMatrices, ivec2(3, 0), 0));");
19961
+ src.push ("mat4 worldNormalMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 1), 0), texelFetch (uTextureModelMatrices, ivec2(1, 1), 0), texelFetch (uTextureModelMatrices, ivec2(2, 1), 0), texelFetch (uTextureModelMatrices, ivec2(3, 1), 0));");
19962
+
20025
19963
  // get vertex base
20026
19964
  src.push("ivec4 packedVertexBase = ivec4(texelFetch (uTexturePerObjectIdColorsAndFlags, ivec2(objectIndexCoords.x*8+4, objectIndexCoords.y), 0));"); // chipmunk
20027
19965
 
@@ -23347,15 +23285,6 @@ class TrianglesDataTextureDepthRenderer {
23347
23285
 
23348
23286
  src.push("void main(void) {");
23349
23287
 
23350
- // camera matrices
23351
- src.push ("mat4 viewMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 0), 0));");
23352
- src.push ("mat4 viewNormalMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 1), 0));");
23353
- src.push ("mat4 projMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 2), 0));");
23354
-
23355
- // model matrices
23356
- src.push ("mat4 worldMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 0), 0), texelFetch (uTextureModelMatrices, ivec2(1, 0), 0), texelFetch (uTextureModelMatrices, ivec2(2, 0), 0), texelFetch (uTextureModelMatrices, ivec2(3, 0), 0));");
23357
- src.push ("mat4 worldNormalMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 1), 0), texelFetch (uTextureModelMatrices, ivec2(1, 1), 0), texelFetch (uTextureModelMatrices, ivec2(2, 1), 0), texelFetch (uTextureModelMatrices, ivec2(3, 1), 0));");
23358
-
23359
23288
  // constants
23360
23289
  src.push("int polygonIndex = gl_VertexID / 3;");
23361
23290
 
@@ -23373,11 +23302,19 @@ class TrianglesDataTextureDepthRenderer {
23373
23302
  // flags.x = NOT_RENDERED | COLOR_OPAQUE | COLOR_TRANSPARENT
23374
23303
  // renderPass = COLOR_OPAQUE
23375
23304
 
23376
- // src.push(`if (int(flags.x) != renderPass) {`);
23377
- // src.push(" gl_Position = vec4(3.0, 3.0, 3.0, 1.0);"); // Cull vertex
23378
- // src.push(" return;"); // Cull vertex
23379
- // src.push("} else {");
23380
- src.push("{");
23305
+ src.push(`if (int(flags.x) != renderPass) {`);
23306
+ src.push(" gl_Position = vec4(3.0, 3.0, 3.0, 1.0);"); // Cull vertex
23307
+ src.push(" return;"); // Cull vertex
23308
+ src.push("} else {");
23309
+
23310
+ // camera matrices
23311
+ src.push ("mat4 viewMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 0), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 0), 0));");
23312
+ src.push ("mat4 viewNormalMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 1), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 1), 0));");
23313
+ src.push ("mat4 projMatrix = mat4 (texelFetch (uTextureCameraMatrices, ivec2(0, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(1, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(2, 2), 0), texelFetch (uTextureCameraMatrices, ivec2(3, 2), 0));");
23314
+
23315
+ // model matrices
23316
+ src.push ("mat4 worldMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 0), 0), texelFetch (uTextureModelMatrices, ivec2(1, 0), 0), texelFetch (uTextureModelMatrices, ivec2(2, 0), 0), texelFetch (uTextureModelMatrices, ivec2(3, 0), 0));");
23317
+ src.push ("mat4 worldNormalMatrix = mat4 (texelFetch (uTextureModelMatrices, ivec2(0, 1), 0), texelFetch (uTextureModelMatrices, ivec2(1, 1), 0), texelFetch (uTextureModelMatrices, ivec2(2, 1), 0), texelFetch (uTextureModelMatrices, ivec2(3, 1), 0));");
23381
23318
 
23382
23319
  // get vertex base
23383
23320
  src.push("ivec4 packedVertexBase = ivec4(texelFetch (uTexturePerObjectIdColorsAndFlags, ivec2(objectIndexCoords.x*8+4, objectIndexCoords.y), 0));"); // chipmunk
@@ -27706,7 +27643,6 @@ class TrianglesDataTextureLayer {
27706
27643
  * @param cfg.layerIndex
27707
27644
  * @param cfg.positionsDecodeMatrix
27708
27645
  * @param cfg.origin
27709
- * @param cfg.scratchMemory
27710
27646
  */
27711
27647
  constructor(model, cfg) {
27712
27648
  this._layerNumber = _numberOfLayers++;
@@ -27727,7 +27663,6 @@ class TrianglesDataTextureLayer {
27727
27663
  this._dataTextureRenderers = getDataTextureRenderers(model.scene);
27728
27664
  this.model = model;
27729
27665
  this._buffer = new TrianglesDataTextureBuffer();
27730
- this._scratchMemory = cfg.scratchMemory;
27731
27666
 
27732
27667
  /**
27733
27668
  * @type {DataTextureState}
@@ -29769,7 +29704,7 @@ function attachFPSTracker (scene, cullingManager) {
29769
29704
  * - key: the number of triangles allowed for the objects in the bucket.
29770
29705
  * - value: all PerformanceNodes that have the number of triangles or more.
29771
29706
  *
29772
- * @type {Map<number, Array<VBOSceneModelNode>>}
29707
+ * @type {Map<number, Array<DataTextureSceneModelNode>>}
29773
29708
  */
29774
29709
  this.nodesInLOD = {};
29775
29710
 
@@ -31703,7 +31638,7 @@ const VISIBILITY_CHECK_ENVOLVES_V = (1 << 14);
31703
31638
  });
31704
31639
 
31705
31640
  /**
31706
- * @type {Array<VBOSceneModelNode>}
31641
+ * @type {Array<DataTextureSceneModelNode>}
31707
31642
  * @private
31708
31643
  */
31709
31644
  this._internalNodesList = internalNodesList;
@@ -32225,7 +32160,7 @@ class DataTextureSceneModel extends Component {
32225
32160
  this._layerList = [];
32226
32161
 
32227
32162
  /**
32228
- * @type {Array<VBOSceneModelNode>}
32163
+ * @type {Array<DataTextureSceneModelNode>}
32229
32164
  */
32230
32165
  this._nodeList = [];
32231
32166
 
@@ -32238,15 +32173,13 @@ class DataTextureSceneModel extends Component {
32238
32173
 
32239
32174
  this._preparedInstancingGeometries = {};
32240
32175
 
32241
- this._scratchMemory = getScratchMemory$1();
32242
-
32243
32176
  /**
32244
- * @type {Map<string, VBOSceneModelMesh>}
32177
+ * @type {Map<string, DataTextureSceneModelMesh>}
32245
32178
  */
32246
32179
  this._meshes = {};
32247
32180
 
32248
32181
  /**
32249
- * @type {Map<string, VBOSceneModelNode>}
32182
+ * @type {Map<string, DataTextureSceneModelNode>}
32250
32183
  */
32251
32184
  this._nodes = {};
32252
32185
 
@@ -33284,7 +33217,6 @@ class DataTextureSceneModel extends Component {
33284
33217
  {
33285
33218
  layer = new TrianglesDataTextureLayer(this, {
33286
33219
  layerIndex: 0, // This is set in #finalize()
33287
- scratchMemory: this._scratchMemory,
33288
33220
 
33289
33221
  // chipmunk
33290
33222
  // positionsDecodeMatrix: cfg.positionsDecodeMatrix, // Can be undefined
@@ -33303,7 +33235,7 @@ class DataTextureSceneModel extends Component {
33303
33235
  const metallic = (cfg.metallic !== undefined && cfg.metallic !== null) ? Math.floor(cfg.metallic * 255) : 0;
33304
33236
  const roughness = (cfg.roughness !== undefined && cfg.roughness !== null) ? Math.floor(cfg.roughness * 255) : 255;
33305
33237
 
33306
- const mesh = new VBOSceneModelMesh$1(this, id, color, opacity);
33238
+ const mesh = new DataTextureSceneModelMesh(this, id, color, opacity);
33307
33239
 
33308
33240
  const pickId = mesh.pickId;
33309
33241
 
@@ -33546,7 +33478,7 @@ class DataTextureSceneModel extends Component {
33546
33478
  }
33547
33479
  }
33548
33480
 
33549
- const node = new VBOSceneModelNode(this, cfg.isObject, id, meshes, flags, aabb); // Internally sets PerformanceModelMesh#parent to this PerformanceModelNode
33481
+ const node = new DataTextureSceneModelNode(this, cfg.isObject, id, meshes, flags, aabb); // Internally sets PerformanceModelMesh#parent to this PerformanceModelNode
33550
33482
  this._nodeList.push(node);
33551
33483
  this._nodes[id] = node;
33552
33484
  this.numEntities++;
@@ -33959,7 +33891,7 @@ class DataTextureSceneModel extends Component {
33959
33891
  }
33960
33892
 
33961
33893
  /**
33962
- * Called by VBOSceneModelMesh.drawPickDepths()
33894
+ * Called by DataTextureSceneModelMesh.drawPickDepths()
33963
33895
  * @private
33964
33896
  */
33965
33897
  drawPickDepths(frameCtx) {
@@ -33974,7 +33906,7 @@ class DataTextureSceneModel extends Component {
33974
33906
  }
33975
33907
 
33976
33908
  /**
33977
- * Called by VBOSceneModelMesh.drawPickNormals()
33909
+ * Called by DataTextureSceneModelMesh.drawPickNormals()
33978
33910
  * @private
33979
33911
  */
33980
33912
  drawPickNormals(frameCtx) {
@@ -34007,7 +33939,6 @@ class DataTextureSceneModel extends Component {
34007
33939
  if (this._isModel) {
34008
33940
  this.scene._deregisterModel(this);
34009
33941
  }
34010
- putScratchMemory$1();
34011
33942
  super.destroy();
34012
33943
  }
34013
33944
  }
@@ -63142,7 +63073,7 @@ class DistanceMeasurement extends Component {
63142
63073
  }
63143
63074
 
63144
63075
  /**
63145
- * Sets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
63076
+ * Sets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events, or ignore mouse events altogether.
63146
63077
  *
63147
63078
  * @type {Boolean}
63148
63079
  */
@@ -97235,7 +97166,7 @@ ${cfg.uv && cfg.uv.length > 0 ? 1 : 0}-${cfg.uvCompressed && cfg.uvCompressed.le
97235
97166
  math.expandAABB3(aabb, meshes[i].aabb);
97236
97167
  }
97237
97168
  }
97238
- const node = new VBOSceneModelNode$1(this, cfg.isObject, id, meshes, flags, aabb); // Internally sets PerformanceModelMesh#parent to this PerformanceModelNode
97169
+ const node = new VBOSceneModelNode(this, cfg.isObject, id, meshes, flags, aabb); // Internally sets PerformanceModelMesh#parent to this PerformanceModelNode
97239
97170
  this._nodeList.push(node);
97240
97171
  this._nodes[id] = node;
97241
97172
  this.numEntities++;
@@ -118752,6 +118683,8 @@ class StoreyViewsPlugin extends Plugin {
118752
118683
  }
118753
118684
  }
118754
118685
 
118686
+ const treeViews = [];
118687
+
118755
118688
  /**
118756
118689
  * @desc A {@link Viewer} plugin that provides an HTML tree view to navigate the IFC elements in models.
118757
118690
  * <br>
@@ -119130,6 +119063,16 @@ class TreeViewPlugin extends Plugin {
119130
119063
  return;
119131
119064
  }
119132
119065
 
119066
+ for (let i = 0; ; i++) {
119067
+ if (!treeViews[i]) {
119068
+ treeViews[i] = this;
119069
+ this._index = i;
119070
+ this._id = `tree-${i}-`;
119071
+ break;
119072
+ }
119073
+ }
119074
+
119075
+
119133
119076
  this._containerElement = cfg.containerElement;
119134
119077
  this._metaModels = {};
119135
119078
  this._autoAddModels = (cfg.autoAddModels !== false);
@@ -119548,6 +119491,7 @@ class TreeViewPlugin extends Plugin {
119548
119491
  this._viewer.scene.off(this._onObjectVisibility);
119549
119492
  this._destroyed = true;
119550
119493
  }
119494
+ delete treeViews[this._index];
119551
119495
  super.destroy();
119552
119496
  }
119553
119497
 
@@ -119714,7 +119658,7 @@ class TreeViewPlugin extends Plugin {
119714
119658
  const objectId = metaObject.id;
119715
119659
  if (metaObjectType === "IfcBuilding") {
119716
119660
  buildingNode = {
119717
- nodeId: objectId,
119661
+ nodeId: `${this._id}-objectId`,
119718
119662
  objectId: objectId,
119719
119663
  title: this._rootName || ((metaObjectName && metaObjectName !== "" && metaObjectName !== "Undefined" && metaObjectName !== "Default") ? metaObjectName : metaObjectType),
119720
119664
  type: metaObjectType,
@@ -119733,7 +119677,7 @@ class TreeViewPlugin extends Plugin {
119733
119677
  return;
119734
119678
  }
119735
119679
  storeyNode = {
119736
- nodeId: objectId,
119680
+ nodeId: `${this._id}-objectId`,
119737
119681
  objectId: objectId,
119738
119682
  title: (metaObjectName && metaObjectName !== "" && metaObjectName !== "Undefined" && metaObjectName !== "Default") ? metaObjectName : metaObjectType,
119739
119683
  type: metaObjectType,
@@ -119755,11 +119699,9 @@ class TreeViewPlugin extends Plugin {
119755
119699
  typeNodes = typeNodes || {};
119756
119700
  let typeNode = typeNodes[metaObjectType];
119757
119701
  if (!typeNode) {
119758
- const typeNodeObjectId = storeyNode.objectId + "." + metaObjectType;
119759
- const typeNodeNodeId = typeNodeObjectId;
119760
119702
  typeNode = {
119761
- nodeId: typeNodeNodeId,
119762
- objectId: typeNodeObjectId,
119703
+ nodeId: `${this._id}-${storeyNode.objectId}-${metaObjectType}`,
119704
+ objectId: `${storeyNode.objectId}-${metaObjectType}`,
119763
119705
  title: metaObjectType,
119764
119706
  type: metaObjectType,
119765
119707
  parent: storeyNode,
@@ -119770,11 +119712,11 @@ class TreeViewPlugin extends Plugin {
119770
119712
  children: []
119771
119713
  };
119772
119714
  storeyNode.children.push(typeNode);
119773
- this._objectNodes[typeNodeObjectId] = typeNode;
119715
+ this._objectNodes[node.objectId] = typeNode;
119774
119716
  typeNodes[metaObjectType] = typeNode;
119775
119717
  }
119776
119718
  const node = {
119777
- nodeId: objectId,
119719
+ nodeId: `${this._id}-objectId`,
119778
119720
  objectId: objectId,
119779
119721
  title: (metaObjectName && metaObjectName !== "" && metaObjectName !== "Undefined" && metaObjectName !== "Default") ? metaObjectName : metaObjectType,
119780
119722
  type: metaObjectType,
@@ -119815,7 +119757,7 @@ class TreeViewPlugin extends Plugin {
119815
119757
  const objectId = metaObject.id;
119816
119758
  if (!metaObject.parent) {
119817
119759
  rootNode = {
119818
- nodeId: objectId,
119760
+ nodeId: `${this._id}-objectId`,
119819
119761
  objectId: objectId,
119820
119762
  title: this._rootName || ((metaObjectName && metaObjectName !== "" && metaObjectName !== "Undefined" && metaObjectName !== "Default") ? metaObjectName : metaObjectType),
119821
119763
  type: metaObjectType,
@@ -119837,8 +119779,8 @@ class TreeViewPlugin extends Plugin {
119837
119779
  let typeNode = typeNodes[metaObjectType];
119838
119780
  if (!typeNode) {
119839
119781
  typeNode = {
119840
- nodeId: rootNode.objectId + "." + metaObjectType,
119841
- objectId: rootNode.objectId + "." + metaObjectType,
119782
+ nodeId: `${this._id}-${rootNode.objectId}-${metaObjectType}`,
119783
+ objectId: `${rootNode.objectId}-${metaObjectType}`,
119842
119784
  title: metaObjectType,
119843
119785
  type: metaObjectType,
119844
119786
  parent: rootNode,
@@ -119853,7 +119795,7 @@ class TreeViewPlugin extends Plugin {
119853
119795
  typeNodes[metaObjectType] = typeNode;
119854
119796
  }
119855
119797
  const node = {
119856
- nodeId: objectId,
119798
+ nodeId: `${this._id}-objectId`,
119857
119799
  objectId: objectId,
119858
119800
  title: (metaObjectName && metaObjectName !== "" && metaObjectName !== "Default") ? metaObjectName : metaObjectType,
119859
119801
  type: metaObjectType,
@@ -119893,7 +119835,7 @@ class TreeViewPlugin extends Plugin {
119893
119835
  const children = metaObject.children;
119894
119836
  const objectId = metaObject.id;
119895
119837
  const node = {
119896
- nodeId: objectId,
119838
+ nodeId: `${this._id}-objectId`,
119897
119839
  objectId: objectId,
119898
119840
  title: (!parent) ? (this._rootName || metaObjectName) : (metaObjectName && metaObjectName !== "" && metaObjectName !== "Undefined" && metaObjectName !== "Default") ? metaObjectName : metaObjectType,
119899
119841
  type: metaObjectType,