arcanumcube 0.1.3 → 0.1.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/dist/cjs/arcanumcube.js +878 -63
- package/dist/esm/arcanumcube.module.js +876 -62
- package/dist/esm/arcanumcube.module.min.js +5 -5
- package/dist/index.html +4 -5
- package/dist/types/skins.d.ts +1 -0
- package/dist/types/webgl.d.ts +5 -5
- package/package.json +10 -10
package/dist/index.html
CHANGED
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
{
|
|
10
10
|
"imports": {
|
|
11
11
|
"arcanumcube": "./esm/arcanumcube.module.min.js",
|
|
12
|
-
"three": "https://cdn.jsdelivr.net/npm/three@0.
|
|
13
|
-
"three/examples/jsm/": "https://cdn.jsdelivr.net/npm/three@0.
|
|
14
|
-
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.
|
|
15
|
-
"@tweenjs/tween.js": "https://cdn.jsdelivr.net/npm/@tweenjs/tween.js@25.0.0/+esm"
|
|
12
|
+
"three": "https://cdn.jsdelivr.net/npm/three@0.174.0/+esm",
|
|
13
|
+
"three/examples/jsm/": "https://cdn.jsdelivr.net/npm/three@0.174.0/examples/jsm/",
|
|
14
|
+
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.174.0/examples/jsm/"
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
</script>
|
|
@@ -66,7 +65,7 @@
|
|
|
66
65
|
|
|
67
66
|
renderer.setAnimationLoop((time) => {
|
|
68
67
|
// animate twisting
|
|
69
|
-
arccube.
|
|
68
|
+
arccube.update();
|
|
70
69
|
|
|
71
70
|
// orbit control
|
|
72
71
|
controls.update();
|
package/dist/types/skins.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import * as ARCCUBE from './core.js';
|
|
3
|
+
export declare function loadDefaultLogoTexture(): THREE.Texture;
|
|
3
4
|
export declare function GetSkinByName(name: string): Skin;
|
|
4
5
|
export declare function GetSkinNameList(): string[];
|
|
5
6
|
export type Skin = {
|
package/dist/types/webgl.d.ts
CHANGED
|
@@ -82,8 +82,8 @@ export declare class WebGLArcanumCube extends ArcanumCube {
|
|
|
82
82
|
private _draggingTwist?;
|
|
83
83
|
/** max degree to cancel the dragging */
|
|
84
84
|
private _cancelDragDeg;
|
|
85
|
-
/**
|
|
86
|
-
private
|
|
85
|
+
/** easing group */
|
|
86
|
+
private _easings;
|
|
87
87
|
/** light at the center of cube */
|
|
88
88
|
private _coreLights;
|
|
89
89
|
/** status of locking the twist */
|
|
@@ -114,10 +114,10 @@ export declare class WebGLArcanumCube extends ArcanumCube {
|
|
|
114
114
|
dragTwistEnd(): void;
|
|
115
115
|
scramble(steps?: number, duration?: number): void;
|
|
116
116
|
undo(steps?: number, duration?: number): void;
|
|
117
|
-
|
|
117
|
+
easingTwist(twist: Twist | Twist[], reverse?: boolean, duration?: number, cancel?: boolean, options?: TwistOptions): void;
|
|
118
118
|
private _immediatelyTwist;
|
|
119
|
-
private
|
|
120
|
-
|
|
119
|
+
private _easingTwist;
|
|
120
|
+
update(): void;
|
|
121
121
|
setCoreLightColor(color: THREE.ColorRepresentation): void;
|
|
122
122
|
setCoreLightIntensity(intensity: number): void;
|
|
123
123
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arcanumcube",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Arcanum Cube",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/mawxiwtz/arcanumcube.git"
|
|
11
11
|
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"rubiks-cube",
|
|
14
|
+
"puzzle",
|
|
15
|
+
"three",
|
|
16
|
+
"webgl"
|
|
17
|
+
],
|
|
12
18
|
"files": [
|
|
13
19
|
"dist",
|
|
14
20
|
"LICENSE",
|
|
@@ -45,7 +51,7 @@
|
|
|
45
51
|
"@types/eslint": "^9.6.1",
|
|
46
52
|
"@types/jest": "^29.5.14",
|
|
47
53
|
"@types/node": "^22.13.0",
|
|
48
|
-
"@types/three": "^0.
|
|
54
|
+
"@types/three": "^0.174.0",
|
|
49
55
|
"@typescript-eslint/eslint-plugin": "^8.22.0",
|
|
50
56
|
"@typescript-eslint/parser": "^8.22.0",
|
|
51
57
|
"chalk": "^5.4.1",
|
|
@@ -55,15 +61,9 @@
|
|
|
55
61
|
"fs-extra": "^11.3.0",
|
|
56
62
|
"jest": "^29.7.0",
|
|
57
63
|
"prettier": "^3.4.2",
|
|
58
|
-
"three": "^0.
|
|
64
|
+
"three": "^0.174.0",
|
|
59
65
|
"ts-jest": "^29.2.5",
|
|
60
66
|
"typedoc": "^0.27.6",
|
|
61
67
|
"typescript": "^5.7.3"
|
|
62
|
-
}
|
|
63
|
-
"keywords": [
|
|
64
|
-
"rubiks-cube",
|
|
65
|
-
"puzzle",
|
|
66
|
-
"three",
|
|
67
|
-
"webgl"
|
|
68
|
-
]
|
|
68
|
+
}
|
|
69
69
|
}
|