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

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.3.0-beta-7",
3
+ "version": "2.3.0-beta-14",
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",
@@ -47,12 +47,13 @@
47
47
  "homepage": "https://xeokit.io",
48
48
  "dependencies": {
49
49
  "@loaders.gl/core": "^3.1.8",
50
- "@loaders.gl/las": "^3.1.8",
51
- "@loaders.gl/gltf": "^3.1.8",
52
50
  "@loaders.gl/draco": "^3.1.8",
51
+ "@loaders.gl/gltf": "^3.1.8",
52
+ "@loaders.gl/las": "^3.1.8",
53
53
  "web-ifc": "0.0.34"
54
54
  },
55
55
  "devDependencies": {
56
+ "@rollup/plugin-node-resolve": "^13.2.1",
56
57
  "esdoc": "^1.1.0",
57
58
  "esdoc-custom-theme": "^1.4.2",
58
59
  "esdoc-publish-html-plugin": "^1.1.2",
@@ -60,7 +61,6 @@
60
61
  "eslint": "^8.13.0",
61
62
  "parse5": "^7.0.0",
62
63
  "rollup": "^2.70.2",
63
- "@rollup/plugin-node-resolve": "^13.2.1",
64
64
  "rollup-plugin-terser": "^7.0.2",
65
65
  "typedoc": "^0.22.15"
66
66
  },
@@ -1,4 +1,4 @@
1
- import { Plugin, Viewer, PerformanceModel } from "../../viewer";
1
+ import { Plugin, Viewer, Entity } from "../../viewer";
2
2
  import { ModelStats } from "../index";
3
3
 
4
4
  export declare interface ICityJSONDefaultDataSource {
@@ -77,5 +77,5 @@ export declare class CityJSONLoaderPlugin extends Plugin {
77
77
  *
78
78
  * @param {LoadCityJSONModel} params Loading parameters.
79
79
  */
80
- load(params: LoadCityJSONModel): PerformanceModel;
80
+ load(params: LoadCityJSONModel): Entity;
81
81
  }
@@ -1,4 +1,4 @@
1
- import { Plugin, Viewer, PerformanceModel, IFCObjectDefaults } from "../../viewer";
1
+ import { Plugin, Viewer, Entity, IFCObjectDefaults } from "../../viewer";
2
2
 
3
3
  export declare interface IGLTFDefaultDataSource {
4
4
  /**
@@ -136,5 +136,5 @@ export declare class GLTFLoaderPlugin extends Plugin {
136
136
  * @param {LoadGLTFModel} params Loading parameters.
137
137
  * @returns {Entity} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}
138
138
  */
139
- load(params: LoadGLTFModel): PerformanceModel;
139
+ load(params: LoadGLTFModel): Entity;
140
140
  }
@@ -1,4 +1,4 @@
1
- import { PerformanceModel, Plugin, Viewer } from "../../viewer";
1
+ import { Entity, Plugin, Viewer } from "../../viewer";
2
2
  import { ModelStats } from "../index";
3
3
 
4
4
  export declare interface ILASDefaultDataSource {
@@ -140,7 +140,7 @@ export declare class LASLoaderPlugin extends Plugin {
140
140
  * Loads an ````LAS```` model into this LASLoaderPlugin's {@link Viewer}.
141
141
  *
142
142
  * @param {LoadLASModel} params Loading parameters.
143
- * @returns {Entity} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}.
143
+ * @returns {SceneModel} SceneModel representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}.
144
144
  */
145
- load(params?: LoadLASModel): PerformanceModel;
145
+ load(params?: LoadLASModel): Entity;
146
146
  }
@@ -1,4 +1,4 @@
1
- import { Plugin, Viewer, PerformanceModel } from "../../viewer";
1
+ import { Plugin, Viewer, Entity } from "../../viewer";
2
2
 
3
3
  export declare type LoadOBJModel = {
4
4
  /** ID to assign to the model's root {@link Entity}, unique among all components in the Viewer's {@link Scene}. */
@@ -38,7 +38,7 @@ export declare class OBJLoaderPlugin extends Plugin {
38
38
  * Loads an OBJ model from a file into this OBJLoader's {@link Viewer}.
39
39
  *
40
40
  * @param {LoadOBJModel} params Loading parameters.
41
- * @returns {PerformanceModel} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}
41
+ * @returns {Entity} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}
42
42
  */
43
- load(params: LoadOBJModel): PerformanceModel;
43
+ load(params: LoadOBJModel): Entity;
44
44
  }
@@ -1,4 +1,4 @@
1
- import { Plugin, Viewer, PerformanceModel } from "../../viewer";
1
+ import { Plugin, Viewer, VBOSceneModel } from "../../viewer";
2
2
 
3
3
  export declare interface ISTLDefaultDataSource {
4
4
  /**
@@ -82,7 +82,7 @@ export declare class STLLoaderPlugin extends Plugin {
82
82
  * Loads an STL model from a file into this STLLoaderPlugin's {@link Viewer}.
83
83
  *
84
84
  * @param {LoadSTLModel} params Loading parameters.
85
- * @returns {PerformanceModel} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}
85
+ * @returns {VBOSceneModel} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}
86
86
  */
87
- load(params: LoadSTLModel): PerformanceModel;
87
+ load(params: LoadSTLModel): VBOSceneModel;
88
88
  }
@@ -1,4 +1,4 @@
1
- import { Plugin, Viewer, PerformanceModel, IFCObjectDefaults } from "../../viewer";
1
+ import { Plugin, Viewer, VBOSceneModel, IFCObjectDefaults } from "../../viewer";
2
2
  import { ModelStats } from "../index";
3
3
 
4
4
  /**
@@ -224,7 +224,7 @@ export declare class WebIFCLoaderPlugin extends Plugin {
224
224
  * Loads an ````IFC```` model into this WebIFCLoaderPlugin's {@link Viewer}.
225
225
  *
226
226
  * @param {LoadWebIFCModel} params Loading parameters.
227
- * @returns {PerformanceModel} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}.
227
+ * @returns {VBOSceneModel} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}.
228
228
  */
229
- load(params?: LoadWebIFCModel): PerformanceModel;
229
+ load(params?: LoadWebIFCModel): VBOSceneModel;
230
230
  }
@@ -1,4 +1,4 @@
1
- import { Plugin, Viewer, PerformanceModel, IFCObjectDefaults } from "../../viewer";
1
+ import { Plugin, Viewer, VBOSceneModel, IFCObjectDefaults } from "../../viewer";
2
2
 
3
3
  export declare type XKTLoaderPluginConfiguration = {
4
4
  /** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
@@ -271,7 +271,7 @@ export declare interface IXKTDefaultDataSource {
271
271
  * in data pipelines), then that metamodel will be loaded and the metamodel in the XKT 8 file will be ignored.
272
272
  *
273
273
  * @param {LoadXKTModel} params Loading parameters.
274
- * @returns {PerformanceModel} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}.
274
+ * @returns {VBOSceneModel} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}.
275
275
  */
276
- load(params: LoadXKTModel): PerformanceModel;
276
+ load(params: LoadXKTModel): VBOSceneModel;
277
277
  }
@@ -1,4 +1,4 @@
1
- import { Plugin, Viewer, PerformanceModel } from "../../viewer";
1
+ import { Plugin, Viewer, VBOSceneModel } from "../../viewer";
2
2
 
3
3
  export declare type XML3DLoaderPluginConfiguration = {
4
4
  /** Optional ID for this plugin, so that we can find it within {@link Viewer.plugins}. */
@@ -61,5 +61,5 @@ export declare class XML3DLoaderPlugin extends Plugin {
61
61
  * @param {LoadXML3DModel} params Loading parameters.
62
62
  * @returns {Entity} Entity representing the model, which will have {@link Entity.isModel} set ````true```` and will be registered by {@link Entity.id} in {@link Scene.models}
63
63
  */
64
- load(params: LoadXML3DModel): PerformanceModel;
64
+ load(params: LoadXML3DModel): VBOSceneModel;
65
65
  }
@@ -1,7 +1,6 @@
1
1
  import { Entity } from "../../Entity";
2
2
  import { Component } from "../../Component";
3
3
  import { EdgeMaterial, EmphasisMaterial } from "../../materials";
4
- import { PerformanceNode } from "./PerformanceNode";
5
4
 
6
5
  /**
7
6
  * A high-performance model representation for efficient rendering and low memory usage.
@@ -24,17 +23,11 @@ export declare class PerformanceModel extends Component {
24
23
  */
25
24
  on(event: "error", callback: (msg: string) => void, scope?: any): string;
26
25
 
27
- /**
28
- * Returns true to indicate that this Component is a PerformanceModel.
29
- * @type {Boolean}
30
- */
31
- get isPerformanceModel(): boolean;
32
-
33
26
  /**
34
27
  * Returns the {@link Entity}s in this PerformanceModel.
35
28
  * @returns {*|{}}
36
29
  */
37
- get objects(): {[key: string]: PerformanceNode}
30
+ get objects(): {[key: string]: Entity}
38
31
 
39
32
  /**
40
33
  * Gets the 3D World-space origin for this PerformanceModel.
@@ -592,7 +585,7 @@ export declare class PerformanceModel extends Component {
592
585
  * @param {Boolean} [cfg.highlighted=false] Indicates if the Entity is initially highlighted. Highlighted appearance is configured by {@link PerformanceModel.highlightMaterial}.
593
586
  * @param {Boolean} [cfg.selected=false] Indicates if the Entity is initially selected. Selected appearance is configured by {@link PerformanceModel.selectedMaterial}.
594
587
  * @param {Boolean} [cfg.edges=false] Indicates if the Entity's edges are initially emphasized. Edges appearance is configured by {@link PerformanceModel.edgeMaterial}.
595
- * @returns {PerformanceNode}
588
+ * @returns {Entity}
596
589
  */
597
590
  createEntity(cfg: {
598
591
  id: string;
@@ -609,7 +602,7 @@ export declare class PerformanceModel extends Component {
609
602
  highlighted?: boolean;
610
603
  selected?: boolean;
611
604
  edges?: boolean;
612
- }): PerformanceNode;
605
+ }): Entity;
613
606
 
614
607
  /**
615
608
  * Finalizes this PerformanceModel.