@xeokit/xeokit-sdk 2.6.0 → 2.6.1
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 +1 -1
- package/dist/xeokit-sdk.es.js +1 -1
- package/dist/xeokit-sdk.es5.js +1 -1
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/dist/xeokit-sdk.min.es5.js +1 -1
- package/package.json +11 -3
- package/src/viewer/scene/model/SceneModel.js +1 -1
package/README.md
CHANGED
|
@@ -7,6 +7,17 @@
|
|
|
7
7
|
[xeokit](http://xeokit.io) is a JavaScript software development kit created by [xeolabs](http://xeolabs.com) for viewing
|
|
8
8
|
high-detail, full-precision 3D engineering and BIM models in the browser.
|
|
9
9
|
|
|
10
|
+
## Resources
|
|
11
|
+
|
|
12
|
+
* [xeokit.io](https://xeokit.io/)
|
|
13
|
+
* [Examples](http://xeokit.github.io/xeokit-sdk/examples/)
|
|
14
|
+
* [Guides](https://www.notion.so/xeokit/xeokit-Documentation-4598591fcedb4889bf8896750651f74e)
|
|
15
|
+
* [API Docs](https://xeokit.github.io/xeokit-sdk/docs/)
|
|
16
|
+
* [Features](https://xeokit.io/index.html?foo=1#features)
|
|
17
|
+
* [Changelog](https://github.com/xeokit/xeokit-sdk/blob/master/CHANGELOG.md)
|
|
18
|
+
* [FAQ](https://xeokit.io/index.html?foo=1#faq)
|
|
19
|
+
* [License](https://xeokit.io/index.html#pricing)
|
|
20
|
+
|
|
10
21
|
## Installing
|
|
11
22
|
|
|
12
23
|
````bash
|
|
@@ -89,15 +100,7 @@ which we can pre-convert offline from other formats.
|
|
|
89
100
|
</html>
|
|
90
101
|
````
|
|
91
102
|
|
|
92
|
-
## Resources
|
|
93
103
|
|
|
94
|
-
* [xeokit.io](https://xeokit.io/)
|
|
95
|
-
* [Examples](http://xeokit.github.io/xeokit-sdk/examples/)
|
|
96
|
-
* [Guides](https://www.notion.so/xeokit/xeokit-Documentation-4598591fcedb4889bf8896750651f74e)
|
|
97
|
-
* [API Docs](https://xeokit.github.io/xeokit-sdk/docs/)
|
|
98
|
-
* [Features](https://xeokit.io/index.html?foo=1#features)
|
|
99
|
-
* [FAQ](https://xeokit.io/index.html?foo=1#faq)
|
|
100
|
-
* [License](https://xeokit.io/index.html#pricing)
|
|
101
104
|
|
|
102
105
|
|
|
103
106
|
|
package/dist/xeokit-sdk.cjs.js
CHANGED
|
@@ -83367,7 +83367,7 @@ class SceneModel extends Component {
|
|
|
83367
83367
|
const transform = new SceneModelTransform({
|
|
83368
83368
|
id: cfg.id,
|
|
83369
83369
|
model: this,
|
|
83370
|
-
parentTransform,
|
|
83370
|
+
parent: parentTransform,
|
|
83371
83371
|
matrix: cfg.matrix,
|
|
83372
83372
|
position: cfg.position,
|
|
83373
83373
|
scale: cfg.scale,
|
package/dist/xeokit-sdk.es.js
CHANGED
|
@@ -83363,7 +83363,7 @@ class SceneModel extends Component {
|
|
|
83363
83363
|
const transform = new SceneModelTransform({
|
|
83364
83364
|
id: cfg.id,
|
|
83365
83365
|
model: this,
|
|
83366
|
-
parentTransform,
|
|
83366
|
+
parent: parentTransform,
|
|
83367
83367
|
matrix: cfg.matrix,
|
|
83368
83368
|
position: cfg.position,
|
|
83369
83369
|
scale: cfg.scale,
|
package/dist/xeokit-sdk.es5.js
CHANGED
|
@@ -18474,7 +18474,7 @@ if(!this._textureTranscoder){this.error("[createTexture] Can't create texture fr
|
|
|
18474
18474
|
* @param {Number[]} [cfg.rotation=[0,0,0]] Rotation of the transform as Euler angles given in degrees, for each of the X, Y and Z axis.
|
|
18475
18475
|
* @param {Number[]} [cfg.matrix=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]] Modelling transform matrix. Overrides the ````position````, ````scale```` and ````rotation```` parameters.
|
|
18476
18476
|
* @returns {SceneModelTransform} The new transform.
|
|
18477
|
-
*/},{key:"createTransform",value:function createTransform(cfg){if(cfg.id===undefined||cfg.id===null){this.error("[createTransform] SceneModel.createTransform() config missing: id");return;}if(this._transforms[cfg.id]){this.error("[createTransform] SceneModel already has a transform with this ID: ".concat(cfg.id));return;}var parentTransform;if(cfg.parentTransformId){parentTransform=this._transforms[cfg.parentTransformId];if(!parentTransform){this.error("[createTransform] SceneModel.createTransform() config missing: id");return;}}var transform=new SceneModelTransform({id:cfg.id,model:this,
|
|
18477
|
+
*/},{key:"createTransform",value:function createTransform(cfg){if(cfg.id===undefined||cfg.id===null){this.error("[createTransform] SceneModel.createTransform() config missing: id");return;}if(this._transforms[cfg.id]){this.error("[createTransform] SceneModel already has a transform with this ID: ".concat(cfg.id));return;}var parentTransform;if(cfg.parentTransformId){parentTransform=this._transforms[cfg.parentTransformId];if(!parentTransform){this.error("[createTransform] SceneModel.createTransform() config missing: id");return;}}var transform=new SceneModelTransform({id:cfg.id,model:this,parent:parentTransform,matrix:cfg.matrix,position:cfg.position,scale:cfg.scale,rotation:cfg.rotation,quaternion:cfg.quaternion});this._transforms[transform.id]=transform;return transform;}/**
|
|
18478
18478
|
* Creates a new {@link SceneModelMesh} within this SceneModel.
|
|
18479
18479
|
*
|
|
18480
18480
|
* * It prepares and saves data for a SceneModelMesh {@link SceneModel#meshes} creation. SceneModelMesh will be created only once the SceneModelEntity (which references this particular SceneModelMesh) will be created.
|