@xeokit/xeokit-sdk 2.4.0-alpha-11 → 2.4.0-alpha-13
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/dist/xeokit-sdk.cjs.js +12 -12
- package/dist/xeokit-sdk.es.js +12 -12
- package/dist/xeokit-sdk.es5.js +33 -33
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/dist/xeokit-sdk.min.es5.js +1 -1
- package/package.json +1 -1
package/dist/xeokit-sdk.cjs.js
CHANGED
|
@@ -119071,7 +119071,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
119071
119071
|
if (!treeViews[i]) {
|
|
119072
119072
|
treeViews[i] = this;
|
|
119073
119073
|
this._index = i;
|
|
119074
|
-
this._id = `tree-${i}
|
|
119074
|
+
this._id = `tree-${i}`;
|
|
119075
119075
|
break;
|
|
119076
119076
|
}
|
|
119077
119077
|
}
|
|
@@ -119120,7 +119120,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
119120
119120
|
} else {
|
|
119121
119121
|
node.numVisibleEntities--;
|
|
119122
119122
|
}
|
|
119123
|
-
const checkbox = document.getElementById(node.nodeId);
|
|
119123
|
+
const checkbox = document.getElementById(`checkbox-${node.nodeId}`);
|
|
119124
119124
|
if (checkbox) {
|
|
119125
119125
|
checkbox.checked = visible;
|
|
119126
119126
|
}
|
|
@@ -119132,7 +119132,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
119132
119132
|
} else {
|
|
119133
119133
|
parent.numVisibleEntities--;
|
|
119134
119134
|
}
|
|
119135
|
-
const parentCheckbox = document.getElementById(parent.nodeId);
|
|
119135
|
+
const parentCheckbox = document.getElementById(`checkbox-${parent.nodeId}`);
|
|
119136
119136
|
if (parentCheckbox) {
|
|
119137
119137
|
const newChecked = (parent.numVisibleEntities > 0);
|
|
119138
119138
|
if (newChecked !== parentCheckbox.checked) {
|
|
@@ -119193,13 +119193,13 @@ class TreeViewPlugin extends Plugin {
|
|
|
119193
119193
|
this._muteSceneEvents = true;
|
|
119194
119194
|
const checkbox = event.target;
|
|
119195
119195
|
const visible = checkbox.checked;
|
|
119196
|
-
const nodeId = checkbox.id;
|
|
119196
|
+
const nodeId = checkbox.id.replace('checkbox-', '');
|
|
119197
119197
|
const checkedNode = this._nodeNodes[nodeId];
|
|
119198
119198
|
const objects = this._viewer.scene.objects;
|
|
119199
119199
|
let numUpdated = 0;
|
|
119200
119200
|
this._withNodeTree(checkedNode, (node) => {
|
|
119201
119201
|
const objectId = node.objectId;
|
|
119202
|
-
const checkBoxId = node.nodeId
|
|
119202
|
+
const checkBoxId = `checkbox-${node.nodeId}`;
|
|
119203
119203
|
const entity = objects[objectId];
|
|
119204
119204
|
const isLeaf = (node.children.length === 0);
|
|
119205
119205
|
node.numVisibleEntities = visible ? node.numEntities : 0;
|
|
@@ -119218,7 +119218,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
119218
119218
|
let parent = checkedNode.parent;
|
|
119219
119219
|
while (parent) {
|
|
119220
119220
|
parent.checked = visible;
|
|
119221
|
-
const checkbox2 = document.getElementById(parent.nodeId); // Parent checkboxes are always in DOM
|
|
119221
|
+
const checkbox2 = document.getElementById(`checkbox-${parent.nodeId}`); // Parent checkboxes are always in DOM
|
|
119222
119222
|
if (visible) {
|
|
119223
119223
|
parent.numVisibleEntities += numUpdated;
|
|
119224
119224
|
} else {
|
|
@@ -119597,8 +119597,8 @@ class TreeViewPlugin extends Plugin {
|
|
|
119597
119597
|
this._containerElement.appendChild(ul);
|
|
119598
119598
|
|
|
119599
119599
|
const rootMetaObjects = this._viewer.metaScene.rootMetaObjects;
|
|
119600
|
-
for (let
|
|
119601
|
-
const rootMetaObject = rootMetaObjects[
|
|
119600
|
+
for (let objectId in rootMetaObjects) {
|
|
119601
|
+
const rootMetaObject = rootMetaObjects[objectId];
|
|
119602
119602
|
const metaObjectType = rootMetaObject.type;
|
|
119603
119603
|
const metaObjectName = rootMetaObject.name;
|
|
119604
119604
|
const rootName = ((metaObjectName && metaObjectName !== ""
|
|
@@ -119621,8 +119621,8 @@ class TreeViewPlugin extends Plugin {
|
|
|
119621
119621
|
|
|
119622
119622
|
_findEmptyNodes() {
|
|
119623
119623
|
const rootMetaObjects = this._viewer.metaScene.rootMetaObjects;
|
|
119624
|
-
for (let
|
|
119625
|
-
this._findEmptyNodes2(rootMetaObjects[
|
|
119624
|
+
for (let objectId in rootMetaObjects) {
|
|
119625
|
+
this._findEmptyNodes2(rootMetaObjects[objectId]);
|
|
119626
119626
|
}
|
|
119627
119627
|
}
|
|
119628
119628
|
|
|
@@ -120012,7 +120012,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
120012
120012
|
if (node.xrayed) {
|
|
120013
120013
|
nodeElement.classList.add('xrayed-node');
|
|
120014
120014
|
}
|
|
120015
|
-
nodeElement.id =
|
|
120015
|
+
nodeElement.id = nodeId;
|
|
120016
120016
|
if (node.children.length > 0) {
|
|
120017
120017
|
const switchElementId = "switch-" + nodeId;
|
|
120018
120018
|
const switchElement = document.createElement('a');
|
|
@@ -120024,7 +120024,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
120024
120024
|
nodeElement.appendChild(switchElement);
|
|
120025
120025
|
}
|
|
120026
120026
|
const checkbox = document.createElement('input');
|
|
120027
|
-
checkbox.id =
|
|
120027
|
+
checkbox.id = `checkbox-${nodeId}`;
|
|
120028
120028
|
checkbox.type = "checkbox";
|
|
120029
120029
|
checkbox.checked = node.checked;
|
|
120030
120030
|
checkbox.style["pointer-events"] = "all";
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -119067,7 +119067,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
119067
119067
|
if (!treeViews[i]) {
|
|
119068
119068
|
treeViews[i] = this;
|
|
119069
119069
|
this._index = i;
|
|
119070
|
-
this._id = `tree-${i}
|
|
119070
|
+
this._id = `tree-${i}`;
|
|
119071
119071
|
break;
|
|
119072
119072
|
}
|
|
119073
119073
|
}
|
|
@@ -119116,7 +119116,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
119116
119116
|
} else {
|
|
119117
119117
|
node.numVisibleEntities--;
|
|
119118
119118
|
}
|
|
119119
|
-
const checkbox = document.getElementById(node.nodeId);
|
|
119119
|
+
const checkbox = document.getElementById(`checkbox-${node.nodeId}`);
|
|
119120
119120
|
if (checkbox) {
|
|
119121
119121
|
checkbox.checked = visible;
|
|
119122
119122
|
}
|
|
@@ -119128,7 +119128,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
119128
119128
|
} else {
|
|
119129
119129
|
parent.numVisibleEntities--;
|
|
119130
119130
|
}
|
|
119131
|
-
const parentCheckbox = document.getElementById(parent.nodeId);
|
|
119131
|
+
const parentCheckbox = document.getElementById(`checkbox-${parent.nodeId}`);
|
|
119132
119132
|
if (parentCheckbox) {
|
|
119133
119133
|
const newChecked = (parent.numVisibleEntities > 0);
|
|
119134
119134
|
if (newChecked !== parentCheckbox.checked) {
|
|
@@ -119189,13 +119189,13 @@ class TreeViewPlugin extends Plugin {
|
|
|
119189
119189
|
this._muteSceneEvents = true;
|
|
119190
119190
|
const checkbox = event.target;
|
|
119191
119191
|
const visible = checkbox.checked;
|
|
119192
|
-
const nodeId = checkbox.id;
|
|
119192
|
+
const nodeId = checkbox.id.replace('checkbox-', '');
|
|
119193
119193
|
const checkedNode = this._nodeNodes[nodeId];
|
|
119194
119194
|
const objects = this._viewer.scene.objects;
|
|
119195
119195
|
let numUpdated = 0;
|
|
119196
119196
|
this._withNodeTree(checkedNode, (node) => {
|
|
119197
119197
|
const objectId = node.objectId;
|
|
119198
|
-
const checkBoxId = node.nodeId
|
|
119198
|
+
const checkBoxId = `checkbox-${node.nodeId}`;
|
|
119199
119199
|
const entity = objects[objectId];
|
|
119200
119200
|
const isLeaf = (node.children.length === 0);
|
|
119201
119201
|
node.numVisibleEntities = visible ? node.numEntities : 0;
|
|
@@ -119214,7 +119214,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
119214
119214
|
let parent = checkedNode.parent;
|
|
119215
119215
|
while (parent) {
|
|
119216
119216
|
parent.checked = visible;
|
|
119217
|
-
const checkbox2 = document.getElementById(parent.nodeId); // Parent checkboxes are always in DOM
|
|
119217
|
+
const checkbox2 = document.getElementById(`checkbox-${parent.nodeId}`); // Parent checkboxes are always in DOM
|
|
119218
119218
|
if (visible) {
|
|
119219
119219
|
parent.numVisibleEntities += numUpdated;
|
|
119220
119220
|
} else {
|
|
@@ -119593,8 +119593,8 @@ class TreeViewPlugin extends Plugin {
|
|
|
119593
119593
|
this._containerElement.appendChild(ul);
|
|
119594
119594
|
|
|
119595
119595
|
const rootMetaObjects = this._viewer.metaScene.rootMetaObjects;
|
|
119596
|
-
for (let
|
|
119597
|
-
const rootMetaObject = rootMetaObjects[
|
|
119596
|
+
for (let objectId in rootMetaObjects) {
|
|
119597
|
+
const rootMetaObject = rootMetaObjects[objectId];
|
|
119598
119598
|
const metaObjectType = rootMetaObject.type;
|
|
119599
119599
|
const metaObjectName = rootMetaObject.name;
|
|
119600
119600
|
const rootName = ((metaObjectName && metaObjectName !== ""
|
|
@@ -119617,8 +119617,8 @@ class TreeViewPlugin extends Plugin {
|
|
|
119617
119617
|
|
|
119618
119618
|
_findEmptyNodes() {
|
|
119619
119619
|
const rootMetaObjects = this._viewer.metaScene.rootMetaObjects;
|
|
119620
|
-
for (let
|
|
119621
|
-
this._findEmptyNodes2(rootMetaObjects[
|
|
119620
|
+
for (let objectId in rootMetaObjects) {
|
|
119621
|
+
this._findEmptyNodes2(rootMetaObjects[objectId]);
|
|
119622
119622
|
}
|
|
119623
119623
|
}
|
|
119624
119624
|
|
|
@@ -120008,7 +120008,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
120008
120008
|
if (node.xrayed) {
|
|
120009
120009
|
nodeElement.classList.add('xrayed-node');
|
|
120010
120010
|
}
|
|
120011
|
-
nodeElement.id =
|
|
120011
|
+
nodeElement.id = nodeId;
|
|
120012
120012
|
if (node.children.length > 0) {
|
|
120013
120013
|
const switchElementId = "switch-" + nodeId;
|
|
120014
120014
|
const switchElement = document.createElement('a');
|
|
@@ -120020,7 +120020,7 @@ class TreeViewPlugin extends Plugin {
|
|
|
120020
120020
|
nodeElement.appendChild(switchElement);
|
|
120021
120021
|
}
|
|
120022
120022
|
const checkbox = document.createElement('input');
|
|
120023
|
-
checkbox.id =
|
|
120023
|
+
checkbox.id = `checkbox-${nodeId}`;
|
|
120024
120024
|
checkbox.type = "checkbox";
|
|
120025
120025
|
checkbox.checked = node.checked;
|
|
120026
120026
|
checkbox.style["pointer-events"] = "all";
|