@cognite/reveal 4.10.4 → 4.10.6
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.
|
@@ -25,11 +25,12 @@ export declare class FlexibleControls extends EventDispatcher<FlexibleControlsEv
|
|
|
25
25
|
private _scrollDistance;
|
|
26
26
|
private _tempTarget;
|
|
27
27
|
private readonly _keyboard;
|
|
28
|
-
private readonly
|
|
28
|
+
private readonly _touchEvents;
|
|
29
29
|
private _getPickedPointByPixelCoordinates;
|
|
30
30
|
private _rawCameraRotation;
|
|
31
31
|
private readonly _reusableVector3s;
|
|
32
32
|
private readonly _rotationHelper;
|
|
33
|
+
private _mouseDragInfo;
|
|
33
34
|
constructor(camera: PerspectiveCamera | OrthographicCamera, domElement: HTMLElement, options: FlexibleControlsOptions);
|
|
34
35
|
dispose(): void;
|
|
35
36
|
get options(): FlexibleControlsOptions;
|
|
@@ -69,7 +70,7 @@ export declare class FlexibleControls extends EventDispatcher<FlexibleControlsEv
|
|
|
69
70
|
rotateCameraTo(startDirection: Spherical, endDirection: Spherical, factor: number): void;
|
|
70
71
|
private readonly onPointerDown;
|
|
71
72
|
private readonly onMouseDown;
|
|
72
|
-
private
|
|
73
|
+
private readonly onPointerMove;
|
|
73
74
|
private readonly onPointerUp;
|
|
74
75
|
private readonly onMouseWheel;
|
|
75
76
|
private readonly onTouchStart;
|
|
@@ -85,6 +86,7 @@ export declare class FlexibleControls extends EventDispatcher<FlexibleControlsEv
|
|
|
85
86
|
rotateByAngles(deltaAzimuth: number, deltaPolar: number): void;
|
|
86
87
|
private rawRotateByAngles;
|
|
87
88
|
private startTouchPinch;
|
|
89
|
+
private replaceTouchEvent;
|
|
88
90
|
private pan;
|
|
89
91
|
translate(delta: Vector3): void;
|
|
90
92
|
private dollyOrthographicCamera;
|
|
@@ -97,3 +99,6 @@ export declare class FlexibleControls extends EventDispatcher<FlexibleControlsEv
|
|
|
97
99
|
private handleRotationFromKeyboard;
|
|
98
100
|
private handleMoveFromKeyboard;
|
|
99
101
|
}
|
|
102
|
+
export declare function isMouse(event: PointerEvent): boolean;
|
|
103
|
+
export declare function isTouch(event: PointerEvent): boolean;
|
|
104
|
+
export declare function isPressed(event: PointerEvent): boolean;
|
|
@@ -5,14 +5,16 @@ declare const EVENT_CODES: readonly ["MetaLeft", "MetaRight", "ShiftLeft", "Shif
|
|
|
5
5
|
type EventCode = (typeof EVENT_CODES)[number];
|
|
6
6
|
export default class Keyboard {
|
|
7
7
|
private readonly _keys;
|
|
8
|
-
private
|
|
8
|
+
private _isEnabled;
|
|
9
9
|
private readonly _domElement;
|
|
10
|
-
get
|
|
11
|
-
set
|
|
10
|
+
get isEnabled(): boolean;
|
|
11
|
+
set isEnabled(value: boolean);
|
|
12
12
|
constructor(domElement: HTMLElement);
|
|
13
13
|
isPressed(key: EventCode): boolean;
|
|
14
14
|
isShiftPressed(): boolean;
|
|
15
|
+
isShiftPressedOnly(): boolean;
|
|
15
16
|
isCtrlPressed(): boolean;
|
|
17
|
+
isCtrlPressedOnly(): boolean;
|
|
16
18
|
isAltPressed(): boolean;
|
|
17
19
|
isMetaPressed(): boolean;
|
|
18
20
|
dispose(): void;
|
|
@@ -29,6 +31,6 @@ export default class Keyboard {
|
|
|
29
31
|
private readonly removeEventListeners;
|
|
30
32
|
private readonly onKeyDown;
|
|
31
33
|
private readonly onKeyUp;
|
|
32
|
-
|
|
34
|
+
readonly clearPressedKeys: () => void;
|
|
33
35
|
}
|
|
34
36
|
export {};
|
|
@@ -13,14 +13,10 @@ export declare class OneGizmoAxis {
|
|
|
13
13
|
readonly label: string;
|
|
14
14
|
private readonly _lightColor;
|
|
15
15
|
private readonly _darkColor;
|
|
16
|
-
private readonly _mixedLightColor;
|
|
17
|
-
private readonly _mixedDarkColor;
|
|
18
16
|
private constructor();
|
|
19
17
|
getLightColorInHex(): string;
|
|
20
18
|
getDarkColorInHex(): string;
|
|
21
|
-
|
|
22
|
-
private getDarkColor;
|
|
23
|
-
private getColorFraction;
|
|
19
|
+
getColorFraction(): number;
|
|
24
20
|
private createGeoLabel;
|
|
25
21
|
private createMathLabel;
|
|
26
22
|
private getMathAxisName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognite/reveal",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.6",
|
|
4
4
|
"description": "WebGL based 3D viewer for CAD and point clouds processed in Cognite Data Fusion.",
|
|
5
5
|
"homepage": "https://github.com/cognitedata/reveal/tree/master/viewer",
|
|
6
6
|
"repository": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@azure/msal-browser": "2.38.3",
|
|
83
83
|
"@cognite/sdk": "8.3.0",
|
|
84
|
-
"@microsoft/api-extractor": "7.
|
|
84
|
+
"@microsoft/api-extractor": "7.42.1",
|
|
85
85
|
"@types/dat.gui": "0.7.12",
|
|
86
86
|
"@types/gl": "^6.0.2",
|
|
87
87
|
"@types/glob": "8.1.0",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@types/jsdom": "21.1.6",
|
|
92
92
|
"@types/lodash": "4.14.202",
|
|
93
93
|
"@types/mixpanel-browser": "2.49.0",
|
|
94
|
-
"@types/node": "18.19.
|
|
94
|
+
"@types/node": "18.19.21",
|
|
95
95
|
"@types/random-seed": "0.3.5",
|
|
96
96
|
"@types/skmeans": "0.11.7",
|
|
97
97
|
"@types/stats": "0.16.30",
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
"concurrently": "8.2.2",
|
|
103
103
|
"cross-env": "7.0.3",
|
|
104
104
|
"dat.gui": "0.7.9",
|
|
105
|
-
"eslint": "8.
|
|
105
|
+
"eslint": "8.57.0",
|
|
106
106
|
"eslint-config-prettier": "9.1.0",
|
|
107
107
|
"eslint-plugin-header": "3.1.1",
|
|
108
|
-
"eslint-plugin-jsdoc": "
|
|
108
|
+
"eslint-plugin-jsdoc": "48.2.0",
|
|
109
109
|
"eslint-plugin-lodash": "7.4.0",
|
|
110
110
|
"eslint-plugin-prettier": "5.1.3",
|
|
111
111
|
"eslint-plugin-unused-imports": "3.1.0",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"jest-puppeteer": "9.0.2",
|
|
123
123
|
"jsdom": "23.2.0",
|
|
124
124
|
"moq.ts": "10.0.8",
|
|
125
|
-
"nock": "13.5.
|
|
125
|
+
"nock": "13.5.4",
|
|
126
126
|
"prettier": "3.2.5",
|
|
127
127
|
"process": "0.11.10",
|
|
128
128
|
"puppeteer": "21.11.0",
|