@zyzgroup/core-web 0.0.77 → 0.0.79
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/animate_ce.css +615 -0
- package/dist/zyzgroup_core_web.iife.js +16 -16
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +13475 -12617
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +16 -16
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/YZWorker.d.ts.map +1 -1
- package/types/ajax.d.ts +0 -1
- package/types/ajax.d.ts.map +1 -1
- package/types/animate/Clock.d.ts +14 -0
- package/types/animate/Clock.d.ts.map +1 -0
- package/types/animate/Timeline.d.ts +43 -0
- package/types/animate/Timeline.d.ts.map +1 -0
- package/types/animate/{YZAnimate.d.ts → _YZAnimate.d.ts} +3 -3
- package/types/animate/_YZAnimate.d.ts.map +1 -0
- package/types/animate/index.d.ts +3 -2
- package/types/animate/index.d.ts.map +1 -1
- package/types/animate/schedule.d.ts +11 -0
- package/types/animate/schedule.d.ts.map +1 -0
- package/types/animate/tween/BezierEasing.d.ts +8 -0
- package/types/animate/tween/BezierEasing.d.ts.map +1 -0
- package/types/animate/tween/Easing.d.ts +1 -0
- package/types/animate/tween/Easing.d.ts.map +1 -1
- package/types/animate/tween/Group.d.ts.map +1 -1
- package/types/animate/tween/Interpolation.d.ts +3 -1
- package/types/animate/tween/Interpolation.d.ts.map +1 -1
- package/types/animate/tween/Now.d.ts +0 -2
- package/types/animate/tween/Now.d.ts.map +1 -1
- package/types/animate/tween/Tween.d.ts.map +1 -1
- package/types/animate/tween/index.d.ts +8 -3
- package/types/animate/tween/index.d.ts.map +1 -1
- package/types/canvas/YZCanvas.d.ts +6 -5
- package/types/canvas/YZCanvas.d.ts.map +1 -1
- package/types/canvas/YZCanvasContext.d.ts.map +1 -1
- package/types/dom/DOMEventBus.d.ts +48 -30
- package/types/dom/DOMEventBus.d.ts.map +1 -1
- package/types/dom/DOMKey.d.ts +18 -0
- package/types/dom/DOMKey.d.ts.map +1 -1
- package/types/dom/DOMUtil.d.ts +17 -3
- package/types/dom/DOMUtil.d.ts.map +1 -1
- package/types/env.d.ts.map +1 -1
- package/types/image/bitmap.d.ts +5 -4
- package/types/image/bitmap.d.ts.map +1 -1
- package/types/image/image.d.ts +5 -0
- package/types/image/image.d.ts.map +1 -1
- package/types/index.d.ts +1 -4
- package/types/index.d.ts.map +1 -1
- package/types/loaders/AudioLoader.d.ts +12 -0
- package/types/loaders/AudioLoader.d.ts.map +1 -0
- package/types/loaders/Cache.d.ts +10 -0
- package/types/loaders/Cache.d.ts.map +1 -0
- package/types/loaders/FileLoader.d.ts +16 -0
- package/types/loaders/FileLoader.d.ts.map +1 -0
- package/types/loaders/ImageBitmapLoader.d.ts +14 -0
- package/types/loaders/ImageBitmapLoader.d.ts.map +1 -0
- package/types/loaders/ImageLoader.d.ts +11 -0
- package/types/loaders/ImageLoader.d.ts.map +1 -0
- package/types/loaders/Loader.d.ts +25 -0
- package/types/loaders/Loader.d.ts.map +1 -0
- package/types/loaders/LoadingManager.d.ts +29 -0
- package/types/loaders/LoadingManager.d.ts.map +1 -0
- package/types/loaders/index.d.ts +5 -0
- package/types/loaders/index.d.ts.map +1 -0
- package/types/math/Matrix.d.ts +65 -32
- package/types/math/Matrix.d.ts.map +1 -1
- package/types/math/Shape.d.ts +127 -84
- package/types/math/Shape.d.ts.map +1 -1
- package/types/math/ShapeCombo.d.ts +38 -0
- package/types/math/ShapeCombo.d.ts.map +1 -0
- package/types/math/ShapeGroup.d.ts +28 -14
- package/types/math/ShapeGroup.d.ts.map +1 -1
- package/types/math/index.d.ts +1 -15
- package/types/math/index.d.ts.map +1 -1
- package/types/math/line/Arc.d.ts +25 -0
- package/types/math/line/Arc.d.ts.map +1 -0
- package/types/math/{CubicBezier.d.ts → line/CubicBezier.d.ts} +20 -12
- package/types/math/line/CubicBezier.d.ts.map +1 -0
- package/types/math/line/L.d.ts +33 -0
- package/types/math/line/L.d.ts.map +1 -0
- package/types/math/line/PathD.d.ts +82 -0
- package/types/math/line/PathD.d.ts.map +1 -0
- package/types/math/line/QuadraticBezier.d.ts +30 -0
- package/types/math/line/QuadraticBezier.d.ts.map +1 -0
- package/types/math/line/index.d.ts +6 -0
- package/types/math/line/index.d.ts.map +1 -0
- package/types/math/math/cameras/Camera.d.ts +12 -0
- package/types/math/math/cameras/Camera.d.ts.map +1 -0
- package/types/math/math/constants.d.ts +211 -0
- package/types/math/math/constants.d.ts.map +1 -0
- package/types/math/math/controls/Controls.d.ts +25 -0
- package/types/math/math/controls/Controls.d.ts.map +1 -0
- package/types/math/math/controls/OrbitControls.d.ts +1 -0
- package/types/math/math/controls/OrbitControls.d.ts.map +1 -0
- package/types/math/math/core/BufferAttribute.d.ts +94 -0
- package/types/math/math/core/BufferAttribute.d.ts.map +1 -0
- package/types/math/math/core/BufferGeometry.d.ts +1 -0
- package/types/math/math/core/BufferGeometry.d.ts.map +1 -0
- package/types/math/math/core/EventDispatcher.d.ts +14 -0
- package/types/math/math/core/EventDispatcher.d.ts.map +1 -0
- package/types/math/math/core/GLBufferAttribute.d.ts +19 -0
- package/types/math/math/core/GLBufferAttribute.d.ts.map +1 -0
- package/types/math/math/core/Layers.d.ts +14 -0
- package/types/math/math/core/Layers.d.ts.map +1 -0
- package/types/math/math/core/Object3D.d.ts +91 -0
- package/types/math/math/core/Object3D.d.ts.map +1 -0
- package/types/math/math/index.d.ts +10 -0
- package/types/math/math/index.d.ts.map +1 -0
- package/types/math/math/interpolants/Interpolant.d.ts +14 -0
- package/types/math/math/interpolants/Interpolant.d.ts.map +1 -0
- package/types/math/math/math/Box2.d.ts +30 -0
- package/types/math/math/math/Box2.d.ts.map +1 -0
- package/types/math/math/math/Box3.d.ts +46 -0
- package/types/math/math/math/Box3.d.ts.map +1 -0
- package/types/math/math/math/Color.d.ts +59 -0
- package/types/math/math/math/Color.d.ts.map +1 -0
- package/types/math/math/math/ColorManagement.d.ts +20 -0
- package/types/math/math/math/ColorManagement.d.ts.map +1 -0
- package/types/math/math/math/Cylindrical.d.ts +14 -0
- package/types/math/math/math/Cylindrical.d.ts.map +1 -0
- package/types/math/math/math/Euler.d.ts +35 -0
- package/types/math/math/math/Euler.d.ts.map +1 -0
- package/types/math/math/math/Frustum.d.ts +21 -0
- package/types/math/math/math/Frustum.d.ts.map +1 -0
- package/types/math/math/math/Line3.d.ts +21 -0
- package/types/math/math/math/Line3.d.ts.map +1 -0
- package/types/math/math/math/Matrix.d.ts +16 -0
- package/types/math/math/math/Matrix.d.ts.map +1 -0
- package/types/math/math/math/Matrix2.d.ts +19 -0
- package/types/math/math/math/Matrix2.d.ts.map +1 -0
- package/types/math/math/math/Matrix3.d.ts +46 -0
- package/types/math/math/math/Matrix3.d.ts.map +1 -0
- package/types/math/math/math/Matrix4.d.ts +66 -0
- package/types/math/math/math/Matrix4.d.ts.map +1 -0
- package/types/math/math/math/Plane.d.ts +32 -0
- package/types/math/math/math/Plane.d.ts.map +1 -0
- package/types/math/math/math/Quaternion.d.ts +52 -0
- package/types/math/math/math/Quaternion.d.ts.map +1 -0
- package/types/math/math/math/Ray.d.ts +32 -0
- package/types/math/math/math/Ray.d.ts.map +1 -0
- package/types/math/math/math/Sphere.d.ts +29 -0
- package/types/math/math/math/Sphere.d.ts.map +1 -0
- package/types/math/math/math/Spherical.d.ts +15 -0
- package/types/math/math/math/Spherical.d.ts.map +1 -0
- package/types/math/math/math/SphericalHarmonics3.d.ts +21 -0
- package/types/math/math/math/SphericalHarmonics3.d.ts.map +1 -0
- package/types/math/math/math/Triangle.d.ts +35 -0
- package/types/math/math/math/Triangle.d.ts.map +1 -0
- package/types/math/math/math/Vector.d.ts +19 -0
- package/types/math/math/math/Vector.d.ts.map +1 -0
- package/types/math/math/math/Vector2.d.ts +66 -0
- package/types/math/math/math/Vector2.d.ts.map +1 -0
- package/types/math/math/math/Vector3.d.ts +80 -0
- package/types/math/math/math/Vector3.d.ts.map +1 -0
- package/types/math/math/math/Vector4.d.ts +64 -0
- package/types/math/math/math/Vector4.d.ts.map +1 -0
- package/types/math/math.d.ts +6 -1
- package/types/math/math.d.ts.map +1 -1
- package/types/math/shapes/Arrow.d.ts.map +1 -1
- package/types/math/{ComboConfetti.d.ts → shapes/Confetti.d.ts} +10 -8
- package/types/math/shapes/Confetti.d.ts.map +1 -0
- package/types/math/shapes/Cross.d.ts +2 -3
- package/types/math/shapes/Cross.d.ts.map +1 -1
- package/types/math/{Ellipse.d.ts → shapes/Ellipse.d.ts} +9 -5
- package/types/math/shapes/Ellipse.d.ts.map +1 -0
- package/types/math/shapes/Fox.d.ts.map +1 -1
- package/types/math/shapes/Heart.d.ts +6 -3
- package/types/math/shapes/Heart.d.ts.map +1 -1
- package/types/math/shapes/HeartVariant.d.ts +6 -3
- package/types/math/shapes/HeartVariant.d.ts.map +1 -1
- package/types/math/{Light3D.d.ts → shapes/Light3D.d.ts} +2 -5
- package/types/math/shapes/Light3D.d.ts.map +1 -0
- package/types/math/shapes/Line.d.ts +19 -0
- package/types/math/shapes/Line.d.ts.map +1 -0
- package/types/math/shapes/LinePicture.d.ts +15 -0
- package/types/math/shapes/LinePicture.d.ts.map +1 -0
- package/types/math/shapes/LineQuadraticBezier.d.ts +21 -0
- package/types/math/shapes/LineQuadraticBezier.d.ts.map +1 -0
- package/types/math/shapes/Point.d.ts +85 -0
- package/types/math/shapes/Point.d.ts.map +1 -0
- package/types/math/{Point3D.d.ts → shapes/Point3D.d.ts} +4 -6
- package/types/math/shapes/Point3D.d.ts.map +1 -0
- package/types/math/{Point3Ds.d.ts → shapes/Point3Ds.d.ts} +3 -3
- package/types/math/shapes/Point3Ds.d.ts.map +1 -0
- package/types/math/shapes/Points.d.ts +28 -0
- package/types/math/shapes/Points.d.ts.map +1 -0
- package/types/math/shapes/Rabbit.d.ts +4 -3
- package/types/math/shapes/Rabbit.d.ts.map +1 -1
- package/types/math/shapes/Rect.d.ts +33 -0
- package/types/math/shapes/Rect.d.ts.map +1 -0
- package/types/math/shapes/Ring.d.ts +7 -4
- package/types/math/shapes/Ring.d.ts.map +1 -1
- package/types/math/shapes/RingIndicator.d.ts +34 -0
- package/types/math/shapes/RingIndicator.d.ts.map +1 -0
- package/types/math/shapes/Sector.d.ts +15 -4
- package/types/math/shapes/Sector.d.ts.map +1 -1
- package/types/math/shapes/Segment.d.ts +10 -3
- package/types/math/shapes/Segment.d.ts.map +1 -1
- package/types/math/shapes/Ship.d.ts +4 -2
- package/types/math/shapes/Ship.d.ts.map +1 -1
- package/types/math/shapes/Slider.d.ts +7 -13
- package/types/math/shapes/Slider.d.ts.map +1 -1
- package/types/math/shapes/Star.d.ts +5 -3
- package/types/math/shapes/Star.d.ts.map +1 -1
- package/types/math/{Text.d.ts → shapes/Text.d.ts} +3 -4
- package/types/math/shapes/Text.d.ts.map +1 -0
- package/types/math/shapes/Tip.d.ts +8 -9
- package/types/math/shapes/Tip.d.ts.map +1 -1
- package/types/math/shapes/Tree.d.ts +2 -2
- package/types/math/shapes/Tree.d.ts.map +1 -1
- package/types/math/shapes/index.d.ts +12 -0
- package/types/math/shapes/index.d.ts.map +1 -1
- package/types/patch.d.ts.map +1 -1
- package/types/position.d.ts +11 -15
- package/types/position.d.ts.map +1 -1
- package/types/svg/DOMSVGUtil.d.ts +1 -13
- package/types/svg/DOMSVGUtil.d.ts.map +1 -1
- package/types/svg/YZSVG.d.ts +7 -6
- package/types/svg/YZSVG.d.ts.map +1 -1
- package/types/theme.d.ts +3 -3
- package/types/theme.d.ts.map +1 -1
- package/types/YZRequestIdleCallback.d.ts +0 -14
- package/types/YZRequestIdleCallback.d.ts.map +0 -1
- package/types/animate/YZAnimate.d.ts.map +0 -1
- package/types/animate/requestAnimationFrameCycle.d.ts +0 -15
- package/types/animate/requestAnimationFrameCycle.d.ts.map +0 -1
- package/types/animate/tween/cubicBezierToEase.d.ts +0 -4
- package/types/animate/tween/cubicBezierToEase.d.ts.map +0 -1
- package/types/math/Arc.d.ts +0 -27
- package/types/math/Arc.d.ts.map +0 -1
- package/types/math/ComboConfetti.d.ts.map +0 -1
- package/types/math/CubicBezier.d.ts.map +0 -1
- package/types/math/Ellipse.d.ts.map +0 -1
- package/types/math/Light3D.d.ts.map +0 -1
- package/types/math/Line.d.ts +0 -28
- package/types/math/Line.d.ts.map +0 -1
- package/types/math/PathD.d.ts +0 -82
- package/types/math/PathD.d.ts.map +0 -1
- package/types/math/PathDGroup.d.ts +0 -30
- package/types/math/PathDGroup.d.ts.map +0 -1
- package/types/math/Point.d.ts +0 -58
- package/types/math/Point.d.ts.map +0 -1
- package/types/math/Point3D.d.ts.map +0 -1
- package/types/math/Point3Ds.d.ts.map +0 -1
- package/types/math/Points.d.ts +0 -23
- package/types/math/Points.d.ts.map +0 -1
- package/types/math/QuadraticBezier.d.ts +0 -26
- package/types/math/QuadraticBezier.d.ts.map +0 -1
- package/types/math/Rect.d.ts +0 -25
- package/types/math/Rect.d.ts.map +0 -1
- package/types/math/RenderGroup.d.ts +0 -18
- package/types/math/RenderGroup.d.ts.map +0 -1
- package/types/math/Text.d.ts.map +0 -1
- package/types/microTask.d.ts +0 -2
- package/types/microTask.d.ts.map +0 -1
- package/types/nextTick.d.ts +0 -3
- package/types/nextTick.d.ts.map +0 -1
- package/types/reactive.d.ts +0 -14
- package/types/reactive.d.ts.map +0 -1
- package/types/three/three.d.ts +0 -2
- package/types/three/three.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plane.d.ts","sourceRoot":"","sources":["../../../../src/math/math/math/Plane.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,MAAM,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+
private _x;
|
|
7
|
+
private _y;
|
|
8
|
+
private _z;
|
|
9
|
+
private _w;
|
|
10
|
+
constructor(x?: number, y?: number, z?: number, w?: number);
|
|
11
|
+
static slerpFlat(dst: number[], dstOffset: number, src0: number[], srcOffset0: number, src1: number[], srcOffset1: number, t: number): void;
|
|
12
|
+
static multiplyQuaternionsFlat(dst: number[], dstOffset: number, src0: number[], srcOffset0: number, src1: number[], srcOffset1: number): number[];
|
|
13
|
+
get x(): number;
|
|
14
|
+
set x(value: number);
|
|
15
|
+
get y(): number;
|
|
16
|
+
set y(value: number);
|
|
17
|
+
get z(): number;
|
|
18
|
+
set z(value: number);
|
|
19
|
+
get w(): number;
|
|
20
|
+
set w(value: number);
|
|
21
|
+
set(x?: number, y?: number, z?: number, w?: number): this;
|
|
22
|
+
clone(): Quaternion;
|
|
23
|
+
copy(quaternion: Quaternion): this;
|
|
24
|
+
setFromEuler(euler: Euler, update?: boolean): this;
|
|
25
|
+
setFromAxisAngle(axis: Vector3, angle: number): this;
|
|
26
|
+
setFromRotationMatrix(m: Matrix4): this;
|
|
27
|
+
setFromUnitVectors(vFrom: Vector3, vTo: Vector3): this;
|
|
28
|
+
angleTo(q: Quaternion): number;
|
|
29
|
+
rotateTowards(q: Quaternion, step: number): this;
|
|
30
|
+
identity(): this;
|
|
31
|
+
invert(): this;
|
|
32
|
+
conjugate(): this;
|
|
33
|
+
dot(v: Quaternion): number;
|
|
34
|
+
lengthSq(): number;
|
|
35
|
+
length(): number;
|
|
36
|
+
normalize(): this;
|
|
37
|
+
multiply(q: Quaternion): this;
|
|
38
|
+
premultiply(q: Quaternion): this;
|
|
39
|
+
multiplyQuaternions(a: Quaternion, b: Quaternion): this;
|
|
40
|
+
slerp(qb: Quaternion, t: number): this;
|
|
41
|
+
slerpQuaternions(qa: Quaternion, qb: Quaternion, t: number): this;
|
|
42
|
+
random(): this;
|
|
43
|
+
equals(quaternion: Quaternion): boolean;
|
|
44
|
+
fromArray(array: number[], offset?: number): this;
|
|
45
|
+
toArray(array?: number[], offset?: number): number[];
|
|
46
|
+
toJSON(): number[];
|
|
47
|
+
_onChange(callback: () => void): this;
|
|
48
|
+
_onChangeCallback(): void;
|
|
49
|
+
[Symbol.iterator](): Generator<number, void, unknown>;
|
|
50
|
+
}
|
|
51
|
+
export default Quaternion;
|
|
52
|
+
//# sourceMappingURL=Quaternion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Quaternion.d.ts","sourceRoot":"","sources":["../../../../src/math/math/math/Quaternion.ts"],"names":[],"mappings":"AAWA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,qBAAa,UAAU;IACd,YAAY,UAAQ;IAE3B,OAAO,CAAC,EAAE,CAAS;IACnB,OAAO,CAAC,EAAE,CAAS;IACnB,OAAO,CAAC,EAAE,CAAS;IACnB,OAAO,CAAC,EAAE,CAAS;gBAEP,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI;IAOtC,MAAM,CAAC,SAAS,CACd,GAAG,EAAE,MAAM,EAAE,EACb,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EAAE,EACd,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EAAE,EACd,UAAU,EAAE,MAAM,EAClB,CAAC,EAAE,MAAM;IAqEX,MAAM,CAAC,uBAAuB,CAC5B,GAAG,EAAE,MAAM,EAAE,EACb,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EAAE,EACd,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EAAE,EACd,UAAU,EAAE,MAAM;IAoBpB,IAAI,CAAC,IAIQ,MAAM,CAFlB;IAED,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAGlB;IAED,IAAI,CAAC,IAIQ,MAAM,CAFlB;IAED,IAAI,CAAC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IAiBxC,MAAM;IAIN,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI;IAK9B,iBAAiB;IAEhB,CAAC,MAAM,CAAC,QAAQ,CAAC;CAMnB;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import Vector3 from "./Vector3";
|
|
2
|
+
import Sphere from "./Sphere";
|
|
3
|
+
import Plane from "./Plane";
|
|
4
|
+
import Box3 from "./Box3";
|
|
5
|
+
import Matrix4 from "./Matrix4";
|
|
6
|
+
export declare class Ray {
|
|
7
|
+
origin: Vector3;
|
|
8
|
+
direction: Vector3;
|
|
9
|
+
constructor(origin?: Vector3, direction?: Vector3);
|
|
10
|
+
set(origin?: Vector3, direction?: Vector3): this;
|
|
11
|
+
copy(ray: Ray): this;
|
|
12
|
+
at(t: number, target: Vector3): Vector3;
|
|
13
|
+
lookAt(v: Vector3): this;
|
|
14
|
+
recast(t: number): this;
|
|
15
|
+
closestPointToPoint(point: Vector3, target: Vector3): Vector3;
|
|
16
|
+
distanceToPoint(point: Vector3): number;
|
|
17
|
+
distanceSqToPoint(point: Vector3): number;
|
|
18
|
+
distanceSqToSegment(v0: Vector3, v1: Vector3, optionalPointOnRay: Vector3, optionalPointOnSegment: Vector3): number;
|
|
19
|
+
intersectSphere(sphere: Sphere, target: Vector3): Vector3 | null;
|
|
20
|
+
intersectsSphere(sphere: Sphere): boolean;
|
|
21
|
+
distanceToPlane(plane: Plane): number | null;
|
|
22
|
+
intersectPlane(plane: Plane, target: Vector3): Vector3 | null;
|
|
23
|
+
intersectsPlane(plane: Plane): boolean;
|
|
24
|
+
intersectBox(box: Box3, target: Vector3): Vector3 | null;
|
|
25
|
+
intersectsBox(box: Box3): boolean;
|
|
26
|
+
intersectTriangle(a: Vector3, b: Vector3, c: Vector3, backfaceCulling: boolean, target: Vector3): Vector3 | null;
|
|
27
|
+
applyMatrix4(matrix4: Matrix4): this;
|
|
28
|
+
equals(ray: Ray): boolean;
|
|
29
|
+
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,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO;IAoDvC,aAAa,CAAC,GAAG,EAAE,IAAI;IAIvB,iBAAiB,CACf,CAAC,EAAE,OAAO,EACV,CAAC,EAAE,OAAO,EACV,CAAC,EAAE,OAAO,EACV,eAAe,EAAE,OAAO,EACxB,MAAM,EAAE,OAAO;IA6DjB,YAAY,CAAC,OAAO,EAAE,OAAO;IAM7B,MAAM,CAAC,GAAG,EAAE,GAAG;IAMf,KAAK;CAIN;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import Vector3 from "./Vector3";
|
|
2
|
+
import Matrix4 from "./Matrix4";
|
|
3
|
+
import Box3 from "./Box3";
|
|
4
|
+
import Plane from "./Plane";
|
|
5
|
+
export declare class Sphere {
|
|
6
|
+
center: Vector3;
|
|
7
|
+
radius: number;
|
|
8
|
+
constructor(center?: Vector3, radius?: number);
|
|
9
|
+
set(center?: Vector3, radius?: number): this;
|
|
10
|
+
setFromPoints(points: Vector3[], optionalCenter?: Vector3): this;
|
|
11
|
+
copy(sphere: Sphere): this;
|
|
12
|
+
isEmpty(): boolean;
|
|
13
|
+
makeEmpty(): this;
|
|
14
|
+
containsPoint(point: Vector3): boolean;
|
|
15
|
+
distanceToPoint(point: Vector3): number;
|
|
16
|
+
intersectsSphere(sphere: Sphere): boolean;
|
|
17
|
+
intersectsBox(box: Box3): boolean;
|
|
18
|
+
intersectsPlane(plane: Plane): boolean;
|
|
19
|
+
clampPoint(point: Vector3, target: Vector3): Vector3;
|
|
20
|
+
getBoundingBox(target: Box3): Box3;
|
|
21
|
+
applyMatrix4(matrix: Matrix4): this;
|
|
22
|
+
translate(offset: Vector3): this;
|
|
23
|
+
expandByPoint(point: Vector3): this;
|
|
24
|
+
union(sphere: Sphere): this;
|
|
25
|
+
equals(sphere: Sphere): boolean;
|
|
26
|
+
clone(): Sphere;
|
|
27
|
+
}
|
|
28
|
+
export default Sphere;
|
|
29
|
+
//# sourceMappingURL=Sphere.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sphere.d.ts","sourceRoot":"","sources":["../../../../src/math/math/math/Sphere.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAM5B,qBAAa,MAAM;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;gBAEH,MAAM,UAAgB,EAAE,MAAM,SAAK;IAK/C,GAAG,CAAC,MAAM,UAAc,EAAE,MAAM,SAAc;IAM9C,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,cAAc,CAAC,EAAE,OAAO;IAezD,IAAI,CAAC,MAAM,EAAE,MAAM;IAMnB,OAAO;IAIP,SAAS;IAMT,aAAa,CAAC,KAAK,EAAE,OAAO;IAI5B,eAAe,CAAC,KAAK,EAAE,OAAO;IAI9B,gBAAgB,CAAC,MAAM,EAAE,MAAM;IAO/B,aAAa,CAAC,GAAG,EAAE,IAAI;IAIvB,eAAe,CAAC,KAAK,EAAE,KAAK;IAI5B,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO;IAU1C,cAAc,CAAC,MAAM,EAAE,IAAI;IAW3B,YAAY,CAAC,MAAM,EAAE,OAAO;IAM5B,SAAS,CAAC,MAAM,EAAE,OAAO;IAKzB,aAAa,CAAC,KAAK,EAAE,OAAO;IAkB5B,KAAK,CAAC,MAAM,EAAE,MAAM;IAkBpB,MAAM,CAAC,MAAM,EAAE,MAAM;IAIrB,KAAK;CAIN;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Vector3 from "./Vector3";
|
|
2
|
+
export declare class Spherical {
|
|
3
|
+
radius: number;
|
|
4
|
+
phi: number;
|
|
5
|
+
theta: number;
|
|
6
|
+
constructor(radius?: number, phi?: number, theta?: number);
|
|
7
|
+
set(radius?: number, phi?: number, theta?: number): this;
|
|
8
|
+
copy(other: Spherical): this;
|
|
9
|
+
makeSafe(): this;
|
|
10
|
+
setFromVector3(v: Vector3): this;
|
|
11
|
+
setFromCartesianCoords(x: number, y: number, z: number): this;
|
|
12
|
+
clone(): Spherical;
|
|
13
|
+
}
|
|
14
|
+
export default Spherical;
|
|
15
|
+
//# sourceMappingURL=Spherical.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spherical.d.ts","sourceRoot":"","sources":["../../../../src/math/math/math/Spherical.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,WAAW,CAAC;AAShC,qBAAa,SAAS;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;gBAEF,MAAM,SAAI,EAAE,GAAG,SAAI,EAAE,KAAK,SAAI;IAO1C,GAAG,CAAC,MAAM,SAAc,EAAE,GAAG,SAAW,EAAE,KAAK,SAAa;IAO5D,IAAI,CAAC,KAAK,EAAE,SAAS;IAQrB,QAAQ;IAMR,cAAc,CAAC,CAAC,EAAE,OAAO;IAIzB,sBAAsB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAYtD,KAAK;CAIN;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Vector3 } from "./Vector3";
|
|
2
|
+
export declare class SphericalHarmonics3 {
|
|
3
|
+
coefficients: Vector3[];
|
|
4
|
+
constructor();
|
|
5
|
+
set(coefficients: Vector3[]): this;
|
|
6
|
+
zero(): this;
|
|
7
|
+
getAt(normal: Vector3, target: Vector3): Vector3;
|
|
8
|
+
getIrradianceAt(normal: Vector3, target: Vector3): Vector3;
|
|
9
|
+
add(sh: SphericalHarmonics3): this;
|
|
10
|
+
addScaledSH(sh: SphericalHarmonics3, s: number): this;
|
|
11
|
+
scale(s: number): this;
|
|
12
|
+
lerp(sh: SphericalHarmonics3, alpha: number): this;
|
|
13
|
+
equals(sh: SphericalHarmonics3): boolean;
|
|
14
|
+
copy(sh: SphericalHarmonics3): this;
|
|
15
|
+
clone(): SphericalHarmonics3;
|
|
16
|
+
fromArray(array: number[], offset?: number): this;
|
|
17
|
+
toArray(array?: number[], offset?: number): number[];
|
|
18
|
+
static getBasisAt(normal: Vector3, shBasis: number[]): void;
|
|
19
|
+
}
|
|
20
|
+
export default SphericalHarmonics3;
|
|
21
|
+
//# sourceMappingURL=SphericalHarmonics3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SphericalHarmonics3.d.ts","sourceRoot":"","sources":["../../../../src/math/math/math/SphericalHarmonics3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,qBAAa,mBAAmB;IAC9B,YAAY,EAAE,OAAO,EAAE,CAAM;;IAQ7B,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE;IAO3B,IAAI;IASJ,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO;IA6BtC,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO;IA2BhD,GAAG,CAAC,EAAE,EAAE,mBAAmB;IAO3B,WAAW,CAAC,EAAE,EAAE,mBAAmB,EAAE,CAAC,EAAE,MAAM;IAO9C,KAAK,CAAC,CAAC,EAAE,MAAM;IAOf,IAAI,CAAC,EAAE,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM;IAO3C,MAAM,CAAC,EAAE,EAAE,mBAAmB;IAS9B,IAAI,CAAC,EAAE,EAAE,mBAAmB;IAI5B,KAAK;IAKL,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,SAAI;IAQrC,OAAO,CAAC,KAAK,GAAE,MAAM,EAAO,EAAE,MAAM,SAAI;IAUxC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE;CAsBrD;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Vector3 from "./Vector3";
|
|
2
|
+
import Vector4 from "./Vector4";
|
|
3
|
+
import Plane from "./Plane";
|
|
4
|
+
import Box3 from "./Box3";
|
|
5
|
+
import { BufferAttribute } from "../core/BufferAttribute";
|
|
6
|
+
export declare class Triangle {
|
|
7
|
+
a: Vector3;
|
|
8
|
+
b: Vector3;
|
|
9
|
+
c: Vector3;
|
|
10
|
+
constructor(a?: Vector3, b?: Vector3, c?: Vector3);
|
|
11
|
+
static getNormal(a: Vector3, b: Vector3, c: Vector3, target: Vector3): Vector3;
|
|
12
|
+
static getBarycoord(point: Vector3, a: Vector3, b: Vector3, c: Vector3, target: Vector3): Vector3 | null;
|
|
13
|
+
static containsPoint(point: Vector3, a: Vector3, b: Vector3, c: Vector3): boolean;
|
|
14
|
+
static getInterpolation(point: Vector3, p1: Vector3, p2: Vector3, p3: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, target: Vector3): Vector3 | null;
|
|
15
|
+
static getInterpolatedAttribute(attr: BufferAttribute, i1: number, i2: number, i3: number, barycoord: Vector3, target: Vector4): Vector4;
|
|
16
|
+
static isFrontFacing(a: Vector3, b: Vector3, c: Vector3, direction: Vector3): boolean;
|
|
17
|
+
set(a?: Vector3, b?: Vector3, c?: Vector3): this;
|
|
18
|
+
setFromPointsAndIndices(points: Vector3[], i0: number, i1: number, i2: number): this;
|
|
19
|
+
setFromAttributeAndIndices(attribute: BufferAttribute, i0: number, i1: number, i2: number): this;
|
|
20
|
+
clone(): Triangle;
|
|
21
|
+
copy(triangle: Triangle): this;
|
|
22
|
+
getArea(): number;
|
|
23
|
+
getMidpoint(target: Vector3): Vector3;
|
|
24
|
+
getNormal(target: Vector3): Vector3;
|
|
25
|
+
getPlane(target: Plane): Plane;
|
|
26
|
+
getBarycoord(point: Vector3, target: Vector3): Vector3 | null;
|
|
27
|
+
getInterpolation(point: Vector3, v1: Vector3, v2: Vector3, v3: Vector3, target: Vector3): Vector3 | null;
|
|
28
|
+
containsPoint(point: Vector3): boolean;
|
|
29
|
+
isFrontFacing(direction: Vector3): boolean;
|
|
30
|
+
intersectsBox(box: Box3): boolean;
|
|
31
|
+
closestPointToPoint(p: Vector3, target: Vector3): Vector3;
|
|
32
|
+
equals(triangle: Triangle): boolean;
|
|
33
|
+
}
|
|
34
|
+
export default Triangle;
|
|
35
|
+
//# sourceMappingURL=Triangle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Triangle.d.ts","sourceRoot":"","sources":["../../../../src/math/math/math/Triangle.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAkB1D,qBAAa,QAAQ;IACnB,CAAC,EAAE,OAAO,CAAC;IACX,CAAC,EAAE,OAAO,CAAC;IACX,CAAC,EAAE,OAAO,CAAC;gBAEC,CAAC,UAAgB,EAAE,CAAC,UAAgB,EAAE,CAAC,UAAgB;IAMnE,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO;IAapE,MAAM,CAAC,YAAY,CACjB,KAAK,EAAE,OAAO,EACd,CAAC,EAAE,OAAO,EACV,CAAC,EAAE,OAAO,EACV,CAAC,EAAE,OAAO,EACV,MAAM,EAAE,OAAO;IA4BjB,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,E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Aa,CAAC,KAAK,EAAE,OAAO;IAI5B,aAAa,CAAC,SAAS,EAAE,OAAO;IAIhC,aAAa,CAAC,GAAG,EAAE,IAAI;IAIvB,mBAAmB,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO;IAqE/C,MAAM,CAAC,QAAQ,EAAE,QAAQ;CAO1B;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare abstract class Vector {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
z: number;
|
|
5
|
+
w: number;
|
|
6
|
+
abstract fromArray(array: number[], offset: number): Vector;
|
|
7
|
+
abstract toArray(array: number[], offset: number): number[];
|
|
8
|
+
abstract add(v: Vector): Vector;
|
|
9
|
+
abstract sub(v: Vector): Vector;
|
|
10
|
+
abstract multiply(v: Vector): Vector;
|
|
11
|
+
abstract divide(v: Vector): Vector;
|
|
12
|
+
abstract length(): number;
|
|
13
|
+
abstract lengthSq(): number;
|
|
14
|
+
abstract normalize(): Vector;
|
|
15
|
+
abstract dot(v: Vector): number;
|
|
16
|
+
abstract projectOnVector(v: Vector): Vector;
|
|
17
|
+
}
|
|
18
|
+
export default Vector;
|
|
19
|
+
//# sourceMappingURL=Vector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["../../../../src/math/math/math/Vector.ts"],"names":[],"mappings":"AAcA,8BAAsB,MAAM;IAC1B,CAAC,SAAK;IACN,CAAC,SAAK;IACN,CAAC,SAAK;IACN,CAAC,SAAK;IAEN,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;IAC3D,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE;IAK3D,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAE/B,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAK/B,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IACpC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAMlC,QAAQ,CAAC,MAAM,IAAI,MAAM;IACzB,QAAQ,CAAC,QAAQ,IAAI,MAAM;IAG3B,QAAQ,CAAC,SAAS,IAAI,MAAM;IAa5B,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IA6B/B,QAAQ,CAAC,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;CAG5C;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import Vector from "./Vector";
|
|
2
|
+
import Matrix from "./Matrix";
|
|
3
|
+
import { BufferAttribute } from "../core/BufferAttribute";
|
|
4
|
+
export declare class Vector2 extends Vector {
|
|
5
|
+
isVector2: boolean;
|
|
6
|
+
constructor(x?: number, y?: number);
|
|
7
|
+
get width(): number;
|
|
8
|
+
set width(value: number);
|
|
9
|
+
get height(): number;
|
|
10
|
+
set height(value: number);
|
|
11
|
+
set(x?: number, y?: number): this;
|
|
12
|
+
setScalar(scalar: number): this;
|
|
13
|
+
setX(x: number): this;
|
|
14
|
+
setY(y: number): this;
|
|
15
|
+
setComponent(index: number, value: number): this;
|
|
16
|
+
getComponent(index: number): number;
|
|
17
|
+
clone(): Vector2;
|
|
18
|
+
copy(v: Vector2): this;
|
|
19
|
+
add(v: Vector2): this;
|
|
20
|
+
addScalar(s: number): this;
|
|
21
|
+
addVectors(a: Vector2, b: Vector2): this;
|
|
22
|
+
addScaledVector(v: Vector2, s: number): this;
|
|
23
|
+
sub(v: Vector2): this;
|
|
24
|
+
subScalar(s: number): this;
|
|
25
|
+
subVectors(a: Vector2, b: Vector2): this;
|
|
26
|
+
multiply(v: Vector2): this;
|
|
27
|
+
multiplyScalar(scalar: number): this;
|
|
28
|
+
divide(v: Vector2): this;
|
|
29
|
+
divideScalar(scalar: number): this;
|
|
30
|
+
applyMatrix3(m: Matrix): this;
|
|
31
|
+
min(v: Vector2): this;
|
|
32
|
+
max(v: Vector2): this;
|
|
33
|
+
clamp(min: Vector2, max: Vector2): this;
|
|
34
|
+
clampScalar(minVal: number, maxVal: number): this;
|
|
35
|
+
clampLength(min: number, max: number): this;
|
|
36
|
+
floor(): this;
|
|
37
|
+
ceil(): this;
|
|
38
|
+
round(): this;
|
|
39
|
+
roundToZero(): this;
|
|
40
|
+
negate(): this;
|
|
41
|
+
dot(v: Vector2): number;
|
|
42
|
+
cross(v: Vector2): number;
|
|
43
|
+
projectOnVector(v: Vector2): this;
|
|
44
|
+
perpendOnVector(v: Vector2): this;
|
|
45
|
+
lengthSq(): number;
|
|
46
|
+
length(): number;
|
|
47
|
+
manhattanLength(): number;
|
|
48
|
+
normalize(): this;
|
|
49
|
+
angle(): number;
|
|
50
|
+
angleTo(v: Vector2): number;
|
|
51
|
+
distanceTo(v: Vector2): number;
|
|
52
|
+
distanceToSquared(v: Vector2): number;
|
|
53
|
+
manhattanDistanceTo(v: Vector2): number;
|
|
54
|
+
setLength(length: number): this;
|
|
55
|
+
lerp(v: Vector2, alpha: number): this;
|
|
56
|
+
lerpVectors(v1: Vector2, v2: Vector2, alpha: number): this;
|
|
57
|
+
equals(v: Vector2): boolean;
|
|
58
|
+
fromArray(array: number[], offset?: number): this;
|
|
59
|
+
toArray(array?: number[], offset?: number): number[];
|
|
60
|
+
fromBufferAttribute(attribute: BufferAttribute, index: number): this;
|
|
61
|
+
rotateAround(center: Vector2, angle: number): this;
|
|
62
|
+
random(): this;
|
|
63
|
+
[Symbol.iterator](): Generator<number, void, unknown>;
|
|
64
|
+
}
|
|
65
|
+
export default Vector2;
|
|
66
|
+
//# sourceMappingURL=Vector2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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,QAAQ,CAAC;CAInB;AAID,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import Vector from "./Vector";
|
|
2
|
+
import Matrix3 from "./Matrix3";
|
|
3
|
+
import Matrix4 from "./Matrix4";
|
|
4
|
+
import Quaternion from "./Quaternion";
|
|
5
|
+
import Euler from "./Euler";
|
|
6
|
+
import { BufferAttribute } from "../core/BufferAttribute";
|
|
7
|
+
export declare class Vector3 extends Vector {
|
|
8
|
+
isVector3: boolean;
|
|
9
|
+
constructor(x?: number, y?: number, z?: number);
|
|
10
|
+
set(x?: number, y?: number, z?: number): this;
|
|
11
|
+
setScalar(scalar: number): this;
|
|
12
|
+
setX(x: number): this;
|
|
13
|
+
setY(y: number): this;
|
|
14
|
+
setZ(z: number): this;
|
|
15
|
+
setComponent(index: number, value: number): this;
|
|
16
|
+
getComponent(index: number): number;
|
|
17
|
+
clone(): Vector3;
|
|
18
|
+
copy(v: Vector3): this;
|
|
19
|
+
add(v: Vector3): this;
|
|
20
|
+
addScalar(s: number): this;
|
|
21
|
+
addVectors(a: Vector3, b: Vector3): this;
|
|
22
|
+
addScaledVector(v: Vector3, s: number): this;
|
|
23
|
+
sub(v: Vector3): this;
|
|
24
|
+
subScalar(s: number): this;
|
|
25
|
+
subVectors(a: Vector3, b: Vector3): this;
|
|
26
|
+
multiply(v: Vector3): this;
|
|
27
|
+
multiplyScalar(scalar: number): this;
|
|
28
|
+
multiplyVectors(a: Vector3, b: Vector3): this;
|
|
29
|
+
applyEuler(euler: Euler): this;
|
|
30
|
+
applyAxisAngle(axis: Vector3, angle: number): this;
|
|
31
|
+
applyMatrix3(m: Matrix3): this;
|
|
32
|
+
applyNormalMatrix(m: Matrix3): this;
|
|
33
|
+
applyMatrix4(m: Matrix4): this;
|
|
34
|
+
applyQuaternion(q: Quaternion): this;
|
|
35
|
+
transformDirection(m: Matrix4): this;
|
|
36
|
+
divide(v: Vector3): this;
|
|
37
|
+
divideScalar(scalar: number): this;
|
|
38
|
+
min(v: Vector3): this;
|
|
39
|
+
max(v: Vector3): this;
|
|
40
|
+
clamp(min: Vector3, max: Vector3): this;
|
|
41
|
+
clampScalar(minVal: number, maxVal: number): this;
|
|
42
|
+
clampLength(min: number, max: number): this;
|
|
43
|
+
floor(): this;
|
|
44
|
+
ceil(): this;
|
|
45
|
+
round(): this;
|
|
46
|
+
roundToZero(): this;
|
|
47
|
+
negate(): this;
|
|
48
|
+
dot(v: Vector3): number;
|
|
49
|
+
lengthSq(): number;
|
|
50
|
+
length(): number;
|
|
51
|
+
manhattanLength(): number;
|
|
52
|
+
normalize(): this;
|
|
53
|
+
setLength(length: number): this;
|
|
54
|
+
lerp(v: Vector3, alpha: number): this;
|
|
55
|
+
lerpVectors(v1: Vector3, v2: Vector3, alpha: number): this;
|
|
56
|
+
cross(v: Vector3): this;
|
|
57
|
+
crossVectors(a: Vector3, b: Vector3): this;
|
|
58
|
+
projectOnVector(v: Vector3): this;
|
|
59
|
+
perpendOnVector(v: Vector3): this;
|
|
60
|
+
projectOnPlane(planeNormal: Vector3): this;
|
|
61
|
+
reflect(normal: Vector3): this;
|
|
62
|
+
angleTo(v: Vector3): number;
|
|
63
|
+
distanceTo(v: Vector3): number;
|
|
64
|
+
distanceToSquared(v: Vector3): number;
|
|
65
|
+
manhattanDistanceTo(v: Vector3): number;
|
|
66
|
+
setFromMatrixPosition(m: Matrix4): this;
|
|
67
|
+
setFromMatrixScale(m: Matrix4): this;
|
|
68
|
+
setFromMatrixColumn(m: Matrix4, index: number): this;
|
|
69
|
+
setFromMatrix3Column(m: Matrix3, index: number): this;
|
|
70
|
+
setFromEuler(e: Euler): this;
|
|
71
|
+
equals(v: Vector3): boolean;
|
|
72
|
+
fromArray(array: number[], offset?: number): this;
|
|
73
|
+
toArray(array?: number[], offset?: number): number[];
|
|
74
|
+
fromBufferAttribute(attribute: BufferAttribute, index: number): this;
|
|
75
|
+
random(): this;
|
|
76
|
+
randomDirection(): this;
|
|
77
|
+
[Symbol.iterator](): Generator<number, void, unknown>;
|
|
78
|
+
}
|
|
79
|
+
export default Vector3;
|
|
80
|
+
//# sourceMappingURL=Vector3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vector3.d.ts","sourceRoot":"","sources":["../../../../src/math/math/math/Vector3.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,qBAAa,OAAQ,SAAQ,MAAM;IACjC,SAAS,UAAQ;gBAEL,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI;IAO/B,GAAG,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI;IAQvB,SAAS,CAAC,MAAM,EAAE,MAAM;IAOxB,IAAI,CAAC,CAAC,EAAE,MAAM;IAKd,IAAI,CAAC,CAAC,EAAE,MAAM;IAKd,IAAI,CAAC,CAAC,EAAE,MAAM;IAKd,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAiBzC,YAAY,CAAC,KAAK,EAAE,MAAM;IAa1B,KAAK;IAIL,IAAI,CAAC,CAAC,EAAE,OAAO;IAOf,GAAG,CAAC,CAAC,EAAE,OAAO;IAOd,SAAS,CAAC,CAAC,EAAE,MAAM;IAOnB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO;IAOjC,eAAe,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM;IAOrC,GAAG,CAAC,CAAC,EAAE,OAAO;IAOd,SAAS,CAAC,CAAC,EAAE,MAAM;IAOnB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,C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E,OAAO;IAU1B,eAAe,CAAC,CAAC,EAAE,OAAO;IAK1B,cAAc,CAAC,WAAW,EAAE,OAAO;IAMnC,OAAO,CAAC,MAAM,EAAE,OAAO;IAMvB,OAAO,CAAC,CAAC,EAAE,OAAO;IAUlB,UAAU,CAAC,CAAC,EAAE,OAAO;IAIrB,iBAAiB,CAAC,CAAC,EAAE,OAAO;IAO5B,mBAAmB,CAAC,CAAC,EAAE,OAAO;IA6B9B,qBAAqB,CAAC,CAAC,EAAE,OAAO;IAQhC,kBAAkB,CAAC,CAAC,EAAE,OAAO;IAU7B,mBAAmB,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM;IAI7C,oBAAoB,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM;IAI9C,YAAY,CAAC,CAAC,EAAE,KAAK;IAcrB,MAAM,CAAC,CAAC,EAAE,OAAO;IAIjB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,SAAI;IAOrC,OAAO,CAAC,KAAK,GAAE,MAAM,EAAO,EAAE,MAAM,SAAI;IAOxC,mBAAmB,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM;IAO7D,MAAM;IAON,eAAe;IAWd,CAAC,MAAM,CAAC,QAAQ,CAAC;CAKnB;AAKD,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import Vector from "./Vector";
|
|
2
|
+
import Matrix4 from "./Matrix4";
|
|
3
|
+
import Quaternion from "./Quaternion";
|
|
4
|
+
import { BufferAttribute } from "../core/BufferAttribute";
|
|
5
|
+
export declare class Vector4 extends Vector {
|
|
6
|
+
isVector4: boolean;
|
|
7
|
+
constructor(x?: number, y?: number, z?: number, w?: number);
|
|
8
|
+
get width(): number;
|
|
9
|
+
set width(value: number);
|
|
10
|
+
get height(): number;
|
|
11
|
+
set height(value: number);
|
|
12
|
+
set(x?: number, y?: number, z?: number, w?: number): this;
|
|
13
|
+
setScalar(scalar: number): this;
|
|
14
|
+
setX(x: number): this;
|
|
15
|
+
setY(y: number): this;
|
|
16
|
+
setZ(z: number): this;
|
|
17
|
+
setW(w: number): this;
|
|
18
|
+
setComponent(index: number, value: number): this;
|
|
19
|
+
getComponent(index: number): number;
|
|
20
|
+
clone(): Vector4;
|
|
21
|
+
copy(v: Vector4): this;
|
|
22
|
+
add(v: Vector4): this;
|
|
23
|
+
addScalar(s: number): this;
|
|
24
|
+
addVectors(a: Vector4, b: Vector4): this;
|
|
25
|
+
addScaledVector(v: Vector4, s: number): this;
|
|
26
|
+
sub(v: Vector4): this;
|
|
27
|
+
subScalar(s: number): this;
|
|
28
|
+
subVectors(a: Vector4, b: Vector4): this;
|
|
29
|
+
multiply(v: Vector4): this;
|
|
30
|
+
multiplyScalar(scalar: number): this;
|
|
31
|
+
applyMatrix4(m: Matrix4): this;
|
|
32
|
+
divide(v: Vector4): this;
|
|
33
|
+
divideScalar(scalar: number): this;
|
|
34
|
+
setAxisAngleFromQuaternion(q: Quaternion): this;
|
|
35
|
+
setAxisAngleFromRotationMatrix4(m: Matrix4): this;
|
|
36
|
+
setFromMatrixPosition(m: Matrix4): this;
|
|
37
|
+
min(v: Vector4): this;
|
|
38
|
+
max(v: Vector4): this;
|
|
39
|
+
clamp(min: Vector4, max: Vector4): this;
|
|
40
|
+
clampScalar(minVal: number, maxVal: number): this;
|
|
41
|
+
clampLength(min: number, max: number): this;
|
|
42
|
+
floor(): this;
|
|
43
|
+
ceil(): this;
|
|
44
|
+
round(): this;
|
|
45
|
+
roundToZero(): this;
|
|
46
|
+
negate(): this;
|
|
47
|
+
dot(v: Vector4): number;
|
|
48
|
+
lengthSq(): number;
|
|
49
|
+
length(): number;
|
|
50
|
+
manhattanLength(): number;
|
|
51
|
+
normalize(): this;
|
|
52
|
+
setLength(length: number): this;
|
|
53
|
+
projectOnVector(v: Vector4): this;
|
|
54
|
+
lerp(v: Vector4, alpha: number): this;
|
|
55
|
+
lerpVectors(v1: Vector4, v2: Vector4, alpha: number): this;
|
|
56
|
+
equals(v: Vector4): boolean;
|
|
57
|
+
fromArray(array: number[], offset?: number): this;
|
|
58
|
+
toArray(array?: number[], offset?: number): number[];
|
|
59
|
+
fromBufferAttribute(attribute: BufferAttribute, index: number): this;
|
|
60
|
+
random(): this;
|
|
61
|
+
[Symbol.iterator](): Generator<number, void, unknown>;
|
|
62
|
+
}
|
|
63
|
+
export default Vector4;
|
|
64
|
+
//# sourceMappingURL=Vector4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vector4.d.ts","sourceRoot":"","sources":["../../../../src/math/math/math/Vector4.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,qBAAa,OAAQ,SAAQ,MAAM;IACjC,SAAS,UAAQ;gBAEL,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI;IAQtC,IAAI,KAAK,WAER;IAED,IAAI,KAAK,CAAC,KAAK,QAAA,EAEd;IAED,IAAI,MAAM,WAET;IAED,IAAI,MAAM,CAAC,KAAK,QAAA,EAEf;IAED,GAAG,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI;IAQ9B,SAAS,CAAC,MAAM,EAAE,MAAM;IAQxB,IAAI,CAAC,CAAC,EAAE,MAAM;IAKd,IAAI,CAAC,CAAC,EAAE,MAAM;IAKd,IAAI,CAAC,CAAC,EAAE,MAAM;IAKd,IAAI,CAAC,CAAC,EAAE,MAAM;IAKd,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAoBzC,YAAY,CAAC,KAAK,EAAE,MAAM;IAe1B,KAAK;IAIL,IAAI,CAA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O,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM;IAQnD,MAAM,CAAC,CAAC,EAAE,OAAO;IAIjB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,MAAM,SAAI;IAQrC,OAAO,CAAC,KAAK,GAAE,MAAM,EAAO,EAAE,MAAM,SAAI;IAQxC,mBAAmB,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM;IAQ7D,MAAM;IAQL,CAAC,MAAM,CAAC,QAAQ,CAAC;CAMnB;AAID,eAAe,OAAO,CAAC"}
|
package/types/math/math.d.ts
CHANGED
|
@@ -8,9 +8,14 @@ export declare function polar(radian: number, length: number): {
|
|
|
8
8
|
dx: number;
|
|
9
9
|
dy: number;
|
|
10
10
|
};
|
|
11
|
-
export declare function normalizePoint(x: number, y: number): {
|
|
11
|
+
export declare function normalizePoint(x: number, y: number, z?: number): {
|
|
12
12
|
x: number;
|
|
13
13
|
y: number;
|
|
14
|
+
z: number;
|
|
15
|
+
} | {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
z?: undefined;
|
|
14
19
|
};
|
|
15
20
|
export declare function getDirection(startX: number, startY: number, endX: number, endY: number, minDistance?: number): "up" | "down" | "left" | "right" | "no";
|
|
16
21
|
//# sourceMappingURL=math.d.ts.map
|
package/types/math/math.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../src/math/math.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../src/math/math.ts"],"names":[],"mappings":"AAuCA,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,UAEtC;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,MAAM,UAEtC;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,SAAI,UAEjD;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,UAEtE;AACD,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,UAIvE;AAGD,wBAAgB,KAAK,CACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,MAAM,CAMR;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;EAKnD;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM;;;;;;;;EAe9D;AAGD,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,WAAW,SAAK,GACf,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAsBzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Arrow.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Arrow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,KAAM,SAAQ,KAAK;gBAClB,OAAO,CAAC,EAAE,aAAa;IAInC,aAAa,IAAI,kBAAkB,EAAE;
|
|
1
|
+
{"version":3,"file":"Arrow.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Arrow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,KAAM,SAAQ,KAAK;gBAClB,OAAO,CAAC,EAAE,aAAa;IAInC,aAAa,IAAI,kBAAkB,EAAE;IAcrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAYrC;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Shape } from "
|
|
2
|
-
import { ShapeGroup } from "
|
|
3
|
-
export declare class
|
|
4
|
-
fettis
|
|
1
|
+
import { Shape } from "../Shape";
|
|
2
|
+
import { ShapeGroup } from "../ShapeGroup";
|
|
3
|
+
export declare class Confetti extends ShapeGroup {
|
|
4
|
+
private fettis;
|
|
5
5
|
constructor(width: number, height: number, options?: Partial<{
|
|
6
6
|
shape: Shape;
|
|
7
7
|
x: number;
|
|
@@ -18,8 +18,10 @@ export declare class ComboConfetti extends ShapeGroup {
|
|
|
18
18
|
scalar: number;
|
|
19
19
|
flat: boolean;
|
|
20
20
|
}>);
|
|
21
|
-
frameUpdate(
|
|
22
|
-
|
|
21
|
+
frameUpdate(mouse: {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
}): void;
|
|
23
25
|
}
|
|
24
|
-
export default
|
|
25
|
-
//# sourceMappingURL=
|
|
26
|
+
export default Confetti;
|
|
27
|
+
//# sourceMappingURL=Confetti.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Confetti.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Confetti.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,qBAAa,QAAS,SAAQ,UAAU;IACtC,OAAO,CAAC,MAAM,CAA6B;gBAGzC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,EAAE,KAAK,CAAC;QACb,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,aAAa,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IA0EJ,WAAW,CAAC,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;CAmD5C;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TShapeOptions } from "../Shape";
|
|
2
|
-
|
|
3
|
-
export declare class Cross extends PathD {
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
export declare class Cross extends Shape {
|
|
4
3
|
constructor(options?: TShapeOptions);
|
|
5
4
|
}
|
|
6
5
|
export default Cross;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cross.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Cross.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Cross.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Cross.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,KAAM,SAAQ,KAAK;gBAClB,OAAO,CAAC,EAAE,aAAa;CAIpC;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Shape, TShapeOptions } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { YZCanvasContext } from "../canvas";
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../../canvas";
|
|
5
4
|
export type TEllipseOptions = {
|
|
6
5
|
rx?: number;
|
|
7
6
|
ry?: number;
|
|
@@ -10,7 +9,12 @@ export declare class Ellipse extends Shape {
|
|
|
10
9
|
rx: number;
|
|
11
10
|
ry: number;
|
|
12
11
|
constructor(options?: TEllipseOptions);
|
|
13
|
-
getBoundingClientRect():
|
|
12
|
+
getBoundingClientRect(): {
|
|
13
|
+
x: number;
|
|
14
|
+
y: number;
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
};
|
|
14
18
|
toSVGPathData(): TSVGParsedPathData[];
|
|
15
19
|
toCanvasContext(ctx: YZCanvasContext): void;
|
|
16
20
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ellipse.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Ellipse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG;IAE5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,GAAG,aAAa,CAAC;AAElB,qBAAa,OAAQ,SAAQ,KAAK;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;gBAEN,OAAO,CAAC,EAAE,eAAe;IAMrC,qBAAqB;;;;;;IASrB,aAAa,IAAI,kBAAkB,EAAE;IASrC,eAAe,CAAC,GAAG,EAAE,eAAe;CASrC;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fox.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Fox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,GAAI,SAAQ,KAAK;gBAChB,OAAO,CAAC,EAAE,aAAa;IAInC,aAAa,IAAI,kBAAkB,EAAE;
|
|
1
|
+
{"version":3,"file":"Fox.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Fox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,GAAI,SAAQ,KAAK;gBAChB,OAAO,CAAC,EAAE,aAAa;IAInC,aAAa,IAAI,kBAAkB,EAAE;IAkBrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAgBrC;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { TShapeOptions } from "../Shape";
|
|
2
|
-
import {
|
|
3
|
-
export declare class Heart extends
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
export declare class Heart extends Shape {
|
|
4
|
+
rx: number;
|
|
5
|
+
ry: number;
|
|
4
6
|
constructor(options?: TShapeOptions & {
|
|
5
7
|
rx?: number;
|
|
6
8
|
ry?: number;
|
|
7
9
|
});
|
|
10
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
8
11
|
}
|
|
9
12
|
export default Heart;
|
|
10
13
|
//# sourceMappingURL=Heart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Heart.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Heart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Heart.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Heart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,KAAM,SAAQ,KAAK;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;gBAGT,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;KACb;IAOH,aAAa,IAAI,kBAAkB,EAAE;CActC;AAED,eAAe,KAAK,CAAC"}
|