@xtctwins/tctwins-core 1.0.21 → 1.0.23

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.21",
3
+ "version": "1.0.23",
4
4
  "private": false,
5
5
  "description": "Web Programming Toolkit for 3D/2D BIM and CAD",
6
6
  "module": "./dist/tctwins-core.es.js",
@@ -41,6 +41,7 @@ export class AngleMeasurementsMouseControl extends AngleMeasurementsControl {
41
41
  *
42
42
  * @param {AngleMeasurementsPlugin} angleMeasurementsPlugin The AngleMeasurementsPlugin to control.
43
43
  * @param {Object} [cfg] Configuration options.
44
+ * @param {container} [cfg.container] container that hold markers labels
44
45
  * @param {PointerLens} [cfg.pointerLens] A PointerLens to use for providing a magnified view of the cursor when snapping is enabled.
45
46
  * @param {boolean} [cfg.snapping=true] Whether to initially enable snap-to-vertex and snap-to-edge for this AngleMeasurementsMouseControl.
46
47
  * @param {offsetX} [cfg.offsetX] offsetX of the mouse
@@ -53,6 +54,7 @@ export class AngleMeasurementsMouseControl extends AngleMeasurementsControl {
53
54
  snapping?: boolean;
54
55
  offsetX?: number;
55
56
  offsetY?: number;
57
+ container?: HTMLDivElement;
56
58
  }
57
59
  );
58
60
 
@@ -38,6 +38,7 @@ export class AngleMeasurementsTouchControl extends AngleMeasurementsControl {
38
38
  /**
39
39
  * Creates a AngleMeasurementsTouchControl bound to the given AngleMeasurementsPlugin.
40
40
  * @param {PointerLens} [cfg.pointerLens] A PointerLens to use to provide a magnified view of the cursor when snapping is enabled.
41
+ * @param {container} [cfg.container] container that hold markers labels
41
42
  * @param {boolean} [cfg.snapToEdge=true] Whether to initially enable snap-to-vertex and snap-to-edge for this AngleMeasurementsMouseControl.
42
43
  * @param {boolean} [cfg.snapToVertex=true] Whether to initially enable snap-to-vertex and snap-to-edge for this AngleMeasurementsMouseControl.
43
44
  * @param {_offsetX} [cfg._offsetX] _offsetX of the mouse
@@ -51,6 +52,7 @@ export class AngleMeasurementsTouchControl extends AngleMeasurementsControl {
51
52
  snapToVertex?: boolean;
52
53
  offsetX?: number;
53
54
  offsetY?: number;
55
+ container?: HTMLDivElement;
54
56
  }
55
57
  );
56
58
 
@@ -18,6 +18,7 @@ export class DistanceMeasurementsMouseControl extends DistanceMeasurementsContro
18
18
  *
19
19
  * @param {DistanceMeasurementsPlugin} distanceMeasurementsPlugin The DistanceMeasurementsPlugin to control.
20
20
  * @param {Object} cfg Configuration options.
21
+ * @param {container} [cfg.container] container that hold markers labels
21
22
  * @param {PointerLens} [cfg.pointerLens] A PointerLens to provide a magnified view of the cursor when snapping is enabled.
22
23
  * @param {boolean} [cfg.snapping=true] Whether to enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsMouseControl.
23
24
  * @param {offsetX} [cfg.offsetX] offsetX of the mouse
@@ -30,6 +31,7 @@ export class DistanceMeasurementsMouseControl extends DistanceMeasurementsContro
30
31
  snapping?: boolean;
31
32
  offsetX?: number;
32
33
  offsetY?: number;
34
+ container?: HTMLDivElement;
33
35
  }
34
36
  );
35
37
 
@@ -17,6 +17,7 @@ export class DistanceMeasurementsTouchControl extends DistanceMeasurementsContro
17
17
  /**
18
18
  * Creates a DistanceMeasurementsTouchControl bound to the given DistanceMeasurementsPlugin.
19
19
  * @param {PointerLens} [cfg.pointerLens] A PointerLens to use to provide a magnified view of the cursor when snapping is enabled.
20
+ * @param {container} [cfg.container] container that hold markers labels
20
21
  * @param {boolean} [cfg.snapToEdge=true] Whether to initially enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsTouchControl.
21
22
  * @param {boolean} [cfg.snapToVertex=true] Whether to initially enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsTouchControl.
22
23
  * @param {_offsetX} [cfg._offsetX] _offsetX of the mouse
@@ -30,6 +31,7 @@ export class DistanceMeasurementsTouchControl extends DistanceMeasurementsContro
30
31
  snapToVertex?: boolean;
31
32
  offsetX?: number;
32
33
  offsetY?: number;
34
+ container?: HTMLDivElement;
33
35
  }
34
36
  );
35
37
 
@@ -56,6 +56,12 @@ export declare class NavCubePlugin extends Plugin {
56
56
  */
57
57
  constructor(viewer: Viewer, cfg?: NavCubePluginConfiguration);
58
58
 
59
+ /**
60
+ * 设置相机视角方向
61
+ * @param areaId
62
+ */
63
+ flyByClick(areaId: number): void;
64
+
59
65
  /**
60
66
  * Sets if the NavCube is visible.
61
67
  *
@@ -117,6 +117,47 @@ export declare class CameraControl extends Component {
117
117
  */
118
118
  on(event: "doublePickedNothing", callback: (e?: { canvasPos: number[] }) => void, scope?: any): string;
119
119
 
120
+ /**
121
+ * 停止漫游
122
+ */
123
+ setdirectionChangeCancel(): void;
124
+ /**
125
+ * 设置漫游移动速率
126
+ * @param {number} rate
127
+ */
128
+ set moveRate(rate: Number);
129
+
130
+ /**
131
+ * 漫游向右
132
+ * @param {boolean} go
133
+ */
134
+ set goRight(go: boolean);
135
+ /**
136
+ * 漫游向左
137
+ * @param {boolean} go
138
+ */
139
+ set goLeft(go: boolean);
140
+ /**
141
+ * 漫游向上
142
+ * @param {boolean} go
143
+ */
144
+ set goUp(go: boolean);
145
+ /**
146
+ * 漫游向下
147
+ * @param {boolean} go
148
+ */
149
+ set goDown(go: boolean);
150
+ /**
151
+ * 漫游向前
152
+ * @param {boolean} go
153
+ */
154
+ set goForward(go: boolean);
155
+ /**
156
+ * 漫游向后
157
+ * @param {boolean} go
158
+ */
159
+ set goBackward(go: boolean);
160
+
120
161
  /**
121
162
  * Sets the current navigation mode.
122
163
  *