@zyzgroup/core-web 0.0.70 → 0.0.71
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/better.css +2 -0
- package/dist/font.css +21 -0
- package/dist/zyzgroup_core_web.iife.js +18 -18
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +8724 -7456
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +18 -18
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/Pagination.d.ts +36 -0
- package/types/Pagination.d.ts.map +1 -0
- package/types/YZMessageChannel.d.ts +21 -0
- package/types/YZMessageChannel.d.ts.map +1 -0
- package/types/YZRequestIdleCallback.d.ts +14 -0
- package/types/YZRequestIdleCallback.d.ts.map +1 -0
- package/types/YZWorker.d.ts +16 -0
- package/types/YZWorker.d.ts.map +1 -0
- package/types/animate/{AnimateOperation.d.ts → YZAnimate.d.ts} +25 -26
- package/types/animate/YZAnimate.d.ts.map +1 -0
- package/types/animate/index.d.ts +2 -2
- package/types/animate/index.d.ts.map +1 -1
- package/types/animate/requestAnimationFrameCycle.d.ts +14 -0
- package/types/animate/requestAnimationFrameCycle.d.ts.map +1 -0
- package/types/animate/tween/cubicBezierToEase.d.ts +3 -5
- package/types/animate/tween/cubicBezierToEase.d.ts.map +1 -1
- package/types/cache.d.ts +1 -1
- package/types/cache.d.ts.map +1 -1
- package/types/canvas/CustomCanvasContext.d.ts.map +1 -1
- package/types/canvas/{Canvas.d.ts → YZCanvas.d.ts} +7 -6
- package/types/canvas/YZCanvas.d.ts.map +1 -0
- package/types/canvas/{CanvasOperation.d.ts → YZCanvasContext.d.ts} +13 -15
- package/types/canvas/YZCanvasContext.d.ts.map +1 -0
- package/types/canvas/index.d.ts +2 -2
- package/types/canvas/index.d.ts.map +1 -1
- package/types/dom/DOMEventBus.d.ts +4 -0
- package/types/dom/DOMEventBus.d.ts.map +1 -1
- package/types/dom/DOMUtil.d.ts +11 -4
- package/types/dom/DOMUtil.d.ts.map +1 -1
- package/types/env.d.ts +3 -1
- package/types/env.d.ts.map +1 -1
- package/types/image/bitmap.d.ts +10 -1
- package/types/image/bitmap.d.ts.map +1 -1
- package/types/index.d.ts +5 -1
- package/types/index.d.ts.map +1 -1
- package/types/math/Arc.d.ts +2 -2
- package/types/math/Arc.d.ts.map +1 -1
- package/types/math/ComboConfetti.d.ts +25 -0
- package/types/math/ComboConfetti.d.ts.map +1 -0
- package/types/math/CubicBezier.d.ts +2 -2
- package/types/math/Ellipse.d.ts +2 -2
- package/types/math/Ellipse.d.ts.map +1 -1
- package/types/math/{Light3d.d.ts → Light3D.d.ts} +7 -7
- package/types/math/{Light3d.d.ts.map → Light3D.d.ts.map} +1 -1
- package/types/math/Line.d.ts +6 -2
- package/types/math/Line.d.ts.map +1 -1
- package/types/math/Matrix.d.ts +93 -18
- package/types/math/Matrix.d.ts.map +1 -1
- package/types/math/PathD.d.ts +27 -11
- package/types/math/PathD.d.ts.map +1 -1
- package/types/math/PathDGroup.d.ts +2 -2
- package/types/math/PathDGroup.d.ts.map +1 -1
- package/types/math/Point.d.ts +39 -11
- package/types/math/Point.d.ts.map +1 -1
- package/types/math/Point3D.d.ts +78 -0
- package/types/math/Point3D.d.ts.map +1 -0
- package/types/math/Point3Ds.d.ts +19 -0
- package/types/math/{Point3ds.d.ts.map → Point3Ds.d.ts.map} +1 -1
- package/types/math/Points.d.ts +2 -2
- package/types/math/QuadraticBezier.d.ts +2 -2
- package/types/math/Rect.d.ts +2 -2
- package/types/math/Rect.d.ts.map +1 -1
- package/types/math/RenderGroup.d.ts +18 -0
- package/types/math/RenderGroup.d.ts.map +1 -0
- package/types/math/Shape.d.ts +79 -33
- package/types/math/Shape.d.ts.map +1 -1
- package/types/math/ShapeGroup.d.ts +10 -2
- package/types/math/ShapeGroup.d.ts.map +1 -1
- package/types/math/Text.d.ts +6 -7
- package/types/math/Text.d.ts.map +1 -1
- package/types/math/index.d.ts +4 -4
- package/types/math/index.d.ts.map +1 -1
- package/types/math/math.d.ts +4 -3
- package/types/math/math.d.ts.map +1 -1
- package/types/math/shapes/Arrow.d.ts +2 -2
- package/types/math/shapes/Fox.d.ts +2 -2
- package/types/math/shapes/Ring.d.ts +22 -0
- package/types/math/shapes/Ring.d.ts.map +1 -0
- package/types/math/{Sector.d.ts → shapes/Sector.d.ts} +8 -7
- package/types/math/shapes/Sector.d.ts.map +1 -0
- package/types/math/shapes/Segment.d.ts +15 -0
- package/types/math/shapes/Segment.d.ts.map +1 -0
- package/types/math/shapes/Ship.d.ts +11 -0
- package/types/math/shapes/Ship.d.ts.map +1 -0
- package/types/math/shapes/Slider.d.ts +29 -0
- package/types/math/shapes/Slider.d.ts.map +1 -0
- package/types/math/shapes/Star.d.ts.map +1 -1
- package/types/math/shapes/Tip.d.ts +23 -0
- package/types/math/shapes/Tip.d.ts.map +1 -0
- package/types/math/shapes/index.d.ts +6 -0
- package/types/math/shapes/index.d.ts.map +1 -1
- package/types/nextTick.d.ts +3 -0
- package/types/nextTick.d.ts.map +1 -0
- package/types/patch.d.ts +4 -4
- package/types/patch.d.ts.map +1 -1
- package/types/position.d.ts +9 -5
- package/types/position.d.ts.map +1 -1
- package/types/reactive.d.ts.map +1 -1
- package/types/svg/DOMSVGUtil.d.ts.map +1 -1
- package/types/svg/{SVG.d.ts → YZSVG.d.ts} +3 -3
- package/types/svg/YZSVG.d.ts.map +1 -0
- package/types/svg/index.d.ts +1 -1
- package/types/svg/index.d.ts.map +1 -1
- package/types/theme.d.ts +9 -1
- package/types/theme.d.ts.map +1 -1
- package/types/animate/AnimateOperation.d.ts.map +0 -1
- package/types/animate/animateInWeb.d.ts +0 -13
- package/types/animate/animateInWeb.d.ts.map +0 -1
- package/types/canvas/Canvas.d.ts.map +0 -1
- package/types/canvas/CanvasOperation.d.ts.map +0 -1
- package/types/math/Point3d.d.ts +0 -44
- package/types/math/Point3d.d.ts.map +0 -1
- package/types/math/Point3ds.d.ts +0 -19
- package/types/math/Sector.d.ts.map +0 -1
- package/types/math/Vector.d.ts +0 -12
- package/types/math/Vector.d.ts.map +0 -1
- package/types/shapes/ShapeShip.d.ts +0 -12
- package/types/shapes/ShapeShip.d.ts.map +0 -1
- package/types/shapes/ShapeSlider.d.ts +0 -27
- package/types/shapes/ShapeSlider.d.ts.map +0 -1
- package/types/shapes/ShapeSpirograph.d.ts +0 -9
- package/types/shapes/ShapeSpirograph.d.ts.map +0 -1
- package/types/svg/SVG.d.ts.map +0 -1
- package/types/worker.d.ts +0 -9
- package/types/worker.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Point3D.d.ts","sourceRoot":"","sources":["../../src/math/Point3D.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C,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;IACV,EAAE,EAAE,MAAM,CAAC;IACX,G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
+
import { Shape } from "./Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../canvas";
|
|
4
|
+
import Point3D from "./Point3D";
|
|
5
|
+
import Light3D from "./Light3D";
|
|
6
|
+
export declare class Point3Ds extends Shape {
|
|
7
|
+
points: Point3D[];
|
|
8
|
+
light: Light3D;
|
|
9
|
+
constructor(points?: Point3D[]);
|
|
10
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
11
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
12
|
+
get length(): number;
|
|
13
|
+
getDepth(): number;
|
|
14
|
+
isBackface(): boolean;
|
|
15
|
+
getLightFactor(): number;
|
|
16
|
+
getAdjustedColor(color: string): string;
|
|
17
|
+
}
|
|
18
|
+
export default Point3Ds;
|
|
19
|
+
//# sourceMappingURL=Point3Ds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"Point3Ds.d.ts","sourceRoot":"","sources":["../../src/math/Point3Ds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,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;IASlC,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"}
|
package/types/math/Points.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Shape } from "./Shape";
|
|
2
2
|
import Point from "./Point";
|
|
3
3
|
import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
|
|
4
|
-
import {
|
|
4
|
+
import { YZCanvasContext } from "../canvas";
|
|
5
5
|
export declare class Points extends Shape {
|
|
6
6
|
points: Point[];
|
|
7
7
|
constructor(points?: Point[]);
|
|
8
8
|
toSVGPathData(): TSVGParsedPathData[];
|
|
9
|
-
toCanvasContext(ctx:
|
|
9
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
10
10
|
get length(): number;
|
|
11
11
|
addPoint(point: Point): void;
|
|
12
12
|
getPoint(index: number): Point;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
|
|
2
|
-
import {
|
|
2
|
+
import { YZCanvasContext } from "../canvas";
|
|
3
3
|
import { Line, TLineOptions } from "./Line";
|
|
4
4
|
import Point from "./Point";
|
|
5
5
|
export type TQuadraticBezierOptions = {
|
|
@@ -16,7 +16,7 @@ export declare class QuadraticBezier extends Line {
|
|
|
16
16
|
constructor(options: TQuadraticBezierOptions);
|
|
17
17
|
static fromSVGPathData(data: TSVGParsedPathData, startPoint?: Point): QuadraticBezier;
|
|
18
18
|
toSVGPathData(): TSVGParsedPathData;
|
|
19
|
-
toCanvasContext(ctx:
|
|
19
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
20
20
|
interpolate(t: number): {
|
|
21
21
|
x: number;
|
|
22
22
|
y: number;
|
package/types/math/Rect.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Shape, TShapeOptions } from "./Shape";
|
|
2
2
|
import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
|
|
3
|
-
import {
|
|
3
|
+
import { YZCanvasContext } from "../canvas/YZCanvasContext";
|
|
4
4
|
export type TRectOptions = {
|
|
5
5
|
width: number;
|
|
6
6
|
height: number;
|
|
@@ -14,7 +14,7 @@ export declare class Rect extends Shape {
|
|
|
14
14
|
static fromBezier(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number): Rect;
|
|
15
15
|
getBoundingClientRect(): Rect;
|
|
16
16
|
toSVGPathData(): TSVGParsedPathData[];
|
|
17
|
-
toCanvasContext(ctx:
|
|
17
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
18
18
|
eq(rect: Rect): boolean;
|
|
19
19
|
isIntersectRect(rect: Rect): boolean;
|
|
20
20
|
isContainPoint(x: number, y: number): boolean;
|
package/types/math/Rect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rect.d.ts","sourceRoot":"","sources":["../../src/math/Rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAc,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,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;IACf,YAAY,EAAE,MAAM,CAAC;gBAET,OAAO,EAAE,YAAY;IAOjC,MAAM,CAAC,UAAU,CACf,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;IAWb,qBAAqB,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"Rect.d.ts","sourceRoot":"","sources":["../../src/math/Rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAc,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,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;IACf,YAAY,EAAE,MAAM,CAAC;gBAET,OAAO,EAAE,YAAY;IAOjC,MAAM,CAAC,UAAU,CACf,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;IAWb,qBAAqB,IAAI,IAAI;IAS7B,aAAa,IAAI,kBAAkB,EAAE;IA6DrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAuBpC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAUvB,eAAe,CAAC,IAAI,EAAE,IAAI;IAa1B,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAenC,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAUvB,OAAO,IAAI,MAAM,EAAE;CAGpB;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventBusRaw, EventBusListeners } from "@zyzgroup/core-common";
|
|
2
|
+
import { Shape } from "./Shape";
|
|
3
|
+
export interface RenderGroupEventBusListeners extends EventBusListeners {
|
|
4
|
+
}
|
|
5
|
+
export declare class RenderGroup extends EventBusRaw<RenderGroupEventBusListeners> {
|
|
6
|
+
shapes: Shape[];
|
|
7
|
+
removes: (() => void)[];
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
constructor(options?: {
|
|
11
|
+
x?: number;
|
|
12
|
+
y?: number;
|
|
13
|
+
});
|
|
14
|
+
register(...ss: Shape[]): void;
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}
|
|
17
|
+
export default RenderGroup;
|
|
18
|
+
//# sourceMappingURL=RenderGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RenderGroup.d.ts","sourceRoot":"","sources":["../../src/math/RenderGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,WAAW,4BAA6B,SAAQ,iBAAiB;CAEtE;AAED,qBAAa,WAAY,SAAQ,WAAW,CAAC,4BAA4B,CAAC;IACxE,MAAM,EAAE,KAAK,EAAE,CAAM;IACd,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAM;IAE7B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;gBAEL,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE;IAMhD,QAAQ,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE;IAqBvB,OAAO;CAGR;AAED,eAAe,WAAW,CAAC"}
|
package/types/math/Shape.d.ts
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
import { EventBusRaw, EventBusListeners } from "@zyzgroup/core-common";
|
|
2
2
|
import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
|
|
3
|
-
import {
|
|
3
|
+
import { YZCanvasContext } from "../canvas/YZCanvasContext";
|
|
4
4
|
import Rect from "./Rect";
|
|
5
5
|
import PathD from "./PathD";
|
|
6
|
+
import { ShapeGroup } from "./ShapeGroup";
|
|
7
|
+
import { RenderGroup } from "./RenderGroup";
|
|
6
8
|
export type TShapeOptions = {
|
|
9
|
+
cX?: number;
|
|
10
|
+
cY?: number;
|
|
7
11
|
x?: number;
|
|
8
12
|
y?: number;
|
|
9
13
|
degree?: number;
|
|
10
14
|
scaleOnOrigin?: number;
|
|
11
|
-
|
|
15
|
+
scalexOnOrigin?: number;
|
|
16
|
+
scaleyOnOrigin?: number;
|
|
17
|
+
skewxDegreeOnOrigin?: number;
|
|
18
|
+
skewyDegreeOnOrigin?: number;
|
|
19
|
+
transformBaseOnSelfInRenderGroup?: boolean;
|
|
12
20
|
vx?: number;
|
|
13
21
|
vy?: number;
|
|
14
22
|
ax?: number;
|
|
15
23
|
ay?: number;
|
|
16
24
|
mass?: number;
|
|
17
|
-
attrs?: Record<string, string>;
|
|
25
|
+
attrs?: Record<string, string | CanvasGradient>;
|
|
18
26
|
enableDrag?: boolean;
|
|
27
|
+
alongPath?: PathD;
|
|
19
28
|
targetToAfterDragFree?: {
|
|
20
29
|
targetX: number;
|
|
21
30
|
targetY: number;
|
|
@@ -24,31 +33,49 @@ export type TShapeOptions = {
|
|
|
24
33
|
followMouse?: boolean;
|
|
25
34
|
isShow?: boolean;
|
|
26
35
|
strokeArmyAnts?: boolean;
|
|
36
|
+
shapeGroup?: ShapeGroup;
|
|
37
|
+
renderGroup?: RenderGroup;
|
|
38
|
+
autoRender?: boolean;
|
|
27
39
|
};
|
|
28
40
|
export interface ShapeEventBusListeners extends EventBusListeners {
|
|
41
|
+
moving(dx: number, dy: number): void;
|
|
29
42
|
}
|
|
43
|
+
export type ShapeNextFrameOptions = {
|
|
44
|
+
gravity?: number;
|
|
45
|
+
friction?: number;
|
|
46
|
+
};
|
|
30
47
|
export declare abstract class Shape extends EventBusRaw<ShapeEventBusListeners> {
|
|
31
48
|
[index: string | number | symbol]: any;
|
|
32
49
|
id: string;
|
|
50
|
+
cX: number;
|
|
51
|
+
cY: number;
|
|
33
52
|
x: number;
|
|
34
53
|
prevX: number;
|
|
35
54
|
y: number;
|
|
36
55
|
prevY: number;
|
|
37
56
|
degree: number;
|
|
38
57
|
prevDegree: number;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
58
|
+
scalexOnOrigin: number;
|
|
59
|
+
scaleyOnOrigin: number;
|
|
60
|
+
prevScalexOnOrigin: number;
|
|
61
|
+
prevScaleyOnOrigin: number;
|
|
62
|
+
skewxDegreeOnOrigin: number;
|
|
63
|
+
skewyDegreeOnOrigin: number;
|
|
64
|
+
prevSkewxDegreeOnOrigin: number;
|
|
65
|
+
prevSkewyDegreeOnOrigin: number;
|
|
66
|
+
transformBaseOnSelfInRenderGroup: boolean;
|
|
43
67
|
vx: number;
|
|
44
68
|
vy: number;
|
|
45
69
|
ax: number;
|
|
46
70
|
ay: number;
|
|
47
71
|
mass: number;
|
|
48
|
-
attrs: Record<string, string>;
|
|
72
|
+
attrs: Record<string, string | CanvasGradient>;
|
|
49
73
|
enableDrag: boolean;
|
|
74
|
+
alongPath?: PathD;
|
|
50
75
|
isDragging: boolean;
|
|
51
76
|
isMouseIn: boolean;
|
|
77
|
+
mouseX: number;
|
|
78
|
+
mouseY: number;
|
|
52
79
|
targetToAfterDragFree?: {
|
|
53
80
|
targetX: number;
|
|
54
81
|
targetY: number;
|
|
@@ -64,13 +91,18 @@ export declare abstract class Shape extends EventBusRaw<ShapeEventBusListeners>
|
|
|
64
91
|
path2d: Path2D;
|
|
65
92
|
el?: HTMLElement | SVGElement;
|
|
66
93
|
pathd?: PathD;
|
|
94
|
+
renderGroup?: RenderGroup;
|
|
95
|
+
shapeGroup?: ShapeGroup;
|
|
96
|
+
autoRender: boolean;
|
|
67
97
|
constructor(options?: TShapeOptions);
|
|
68
98
|
save(): void;
|
|
69
99
|
restore(): void;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
100
|
+
group(...ss: Shape[]): void;
|
|
101
|
+
ungroup(): void;
|
|
102
|
+
setAttr(obj: Record<string, string | CanvasGradient>): void;
|
|
103
|
+
setAttr(name: string, value: string | CanvasGradient): void;
|
|
104
|
+
getAttr(name: string, defaultValue: string | CanvasGradient): string | CanvasGradient;
|
|
105
|
+
getAttr(name: string): string | CanvasGradient | undefined;
|
|
74
106
|
hasAttr(name: string): boolean;
|
|
75
107
|
get centerX(): number;
|
|
76
108
|
get centerY(): number;
|
|
@@ -82,31 +114,45 @@ export declare abstract class Shape extends EventBusRaw<ShapeEventBusListeners>
|
|
|
82
114
|
frameUpdate(): void;
|
|
83
115
|
abstract toSVGPathData(): TSVGParsedPathData | TSVGParsedPathData[];
|
|
84
116
|
toSVGPathD(isRelative?: boolean): string;
|
|
85
|
-
abstract toCanvasContext(ctx:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
followTo(
|
|
89
|
-
followAccelerationTo(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
nextFrameEaseTo(target:
|
|
95
|
-
|
|
96
|
-
|
|
117
|
+
abstract toCanvasContext(ctx: YZCanvasContext): void;
|
|
118
|
+
distance(target: Shape): number;
|
|
119
|
+
rotateTo(target: Shape): void;
|
|
120
|
+
followTo(target: Shape, length?: number): void;
|
|
121
|
+
followAccelerationTo(target: Shape, length?: number): void;
|
|
122
|
+
checkCollision(target: Shape): void;
|
|
123
|
+
gravitate(target: Shape): void;
|
|
124
|
+
static comboGravitate(shapes: Shape[]): void;
|
|
125
|
+
nextFrame(options?: ShapeNextFrameOptions): void;
|
|
126
|
+
nextFrameEaseTo(target: {
|
|
127
|
+
x: number;
|
|
128
|
+
y: number;
|
|
129
|
+
}, options?: {
|
|
97
130
|
easing?: number;
|
|
98
|
-
}): void;
|
|
99
|
-
nextFrameSpringTo(target:
|
|
100
|
-
|
|
101
|
-
|
|
131
|
+
} & ShapeNextFrameOptions): void;
|
|
132
|
+
nextFrameSpringTo(target: {
|
|
133
|
+
x: number;
|
|
134
|
+
y: number;
|
|
135
|
+
} | {
|
|
136
|
+
x: number;
|
|
137
|
+
y: number;
|
|
138
|
+
}[], options?: {
|
|
139
|
+
spring?: number;
|
|
140
|
+
} & ShapeNextFrameOptions): void;
|
|
141
|
+
static comboSpringChain(shapes: Shape[], options?: {
|
|
142
|
+
spring?: number;
|
|
143
|
+
} & ShapeNextFrameOptions): void;
|
|
144
|
+
static comboSpringConnect(shapes: Shape[], options?: {
|
|
145
|
+
springLength?: number;
|
|
146
|
+
spring?: number;
|
|
147
|
+
} & ShapeNextFrameOptions): void;
|
|
148
|
+
spring(target: Shape, options?: {
|
|
149
|
+
springLength?: number;
|
|
102
150
|
spring?: number;
|
|
103
|
-
}):
|
|
104
|
-
static
|
|
151
|
+
}): number[];
|
|
152
|
+
static comboSpringMass(shapes: Shape[], wall: Rect, options?: {
|
|
105
153
|
springLength?: number;
|
|
106
154
|
spring?: number;
|
|
107
|
-
|
|
108
|
-
friction?: number;
|
|
109
|
-
}): void;
|
|
155
|
+
} & ShapeNextFrameOptions): number[][];
|
|
110
156
|
}
|
|
111
157
|
export default Shape;
|
|
112
158
|
//# sourceMappingURL=Shape.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shape.d.ts","sourceRoot":"","sources":["../../src/math/Shape.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,WAAW,EACX,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Shape.d.ts","sourceRoot":"","sources":["../../src/math/Shape.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,WAAW,EACX,iBAAiB,EAElB,MAAM,uBAAuB,CAAC;AAE/B,OAAmB,EAAE,kBAAkB,EAAE,MAAM,mBA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ACrB,MAAM,EAAE,KAAK,EAAE,EACf,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,qBAAqB;IAS3B,MAAM,CAAC,kBAAkB,CACvB,MAAM,EAAE,KAAK,EAAE,EACf,OAAO,CAAC,EAAE;QACR,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,qBAAqB;IAqB3B,MAAM,CACJ,MAAM,EAAE,KAAK,EACb,OAAO,CAAC,EAAE;QACR,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GACA,MAAM,EAAE;IAmBX,MAAM,CAAC,eAAe,CACpB,MAAM,EAAE,KAAK,EAAE,EACf,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE;QACR,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,qBAAqB,GACxB,MAAM,EAAE,EAAE;CAoBd;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { Shape, TShapeOptions } from "./Shape";
|
|
2
|
+
import { RenderGroup } from "./RenderGroup";
|
|
2
3
|
import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
|
|
3
|
-
import {
|
|
4
|
+
import { YZCanvasContext } from "../canvas";
|
|
4
5
|
export declare class ShapeGroup extends Shape {
|
|
5
6
|
shapes: Shape[];
|
|
7
|
+
renderGroup: RenderGroup;
|
|
6
8
|
constructor(options?: TShapeOptions);
|
|
7
9
|
setAttrs(nameOrObj: string | Record<string, string>, value?: string): void;
|
|
8
10
|
addShape(s: Shape | Shape[]): void;
|
|
9
11
|
toSVGPathData(): TSVGParsedPathData[];
|
|
10
|
-
toCanvasContext(ctx:
|
|
12
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
13
|
+
frameUpdate(): void;
|
|
14
|
+
groupTranslate(dx: number, dy: number): void;
|
|
15
|
+
groupTranslateTo(x: number, y: number): void;
|
|
16
|
+
groupRotate(degree: number): void;
|
|
17
|
+
groupRotateTo(degree: number): void;
|
|
18
|
+
groupScaleTo(scale: number): void;
|
|
11
19
|
}
|
|
12
20
|
export default ShapeGroup;
|
|
13
21
|
//# sourceMappingURL=ShapeGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeGroup.d.ts","sourceRoot":"","sources":["../../src/math/ShapeGroup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,qBAAa,UAAW,SAAQ,KAAK;IACnC,MAAM,EAAE,KAAK,EAAE,CAAM;
|
|
1
|
+
{"version":3,"file":"ShapeGroup.d.ts","sourceRoot":"","sources":["../../src/math/ShapeGroup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,qBAAa,UAAW,SAAQ,KAAK;IACnC,MAAM,EAAE,KAAK,EAAE,CAAM;IAErB,WAAW,EAAE,WAAW,CAAC;gBAEb,OAAO,CAAC,EAAE,aAAa;IAKnC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAU1E,QAAQ,CAAC,CAAC,EAAE,KAAK,GAAG,KAAK,EAAE;IAW3B,aAAa,IAAI,kBAAkB,EAAE;IAYrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAGpC,WAAW,IAAI,IAAI;IAInB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IAWrC,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAIrC,WAAW,CAAC,MAAM,EAAE,MAAM;IAO1B,aAAa,CAAC,MAAM,EAAE,MAAM;IAI5B,YAAY,CAAC,KAAK,EAAE,MAAM;CAQ3B;AAED,eAAe,UAAU,CAAC"}
|
package/types/math/Text.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { Shape, TShapeOptions } from "./Shape";
|
|
2
2
|
import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
|
|
3
|
-
import {
|
|
4
|
-
export type TTextOptions = {
|
|
5
|
-
text: string;
|
|
6
|
-
} & TShapeOptions;
|
|
3
|
+
import { YZCanvasContext } from "../canvas";
|
|
7
4
|
export declare class Text extends Shape {
|
|
8
5
|
text: string;
|
|
9
6
|
width: number;
|
|
10
7
|
height: number;
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
constructor(options: {
|
|
9
|
+
text: string;
|
|
10
|
+
} & TShapeOptions);
|
|
11
|
+
frameUpdate(): void;
|
|
13
12
|
getBoundingClientRect(): null;
|
|
14
13
|
toSVGPathData(): TSVGParsedPathData[];
|
|
15
|
-
toCanvasContext(ctx:
|
|
14
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
16
15
|
}
|
|
17
16
|
export default Text;
|
|
18
17
|
//# sourceMappingURL=Text.d.ts.map
|
package/types/math/Text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/math/Text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/math/Text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,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;IAwCnB,WAAW,IAAI,IAAI;IAInB,qBAAqB;IAIrB,aAAa,IAAI,kBAAkB,EAAE;IAIrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAGrC;AAED,eAAe,IAAI,CAAC"}
|
package/types/math/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export * from "./Matrix";
|
|
2
|
-
export * from "./Vector";
|
|
3
2
|
export * from "./math";
|
|
4
3
|
export * from "./Shape";
|
|
5
4
|
export * from "./ShapeGroup";
|
|
5
|
+
export * from "./RenderGroup";
|
|
6
6
|
export * from "./PathDGroup";
|
|
7
7
|
export * from "./Point";
|
|
8
8
|
export * from "./Ellipse";
|
|
9
9
|
export * from "./Points";
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
10
|
+
export * from "./Point3D";
|
|
11
|
+
export * from "./Point3Ds";
|
|
12
12
|
export * from "./Rect";
|
|
13
13
|
export * from "./Line";
|
|
14
14
|
export * from "./Arc";
|
|
15
15
|
export * from "./QuadraticBezier";
|
|
16
16
|
export * from "./CubicBezier";
|
|
17
17
|
export * from "./PathD";
|
|
18
|
-
export * from "./Sector";
|
|
19
18
|
export * from "./Text";
|
|
20
19
|
export * from "./shapes/";
|
|
20
|
+
export * from "./ComboConfetti";
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/math/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/math/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AAEzB,cAAc,QAAQ,CAAC;AAEvB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAE7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AAEzB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAE3B,cAAc,QAAQ,CAAC;AAEvB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AAExB,cAAc,QAAQ,CAAC;AAEvB,cAAc,WAAW,CAAC;AAE1B,cAAc,iBAAiB,CAAC"}
|
package/types/math/math.d.ts
CHANGED
|
@@ -2,10 +2,11 @@ export declare function toRadian(degree: number): number;
|
|
|
2
2
|
export declare function toDegree(radian: number): number;
|
|
3
3
|
export declare function length(x: number, y: number, z?: number): number;
|
|
4
4
|
export declare function distance(x1: number, y1: number, x2: number, y2: number): number;
|
|
5
|
+
export declare function distance2(x1: number, y1: number, x2: number, y2: number): number;
|
|
5
6
|
export declare function angle(startX: number, startY: number, endX: number, endY: number): number;
|
|
6
|
-
export declare function
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
export declare function polar(radian: number, length: number): {
|
|
8
|
+
dx: number;
|
|
9
|
+
dy: number;
|
|
9
10
|
};
|
|
10
11
|
export declare function normalizePoint(x: number, y: number): {
|
|
11
12
|
x: number;
|
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":"AAGA,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,GAAE,MAAU,UAEzD;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,UAItE;
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../src/math/math.ts"],"names":[],"mappings":"AAGA,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,GAAE,MAAU,UAEzD;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,UAItE;AACD,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,UAIvE;AAgCD,wBAAgB,KAAK,CACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,GACX,MAAM,CAQR;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;EAKnD;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;;;EAMlD;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,CAyBzC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YZCanvasContext } from "../../canvas";
|
|
2
2
|
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
3
|
import { Shape, TShapeOptions } from "../Shape";
|
|
4
4
|
export declare class Arrow extends Shape {
|
|
5
5
|
constructor(options?: TShapeOptions);
|
|
6
6
|
toSVGPathData(): TSVGParsedPathData[];
|
|
7
|
-
toCanvasContext(ctx:
|
|
7
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
8
8
|
}
|
|
9
9
|
export default Arrow;
|
|
10
10
|
//# sourceMappingURL=Arrow.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { YZCanvasContext } from "../../canvas";
|
|
2
2
|
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
3
|
import { Shape, TShapeOptions } from "../Shape";
|
|
4
4
|
export declare class Fox extends Shape {
|
|
5
5
|
constructor(options?: TShapeOptions);
|
|
6
6
|
toSVGPathData(): TSVGParsedPathData[];
|
|
7
|
-
toCanvasContext(ctx:
|
|
7
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
8
8
|
}
|
|
9
9
|
export default Fox;
|
|
10
10
|
//# sourceMappingURL=Fox.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
3
|
+
import { YZCanvasContext } from "../../canvas";
|
|
4
|
+
export type TRingOptions = {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
radius: number;
|
|
8
|
+
startDegree: number;
|
|
9
|
+
endDegree: number;
|
|
10
|
+
lineWidth: number;
|
|
11
|
+
color?: string;
|
|
12
|
+
colorGradient?: CanvasGradient;
|
|
13
|
+
} & TShapeOptions;
|
|
14
|
+
export declare class Ring extends Shape {
|
|
15
|
+
constructor(options: TRingOptions);
|
|
16
|
+
update(options: TRingOptions): void;
|
|
17
|
+
frameUpdate(): void;
|
|
18
|
+
toSVGPathData(): TSVGParsedPathData[];
|
|
19
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
20
|
+
}
|
|
21
|
+
export default Ring;
|
|
22
|
+
//# sourceMappingURL=Ring.d.ts.map
|
|
@@ -0,0 +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;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,cAAc,CAAC;CAChC,GAAG,aAAa,CAAC;AAElB,qBAAa,IAAK,SAAQ,KAAK;gBACjB,OAAO,EAAE,YAAY;IAKjC,MAAM,CAAC,OAAO,EAAE,YAAY;IAc5B,WAAW,IAAI,IAAI;IAEnB,aAAa,IAAI,kBAAkB,EAAE;IAuBrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAiBrC;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Shape, TShapeOptions } from "
|
|
2
|
-
import { ShapeGroup } from "
|
|
3
|
-
import { Point } from "
|
|
4
|
-
import { TSVGParsedPathData } from "
|
|
5
|
-
import {
|
|
1
|
+
import { Shape, TShapeOptions } from "../Shape";
|
|
2
|
+
import { ShapeGroup } from "../ShapeGroup";
|
|
3
|
+
import { Point } from "../Point";
|
|
4
|
+
import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
|
|
5
|
+
import { YZCanvasContext } from "../../canvas";
|
|
6
6
|
export type TSectorOptions = {
|
|
7
7
|
radius: number;
|
|
8
8
|
expandRaidus?: number;
|
|
@@ -10,6 +10,7 @@ export type TSectorOptions = {
|
|
|
10
10
|
endDegree: number;
|
|
11
11
|
text?: string;
|
|
12
12
|
defaultShowText?: boolean;
|
|
13
|
+
tip?: string;
|
|
13
14
|
} & TShapeOptions;
|
|
14
15
|
export declare class Sector extends ShapeGroup {
|
|
15
16
|
radius: number;
|
|
@@ -18,6 +19,7 @@ export declare class Sector extends ShapeGroup {
|
|
|
18
19
|
endDegree: number;
|
|
19
20
|
text: string;
|
|
20
21
|
defaultShowText: boolean;
|
|
22
|
+
tip: string;
|
|
21
23
|
p1: Point;
|
|
22
24
|
p1Offset: number;
|
|
23
25
|
p2: Point;
|
|
@@ -29,7 +31,6 @@ export declare class Sector extends ShapeGroup {
|
|
|
29
31
|
direction: number;
|
|
30
32
|
constructor(options: TSectorOptions);
|
|
31
33
|
frameUpdate(): void;
|
|
32
|
-
update(): void;
|
|
33
34
|
}
|
|
34
35
|
export declare class SectorArc extends Shape {
|
|
35
36
|
radius: number;
|
|
@@ -47,7 +48,7 @@ export declare class SectorArc extends Shape {
|
|
|
47
48
|
expand(toRadius: number): void;
|
|
48
49
|
shrink(toRadius: number): void;
|
|
49
50
|
toSVGPathData(): TSVGParsedPathData[];
|
|
50
|
-
toCanvasContext(ctx:
|
|
51
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
51
52
|
containPoint(x: number, y: number): boolean;
|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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,GAAG,EAAE,MAAM,CAAC;IAKZ,MAAM,EAAE,MAAM,CAAC;gBAEV,OAAO,EAAE,cAAc;IAcnC,WAAW,IAAI,IAAI;IAiBnB,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;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TShapeOptions } from "../Shape";
|
|
2
|
+
import { PathDGroup } from "../PathDGroup";
|
|
3
|
+
export declare class Segment extends PathDGroup {
|
|
4
|
+
constructor(options: TShapeOptions & {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
});
|
|
8
|
+
frameUpdate(): void;
|
|
9
|
+
getPin(): {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export default Segment;
|
|
15
|
+
//# sourceMappingURL=Segment.d.ts.map
|
|
@@ -0,0 +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,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,qBAAa,OAAQ,SAAQ,UAAU;gBACzB,OAAO,EAAE,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAwCtE,WAAW,IAAI,IAAI;IAInB,MAAM;;;;CAMP;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TShapeOptions } from "../Shape";
|
|
2
|
+
import { ShapeGroup } from "../ShapeGroup";
|
|
3
|
+
export type TShipOptions = {
|
|
4
|
+
showFlame?: boolean;
|
|
5
|
+
} & TShapeOptions;
|
|
6
|
+
export declare class Ship extends ShapeGroup {
|
|
7
|
+
showFlame: boolean;
|
|
8
|
+
constructor(options: TShipOptions);
|
|
9
|
+
frameUpdate(): void;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=Ship.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ship.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Ship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,aAAa,CAAC;AAElB,qBAAa,IAAK,SAAQ,UAAU;IAC3B,SAAS,EAAE,OAAO,CAAC;gBAEd,OAAO,EAAE,YAAY;IAgCjC,WAAW,IAAI,IAAI;CAGpB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TShapeOptions } from "../Shape";
|
|
2
|
+
import { ShapeGroup } from "../ShapeGroup";
|
|
3
|
+
export declare class Slider extends ShapeGroup {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
step: number;
|
|
7
|
+
value: number;
|
|
8
|
+
percent: number;
|
|
9
|
+
barWidth: number;
|
|
10
|
+
barHeight: number;
|
|
11
|
+
barColor: string;
|
|
12
|
+
handleSize: number;
|
|
13
|
+
handleColor: string;
|
|
14
|
+
realBarWidth: number;
|
|
15
|
+
constructor(options?: TShapeOptions & {
|
|
16
|
+
min?: number;
|
|
17
|
+
max?: number;
|
|
18
|
+
step?: number;
|
|
19
|
+
defaultValue?: number;
|
|
20
|
+
barWidth?: number;
|
|
21
|
+
barHeight?: number;
|
|
22
|
+
barColor?: string;
|
|
23
|
+
handleSize?: number;
|
|
24
|
+
handleColor?: string;
|
|
25
|
+
});
|
|
26
|
+
frameUpdate(): void;
|
|
27
|
+
}
|
|
28
|
+
export default Slider;
|
|
29
|
+
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -0,0 +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,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,qBAAa,MAAO,SAAQ,UAAU;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAEhB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;gBAGnB,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,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IA+DH,WAAW,IAAI,IAAI;CAmBpB;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -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;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Star.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Star.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,qBAAa,IAAK,SAAQ,KAAK;gBAE3B,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,CAAC,CAAC,EAAE,MAAM,CAAC;KACZ;CAcJ;AAED,eAAe,IAAI,CAAC"}
|