@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.6.42",
3
+ "version": "2.6.43",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -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(
@@ -339,6 +339,7 @@ class LASLoaderPlugin extends Plugin {
339
339
  }
340
340
 
341
341
  const sceneModel = new SceneModel(this.viewer.scene, utils.apply(params, {
342
+ maxGeometryBatchSize: MAX_VERTICES,
342
343
  isModel: true
343
344
  }));
344
345
 
@@ -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 = Math.min(5000000, cfg.maxGeometryBatchSize || window.Infinity);
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)) < this._buffer.maxVerts;
164
+ return (this._buffer.vertsIndex + (lenPositions / 3)) <= this._buffer.maxVerts;
165
165
  }
166
166
 
167
167
  /**