@xeokit/xeokit-sdk 2.2.5-beta-3 → 2.2.5-beta-4
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,4 +1,6 @@
|
|
|
1
1
|
import { Component } from "../Component";
|
|
2
|
+
import { Entity } from "../Entity";
|
|
3
|
+
import { PickResult } from "../webgl/PickResult";
|
|
2
4
|
|
|
3
5
|
/**
|
|
4
6
|
* Controls the {@link Camera} with user input, and fires events when the user interacts with pickable {@link Entity}s.
|
|
@@ -31,6 +33,86 @@ export declare class CameraControl extends Component {
|
|
|
31
33
|
*/
|
|
32
34
|
on(event: "rightClick", callback: (e: {event: MouseEvent; pagePos: number[]; canvasPos: number[]; }) => void, scope?: any): string
|
|
33
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Event fired when the pointer moves while hovering over an Entity.
|
|
38
|
+
* @param event The hover event
|
|
39
|
+
* @param callback Called fired on the event
|
|
40
|
+
* @param scope Scope for the callback
|
|
41
|
+
*/
|
|
42
|
+
on(event: "hover", callback: (e: PickResult) => void, scope?: any): string
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Event fired when the pointer moves while hovering over empty space.
|
|
46
|
+
* @param event The hoverOff event
|
|
47
|
+
* @param callback Called fired on the event
|
|
48
|
+
* @param scope Scope for the callback
|
|
49
|
+
*/
|
|
50
|
+
on(event: "hoverOff", callback: (e: {canvasPos: number[]; }) => void, scope?: any): string
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Event fired when the pointer moves onto an Entity.
|
|
54
|
+
* @param event The hoverEnter event
|
|
55
|
+
* @param callback Called fired on the event
|
|
56
|
+
* @param scope Scope for the callback
|
|
57
|
+
*/
|
|
58
|
+
on(event: "hoverEnter", callback: (e: PickResult) => void, scope?: any): string
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Event fired when the pointer moves off an Entity.
|
|
62
|
+
* @param event The hoverOut event
|
|
63
|
+
* @param callback Called fired on the event
|
|
64
|
+
* @param scope Scope for the callback
|
|
65
|
+
*/
|
|
66
|
+
on(event: "hoverOut", callback: (e: {entity: Entity; }) => void, scope?: any): string
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Event fired when we left-click or tap on an Entity.
|
|
70
|
+
* @param event The picked event
|
|
71
|
+
* @param callback Called fired on the event
|
|
72
|
+
* @param scope Scope for the callback
|
|
73
|
+
*/
|
|
74
|
+
on(event: "picked", callback: (e: PickResult) => void, scope?: any): string
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Event fired when we left-click or tap on the surface of an Entity.
|
|
78
|
+
* @param event The pickedSurface event
|
|
79
|
+
* @param callback Called fired on the event
|
|
80
|
+
* @param scope Scope for the callback
|
|
81
|
+
*/
|
|
82
|
+
on(event: "pickedSurface", callback: (e: PickResult) => void, scope?: any): string
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Event fired when we left-click or tap on empty space.
|
|
86
|
+
* @param event The pickedNothing event
|
|
87
|
+
* @param callback Called fired on the event
|
|
88
|
+
* @param scope Scope for the callback
|
|
89
|
+
*/
|
|
90
|
+
on(event: "pickedNothing", callback: (e?: {canvasPos: number[]; }) => void, scope?: any): string
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Event fired wwhen we left-double-click or double-tap on an Entity.
|
|
94
|
+
* @param event The doublePicked event
|
|
95
|
+
* @param callback Called fired on the event
|
|
96
|
+
* @param scope Scope for the callback
|
|
97
|
+
*/
|
|
98
|
+
on(event: "doublePicked", callback: (e: PickResult) => void, scope?: any): string
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Event fired when we left-double-click or double-tap on the surface of an Entity.
|
|
102
|
+
* @param event The doublePickedSurface event
|
|
103
|
+
* @param callback Called fired on the event
|
|
104
|
+
* @param scope Scope for the callback
|
|
105
|
+
*/
|
|
106
|
+
on(event: "doublePickedSurface", callback: (e: PickResult) => void, scope?: any): string
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Event fired when we left-double-click or double-tap on empty space.
|
|
110
|
+
* @param event The doublePickedNothing event
|
|
111
|
+
* @param callback Called fired on the event
|
|
112
|
+
* @param scope Scope for the callback
|
|
113
|
+
*/
|
|
114
|
+
on(event: "doublePickedNothing", callback: (e?: {canvasPos: number[]; }) => void, scope?: any): string
|
|
115
|
+
|
|
34
116
|
/**
|
|
35
117
|
* Sets the current navigation mode.
|
|
36
118
|
*
|
|
@@ -88,7 +170,7 @@ export declare class CameraControl extends Component {
|
|
|
88
170
|
* which causes ````CameraControl```` to use the default key mappings for that layout.
|
|
89
171
|
*/
|
|
90
172
|
set keyMap(arg: {
|
|
91
|
-
|
|
173
|
+
[key: number]: number;
|
|
92
174
|
});
|
|
93
175
|
|
|
94
176
|
/**
|
|
@@ -97,7 +179,7 @@ export declare class CameraControl extends Component {
|
|
|
97
179
|
* @returns {{Number:Number}} Current key mappings.
|
|
98
180
|
*/
|
|
99
181
|
get keyMap(): {
|
|
100
|
-
|
|
182
|
+
[key: number]: number;
|
|
101
183
|
};
|
|
102
184
|
|
|
103
185
|
/**
|