@tomorrowevening/hermes 0.1.16 → 0.1.18
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 @@
|
|
|
7
7
|
"module": "./dist/hermes.esm.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "0.1.
|
|
10
|
+
"version": "0.1.18",
|
|
11
11
|
"homepage": "https://github.com/tomorrowevening/hermes#readme",
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/tomorrowevening/hermes/issues"
|
|
@@ -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;
|