@xtctwins/tctwins-core 1.1.0 → 1.1.2
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/README.md +3 -1
- package/dist/tctwins-core.es5.js +3097 -2972
- package/dist/tctwins-core.min.es5.js +4 -4
- package/package.json +1 -1
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsSimulateMouseControl.d.ts +86 -0
- package/types/plugins/AngleMeasurementsPlugin/index.d.ts +1 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsSimulateMouseControl.d.ts +83 -0
- package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +1 -0
- package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +288 -288
- package/types/viewer/scene/scene/Scene.d.ts +909 -909
package/package.json
CHANGED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { AngleMeasurementsControl } from "./AngleMeasurementsControl.js";
|
|
4
|
+
import { AngleMeasurementsPlugin } from "./AngleMeasurementsPlugin.js";
|
|
5
|
+
|
|
6
|
+
export class AngleMeasurementsSimulateMouseControl extends AngleMeasurementsControl {
|
|
7
|
+
constructor(
|
|
8
|
+
angleMeasurementsPlugin: AngleMeasurementsPlugin,
|
|
9
|
+
cfg?: {
|
|
10
|
+
snapping?: boolean;
|
|
11
|
+
offsetX?: number;
|
|
12
|
+
offsetY?: number;
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @return {number} mouse offset
|
|
19
|
+
*/
|
|
20
|
+
get offsetX(): number;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @param {number} offsetX
|
|
24
|
+
*/
|
|
25
|
+
set offsetX(offsetX: number);
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @return {number} mouse offset
|
|
29
|
+
*/
|
|
30
|
+
get offsetY(): number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @param {number} offsetY
|
|
34
|
+
*/
|
|
35
|
+
set offsetY(offsetY: number);
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Gets if this DistanceMeasurementsMouseControl is currently active, where it is responding to input.
|
|
39
|
+
*
|
|
40
|
+
* @returns {boolean} True if this DistanceMeasurementsMouseControl is active.
|
|
41
|
+
*/
|
|
42
|
+
get active(): boolean;
|
|
43
|
+
set active(active: boolean);
|
|
44
|
+
|
|
45
|
+
get mouseState(): number;
|
|
46
|
+
set mouseState(state: number);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Sets whether snap-to-vertex and snap-to-edge are enabled for this DistanceMeasurementsMouseControl.
|
|
50
|
+
*
|
|
51
|
+
* @param {boolean} snapping Whether to enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsMouseControl.
|
|
52
|
+
*/
|
|
53
|
+
set snapping(snapping: boolean);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Gets whether snap-to-vertex and snap-to-edge are enabled for this DistanceMeasurementsMouseControl.
|
|
57
|
+
*
|
|
58
|
+
* @returns {boolean} Whether snap-to-vertex and snap-to-edge are enabled for this DistanceMeasurementsMouseControl.
|
|
59
|
+
*/
|
|
60
|
+
get snapping(): boolean;
|
|
61
|
+
|
|
62
|
+
onMousedown(canvasPos: number[]): void;
|
|
63
|
+
onMousemove(canvasPos: number[]): void;
|
|
64
|
+
onMouseup(canvasPos: number[]): void;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Activates this DistanceMeasurementsMouseControl, ready to respond to input.
|
|
68
|
+
*/
|
|
69
|
+
activate(): void;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Deactivates this DistanceMeasurementsMouseControl, making it unresponsive to input.
|
|
73
|
+
*/
|
|
74
|
+
deactivate(): void;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Resets this DistanceMeasurementsMouseControl.
|
|
78
|
+
*/
|
|
79
|
+
reset(): void;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Destroys this DistanceMeasurementsMouseControl.
|
|
83
|
+
*/
|
|
84
|
+
destroy(): void;
|
|
85
|
+
|
|
86
|
+
}
|
package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsSimulateMouseControl.d.ts
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { DistanceMeasurementsControl } from "./DistanceMeasurementsControl.js";
|
|
2
|
+
import { DistanceMeasurementsPlugin } from "./DistanceMeasurementsPlugin";
|
|
3
|
+
|
|
4
|
+
export class DistanceMeasurementsSimulateMouseControl extends DistanceMeasurementsControl {
|
|
5
|
+
constructor(
|
|
6
|
+
distanceMeasurementsPlugin: DistanceMeasurementsPlugin,
|
|
7
|
+
cfg?: {
|
|
8
|
+
snapping?: boolean;
|
|
9
|
+
offsetX?: number;
|
|
10
|
+
offsetY?: number;
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @return {number} mouse offset
|
|
16
|
+
*/
|
|
17
|
+
get offsetX(): number;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @param {number} offsetX
|
|
21
|
+
*/
|
|
22
|
+
set offsetX(offsetX: number);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @return {number} mouse offset
|
|
26
|
+
*/
|
|
27
|
+
get offsetY(): number;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @param {number} offsetY
|
|
31
|
+
*/
|
|
32
|
+
set offsetY(offsetY: number);
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Gets if this DistanceMeasurementsMouseControl is currently active, where it is responding to input.
|
|
36
|
+
*
|
|
37
|
+
* @returns {boolean} True if this DistanceMeasurementsMouseControl is active.
|
|
38
|
+
*/
|
|
39
|
+
get active(): boolean;
|
|
40
|
+
set active(active: boolean);
|
|
41
|
+
|
|
42
|
+
get mouseState(): number;
|
|
43
|
+
set mouseState(state: number);
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Sets whether snap-to-vertex and snap-to-edge are enabled for this DistanceMeasurementsMouseControl.
|
|
47
|
+
*
|
|
48
|
+
* @param {boolean} snapping Whether to enable snap-to-vertex and snap-to-edge for this DistanceMeasurementsMouseControl.
|
|
49
|
+
*/
|
|
50
|
+
set snapping(snapping: boolean);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Gets whether snap-to-vertex and snap-to-edge are enabled for this DistanceMeasurementsMouseControl.
|
|
54
|
+
*
|
|
55
|
+
* @returns {boolean} Whether snap-to-vertex and snap-to-edge are enabled for this DistanceMeasurementsMouseControl.
|
|
56
|
+
*/
|
|
57
|
+
get snapping(): boolean;
|
|
58
|
+
|
|
59
|
+
onMousedown(canvasPos: number[]): void;
|
|
60
|
+
onMousemove(canvasPos: number[]): void;
|
|
61
|
+
onMouseup(canvasPos: number[]): void;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Activates this DistanceMeasurementsMouseControl, ready to respond to input.
|
|
65
|
+
*/
|
|
66
|
+
activate(): void;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Deactivates this DistanceMeasurementsMouseControl, making it unresponsive to input.
|
|
70
|
+
*/
|
|
71
|
+
deactivate(): void;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Resets this DistanceMeasurementsMouseControl.
|
|
75
|
+
*/
|
|
76
|
+
reset(): void;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Destroys this DistanceMeasurementsMouseControl.
|
|
80
|
+
*/
|
|
81
|
+
destroy(): void;
|
|
82
|
+
|
|
83
|
+
}
|