@xeokit/xeokit-sdk 2.3.6 → 2.3.7
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
|
@@ -7,7 +7,7 @@ export declare type SectionPlanesPluginConfiguration = {
|
|
|
7
7
|
/** ID of a canvas element to display the overview. */
|
|
8
8
|
overviewCanvasId?: string;
|
|
9
9
|
/** Initial visibility of the overview canvas. */
|
|
10
|
-
overviewVisible?:
|
|
10
|
+
overviewVisible?: boolean;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Component } from "../Component";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @desc Meditates mouse, touch and keyboard events for various interaction controls.
|
|
5
|
+
*
|
|
6
|
+
* Ordinarily, you would only use this component as a utility to help manage input events and state for your
|
|
7
|
+
* own custom input handlers.
|
|
8
|
+
*
|
|
9
|
+
* * Located at {@link Scene#input}
|
|
10
|
+
*/
|
|
11
|
+
export declare class Input extends Component {
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Sets whether input handlers are enabled.
|
|
15
|
+
*/
|
|
16
|
+
setEnabled(enable: boolean): void;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Gets whether input handlers are enabled.
|
|
20
|
+
*/
|
|
21
|
+
getEnabled(): boolean
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Sets whether or not keyboard input is enabled.
|
|
25
|
+
*/
|
|
26
|
+
setKeyboardEnabled(enable: boolean): void;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Gets whether keyboard input is enabled.
|
|
30
|
+
*/
|
|
31
|
+
getKeyboardEnabled(): boolean;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Fires on mouse events
|
|
35
|
+
* @param event The loaded event
|
|
36
|
+
* @param callback Called fired on the event
|
|
37
|
+
* @param scope Scope for the callback
|
|
38
|
+
*/
|
|
39
|
+
on(event: "mousedown" | "mouseup" | "mouseclicked" | "dblclick", callback: (canvasCoords: number[]) => void, scope?: any): string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Fires on keyboard events
|
|
43
|
+
* @param event The loaded event
|
|
44
|
+
* @param callback Called fired on the event
|
|
45
|
+
* @param scope Scope for the callback
|
|
46
|
+
*/
|
|
47
|
+
on(event: "keydown" | "keyup", callback: (keyCode: number) => void, scope?: any): string;
|
|
48
|
+
}
|
|
@@ -51,6 +51,11 @@ declare const math: {
|
|
|
51
51
|
* Normalizes a three-element vector
|
|
52
52
|
*/
|
|
53
53
|
normalizeVec3: (v: number[], dest?: any) => number[];
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Multiplies each element of a three-element vector by a scalar.
|
|
57
|
+
*/
|
|
58
|
+
mulVec3Scalar: (v: number[], scalar: number, dest?: number[]) => number[];
|
|
54
59
|
};
|
|
55
60
|
|
|
56
61
|
export {math};
|
|
@@ -9,6 +9,7 @@ import { Viewport } from "../viewport/Viewport";
|
|
|
9
9
|
import { VBOSceneModel } from "../models/VBOSceneModel/VBOSceneModel";
|
|
10
10
|
import { Mesh } from "../mesh";
|
|
11
11
|
import { Node } from "../nodes";
|
|
12
|
+
import { Input } from "../input/input";
|
|
12
13
|
|
|
13
14
|
export declare type TickEvent = {
|
|
14
15
|
/** The ID of this Scene. */
|
|
@@ -570,6 +571,8 @@ export declare class Scene extends Component {
|
|
|
570
571
|
|
|
571
572
|
get sao(): SAO;
|
|
572
573
|
|
|
574
|
+
get input(): Input;
|
|
575
|
+
|
|
573
576
|
/**
|
|
574
577
|
* Performs an occlusion test on all {@link Marker}s in this {@link Scene}.
|
|
575
578
|
*
|