@xtctwins/tctwins-core 1.0.45 → 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.45",
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",
@@ -81,7 +81,7 @@ export declare class SectionPlanesPlugin extends Plugin {
81
81
  * 获取剖切面位置
82
82
  * @returns
83
83
  */
84
- getControlPos(posRate: number): void;
84
+ getControlPos(): void;
85
85
 
86
86
  /**
87
87
  * Creates a {@link SectionPlane}.
@@ -150,4 +150,18 @@ export declare class SectionPlanesPlugin extends Plugin {
150
150
  * @param e
151
151
  */
152
152
  on(event: "touchPlaneEnd", e: any): void;
153
+
154
+ /**
155
+ * 鼠标点击剖切面事件
156
+ * @param event
157
+ * @param e
158
+ */
159
+ on(event: "clickPlaneStart", e: any): void;
160
+
161
+ /**
162
+ * 鼠标抬起点击剖切面事件
163
+ * @param event
164
+ * @param e
165
+ */
166
+ on(event: "clickPlaneEnd", e: any): void;
153
167
  }
@@ -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
  }