@xeokit/xeokit-sdk 2.6.42 → 2.6.43
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 +8 -8
- package/dist/xeokit-sdk.es.js +8 -8
- package/dist/xeokit-sdk.es5.js +10 -8
- package/dist/xeokit-sdk.min.cjs.js +5 -5
- package/dist/xeokit-sdk.min.es.js +4 -4
- package/dist/xeokit-sdk.min.es5.js +2 -2
- package/package.json +1 -1
- package/src/extras/ContextMenu/ContextMenu.js +1 -2
- package/src/plugins/LASLoaderPlugin/LASLoaderPlugin.js +1 -0
- package/src/plugins/ZonesPlugin/ZonesPlugin.js +1 -1
- package/src/viewer/scene/model/dtx/triangles/DTXTrianglesLayer.js +2 -2
- package/src/viewer/scene/model/vbo/batching/points/VBOBatchingPointsLayer.js +2 -2
package/package.json
CHANGED
|
@@ -636,9 +636,8 @@ class ContextMenu {
|
|
|
636
636
|
if (itemSubMenu) {
|
|
637
637
|
|
|
638
638
|
html.push(
|
|
639
|
-
'<li id="' + item.id + '" class="xeokit-context-menu-item">' +
|
|
639
|
+
'<li id="' + item.id + '" class="xeokit-context-menu-item xeokit-context-menu-submenu">' +
|
|
640
640
|
actionTitle +
|
|
641
|
-
' [MORE]' +
|
|
642
641
|
'</li>');
|
|
643
642
|
if (!((groupIdx === groupLen - 1) || (j < lenj - 1))) {
|
|
644
643
|
html.push(
|
|
@@ -7,7 +7,7 @@ import {PhongMaterial} from "../../viewer/scene/materials/PhongMaterial.js";
|
|
|
7
7
|
import {math} from "../../viewer/scene/math/math.js";
|
|
8
8
|
import {Mesh} from "../../viewer/scene/mesh/Mesh.js";
|
|
9
9
|
import {Dot} from "../lib/html/Dot.js";
|
|
10
|
-
import {activateDraggableDots, Dot3D, transformToNode} from "../../../src/plugins/lib/ui/index.js";
|
|
10
|
+
import {activateDraggableDots, Dot3D, touchPointSelector, transformToNode} from "../../../src/plugins/lib/ui/index.js";
|
|
11
11
|
|
|
12
12
|
const hex2rgb = function(color) {
|
|
13
13
|
const rgb = idx => parseInt(color.substr(idx + 1, 2), 16) / 255;
|
|
@@ -822,14 +822,14 @@ export class DTXTrianglesLayer {
|
|
|
822
822
|
// object colors
|
|
823
823
|
textureState.texturePerObjectColorsAndFlags._textureData.set(tempUint8Array4, subPortionId * 32);
|
|
824
824
|
if (this._deferredSetFlagsActive) {
|
|
825
|
-
console.info("_subPortionSetColor defer");
|
|
825
|
+
//console.info("_subPortionSetColor defer");
|
|
826
826
|
this._deferredSetFlagsDirty = true;
|
|
827
827
|
return;
|
|
828
828
|
}
|
|
829
829
|
if (++this._numUpdatesInFrame >= MAX_OBJECT_UPDATES_IN_FRAME_WITHOUT_BATCHED_UPDATE) {
|
|
830
830
|
this._beginDeferredFlags(); // Subsequent flags updates now deferred
|
|
831
831
|
}
|
|
832
|
-
console.info("_subPortionSetColor write through");
|
|
832
|
+
//console.info("_subPortionSetColor write through");
|
|
833
833
|
gl.bindTexture(gl.TEXTURE_2D, textureState.texturePerObjectColorsAndFlags._texture);
|
|
834
834
|
gl.texSubImage2D(
|
|
835
835
|
gl.TEXTURE_2D,
|
|
@@ -45,7 +45,7 @@ export class VBOBatchingPointsLayer {
|
|
|
45
45
|
|
|
46
46
|
this._renderers = getRenderers(cfg.model.scene);
|
|
47
47
|
|
|
48
|
-
const maxGeometryBatchSize =
|
|
48
|
+
const maxGeometryBatchSize = cfg.maxGeometryBatchSize || 5000000;
|
|
49
49
|
|
|
50
50
|
const attribute = function() {
|
|
51
51
|
const portions = [ ];
|
|
@@ -161,7 +161,7 @@ export class VBOBatchingPointsLayer {
|
|
|
161
161
|
if (this._finalized) {
|
|
162
162
|
throw "Already finalized";
|
|
163
163
|
}
|
|
164
|
-
return (this._buffer.vertsIndex + (lenPositions / 3))
|
|
164
|
+
return (this._buffer.vertsIndex + (lenPositions / 3)) <= this._buffer.maxVerts;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
/**
|