@zyzgroup/core-web 0.0.75 → 0.0.78
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 +13539 -12642
- 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 +68 -42
- 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 +18 -6
- 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 +13 -16
- 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 -14
- 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
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { TShapeOptions } from "../Shape";
|
|
2
|
-
import {
|
|
3
|
-
export declare class HeartVariant extends
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
export declare class HeartVariant 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 HeartVariant;
|
|
10
13
|
//# sourceMappingURL=HeartVariant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeartVariant.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/HeartVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"HeartVariant.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/HeartVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,YAAa,SAAQ,KAAK;IACrC,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;CA8BtC;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Shape, TShapeOptions } from "
|
|
2
|
-
import { TSVGParsedPathData } from "
|
|
3
|
-
import { YZCanvasContext } from "../canvas";
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
4
3
|
export type TLight3DOptions = {
|
|
5
4
|
x?: number;
|
|
6
5
|
y?: number;
|
|
@@ -14,9 +13,7 @@ export declare class Light3D extends Shape {
|
|
|
14
13
|
brightness: number;
|
|
15
14
|
constructor(options?: TLight3DOptions);
|
|
16
15
|
setBrightness(b: number): number;
|
|
17
|
-
getBoundingClientRect(): null;
|
|
18
16
|
toSVGPathData(): TSVGParsedPathData[];
|
|
19
|
-
toCanvasContext(ctx: YZCanvasContext): void;
|
|
20
17
|
}
|
|
21
18
|
export default Light3D;
|
|
22
19
|
//# sourceMappingURL=Light3D.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Light3D.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Light3D.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,aAAa,CAAC;AAElB,qBAAa,OAAQ,SAAQ,KAAK;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,UAAU,EAAE,MAAM,CAAC;gBAEd,OAAO,CAAC,EAAE,eAAe;IAQrC,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAKhC,aAAa,IAAI,kBAAkB,EAAE;CAGtC;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Shape, { TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../../canvas/YZCanvasContext";
|
|
4
|
+
export declare class Line extends Shape {
|
|
5
|
+
toX: number;
|
|
6
|
+
toY: number;
|
|
7
|
+
constructor(options?: {
|
|
8
|
+
toX?: number;
|
|
9
|
+
toY?: number;
|
|
10
|
+
} & TShapeOptions);
|
|
11
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
12
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
13
|
+
intersection(line: Line): {
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
} | null;
|
|
17
|
+
}
|
|
18
|
+
export default Line;
|
|
19
|
+
//# sourceMappingURL=Line.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Line.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,qBAAa,IAAK,SAAQ,KAAK;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;gBAEA,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,aAAa;IAyCpE,aAAa,IAAI,kBAAkB,EAAE;IAiBrC,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAM3C,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAe1D;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TShapeOptions } from "../Shape";
|
|
2
|
+
import ShapeGroup from "../ShapeGroup";
|
|
3
|
+
export declare class LinePicture extends ShapeGroup {
|
|
4
|
+
svgWidth: number;
|
|
5
|
+
svgHeight: number;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
constructor(options: {
|
|
9
|
+
svg: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
} & TShapeOptions);
|
|
12
|
+
shapeInit(): void;
|
|
13
|
+
}
|
|
14
|
+
export default LinePicture;
|
|
15
|
+
//# sourceMappingURL=LinePicture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinePicture.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/LinePicture.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,qBAAa,WAAY,SAAQ,UAAU;IACzC,QAAQ,SAAK;IACb,SAAS,SAAK;IACd,KAAK,SAAK;IACV,MAAM,SAAK;gBAEC,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,aAAa;IA2EpE,SAAS;CAGV;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import Shape, { TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../../canvas/YZCanvasContext";
|
|
4
|
+
export declare class LineQuadraticBezier extends Shape {
|
|
5
|
+
cx: number;
|
|
6
|
+
cy: number;
|
|
7
|
+
toX: number;
|
|
8
|
+
toY: number;
|
|
9
|
+
isLineThrough: boolean;
|
|
10
|
+
constructor(options?: {
|
|
11
|
+
cx?: number;
|
|
12
|
+
cy?: number;
|
|
13
|
+
toX?: number;
|
|
14
|
+
toY?: number;
|
|
15
|
+
isLineThrough?: boolean;
|
|
16
|
+
} & TShapeOptions);
|
|
17
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
18
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
19
|
+
}
|
|
20
|
+
export default LineQuadraticBezier;
|
|
21
|
+
//# sourceMappingURL=LineQuadraticBezier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LineQuadraticBezier.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/LineQuadraticBezier.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,OAAO,CAAC;gBAGrB,OAAO,CAAC,EAAE;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,GAAG,aAAa;IAgBnB,aAAa,IAAI,kBAAkB,EAAE;IAsBrC,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;CAqB5C;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../../canvas";
|
|
4
|
+
export type TPointOptions = {
|
|
5
|
+
radius?: number;
|
|
6
|
+
} & TShapeOptions;
|
|
7
|
+
export declare class Point extends Shape {
|
|
8
|
+
radius: number;
|
|
9
|
+
constructor(options?: TPointOptions);
|
|
10
|
+
getBoundingClientRect(): {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
17
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
18
|
+
eq(point: Point): boolean;
|
|
19
|
+
midPointBtw(point: Point): {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
};
|
|
23
|
+
length(): number;
|
|
24
|
+
scalar(scale: number): this;
|
|
25
|
+
normalize(len?: number): Point;
|
|
26
|
+
clamp(len: number): this;
|
|
27
|
+
cross(pt: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
}): {
|
|
31
|
+
x: number;
|
|
32
|
+
y: number;
|
|
33
|
+
};
|
|
34
|
+
multiply(pt: {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
}): {
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
};
|
|
41
|
+
div(pt: {
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
}): {
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
};
|
|
48
|
+
add(pt: {
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
}): {
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
};
|
|
55
|
+
sub(pt: {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
58
|
+
}): {
|
|
59
|
+
x: number;
|
|
60
|
+
y: number;
|
|
61
|
+
};
|
|
62
|
+
dot(pt: {
|
|
63
|
+
x: number;
|
|
64
|
+
y: number;
|
|
65
|
+
}): number;
|
|
66
|
+
reflect(pt: {
|
|
67
|
+
x: number;
|
|
68
|
+
y: number;
|
|
69
|
+
}): {
|
|
70
|
+
x: number;
|
|
71
|
+
y: number;
|
|
72
|
+
};
|
|
73
|
+
checkCollision(target: Point): void;
|
|
74
|
+
checkWall(options: {
|
|
75
|
+
wall: {
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
width: number;
|
|
79
|
+
height: number;
|
|
80
|
+
};
|
|
81
|
+
bounce?: number;
|
|
82
|
+
}): void;
|
|
83
|
+
}
|
|
84
|
+
export default Point;
|
|
85
|
+
//# sourceMappingURL=Point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Point.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;AAI/C,MAAM,MAAM,aAAa,GAAG;IAE1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,aAAa,CAAC;AAElB,qBAAa,KAAM,SAAQ,KAAK;IACvB,MAAM,EAAE,MAAM,CAAC;gBAEV,OAAO,CAAC,EAAE,aAAa;IAKnC,qBAAqB;;;;;;IASrB,aAAa,IAAI,kBAAkB,EAAE;IAarC,eAAe,CAAC,GAAG,EAAE,eAAe;IAMpC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IASzB,WAAW,CAAC,KAAK,EAAE,KAAK;;;;IAOxB,MAAM;IAIN,MAAM,CAAC,KAAK,EAAE,MAAM;IAMpB,SAAS,CAAC,GAAG,SAAI,GAAG,KAAK;IASzB,KAAK,CAAC,GAAG,EAAE,MAAM;IAQjB,KAAK,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IASlC,QAAQ,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAOrC,GAAG,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAOhC,GAAG,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAOhC,GAAG,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAOhC,GAAG,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM;IAIzC,OAAO,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IASpC,cAAc,CAAC,MAAM,EAAE,KAAK;IA4C5B,SAAS,CAAC,OAAO,EAAE;QACjB,IAAI,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CAqBF;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Shape, TShapeOptions } from "
|
|
2
|
-
import { TSVGParsedPathData } from "
|
|
3
|
-
import { YZCanvasContext } from "
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../../canvas";
|
|
4
4
|
export type TPoint3DOptions = {
|
|
5
5
|
x?: number;
|
|
6
6
|
y?: number;
|
|
@@ -25,8 +25,7 @@ export declare class Point3D extends Shape {
|
|
|
25
25
|
cZ: number;
|
|
26
26
|
radius: number;
|
|
27
27
|
constructor(options?: TPoint3DOptions);
|
|
28
|
-
|
|
29
|
-
toSVGPathData(): TSVGParsedPathData[] | TSVGParsedPathData;
|
|
28
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
30
29
|
toCanvasContext(ctx: YZCanvasContext): void;
|
|
31
30
|
setVanishingPoint(vpX: number, vpY: number): void;
|
|
32
31
|
setCenter(cX: number, cY: number, cZ: number): void;
|
|
@@ -72,7 +71,6 @@ export declare class Point3D extends Shape {
|
|
|
72
71
|
y: number;
|
|
73
72
|
z: number;
|
|
74
73
|
};
|
|
75
|
-
clone(point: Point3D): Point3D;
|
|
76
74
|
}
|
|
77
75
|
export default Point3D;
|
|
78
76
|
//# sourceMappingURL=Point3D.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Point3D.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Point3D.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;AAI/C,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,aAAa,CAAC;AAElB,qBAAa,OAAQ,SAAQ,KAAK;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IAEV,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;gBAEV,OAAO,CAAC,EAAE,eAAe;IAcrC,aAAa,IAAI,kBAAkB,EAAE;IAarC,eAAe,CAAC,GAAG,EAAE,eAAe;IAMpC,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAK1C,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IAM5C,OAAO,CAAC,IAAI,EAAE,MAAM;IAIpB,OAAO,CAAC,IAAI,EAAE,MAAM;IAIpB,OAAO,CAAC,IAAI,EAAE,MAAM;IAIpB,UAAU;IAKV,UAAU;IAKV,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;IAU3B,MAAM;IAIN,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM;IAO7B,MAAM,CAAC,KAAK,EAAE,MAAM;IAOpB,SAAS,CAAC,GAAG,SAAI,GAAG,OAAO;IAS3B,KAAK,CAAC,GAAG,EAAE,MAAM;IAQjB,KAAK,CAAC,EAAE,EAAE,OAAO;;;;;IAWjB,QAAQ,CAAC,EAAE,EAAE,OAAO;;;;;IAQpB,GAAG,CAAC,EAAE,EAAE,OAAO;;;;;IAQf,GAAG,CAAC,EAAE,EAAE,OAAO;;;;;IAQf,GAAG,CAAC,EAAE,EAAE,OAAO;;;;;IAQf,GAAG,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM;IAIxB,OAAO,CAAC,EAAE,EAAE,OAAO;;;;;CAQpB;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Shape } from "
|
|
2
|
-
import { TSVGParsedPathData } from "
|
|
3
|
-
import { YZCanvasContext } from "
|
|
1
|
+
import { Shape } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../../canvas";
|
|
4
4
|
import Point3D from "./Point3D";
|
|
5
5
|
import Light3D from "./Light3D";
|
|
6
6
|
export declare class Point3Ds extends Shape {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Point3Ds.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Point3Ds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAiB,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC,qBAAa,QAAS,SAAQ,KAAK;IACjC,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;gBAEH,MAAM,GAAE,OAAO,EAAO;IAUlC,aAAa,IAAI,kBAAkB,EAAE;IAcrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAYpC,IAAI,MAAM,WAET;IAED,QAAQ,IAAI,MAAM;IAIlB,UAAU,IAAI,OAAO;IAQrB,cAAc,IAAI,MAAM;IAgCxB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAQxC;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../../canvas";
|
|
4
|
+
export declare class Points extends Shape {
|
|
5
|
+
private points;
|
|
6
|
+
isStraight: boolean;
|
|
7
|
+
constructor(options: TShapeOptions & {
|
|
8
|
+
points: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}[];
|
|
12
|
+
isStraight?: boolean;
|
|
13
|
+
});
|
|
14
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
15
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
16
|
+
isContainPoint(x: number, y: number): boolean;
|
|
17
|
+
[Symbol.iterator](): {
|
|
18
|
+
next: () => {
|
|
19
|
+
value: {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
} | undefined;
|
|
23
|
+
done: boolean;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export default Points;
|
|
28
|
+
//# sourceMappingURL=Points.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Points.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Points.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;AAM/C,qBAAa,MAAO,SAAQ,KAAK;IAC/B,OAAO,CAAC,MAAM,CAA6B;IACpC,UAAU,EAAE,OAAO,CAAC;gBAGzB,OAAO,EAAE,aAAa,GAAG;QACvB,MAAM,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACnC,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB;IAWH,aAAa,IAAI,kBAAkB,EAAE;IAsCrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAmCpC,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAwCnC,CAAC,MAAM,CAAC,QAAQ,CAAC;;;;;;;;;CAUlB;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { TShapeOptions } from "../Shape";
|
|
2
|
-
import {
|
|
3
|
-
export declare class Rabbit extends
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
export declare class Rabbit extends Shape {
|
|
4
4
|
constructor(options?: TShapeOptions);
|
|
5
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
5
6
|
}
|
|
6
7
|
export default Rabbit;
|
|
7
8
|
//# sourceMappingURL=Rabbit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rabbit.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Rabbit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Rabbit.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Rabbit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,MAAO,SAAQ,KAAK;gBACnB,OAAO,CAAC,EAAE,aAAa;IAInC,aAAa,IAAI,kBAAkB,EAAE;CAWtC;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../../canvas/YZCanvasContext";
|
|
4
|
+
export type TRectOptions = {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
borderRadius?: number;
|
|
8
|
+
} & TShapeOptions;
|
|
9
|
+
export declare class Rect extends Shape {
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
borderRadius: number;
|
|
13
|
+
constructor(options: TRectOptions);
|
|
14
|
+
static fromCubicBezier(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number): Rect;
|
|
15
|
+
getBoundingClientRect(): {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
};
|
|
21
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
22
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
23
|
+
eq(rect: Rect): boolean;
|
|
24
|
+
isIntersectRect(rect: {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
}): boolean;
|
|
30
|
+
isContainPoint(x: number, y: number): boolean;
|
|
31
|
+
}
|
|
32
|
+
export default Rect;
|
|
33
|
+
//# sourceMappingURL=Rect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rect.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Rect.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,8BAA8B,CAAC;AAG/D,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,aAAa,CAAC;AAElB,qBAAa,IAAK,SAAQ,KAAK;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;gBAET,OAAO,EAAE,YAAY;IAOjC,MAAM,CAAC,eAAe,CACpB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,IAAI;IAcP,qBAAqB;;;;;;IASrB,aAAa,IAAI,kBAAkB,EAAE;IA6DrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAuBpC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAUvB,eAAe,CAAC,IAAI,EAAE;QACpB,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB;IAaD,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;CAcpC;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -10,13 +10,16 @@ export type TRingOptions = {
|
|
|
10
10
|
endDegree: number;
|
|
11
11
|
extendDegree?: number;
|
|
12
12
|
lineWidth: number;
|
|
13
|
-
color?: string;
|
|
14
|
-
colorGradient?: CanvasGradient;
|
|
13
|
+
color?: CanvasGradient | string;
|
|
15
14
|
} & TShapeOptions;
|
|
16
15
|
export declare class Ring extends Shape {
|
|
16
|
+
extendDegree: number;
|
|
17
|
+
radius: number;
|
|
18
|
+
startDegree: number;
|
|
19
|
+
endDegree: number;
|
|
20
|
+
diffDegree: number;
|
|
17
21
|
constructor(options: TRingOptions);
|
|
18
|
-
|
|
19
|
-
frameUpdate(): void;
|
|
22
|
+
setPercent(percent: number): void;
|
|
20
23
|
toSVGPathData(): TSVGParsedPathData[];
|
|
21
24
|
toCanvasContext(ctx: YZCanvasContext): void;
|
|
22
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ring.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Ring.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;AA6B/C,MAAM,MAAM,YAAY,GAAG;IAEzB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAElB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Ring.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Ring.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;AA6B/C,MAAM,MAAM,YAAY,GAAG;IAEzB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAElB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC;CACjC,GAAG,aAAa,CAAC;AAElB,qBAAa,IAAK,SAAQ,KAAK;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;gBAEP,OAAO,EAAE,YAAY;IA+B1B,UAAU,CAAC,OAAO,EAAE,MAAM;IAKjC,aAAa,IAAI,kBAAkB,EAAE;IAqBrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAWrC;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { YZCanvasContext } from "../../canvas";
|
|
2
|
+
import { TShapeOptions } from "../Shape";
|
|
3
|
+
import ShapeGroup from "../ShapeGroup";
|
|
4
|
+
import Line from "./Line";
|
|
5
|
+
import Ring from "./Ring";
|
|
6
|
+
export declare class RingIndicator extends ShapeGroup {
|
|
7
|
+
percent: number;
|
|
8
|
+
ringBg: Ring;
|
|
9
|
+
ring: Ring;
|
|
10
|
+
lines: Line[];
|
|
11
|
+
bgColor: string;
|
|
12
|
+
startColor: string;
|
|
13
|
+
endColor: string;
|
|
14
|
+
indicatorLineCount: number;
|
|
15
|
+
constructor(options: TShapeOptions & {
|
|
16
|
+
x?: number;
|
|
17
|
+
y?: number;
|
|
18
|
+
width: number;
|
|
19
|
+
height: number;
|
|
20
|
+
startDegree?: number;
|
|
21
|
+
endDegree?: number;
|
|
22
|
+
extendDegree?: number;
|
|
23
|
+
lineWidth?: number;
|
|
24
|
+
bgColor?: string;
|
|
25
|
+
startColor?: string;
|
|
26
|
+
endColor?: string;
|
|
27
|
+
percent?: number;
|
|
28
|
+
});
|
|
29
|
+
setPercent(percent: number): void;
|
|
30
|
+
shapeInit(): void;
|
|
31
|
+
frameUpdate(_: any, ctx?: YZCanvasContext): void;
|
|
32
|
+
}
|
|
33
|
+
export default RingIndicator;
|
|
34
|
+
//# sourceMappingURL=RingIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RingIndicator.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/RingIndicator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AA4B1B,qBAAa,aAAc,SAAQ,UAAU;IAC3C,OAAO,SAAK;IAEZ,MAAM,EAAE,IAAI,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,IAAI,EAAE,CAAM;IAEnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,EAAE,MAAM,CAAC;gBAGzB,OAAO,EAAE,aAAa,GAAG;QAEvB,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IA6EI,UAAU,CAAC,OAAO,EAAE,MAAM;IAIjC,SAAS;IAWT,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,eAAe;CAoD1C;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Shape, TShapeOptions } from "../Shape";
|
|
2
2
|
import { ShapeGroup } from "../ShapeGroup";
|
|
3
|
-
import { Point } from "
|
|
3
|
+
import { Point } from "./Point";
|
|
4
|
+
import { Line } from "./Line";
|
|
5
|
+
import { Text } from "./Text";
|
|
6
|
+
import { Tip } from "./Tip";
|
|
4
7
|
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
5
8
|
import { YZCanvasContext } from "../../canvas";
|
|
6
9
|
export type TSectorOptions = {
|
|
@@ -29,9 +32,18 @@ export declare class Sector extends ShapeGroup {
|
|
|
29
32
|
p4: Point;
|
|
30
33
|
p4Offset: number;
|
|
31
34
|
direction: number;
|
|
35
|
+
sectorArc: SectorArc;
|
|
36
|
+
line12: Line;
|
|
37
|
+
line23: Line;
|
|
38
|
+
textShape: Text;
|
|
39
|
+
tipShape: Tip;
|
|
32
40
|
constructor(options: TSectorOptions);
|
|
33
|
-
frameUpdate(
|
|
41
|
+
frameUpdate(mouse: {
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
}): void;
|
|
34
45
|
}
|
|
46
|
+
export default Sector;
|
|
35
47
|
export declare class SectorArc extends Shape {
|
|
36
48
|
radius: number;
|
|
37
49
|
realRadius: number;
|
|
@@ -41,7 +53,7 @@ export declare class SectorArc extends Shape {
|
|
|
41
53
|
vr: number;
|
|
42
54
|
ar: number;
|
|
43
55
|
bounce: number;
|
|
44
|
-
|
|
56
|
+
durationTime: number;
|
|
45
57
|
status: number;
|
|
46
58
|
constructor(options: TSectorOptions);
|
|
47
59
|
frameUpdate(): void;
|
|
@@ -51,5 +63,4 @@ export declare class SectorArc extends Shape {
|
|
|
51
63
|
toCanvasContext(ctx: YZCanvasContext): void;
|
|
52
64
|
containPoint(x: number, y: number): boolean;
|
|
53
65
|
}
|
|
54
|
-
export default Sector;
|
|
55
66
|
//# sourceMappingURL=Sector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sector.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Sector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Sector.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Sector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,MAAM,cAAc,GAAG;IAE3B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GAAG,aAAa,CAAC;AAGlB,qBAAa,MAAO,SAAQ,UAAU;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,SAAM;IACV,eAAe,EAAE,OAAO,CAAC;IACzB,GAAG,SAAM;IAGT,EAAE,EAAE,KAAK,CAAe;IACxB,QAAQ,SAAM;IAGd,EAAE,EAAE,KAAK,CAAe;IACxB,QAAQ,SAAM;IAGd,EAAE,EAAE,KAAK,CAAe;IACxB,QAAQ,SAAM;IAGd,EAAE,EAAE,KAAK,CAAe;IACxB,QAAQ,SAAM;IAEd,SAAS,SAAK;IAErB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,EAAE,IAAI,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,QAAQ,EAAE,GAAG,CAAC;gBAEF,OAAO,EAAE,cAAc;IAoEnC,WAAW,CAAC,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAqDnD;AAED,eAAe,MAAM,CAAC;AAEtB,qBAAa,SAAU,SAAQ,KAAK;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IAIrB,MAAM,EAAE,MAAM,CAAC;gBAEV,OAAO,EAAE,cAAc;IAcnC,WAAW;IAiBX,MAAM,CAAC,QAAQ,EAAE,MAAM;IASvB,MAAM,CAAC,QAAQ,EAAE,MAAM;IASvB,aAAa,IAAI,kBAAkB,EAAE;IAuBrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAcpC,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;CAS5C"}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { TShapeOptions } from "../Shape";
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import ShapeGroup from "../ShapeGroup";
|
|
3
|
+
import Rect from "./Rect";
|
|
4
|
+
import Point from "./Point";
|
|
5
|
+
export declare class Segment extends ShapeGroup {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
cornerRadius: number;
|
|
9
|
+
controlPoint: Point;
|
|
10
|
+
mainRect: Rect;
|
|
11
|
+
rightPoint: Point;
|
|
4
12
|
constructor(options: TShapeOptions & {
|
|
5
13
|
width: number;
|
|
6
14
|
height: number;
|
|
7
15
|
});
|
|
8
|
-
frameUpdate(): void;
|
|
9
16
|
getPin(): {
|
|
10
17
|
x: number;
|
|
11
18
|
y: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Segment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,
|
|
1
|
+
{"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Segment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,qBAAa,OAAQ,SAAQ,UAAU;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,KAAK,CAAC;IACpB,QAAQ,EAAE,IAAI,CAAC;IACf,UAAU,EAAE,KAAK,CAAC;gBAEN,OAAO,EAAE,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAyCtE,MAAM;;;;CAUP;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { TShapeOptions } from "../Shape";
|
|
1
|
+
import Shape, { TShapeOptions } from "../Shape";
|
|
2
2
|
import { ShapeGroup } from "../ShapeGroup";
|
|
3
3
|
export type TShipOptions = {
|
|
4
4
|
showFlame?: boolean;
|
|
5
5
|
} & TShapeOptions;
|
|
6
6
|
export declare class Ship extends ShapeGroup {
|
|
7
7
|
showFlame: boolean;
|
|
8
|
+
ship: Shape;
|
|
9
|
+
flame: Shape;
|
|
8
10
|
constructor(options: TShipOptions);
|
|
9
|
-
|
|
11
|
+
shapeInit(): void;
|
|
10
12
|
}
|
|
11
13
|
//# sourceMappingURL=Ship.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Ship.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Ship.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Ship.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Ship.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,aAAa,CAAC;AAElB,qBAAa,IAAK,SAAQ,UAAU;IAC3B,SAAS,EAAE,OAAO,CAAC;IAE1B,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;gBAED,OAAO,EAAE,YAAY;IA2BjC,SAAS;CASV"}
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import { TShapeOptions } from "../Shape";
|
|
2
|
-
import
|
|
2
|
+
import ShapeGroup from "../ShapeGroup";
|
|
3
|
+
import Rect from "./Rect";
|
|
4
|
+
import Point from "./Point";
|
|
3
5
|
export declare class Slider extends ShapeGroup {
|
|
4
|
-
min: number;
|
|
5
|
-
max: number;
|
|
6
|
-
step: number;
|
|
7
6
|
value: number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
barColor: string;
|
|
12
|
-
handleSize: number;
|
|
13
|
-
handleColor: string;
|
|
14
|
-
realBarWidth: number;
|
|
7
|
+
backgroundRect: Rect;
|
|
8
|
+
occupyRect: Rect;
|
|
9
|
+
handle: Point;
|
|
15
10
|
constructor(options?: TShapeOptions & {
|
|
16
11
|
min?: number;
|
|
17
12
|
max?: number;
|
|
@@ -20,10 +15,9 @@ export declare class Slider extends ShapeGroup {
|
|
|
20
15
|
barWidth?: number;
|
|
21
16
|
barHeight?: number;
|
|
22
17
|
barColor?: string;
|
|
23
|
-
|
|
18
|
+
handleRadius?: number;
|
|
24
19
|
handleColor?: string;
|
|
25
20
|
});
|
|
26
|
-
frameUpdate(): void;
|
|
27
21
|
}
|
|
28
22
|
export default Slider;
|
|
29
23
|
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Slider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Slider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,qBAAa,MAAO,SAAQ,UAAU;IAC7B,KAAK,EAAE,MAAM,CAAC;IAErB,cAAc,EAAE,IAAI,CAAC;IACrB,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC;gBAGZ,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CAyFJ;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { TShapeOptions } from "../Shape";
|
|
2
|
-
import {
|
|
3
|
-
export declare class Star extends
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
export declare class Star extends Shape {
|
|
4
|
+
r: number;
|
|
4
5
|
constructor(options?: TShapeOptions & {
|
|
5
6
|
r?: number;
|
|
6
7
|
});
|
|
8
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
7
9
|
}
|
|
8
10
|
export default Star;
|
|
9
11
|
//# sourceMappingURL=Star.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Star.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Star.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Star.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Star.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,qBAAa,IAAK,SAAQ,KAAK;IAC7B,CAAC,EAAE,MAAM,CAAC;gBAGR,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,CAAC,CAAC,EAAE,MAAM,CAAC;KACZ;IAMH,aAAa,IAAI,kBAAkB,EAAE;CAWtC;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Shape, TShapeOptions } from "
|
|
2
|
-
import { TSVGParsedPathData } from "
|
|
3
|
-
import { YZCanvasContext } from "
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../../canvas";
|
|
4
4
|
export declare class Text extends Shape {
|
|
5
5
|
text: string;
|
|
6
6
|
width: number;
|
|
@@ -8,7 +8,6 @@ export declare class Text extends Shape {
|
|
|
8
8
|
constructor(options: {
|
|
9
9
|
text: string;
|
|
10
10
|
} & TShapeOptions);
|
|
11
|
-
frameUpdate(): void;
|
|
12
11
|
getBoundingClientRect(): null;
|
|
13
12
|
toSVGPathData(): TSVGParsedPathData[];
|
|
14
13
|
toCanvasContext(ctx: YZCanvasContext): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,qBAAa,IAAK,SAAQ,KAAK;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,SAAK;IACV,MAAM,SAAK;gBAGhB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,aAAa;IAuCnB,qBAAqB;IAIrB,aAAa,IAAI,kBAAkB,EAAE;IAIrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAGrC;AAED,eAAe,IAAI,CAAC"}
|