@xeokit/xeokit-sdk 2.3.0-beta-27 → 2.3.0-beta-30
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 +10 -14
- package/dist/xeokit-sdk.es.js +10 -14
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/package.json +1 -1
- package/dist/xeokit-sdk.umd.js +0 -163848
package/dist/xeokit-sdk.cjs.js
CHANGED
|
@@ -8873,7 +8873,7 @@ function worldToRTCPos(worldPos, rtcCenter, rtcPos) {
|
|
|
8873
8873
|
* ````false````, we can safely ignore the data returned in ````rtcPositions```` and ````rtcCenter````,
|
|
8874
8874
|
* since ````rtcCenter```` will equal ````[0,0,0]````, and ````rtcPositions```` will contain identical values to ````positions````.
|
|
8875
8875
|
*/
|
|
8876
|
-
function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize =
|
|
8876
|
+
function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize = 1000) {
|
|
8877
8877
|
|
|
8878
8878
|
const center = math.getPositionsCenter(worldPositions, tempVec3a$14);
|
|
8879
8879
|
|
|
@@ -12283,13 +12283,7 @@ class Canvas extends Component {
|
|
|
12283
12283
|
boundary[2] = newWidth;
|
|
12284
12284
|
boundary[3] = newHeight;
|
|
12285
12285
|
|
|
12286
|
-
|
|
12287
|
-
* Fired whenever this Canvas's {@link Canvas/boundary} property changes.
|
|
12288
|
-
*
|
|
12289
|
-
* @event boundary
|
|
12290
|
-
* @param value The property's new value
|
|
12291
|
-
*/
|
|
12292
|
-
if (!newResolutionScale || newCanvasSize) {
|
|
12286
|
+
if (!newResolutionScale) {
|
|
12293
12287
|
this.fire("boundary", boundary);
|
|
12294
12288
|
}
|
|
12295
12289
|
|
|
@@ -63548,8 +63542,8 @@ class TrianglesInstancingOcclusionRenderer {
|
|
|
63548
63542
|
src.push("in float isPerspective;");
|
|
63549
63543
|
}
|
|
63550
63544
|
if (clipping) {
|
|
63551
|
-
src.push("
|
|
63552
|
-
src.push("
|
|
63545
|
+
src.push("out vec4 vWorldPosition;");
|
|
63546
|
+
src.push("out vec4 vFlags2;");
|
|
63553
63547
|
}
|
|
63554
63548
|
src.push("void main(void) {");
|
|
63555
63549
|
|
|
@@ -63601,8 +63595,8 @@ class TrianglesInstancingOcclusionRenderer {
|
|
|
63601
63595
|
src.push("out float vFragDepth;");
|
|
63602
63596
|
}
|
|
63603
63597
|
if (clipping) {
|
|
63604
|
-
src.push("
|
|
63605
|
-
src.push("
|
|
63598
|
+
src.push("in vec4 vWorldPosition;");
|
|
63599
|
+
src.push("in vec4 vFlags2;");
|
|
63606
63600
|
for (let i = 0; i < sectionPlanesState.sectionPlanes.length; i++) {
|
|
63607
63601
|
src.push("uniform bool sectionPlaneActive" + i + ";");
|
|
63608
63602
|
src.push("uniform vec3 sectionPlanePos" + i + ";");
|
|
@@ -95493,11 +95487,13 @@ function loadNode(ctx, node, matrix) {
|
|
|
95493
95487
|
}
|
|
95494
95488
|
if (createEntity) {
|
|
95495
95489
|
sceneModel.createEntity(utils.apply(createEntity, {
|
|
95496
|
-
meshIds: meshIds
|
|
95490
|
+
meshIds: meshIds,
|
|
95491
|
+
isObject: true
|
|
95497
95492
|
}));
|
|
95498
95493
|
} else {
|
|
95499
95494
|
sceneModel.createEntity({
|
|
95500
|
-
meshIds: meshIds
|
|
95495
|
+
meshIds: meshIds,
|
|
95496
|
+
isObject: true
|
|
95501
95497
|
});
|
|
95502
95498
|
}
|
|
95503
95499
|
}
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -8869,7 +8869,7 @@ function worldToRTCPos(worldPos, rtcCenter, rtcPos) {
|
|
|
8869
8869
|
* ````false````, we can safely ignore the data returned in ````rtcPositions```` and ````rtcCenter````,
|
|
8870
8870
|
* since ````rtcCenter```` will equal ````[0,0,0]````, and ````rtcPositions```` will contain identical values to ````positions````.
|
|
8871
8871
|
*/
|
|
8872
|
-
function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize =
|
|
8872
|
+
function worldToRTCPositions(worldPositions, rtcPositions, rtcCenter, cellSize = 1000) {
|
|
8873
8873
|
|
|
8874
8874
|
const center = math.getPositionsCenter(worldPositions, tempVec3a$14);
|
|
8875
8875
|
|
|
@@ -12279,13 +12279,7 @@ class Canvas extends Component {
|
|
|
12279
12279
|
boundary[2] = newWidth;
|
|
12280
12280
|
boundary[3] = newHeight;
|
|
12281
12281
|
|
|
12282
|
-
|
|
12283
|
-
* Fired whenever this Canvas's {@link Canvas/boundary} property changes.
|
|
12284
|
-
*
|
|
12285
|
-
* @event boundary
|
|
12286
|
-
* @param value The property's new value
|
|
12287
|
-
*/
|
|
12288
|
-
if (!newResolutionScale || newCanvasSize) {
|
|
12282
|
+
if (!newResolutionScale) {
|
|
12289
12283
|
this.fire("boundary", boundary);
|
|
12290
12284
|
}
|
|
12291
12285
|
|
|
@@ -63544,8 +63538,8 @@ class TrianglesInstancingOcclusionRenderer {
|
|
|
63544
63538
|
src.push("in float isPerspective;");
|
|
63545
63539
|
}
|
|
63546
63540
|
if (clipping) {
|
|
63547
|
-
src.push("
|
|
63548
|
-
src.push("
|
|
63541
|
+
src.push("out vec4 vWorldPosition;");
|
|
63542
|
+
src.push("out vec4 vFlags2;");
|
|
63549
63543
|
}
|
|
63550
63544
|
src.push("void main(void) {");
|
|
63551
63545
|
|
|
@@ -63597,8 +63591,8 @@ class TrianglesInstancingOcclusionRenderer {
|
|
|
63597
63591
|
src.push("out float vFragDepth;");
|
|
63598
63592
|
}
|
|
63599
63593
|
if (clipping) {
|
|
63600
|
-
src.push("
|
|
63601
|
-
src.push("
|
|
63594
|
+
src.push("in vec4 vWorldPosition;");
|
|
63595
|
+
src.push("in vec4 vFlags2;");
|
|
63602
63596
|
for (let i = 0; i < sectionPlanesState.sectionPlanes.length; i++) {
|
|
63603
63597
|
src.push("uniform bool sectionPlaneActive" + i + ";");
|
|
63604
63598
|
src.push("uniform vec3 sectionPlanePos" + i + ";");
|
|
@@ -95489,11 +95483,13 @@ function loadNode(ctx, node, matrix) {
|
|
|
95489
95483
|
}
|
|
95490
95484
|
if (createEntity) {
|
|
95491
95485
|
sceneModel.createEntity(utils.apply(createEntity, {
|
|
95492
|
-
meshIds: meshIds
|
|
95486
|
+
meshIds: meshIds,
|
|
95487
|
+
isObject: true
|
|
95493
95488
|
}));
|
|
95494
95489
|
} else {
|
|
95495
95490
|
sceneModel.createEntity({
|
|
95496
|
-
meshIds: meshIds
|
|
95491
|
+
meshIds: meshIds,
|
|
95492
|
+
isObject: true
|
|
95497
95493
|
});
|
|
95498
95494
|
}
|
|
95499
95495
|
}
|