@xeokit/xeokit-sdk 2.3.0-beta-4 → 2.3.0-beta-7

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.
@@ -8811,7 +8811,8 @@ const createRTCViewMat = (function () {
8811
8811
  const rtcCenterWorld = new Float64Array(4);
8812
8812
  const rtcCenterView = new Float64Array(4);
8813
8813
 
8814
- return function (viewMat, rtcCenter, rtcViewMat = tempMat) {
8814
+ return function (viewMat, rtcCenter, rtcViewMat) {
8815
+ rtcViewMat = rtcViewMat || tempMat;
8815
8816
  rtcCenterWorld[0] = rtcCenter[0];
8816
8817
  rtcCenterWorld[1] = rtcCenter[1];
8817
8818
  rtcCenterWorld[2] = rtcCenter[2];
@@ -56070,9 +56071,9 @@ class LinesBatchingLayer {
56070
56071
 
56071
56072
  if (cfg.positionsDecodeMatrix) {
56072
56073
  this._state.positionsDecodeMatrix.set(cfg.positionsDecodeMatrix);
56073
- this._preCompressedPositionsExpectedPositionsExpected = true;
56074
+ this._preCompressedPositionsExpected = true;
56074
56075
  } else {
56075
- this._preCompressedPositionsExpectedPositionsExpected = false;
56076
+ this._preCompressedPositionsExpected = false;
56076
56077
  }
56077
56078
 
56078
56079
  if (cfg.origin) {
@@ -99341,7 +99342,6 @@ function load(viewer, options, inflatedData, performanceModel) {
99341
99342
 
99342
99343
  performanceModel.createGeometry({
99343
99344
  id: geometryId,
99344
- origin: tileCenter,
99345
99345
  primitive: geometryArrays.primitiveName,
99346
99346
  positionsCompressed: geometryArrays.geometryPositions,
99347
99347
  normalsCompressed: geometryArrays.geometryNormals,
@@ -99363,7 +99363,8 @@ function load(viewer, options, inflatedData, performanceModel) {
99363
99363
  color: meshColor,
99364
99364
  metallic: meshMetallic,
99365
99365
  roughness: meshRoughness,
99366
- opacity: meshOpacity
99366
+ opacity: meshOpacity,
99367
+ origin: tileCenter
99367
99368
  }));
99368
99369
 
99369
99370
  meshIds.push(meshId);
@@ -8807,7 +8807,8 @@ const createRTCViewMat = (function () {
8807
8807
  const rtcCenterWorld = new Float64Array(4);
8808
8808
  const rtcCenterView = new Float64Array(4);
8809
8809
 
8810
- return function (viewMat, rtcCenter, rtcViewMat = tempMat) {
8810
+ return function (viewMat, rtcCenter, rtcViewMat) {
8811
+ rtcViewMat = rtcViewMat || tempMat;
8811
8812
  rtcCenterWorld[0] = rtcCenter[0];
8812
8813
  rtcCenterWorld[1] = rtcCenter[1];
8813
8814
  rtcCenterWorld[2] = rtcCenter[2];
@@ -56066,9 +56067,9 @@ class LinesBatchingLayer {
56066
56067
 
56067
56068
  if (cfg.positionsDecodeMatrix) {
56068
56069
  this._state.positionsDecodeMatrix.set(cfg.positionsDecodeMatrix);
56069
- this._preCompressedPositionsExpectedPositionsExpected = true;
56070
+ this._preCompressedPositionsExpected = true;
56070
56071
  } else {
56071
- this._preCompressedPositionsExpectedPositionsExpected = false;
56072
+ this._preCompressedPositionsExpected = false;
56072
56073
  }
56073
56074
 
56074
56075
  if (cfg.origin) {
@@ -99337,7 +99338,6 @@ function load(viewer, options, inflatedData, performanceModel) {
99337
99338
 
99338
99339
  performanceModel.createGeometry({
99339
99340
  id: geometryId,
99340
- origin: tileCenter,
99341
99341
  primitive: geometryArrays.primitiveName,
99342
99342
  positionsCompressed: geometryArrays.geometryPositions,
99343
99343
  normalsCompressed: geometryArrays.geometryNormals,
@@ -99359,7 +99359,8 @@ function load(viewer, options, inflatedData, performanceModel) {
99359
99359
  color: meshColor,
99360
99360
  metallic: meshMetallic,
99361
99361
  roughness: meshRoughness,
99362
- opacity: meshOpacity
99362
+ opacity: meshOpacity,
99363
+ origin: tileCenter
99363
99364
  }));
99364
99365
 
99365
99366
  meshIds.push(meshId);