@xtctwins/tctwins-core 1.0.46 → 1.0.47

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.46",
3
+ "version": "1.0.47",
4
4
  "private": false,
5
5
  "description": "Web Programming Toolkit for 3D/2D BIM and CAD",
6
6
  "module": "./dist/tctwins-core.es5.js",
@@ -4,31 +4,62 @@ import { Plugin, Viewer } from "../../viewer";
4
4
  * {@link Viewer} plugin that manages skyboxes
5
5
  */
6
6
  export declare class SkyboxesPlugin extends Plugin {
7
- /**
8
- * @constructor
9
- * @param {Viewer} viewer The Viewer.
10
- */
11
- constructor(viewer: Viewer);
12
-
13
- /**
14
- * Creates a skybox.
15
- * @param {String} id Unique ID to assign to the skybox.
16
- * @param {Object} params Skybox configuration.
17
- * @param {Boolean} [params.active=true] Whether the skybox plane is initially active. Only skyboxes while this is true.
18
- * @returns {Skybox} The new skybox.
19
- */
20
- createSkybox(id: string, params: {
21
- active?: boolean;
22
- }): any; //Skybox;
23
-
24
- /**
25
- * Destroys a skybox.
26
- * @param id
27
- */
28
- destroySkybox(id: string): void;
29
-
30
- /**
7
+ /**
8
+ * @constructor
9
+ * @param {Viewer} viewer The Viewer.
10
+ */
11
+ constructor(viewer: Viewer);
12
+
13
+ /**
14
+ * Creates a skybox.
15
+ * @param {String} id Unique ID to assign to the skybox.
16
+ * @param {Object} params Skybox configuration.
17
+ * @param {Boolean} [params.active=true] Whether the skybox plane is initially active. Only skyboxes while this is true.
18
+ * @returns {Skybox} The new skybox.
19
+ */
20
+ createSkybox(
21
+ id: string,
22
+ params: {
23
+ active?: boolean;
24
+ size?: number;
25
+ scale?: number[];
26
+ src?: string;
27
+ }
28
+ ): any; //Skybox;
29
+
30
+ /**
31
+ * 设置指定id天空盒显示或隐藏
32
+ */
33
+ setSkyBoxActiveById(id: string, active: boolean): void;
34
+
35
+ /**
36
+ * 设置开启天空盒
37
+ */
38
+ set active(active: boolean);
39
+
40
+ get active(): boolean;
41
+
42
+ /**
43
+ * 根据指定id获取天空盒对象
44
+ * @param id
45
+ */
46
+ getSkyBoxById(id: string): any;
47
+
48
+ /**
49
+ * Destroys a skybox.
50
+ * @param id
51
+ */
52
+ destroySkybox(id: string): void;
53
+
54
+ /**
31
55
  Destroys all skyboxes.
32
56
  */
33
- clear(): void;
57
+ clear(): void;
58
+
59
+ /**
60
+ * Destroys this plugin.
61
+ *
62
+ * Clears skyboxes from the Viewer first.
63
+ */
64
+ destroy(): void;
34
65
  }