@xeokit/xeokit-sdk 2.6.78 → 2.6.80
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 +9 -9
- package/dist/xeokit-sdk.min.cjs.js +5 -5
- package/dist/xeokit-sdk.min.es.js +5 -5
- package/dist/xeokit-sdk.min.es5.js +5 -5
- package/package.json +1 -1
- package/src/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.js +4 -4
- package/src/viewer/scene/canvas/Canvas.js +1 -1
- package/src/viewer/scene/model/vbo/batching/triangles/renderers/TrianglesColorTextureRenderer.js +1 -1
- package/src/viewer/scene/model/vbo/batching/triangles/renderers/TrianglesFlatColorRenderer.js +1 -1
- package/src/viewer/scene/model/vbo/instancing/triangles/renderers/TrianglesColorTextureRenderer.js +1 -1
- package/src/viewer/scene/model/vbo/instancing/triangles/renderers/TrianglesFlatColorRenderer.js +1 -1
- package/src/viewer/scene/nodes/Node.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xeokit/xeokit-sdk",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.80",
|
|
4
4
|
"description": "3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision",
|
|
5
5
|
"module": "./dist/xeokit-sdk.es.js",
|
|
6
6
|
"main": "./dist/xeokit-sdk.cjs.js",
|
|
@@ -796,7 +796,7 @@ class BCFViewpointsPlugin extends Plugin {
|
|
|
796
796
|
let alphaDefined = false;
|
|
797
797
|
|
|
798
798
|
if (color.length === 8) {
|
|
799
|
-
alpha = parseInt(color.substring(0, 2), 16) /
|
|
799
|
+
alpha = parseInt(color.substring(0, 2), 16) / 255;
|
|
800
800
|
if (alpha <= 1.0 && alpha >= 0.95) {
|
|
801
801
|
alpha = 1.0;
|
|
802
802
|
}
|
|
@@ -805,9 +805,9 @@ class BCFViewpointsPlugin extends Plugin {
|
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
const colorize = [
|
|
808
|
-
parseInt(color.substring(0, 2), 16) /
|
|
809
|
-
parseInt(color.substring(2, 4), 16) /
|
|
810
|
-
parseInt(color.substring(4, 6), 16) /
|
|
808
|
+
parseInt(color.substring(0, 2), 16) / 255,
|
|
809
|
+
parseInt(color.substring(2, 4), 16) / 255,
|
|
810
|
+
parseInt(color.substring(4, 6), 16) / 255
|
|
811
811
|
];
|
|
812
812
|
|
|
813
813
|
coloring.components.map(component =>
|
|
@@ -483,7 +483,7 @@ class Canvas extends Component {
|
|
|
483
483
|
this.canvas.removeEventListener("webglcontextlost", this._webglcontextlostListener);
|
|
484
484
|
this.canvas.removeEventListener("webglcontextrestored", this._webglcontextrestoredListener);
|
|
485
485
|
|
|
486
|
-
this.gl.getExtension("WEBGL_lose_context").loseContext();
|
|
486
|
+
// this.gl.getExtension("WEBGL_lose_context").loseContext(); // disabled because of XCD-306 and XEOK-295
|
|
487
487
|
this.gl = null;
|
|
488
488
|
|
|
489
489
|
super.destroy();
|
package/src/viewer/scene/model/vbo/batching/triangles/renderers/TrianglesColorTextureRenderer.js
CHANGED
|
@@ -229,7 +229,7 @@ export class TrianglesColorTextureRenderer extends TrianglesBatchingRenderer {
|
|
|
229
229
|
}
|
|
230
230
|
} else if (light.type === "point") {
|
|
231
231
|
if (light.space === "view") {
|
|
232
|
-
src.push("viewLightDir = -normalize(lightPos" + i + " -
|
|
232
|
+
src.push("viewLightDir = -normalize(lightPos" + i + " - vViewPosition.xyz);");
|
|
233
233
|
} else {
|
|
234
234
|
src.push("viewLightDir = -normalize((viewMatrix * vec4(lightPos" + i + ", 0.0)).xyz);");
|
|
235
235
|
}
|
package/src/viewer/scene/model/vbo/batching/triangles/renderers/TrianglesFlatColorRenderer.js
CHANGED
|
@@ -197,7 +197,7 @@ export class TrianglesFlatColorRenderer extends TrianglesBatchingRenderer {
|
|
|
197
197
|
}
|
|
198
198
|
} else if (light.type === "point") {
|
|
199
199
|
if (light.space === "view") {
|
|
200
|
-
src.push("viewLightDir = -normalize(lightPos" + i + " -
|
|
200
|
+
src.push("viewLightDir = -normalize(lightPos" + i + " - vViewPosition.xyz);");
|
|
201
201
|
} else {
|
|
202
202
|
src.push("viewLightDir = -normalize((viewMatrix * vec4(lightPos" + i + ", 0.0)).xyz);");
|
|
203
203
|
}
|
package/src/viewer/scene/model/vbo/instancing/triangles/renderers/TrianglesColorTextureRenderer.js
CHANGED
|
@@ -234,7 +234,7 @@ export class TrianglesColorTextureRenderer extends TrianglesInstancingRenderer {
|
|
|
234
234
|
}
|
|
235
235
|
} else if (light.type === "point") {
|
|
236
236
|
if (light.space === "view") {
|
|
237
|
-
src.push("viewLightDir = -normalize(lightPos" + i + " -
|
|
237
|
+
src.push("viewLightDir = -normalize(lightPos" + i + " - vViewPosition.xyz);");
|
|
238
238
|
} else {
|
|
239
239
|
src.push("viewLightDir = -normalize((viewMatrix * vec4(lightPos" + i + ", 0.0)).xyz);");
|
|
240
240
|
}
|
package/src/viewer/scene/model/vbo/instancing/triangles/renderers/TrianglesFlatColorRenderer.js
CHANGED
|
@@ -207,7 +207,7 @@ export class TrianglesFlatColorRenderer extends TrianglesInstancingRenderer {
|
|
|
207
207
|
}
|
|
208
208
|
} else if (light.type === "point") {
|
|
209
209
|
if (light.space === "view") {
|
|
210
|
-
src.push("viewLightDir = -normalize(lightPos" + i + " -
|
|
210
|
+
src.push("viewLightDir = -normalize(lightPos" + i + " - vViewPosition.xyz);");
|
|
211
211
|
} else {
|
|
212
212
|
src.push("viewLightDir = -normalize((viewMatrix * vec4(lightPos" + i + ", 0.0)).xyz);");
|
|
213
213
|
}
|
|
@@ -1366,7 +1366,7 @@ class Node extends Component {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
if (this._children.length) {
|
|
1368
1368
|
// Clone the _children before iterating, so our children don't mess us up when calling removeChild().
|
|
1369
|
-
const tempChildList = this._children.splice();
|
|
1369
|
+
const tempChildList = this._children.splice(0);
|
|
1370
1370
|
let child;
|
|
1371
1371
|
for (let i = 0, len = tempChildList.length; i < len; i++) {
|
|
1372
1372
|
child = tempChildList[i];
|