@tomorrowevening/hermes 0.1.16 → 0.1.17
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/LICENSE +674 -674
- package/README.md +128 -128
- package/dist/hermes.cjs.js +1 -1
- package/dist/hermes.es.js +694 -691
- package/package.json +79 -79
- package/types/editor/tools/splineEditor/Spline.d.ts +2 -1
- package/types/editor/tools/splineEditor/index.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tomorrowevening/hermes",
|
|
3
|
-
"author": "Colin Duffy <http://tomorrowevening.com/>",
|
|
4
|
-
"description": "An extendable set of Web Tools controlled via a separate window for non-intereference with content.",
|
|
5
|
-
"license": "GPL-3.0-or-later",
|
|
6
|
-
"main": "./dist/hermes.cjs.js",
|
|
7
|
-
"module": "./dist/hermes.esm.js",
|
|
8
|
-
"types": "./types/index.d.ts",
|
|
9
|
-
"type": "module",
|
|
10
|
-
"version": "0.1.
|
|
11
|
-
"homepage": "https://github.com/tomorrowevening/hermes#readme",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/tomorrowevening/hermes/issues"
|
|
14
|
-
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"Editor",
|
|
17
|
-
"Remote",
|
|
18
|
-
"TheatreJS",
|
|
19
|
-
"ThreeJS"
|
|
20
|
-
],
|
|
21
|
-
"files": [
|
|
22
|
-
"dist/hermes.es.js",
|
|
23
|
-
"dist/hermes.cjs.js",
|
|
24
|
-
"dist/hermes.css",
|
|
25
|
-
"types/**/*.d.ts"
|
|
26
|
-
],
|
|
27
|
-
"exports": {
|
|
28
|
-
".": {
|
|
29
|
-
"types": "./types/index.d.ts",
|
|
30
|
-
"import": "./dist/hermes.es.js",
|
|
31
|
-
"require": "./dist/hermes.cjs.js"
|
|
32
|
-
},
|
|
33
|
-
"./hermes.css": "./dist/hermes.css"
|
|
34
|
-
},
|
|
35
|
-
"repository": {
|
|
36
|
-
"type": "git",
|
|
37
|
-
"url": "git+https://github.com/tomorrowevening/hermes.git"
|
|
38
|
-
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"server": "node server/index.mjs",
|
|
41
|
-
"clean": "rm -r dist && rm -r types",
|
|
42
|
-
"dev": "vite",
|
|
43
|
-
"declare": "tsc --declaration --emitDeclarationOnly --declarationDir types",
|
|
44
|
-
"buildLib": "yarn declare && vite build",
|
|
45
|
-
"buildExample": "vite build --config vite.config.example.ts",
|
|
46
|
-
"build": "yarn buildLib && yarn buildExample",
|
|
47
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
48
|
-
"preview": "vite preview"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@theatre/core": "^0.7.2",
|
|
52
|
-
"@theatre/studio": "^0.7.2",
|
|
53
|
-
"@types/react": "^18.2.15",
|
|
54
|
-
"@types/react-dom": "^18.2.7",
|
|
55
|
-
"@types/three": "^0.177.0",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
57
|
-
"@typescript-eslint/parser": "^6.4.0",
|
|
58
|
-
"@vitejs/plugin-react": "^4.0.3",
|
|
59
|
-
"camera-controls": "^2.9.0",
|
|
60
|
-
"detect-gpu": "^5.0.70",
|
|
61
|
-
"eslint": "^8.45.0",
|
|
62
|
-
"eslint-plugin-react": "^7.33.2",
|
|
63
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
64
|
-
"eslint-plugin-react-refresh": "^0.4.3",
|
|
65
|
-
"glslify": "^7.1.1",
|
|
66
|
-
"glslify-loader": "^2.0.0",
|
|
67
|
-
"path": "^0.12.7",
|
|
68
|
-
"postprocessing": "^6.37.6",
|
|
69
|
-
"react": "^18.2.0",
|
|
70
|
-
"react-dom": "^18.2.0",
|
|
71
|
-
"sass": "^1.89.2",
|
|
72
|
-
"stats-gl": "^3.6.0",
|
|
73
|
-
"three": "^0.177.0",
|
|
74
|
-
"typescript": "^5.0.2",
|
|
75
|
-
"vite": "^6.3.5",
|
|
76
|
-
"vite-plugin-glsl": "1.2.1",
|
|
77
|
-
"ws": "^8.16.0"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tomorrowevening/hermes",
|
|
3
|
+
"author": "Colin Duffy <http://tomorrowevening.com/>",
|
|
4
|
+
"description": "An extendable set of Web Tools controlled via a separate window for non-intereference with content.",
|
|
5
|
+
"license": "GPL-3.0-or-later",
|
|
6
|
+
"main": "./dist/hermes.cjs.js",
|
|
7
|
+
"module": "./dist/hermes.esm.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"version": "0.1.17",
|
|
11
|
+
"homepage": "https://github.com/tomorrowevening/hermes#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/tomorrowevening/hermes/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"Editor",
|
|
17
|
+
"Remote",
|
|
18
|
+
"TheatreJS",
|
|
19
|
+
"ThreeJS"
|
|
20
|
+
],
|
|
21
|
+
"files": [
|
|
22
|
+
"dist/hermes.es.js",
|
|
23
|
+
"dist/hermes.cjs.js",
|
|
24
|
+
"dist/hermes.css",
|
|
25
|
+
"types/**/*.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./types/index.d.ts",
|
|
30
|
+
"import": "./dist/hermes.es.js",
|
|
31
|
+
"require": "./dist/hermes.cjs.js"
|
|
32
|
+
},
|
|
33
|
+
"./hermes.css": "./dist/hermes.css"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/tomorrowevening/hermes.git"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"server": "node server/index.mjs",
|
|
41
|
+
"clean": "rm -r dist && rm -r types",
|
|
42
|
+
"dev": "vite",
|
|
43
|
+
"declare": "tsc --declaration --emitDeclarationOnly --declarationDir types",
|
|
44
|
+
"buildLib": "yarn declare && vite build",
|
|
45
|
+
"buildExample": "vite build --config vite.config.example.ts",
|
|
46
|
+
"build": "yarn buildLib && yarn buildExample",
|
|
47
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
48
|
+
"preview": "vite preview"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@theatre/core": "^0.7.2",
|
|
52
|
+
"@theatre/studio": "^0.7.2",
|
|
53
|
+
"@types/react": "^18.2.15",
|
|
54
|
+
"@types/react-dom": "^18.2.7",
|
|
55
|
+
"@types/three": "^0.177.0",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
57
|
+
"@typescript-eslint/parser": "^6.4.0",
|
|
58
|
+
"@vitejs/plugin-react": "^4.0.3",
|
|
59
|
+
"camera-controls": "^2.9.0",
|
|
60
|
+
"detect-gpu": "^5.0.70",
|
|
61
|
+
"eslint": "^8.45.0",
|
|
62
|
+
"eslint-plugin-react": "^7.33.2",
|
|
63
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
64
|
+
"eslint-plugin-react-refresh": "^0.4.3",
|
|
65
|
+
"glslify": "^7.1.1",
|
|
66
|
+
"glslify-loader": "^2.0.0",
|
|
67
|
+
"path": "^0.12.7",
|
|
68
|
+
"postprocessing": "^6.37.6",
|
|
69
|
+
"react": "^18.2.0",
|
|
70
|
+
"react-dom": "^18.2.0",
|
|
71
|
+
"sass": "^1.89.2",
|
|
72
|
+
"stats-gl": "^3.6.0",
|
|
73
|
+
"three": "^0.177.0",
|
|
74
|
+
"typescript": "^5.0.2",
|
|
75
|
+
"vite": "^6.3.5",
|
|
76
|
+
"vite-plugin-glsl": "1.2.1",
|
|
77
|
+
"ws": "^8.16.0"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -35,6 +35,7 @@ export default class Spline extends Object3D {
|
|
|
35
35
|
removeSelectedPt: () => void;
|
|
36
36
|
updateLastPoint(value: Vector3): void;
|
|
37
37
|
updateSpline: () => void;
|
|
38
|
+
updateField(position: Vector3): void;
|
|
38
39
|
private onMouseClick;
|
|
39
40
|
getPointAt(percentage: number): Vector3;
|
|
40
41
|
getTangentAt(percentage: number): Vector3;
|
|
@@ -48,6 +49,6 @@ export default class Spline extends Object3D {
|
|
|
48
49
|
set curvePercentage(value: number);
|
|
49
50
|
private updateCurrentPoint;
|
|
50
51
|
private onUpdateTransform;
|
|
51
|
-
initDebug(parentGroup: InspectorGroup): void;
|
|
52
|
+
initDebug(parentGroup: InspectorGroup, visible: boolean): void;
|
|
52
53
|
private debugPoint;
|
|
53
54
|
}
|
|
@@ -19,7 +19,7 @@ export default class SplineEditor extends Object3D {
|
|
|
19
19
|
constructor(camera: Camera, three: RemoteThree);
|
|
20
20
|
initDebug(): void;
|
|
21
21
|
dispose(): void;
|
|
22
|
-
addSpline(spline: Spline): void;
|
|
22
|
+
addSpline(spline: Spline, visible: boolean): void;
|
|
23
23
|
createSpline: (defaultPoints?: Array<Vector3>) => Spline;
|
|
24
24
|
createSplineFromArray: (points: Array<number[]>) => Spline;
|
|
25
25
|
createSplineFromCatmullRom: (curve: CatmullRomCurve3) => Spline;
|