@xtctwins/tctwins-core 1.0.19 → 1.0.20
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/dist/tctwins-core.es.js +4222 -1779
- package/dist/tctwins-core.min.es.js +5 -5
- package/package.json +2 -2
- package/types/extras/PointerCircle/PointerCircle.d.ts +51 -0
- package/types/extras/PointerCircle/index.d.ts +1 -0
- package/types/extras/index.d.ts +1 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +14 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +117 -0
- package/types/plugins/AngleMeasurementsPlugin/index.d.ts +2 -1
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsMouseControl.d.ts +0 -1
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +142 -129
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsTouchControl.d.ts +96 -0
- package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +1 -0
- package/types/viewer/scene/input/input.d.ts +58 -42
|
@@ -9,45 +9,61 @@ import { Component } from "../Component";
|
|
|
9
9
|
* * Located at {@link Scene#input}
|
|
10
10
|
*/
|
|
11
11
|
export declare class Input extends Component {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
12
|
+
readonly KEY_CTRL: number;
|
|
13
|
+
|
|
14
|
+
keyDown: boolean[];
|
|
15
|
+
|
|
16
|
+
keyboardEnabled: boolean;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Sets whether input handlers are enabled.
|
|
20
|
+
*/
|
|
21
|
+
setEnabled(enable: boolean): void;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Gets whether input handlers are enabled.
|
|
25
|
+
*/
|
|
26
|
+
getEnabled(): boolean;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Sets whether or not keyboard input is enabled.
|
|
30
|
+
*/
|
|
31
|
+
setKeyboardEnabled(enable: boolean): void;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Gets whether keyboard input is enabled.
|
|
35
|
+
*/
|
|
36
|
+
getKeyboardEnabled(): boolean;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Fires on mouse events
|
|
40
|
+
* @param event The loaded event
|
|
41
|
+
* @param callback Called fired on the event
|
|
42
|
+
* @param scope Scope for the callback
|
|
43
|
+
*/
|
|
44
|
+
on(
|
|
45
|
+
event: "mousedown" | "mouseup" | "mouseclicked" | "dblclick",
|
|
46
|
+
callback: (canvasCoords: number[]) => void,
|
|
47
|
+
scope?: any
|
|
48
|
+
): string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Fires on touch events
|
|
52
|
+
* @param event The loaded event
|
|
53
|
+
* @param callback Called fired on the event
|
|
54
|
+
* @param scope Scope for the callback
|
|
55
|
+
*/
|
|
56
|
+
on(
|
|
57
|
+
event: "touchstart" | "touchend" | "touchclicked",
|
|
58
|
+
callback: (canvasCoords: number[]) => void,
|
|
59
|
+
scope?: any
|
|
60
|
+
): string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Fires on keyboard events
|
|
64
|
+
* @param event The loaded event
|
|
65
|
+
* @param callback Called fired on the event
|
|
66
|
+
* @param scope Scope for the callback
|
|
67
|
+
*/
|
|
68
|
+
on(event: "keydown" | "keyup", callback: (keyCode: number) => void, scope?: any): string;
|
|
69
|
+
}
|