@xeokit/xeokit-sdk 2.6.0 → 2.6.2
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/README.md +11 -8
- package/dist/xeokit-sdk.cjs.js +3 -3
- package/dist/xeokit-sdk.es.js +3 -3
- package/dist/xeokit-sdk.es5.js +3 -3
- package/dist/xeokit-sdk.min.cjs.js +2 -2
- package/dist/xeokit-sdk.min.es.js +2 -2
- package/dist/xeokit-sdk.min.es5.js +2 -2
- package/package.json +11 -3
- package/src/plugins/GLTFLoaderPlugin/GLTFSceneModelLoader.js +1 -1
- package/src/viewer/scene/model/SceneModel.js +1 -1
- package/src/viewer/scene/model/SceneModelTransform.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.2",
|
|
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",
|
|
@@ -10,12 +10,19 @@
|
|
|
10
10
|
"dev-build": "rollup --config rollup.dev.config.js",
|
|
11
11
|
"docs": "rm -Rf ./docs/*; ./node_modules/.bin/esdoc",
|
|
12
12
|
"typedocs": "rm -Rf ./docs/*; typedoc --tsconfig tsconfig.json",
|
|
13
|
-
"publish": "npm publish --access public"
|
|
13
|
+
"publish": "npm publish --access public",
|
|
14
|
+
"changelog": "auto-changelog --commit-limit false --package --template changelog-template.hbs"
|
|
14
15
|
},
|
|
15
16
|
"repository": {
|
|
16
17
|
"type": "git",
|
|
17
18
|
"url": "git+https://github.com/xeokit/xeokit-sdk.git"
|
|
18
19
|
},
|
|
20
|
+
"auto-changelog": {
|
|
21
|
+
"output": "CHANGELOG.md",
|
|
22
|
+
"template": "keepachangelog",
|
|
23
|
+
"unreleased": true,
|
|
24
|
+
"commitLimit": false
|
|
25
|
+
},
|
|
19
26
|
"keywords": [
|
|
20
27
|
"webgl",
|
|
21
28
|
"webgl2",
|
|
@@ -66,7 +73,8 @@
|
|
|
66
73
|
"parse5": "^7.0.0",
|
|
67
74
|
"rollup": "^2.70.2",
|
|
68
75
|
"rollup-plugin-terser": "^7.0.2",
|
|
69
|
-
"typedoc": "^0.22.15"
|
|
76
|
+
"typedoc": "^0.22.15",
|
|
77
|
+
"auto-changelog": "^2.4.0"
|
|
70
78
|
},
|
|
71
79
|
"files": [
|
|
72
80
|
"/src",
|
|
@@ -532,7 +532,7 @@ function loadNode(ctx, node, depth, matrix) {
|
|
|
532
532
|
meshCfg.opacity = 1.0;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
const backfaces = ((ctx.backfaces !== false) || (material.doubleSided !== false));
|
|
535
|
+
const backfaces = ((ctx.backfaces !== false) || (material && material.doubleSided !== false));
|
|
536
536
|
|
|
537
537
|
switch (primitive.mode) {
|
|
538
538
|
case 0: // POINTS
|
|
@@ -2679,7 +2679,7 @@ export class SceneModel extends Component {
|
|
|
2679
2679
|
const transform = new SceneModelTransform({
|
|
2680
2680
|
id: cfg.id,
|
|
2681
2681
|
model: this,
|
|
2682
|
-
parentTransform,
|
|
2682
|
+
parent: parentTransform,
|
|
2683
2683
|
matrix: cfg.matrix,
|
|
2684
2684
|
position: cfg.position,
|
|
2685
2685
|
scale: cfg.scale,
|
|
@@ -66,7 +66,7 @@ export class SceneModelTransform {
|
|
|
66
66
|
_addChildTransform(childTransform) {
|
|
67
67
|
this._childTransforms.push(childTransform);
|
|
68
68
|
childTransform._parentTransform = this;
|
|
69
|
-
childTransform.
|
|
69
|
+
childTransform._transformDirty();
|
|
70
70
|
childTransform._setAABBDirty();
|
|
71
71
|
}
|
|
72
72
|
|