@mml-io/3d-web-client-core 0.12.2 → 0.13.0
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.
@@ -0,0 +1,49 @@
|
|
1
|
+
interface JoyStickAttributes {
|
2
|
+
radius?: number;
|
3
|
+
inner_radius?: number;
|
4
|
+
x?: number;
|
5
|
+
y?: number;
|
6
|
+
width?: number;
|
7
|
+
height?: number;
|
8
|
+
mouse_support?: boolean;
|
9
|
+
visible?: boolean;
|
10
|
+
anchor?: "left" | "right";
|
11
|
+
}
|
12
|
+
export declare class VirtualJoystick {
|
13
|
+
static JOYSTICK_DIV: HTMLDivElement | null;
|
14
|
+
private radius;
|
15
|
+
private inner_radius;
|
16
|
+
private anchor;
|
17
|
+
private x;
|
18
|
+
private y;
|
19
|
+
private width;
|
20
|
+
private height;
|
21
|
+
private mouse_support;
|
22
|
+
private div;
|
23
|
+
private base;
|
24
|
+
private control;
|
25
|
+
left: boolean;
|
26
|
+
right: boolean;
|
27
|
+
up: boolean;
|
28
|
+
down: boolean;
|
29
|
+
hasDirection: boolean;
|
30
|
+
constructor(attrs: JoyStickAttributes);
|
31
|
+
static checkForTouch(): boolean;
|
32
|
+
static isTouchOnJoystick(touch: Touch): boolean;
|
33
|
+
private checkTouch;
|
34
|
+
private initializeJoystick;
|
35
|
+
private setupBaseAndControl;
|
36
|
+
private bindEvents;
|
37
|
+
private handleTouchStart;
|
38
|
+
private handleTouchMove;
|
39
|
+
private handleMouseDown;
|
40
|
+
private handleMouseMove;
|
41
|
+
private handleMouseUp;
|
42
|
+
private clearFlags;
|
43
|
+
private updateControlAndDirection;
|
44
|
+
private isUp;
|
45
|
+
private isDown;
|
46
|
+
private isLeft;
|
47
|
+
private isRight;
|
48
|
+
}
|
49
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mml-io/3d-web-client-core",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.13.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"lint-fix": "eslint \"./{src,test}/**/*.{js,jsx,ts,tsx}\" --fix"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@mml-io/3d-web-avatar": "^0.
|
21
|
+
"@mml-io/3d-web-avatar": "^0.13.0",
|
22
22
|
"@tweakpane/core": "2.0.3",
|
23
23
|
"@tweakpane/plugin-essentials": "0.2.1",
|
24
24
|
"mml-web": "0.12.0",
|
@@ -32,5 +32,5 @@
|
|
32
32
|
"devDependencies": {
|
33
33
|
"@types/three": "0.153.0"
|
34
34
|
},
|
35
|
-
"gitHead": "
|
35
|
+
"gitHead": "dd4ec3072e0fec33f7a885b4123636cbe0222fcd"
|
36
36
|
}
|