@xtctwins/tctwins-core 1.0.36 → 1.0.37

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": "@xtctwins/tctwins-core",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "private": false,
5
5
  "description": "Web Programming Toolkit for 3D/2D BIM and CAD",
6
6
  "module": "./dist/tctwins-core.es.js",
@@ -8,10 +8,10 @@
8
8
  "types": "./types/index.d.ts",
9
9
  "scripts": {
10
10
  "build": "rollup --config rollup.config.js && webpack --config webpack.min.config.js",
11
- "dev": "rollup --config rollup.dev.config.js; cp node_modules/web-ifc/web-ifc.wasm dist/.",
11
+ "dev": "rollup --config rollup.dev.config.js && cp node_modules/web-ifc/web-ifc.wasm dist/.",
12
12
  "test": "percy exec -- node ./snapshots.js",
13
- "docs": "rm -Rf ./docs/*; ./node_modules/.bin/esdoc",
14
- "typedocs": "rm -Rf ./docs/*; typedoc --tsconfig tsconfig.json",
13
+ "docs": "rm -Rf ./docs/* && ./node_modules/.bin/esdoc",
14
+ "typedocs": "rm -Rf ./docs/* && typedoc --tsconfig tsconfig.json",
15
15
  "publish": "npm publish --access public"
16
16
  },
17
17
  "keywords": [
@@ -167,6 +167,18 @@ export declare class SceneModel extends Component {
167
167
  */
168
168
  get aabb(): number[];
169
169
 
170
+ /**
171
+ * 获取aabb排除在外的对象id
172
+ * @type {string[]}
173
+ */
174
+ get exceptionIds(): string[];
175
+
176
+ /**
177
+ * 设置aabb排除在外的对象id(自动更新新的aabb)
178
+ * @param {string[]} exceptionIds
179
+ */
180
+ set exceptionIds(exceptionIds: string[]);
181
+
170
182
  /**
171
183
  * 排除异常构建以更新包围盒
172
184
  * @param exceptionIds
@@ -78,6 +78,18 @@ export declare class Scene extends Component {
78
78
  */
79
79
  on(event: "tick", callback: (tickEvent: TickEvent) => void, scope?: any): string;
80
80
 
81
+ /**
82
+ * fired when scene.aabb is update
83
+ * @param event
84
+ * @param callback
85
+ */
86
+ on(event: "aabb", callback: (aabb: Float32Array | Float64Array) => void): void;
87
+
88
+ /**
89
+ * return lights objects
90
+ */
91
+ get lightsObject(): any;
92
+
81
93
  /**
82
94
  * The epoch time (in milliseconds since 1970) when this Scene was instantiated.
83
95
  */
@@ -894,3 +906,4 @@ export declare class Scene extends Component {
894
906
  */
895
907
  destroy(callback?: Function): void;
896
908
  }
909
+