@zyzgroup/core-web 0.1.52 → 0.1.54
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/zyzgroup_core_web.iife.js +19 -20
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +16639 -14264
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +19 -20
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/canvas/YZCanvas.d.ts +0 -23
- package/types/canvas/YZCanvas.d.ts.map +1 -1
- package/types/canvas/index.d.ts +0 -1
- package/types/canvas/index.d.ts.map +1 -1
- package/types/hooks/index.d.ts +20 -40
- package/types/hooks/index.d.ts.map +1 -1
- package/types/hooks/useActionChannel.d.ts +18 -0
- package/types/hooks/useActionChannel.d.ts.map +1 -0
- package/types/hooks/useAttribute.d.ts +2 -0
- package/types/hooks/useAttribute.d.ts.map +1 -1
- package/types/hooks/useCoords.d.ts +1 -1
- package/types/hooks/useCoords.d.ts.map +1 -1
- package/types/hooks/useDraw/Shape.d.ts +313 -0
- package/types/hooks/useDraw/Shape.d.ts.map +1 -0
- package/types/hooks/useDraw/canvas/CustomCanvasContext.d.ts +102 -0
- package/types/hooks/useDraw/canvas/CustomCanvasContext.d.ts.map +1 -0
- package/types/hooks/useDraw/canvas/YZCanvasContext.d.ts +84 -0
- package/types/hooks/useDraw/canvas/YZCanvasContext.d.ts.map +1 -0
- package/types/hooks/useDraw/canvas/index.d.ts +3 -0
- package/types/hooks/useDraw/canvas/index.d.ts.map +1 -0
- package/types/hooks/useDraw/index.d.ts +4 -0
- package/types/hooks/useDraw/index.d.ts.map +1 -0
- package/types/hooks/useDraw/line/Arc.d.ts +25 -0
- package/types/hooks/useDraw/line/Arc.d.ts.map +1 -0
- package/types/hooks/useDraw/line/CubicBezier.d.ts +62 -0
- package/types/hooks/useDraw/line/CubicBezier.d.ts.map +1 -0
- package/types/hooks/useDraw/line/L.d.ts +33 -0
- package/types/hooks/useDraw/line/L.d.ts.map +1 -0
- package/types/hooks/useDraw/line/PathD.d.ts +66 -0
- package/types/hooks/useDraw/line/PathD.d.ts.map +1 -0
- package/types/hooks/useDraw/line/QuadraticBezier.d.ts +30 -0
- package/types/hooks/useDraw/line/QuadraticBezier.d.ts.map +1 -0
- package/types/hooks/useDraw/line/index.d.ts +6 -0
- package/types/hooks/useDraw/line/index.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/ArrowShape.d.ts +11 -0
- package/types/hooks/useDraw/shapes/ArrowShape.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/BallShape.d.ts +86 -0
- package/types/hooks/useDraw/shapes/BallShape.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/CrossShape.d.ts +7 -0
- package/types/hooks/useDraw/shapes/CrossShape.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/FoxShape.d.ts +11 -0
- package/types/hooks/useDraw/shapes/FoxShape.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/HeartShape.d.ts +15 -0
- package/types/hooks/useDraw/shapes/HeartShape.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/HeartVariantShape.d.ts +15 -0
- package/types/hooks/useDraw/shapes/HeartVariantShape.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/LineShape.d.ts +27 -0
- package/types/hooks/useDraw/shapes/LineShape.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/RabbitShape.d.ts +9 -0
- package/types/hooks/useDraw/shapes/RabbitShape.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/RectShape.d.ts +31 -0
- package/types/hooks/useDraw/shapes/RectShape.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/SegmentShapeCombo.d.ts +23 -0
- package/types/hooks/useDraw/shapes/SegmentShapeCombo.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/ShipShapeCombo.d.ts +12 -0
- package/types/hooks/useDraw/shapes/ShipShapeCombo.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/SliderShapeCombo.d.ts +21 -0
- package/types/hooks/useDraw/shapes/SliderShapeCombo.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/StarShape.d.ts +13 -0
- package/types/hooks/useDraw/shapes/StarShape.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/TreeShapeCombo.d.ts +7 -0
- package/types/hooks/useDraw/shapes/TreeShapeCombo.d.ts.map +1 -0
- package/types/hooks/useDraw/shapes/index.d.ts +15 -0
- package/types/hooks/useDraw/shapes/index.d.ts.map +1 -0
- package/types/hooks/useDraw/svg/SVGParse.d.ts +16 -0
- package/types/hooks/useDraw/svg/SVGParse.d.ts.map +1 -0
- package/types/hooks/useDraw/svg/SVGUtil.d.ts +17 -0
- package/types/hooks/useDraw/svg/SVGUtil.d.ts.map +1 -0
- package/types/hooks/useDraw/svg/index.d.ts +4 -0
- package/types/hooks/useDraw/svg/index.d.ts.map +1 -0
- package/types/hooks/useDraw/svg/line2c.d.ts +5 -0
- package/types/hooks/useDraw/svg/line2c.d.ts.map +1 -0
- package/types/hooks/useDraw/useDraw.d.ts +19 -0
- package/types/hooks/useDraw/useDraw.d.ts.map +1 -0
- package/types/hooks/useElement.d.ts +79 -38
- package/types/hooks/useElement.d.ts.map +1 -1
- package/types/hooks/useElementEventBus.d.ts +21 -1
- package/types/hooks/useElementEventBus.d.ts.map +1 -1
- package/types/hooks/useElementEvents.d.ts +226 -0
- package/types/hooks/useElementEvents.d.ts.map +1 -0
- package/types/hooks/useEventListener.d.ts +9 -4
- package/types/hooks/useEventListener.d.ts.map +1 -1
- package/types/hooks/useIntersection.d.ts +2 -0
- package/types/hooks/useIntersection.d.ts.map +1 -1
- package/types/hooks/useMatchMedia.d.ts +3 -0
- package/types/hooks/useMatchMedia.d.ts.map +1 -0
- package/types/hooks/useMessageChannel.d.ts +17 -0
- package/types/hooks/useMessageChannel.d.ts.map +1 -0
- package/types/hooks/useResize.d.ts.map +1 -1
- package/types/hooks/useStyle.d.ts +1 -1
- package/types/hooks/useStyle.d.ts.map +1 -1
- package/types/hooks/useTheme.d.ts +4 -3
- package/types/hooks/useTheme.d.ts.map +1 -1
- package/types/hooks/useVisible.d.ts +5 -9
- package/types/hooks/useVisible.d.ts.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/math/BufferAttribute.d.ts +0 -15
- package/types/math/BufferAttribute.d.ts.map +1 -1
- package/types/math/index.d.ts +0 -4
- package/types/math/index.d.ts.map +1 -1
- package/types/math/line/PathD.d.ts.map +1 -1
- package/types/math/math.d.ts +0 -1
- package/types/math/math.d.ts.map +1 -1
- package/types/svg/YZSVG.d.ts +0 -34
- package/types/svg/YZSVG.d.ts.map +1 -1
- package/types/svg/index.d.ts +0 -1
- package/types/svg/index.d.ts.map +1 -1
- package/types/hooks/onDocumentReady.d.ts +0 -3
- package/types/hooks/onDocumentReady.d.ts.map +0 -1
- package/types/hooks/useClass.d.ts +0 -6
- package/types/hooks/useClass.d.ts.map +0 -1
- package/types/hooks/useClickA.d.ts +0 -2
- package/types/hooks/useClickA.d.ts.map +0 -1
- package/types/hooks/useClipboard.d.ts +0 -2
- package/types/hooks/useClipboard.d.ts.map +0 -1
- package/types/hooks/useDisplay.d.ts +0 -5
- package/types/hooks/useDisplay.d.ts.map +0 -1
- package/types/hooks/useDragDrop.d.ts +0 -12
- package/types/hooks/useDragDrop.d.ts.map +0 -1
- package/types/hooks/useFireEvent.d.ts +0 -7
- package/types/hooks/useFireEvent.d.ts.map +0 -1
- package/types/hooks/useHotKey.d.ts +0 -33
- package/types/hooks/useHotKey.d.ts.map +0 -1
- package/types/hooks/useHotKeyFile.d.ts +0 -8
- package/types/hooks/useHotKeyFile.d.ts.map +0 -1
- package/types/hooks/useIframe.d.ts +0 -2
- package/types/hooks/useIframe.d.ts.map +0 -1
- package/types/hooks/useLoadImage.d.ts +0 -9
- package/types/hooks/useLoadImage.d.ts.map +0 -1
- package/types/hooks/useLoadLink.d.ts +0 -3
- package/types/hooks/useLoadLink.d.ts.map +0 -1
- package/types/hooks/useLoadScript.d.ts +0 -2
- package/types/hooks/useLoadScript.d.ts.map +0 -1
- package/types/hooks/useMedia.d.ts +0 -4
- package/types/hooks/useMedia.d.ts.map +0 -1
- package/types/hooks/useMouse.d.ts +0 -32
- package/types/hooks/useMouse.d.ts.map +0 -1
- package/types/hooks/useObjectURL.d.ts +0 -3
- package/types/hooks/useObjectURL.d.ts.map +0 -1
- package/types/hooks/usePressDownMove.d.ts +0 -13
- package/types/hooks/usePressDownMove.d.ts.map +0 -1
- package/types/hooks/usePull.d.ts +0 -4
- package/types/hooks/usePull.d.ts.map +0 -1
- package/types/hooks/useRunInSandbox.d.ts +0 -2
- package/types/hooks/useRunInSandbox.d.ts.map +0 -1
- package/types/hooks/useScroll.d.ts +0 -4
- package/types/hooks/useScroll.d.ts.map +0 -1
- package/types/hooks/useSelectFile.d.ts +0 -18
- package/types/hooks/useSelectFile.d.ts.map +0 -1
- package/types/hooks/useVibrate.d.ts +0 -2
- package/types/hooks/useVibrate.d.ts.map +0 -1
- package/types/hooks/useWindow.d.ts +0 -5
- package/types/hooks/useWindow.d.ts.map +0 -1
- package/types/position.d.ts +0 -65
- package/types/position.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,24 +1 @@
|
|
|
1
|
-
import YZCanvasContext from "./YZCanvasContext";
|
|
2
|
-
import { Shape } from "../math";
|
|
3
|
-
import { ElementEventBusController } from "../hooks";
|
|
4
|
-
export declare class YZCanvas {
|
|
5
|
-
controller: ElementEventBusController;
|
|
6
|
-
ctx: YZCanvasContext;
|
|
7
|
-
shapes: Shape[];
|
|
8
|
-
currentMouseInShape?: Shape;
|
|
9
|
-
currentEnableDragMouseInShape?: Shape;
|
|
10
|
-
dragDx: number;
|
|
11
|
-
dragDy: number;
|
|
12
|
-
constructor(controller: ElementEventBusController, enableCustomContext?: boolean);
|
|
13
|
-
setCursor(): void;
|
|
14
|
-
transformCtxBaseOnShape(shape: Shape): void;
|
|
15
|
-
_addDrawShape(shape: Shape): void;
|
|
16
|
-
draw(shapes?: Shape | Shape[]): void;
|
|
17
|
-
drawMouseMoveLine(type?: "line" | "brush", options?: {
|
|
18
|
-
brushSize?: number;
|
|
19
|
-
brushDensity?: number;
|
|
20
|
-
brushColor?: string;
|
|
21
|
-
}): void;
|
|
22
|
-
}
|
|
23
|
-
export default YZCanvas;
|
|
24
1
|
//# sourceMappingURL=YZCanvas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YZCanvas.d.ts","sourceRoot":"","sources":["../../src/canvas/YZCanvas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"YZCanvas.d.ts","sourceRoot":"","sources":["../../src/canvas/YZCanvas.ts"],"names":[],"mappings":""}
|
package/types/canvas/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/canvas/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/canvas/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
package/types/hooks/index.d.ts
CHANGED
|
@@ -1,47 +1,27 @@
|
|
|
1
|
-
export * from "./useTimestampValue";
|
|
2
|
-
export * from "./useCookie";
|
|
3
|
-
export * from "./useLocalStorage";
|
|
4
|
-
export * from "./useSessionStorage";
|
|
5
|
-
export * from "./useIndexDB";
|
|
6
|
-
export * from "./useEventListener";
|
|
7
|
-
export * from "./useFireEvent";
|
|
8
|
-
export * from "./useDragDrop";
|
|
9
|
-
export * from "./useMouse";
|
|
10
1
|
export * from "./useElementEventBus";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./useWindow";
|
|
17
|
-
export * from "./onDocumentReady";
|
|
18
|
-
export * from "./useFeRouteChange";
|
|
19
|
-
export * from "./useSafeArea";
|
|
20
|
-
export * from "./useScroll";
|
|
21
|
-
export * from "./useVisible";
|
|
22
|
-
export * from "./useResize";
|
|
2
|
+
export * from "./useElement";
|
|
3
|
+
export * from "./useElementEvents";
|
|
4
|
+
export * from "./useActionChannel";
|
|
5
|
+
export * from "./useDraw";
|
|
6
|
+
export * from "./useEventListener";
|
|
23
7
|
export * from "./useMutation";
|
|
24
8
|
export * from "./useIntersection";
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./
|
|
28
|
-
export * from "./
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./
|
|
31
|
-
export * from "./useLoadImage";
|
|
32
|
-
export * from "./useClickA";
|
|
33
|
-
export * from "./useFetch";
|
|
34
|
-
export * from "./useVnode";
|
|
35
|
-
export * from "./useAttribute";
|
|
9
|
+
export * from "./useResize";
|
|
10
|
+
export * from "./useVisible";
|
|
11
|
+
export * from "./useSafeArea";
|
|
12
|
+
export * from "./useCoords";
|
|
13
|
+
export * from "./useMatchMedia";
|
|
14
|
+
export * from "./useFeRouteChange";
|
|
36
15
|
export * from "./useDataset";
|
|
16
|
+
export * from "./useAttribute";
|
|
37
17
|
export * from "./useStyle";
|
|
38
|
-
export * from "./
|
|
39
|
-
export * from "./
|
|
40
|
-
export * from "./
|
|
41
|
-
export * from "./
|
|
42
|
-
export * from "./
|
|
43
|
-
export * from "./
|
|
44
|
-
export * from "./
|
|
45
|
-
export * from "./
|
|
18
|
+
export * from "./useTheme";
|
|
19
|
+
export * from "./useTimestampValue";
|
|
20
|
+
export * from "./useLocalStorage";
|
|
21
|
+
export * from "./useSessionStorage";
|
|
22
|
+
export * from "./useCookie";
|
|
23
|
+
export * from "./useIndexDB";
|
|
24
|
+
export * from "./useVnode";
|
|
25
|
+
export * from "./useFetch";
|
|
46
26
|
export * from "./useLocale/useLocale";
|
|
47
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AAErC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAE1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAE5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAE3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAE7B,cAAc,YAAY,CAAC;AAE3B,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Action, Queue } from "@zyzgroup/core-common";
|
|
2
|
+
type Handler = (action: Action) => void;
|
|
3
|
+
export declare class ActionChannel {
|
|
4
|
+
closed: boolean;
|
|
5
|
+
multicast: boolean;
|
|
6
|
+
buffer: Queue<Action>;
|
|
7
|
+
handlers: Queue<Handler>;
|
|
8
|
+
constructor(options?: {
|
|
9
|
+
buffer?: Queue<Action>;
|
|
10
|
+
multicast?: boolean;
|
|
11
|
+
});
|
|
12
|
+
put(action: Action): void;
|
|
13
|
+
take(handler: Handler): void;
|
|
14
|
+
flush(handler: Handler): void;
|
|
15
|
+
close(): void;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=useActionChannel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useActionChannel.d.ts","sourceRoot":"","sources":["../../src/hooks/useActionChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAA4B,MAAM,uBAAuB,CAAC;AAEhF,KAAK,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;AAExC,qBAAa,aAAa;IACxB,MAAM,UAAS;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAgC;gBAI5C,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE;IAM9D,GAAG,CAAC,MAAM,EAAE,MAAM;IAiBlB,IAAI,CAAC,OAAO,EAAE,OAAO;IAcrB,KAAK,CAAC,OAAO,EAAE,OAAO;IAMtB,KAAK;CAOb"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type AnyElement } from "@zyzgroup/core-common";
|
|
2
|
+
import { YZCanvasContext } from "./useDraw/canvas";
|
|
2
3
|
export declare function useAttribute(el: AnyElement, prop?: string | Record<string, string>, value?: string): string | Record<string, string | Record<string, string>> | null | undefined;
|
|
3
4
|
export declare const domPrefixes: string[];
|
|
4
5
|
export declare function atomReadAttributes(el: AnyElement): Record<string, string | Record<string, string>>;
|
|
5
6
|
export declare function atomReadAttribute(el: AnyElement, prop: string): string | Record<string, string> | null;
|
|
6
7
|
export declare function atomWriteAttribute(el: AnyElement, prop: string, value: string): void;
|
|
7
8
|
export declare function atomRemoveAttribute(el: AnyElement, attrs: string): void;
|
|
9
|
+
export declare function cssAttrsToCanvasAttrs(ctx: YZCanvasContext, attrs: Record<string, string | CanvasGradient>): void;
|
|
8
10
|
//# sourceMappingURL=useAttribute.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAttribute.d.ts","sourceRoot":"","sources":["../../src/hooks/useAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAW,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"useAttribute.d.ts","sourceRoot":"","sources":["../../src/hooks/useAttribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAW,MAAM,uBAAuB,CAAC;AAIjE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAKnD,wBAAgB,YAAY,CAC1B,EAAE,EAAE,UAAU,EACd,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,KAAK,CAAC,EAAE,MAAM,+EA2Bf;AAED,eAAO,MAAM,WAAW,UAA2C,CAAC;AAEpE,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,UAAU,mDAahD;AAED,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,0CAM7D;AAED,wBAAgB,kBAAkB,CAChC,EAAE,EAAE,UAAU,EACd,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,QAGd;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,QAOhE;AAGD,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,eAAe,EACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,QAsH/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCoords.d.ts","sourceRoot":"","sources":["../../src/hooks/useCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,wBAAgB,UAAU,CACxB,OAAO,GAAE,eAIR,GACA,UAAU,CAAC;IACZ,
|
|
1
|
+
{"version":3,"file":"useCoords.d.ts","sourceRoot":"","sources":["../../src/hooks/useCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,wBAAgB,UAAU,CACxB,OAAO,GAAE,eAIR,GACA,UAAU,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC,CA2CD"}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { Subject } from "rxjs";
|
|
2
|
+
import { PathD } from "./line";
|
|
3
|
+
import { SVGParsedPathData } from "./svg";
|
|
4
|
+
import { YZCanvasContext } from "./canvas";
|
|
5
|
+
import { TweenRawOptions } from "../../animate/Timeline";
|
|
6
|
+
export type ShapeBaseOptions = {
|
|
7
|
+
d?: string | SVGParsedPathData[] | PathD;
|
|
8
|
+
attrs?: Record<string, string | CanvasGradient>;
|
|
9
|
+
};
|
|
10
|
+
export type ShapeTransformOptions = {
|
|
11
|
+
centerX?: number;
|
|
12
|
+
centerY?: number;
|
|
13
|
+
x?: number;
|
|
14
|
+
y?: number;
|
|
15
|
+
degree?: number;
|
|
16
|
+
scale?: number;
|
|
17
|
+
scaleX?: number;
|
|
18
|
+
scaleY?: number;
|
|
19
|
+
};
|
|
20
|
+
export type ShapeAnimateOptions = {
|
|
21
|
+
vx?: number;
|
|
22
|
+
vy?: number;
|
|
23
|
+
ax?: number;
|
|
24
|
+
ay?: number;
|
|
25
|
+
mass?: number;
|
|
26
|
+
gravity?: number;
|
|
27
|
+
friction?: number;
|
|
28
|
+
easing?: number;
|
|
29
|
+
spring?: number;
|
|
30
|
+
springLength?: number;
|
|
31
|
+
};
|
|
32
|
+
export type ShapeDrawOptions = {
|
|
33
|
+
show?: boolean;
|
|
34
|
+
followMouse?: boolean;
|
|
35
|
+
drag?: {
|
|
36
|
+
enable?: boolean;
|
|
37
|
+
followSibling?: boolean;
|
|
38
|
+
alongPath?: PathD;
|
|
39
|
+
targetToAfterDrop?: {
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
|
+
};
|
|
43
|
+
easing?: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export type ShapeOptions = ShapeBaseOptions & ShapeTransformOptions & ShapeAnimateOptions & ShapeDrawOptions;
|
|
47
|
+
export declare class Shape {
|
|
48
|
+
id: string;
|
|
49
|
+
d?: string | SVGParsedPathData[] | PathD;
|
|
50
|
+
parent?: {
|
|
51
|
+
combo: ShapeCombo;
|
|
52
|
+
dx: number;
|
|
53
|
+
dy: number;
|
|
54
|
+
};
|
|
55
|
+
attrs: Record<string, string | CanvasGradient>;
|
|
56
|
+
private _centerX?;
|
|
57
|
+
private _centerY?;
|
|
58
|
+
private _x;
|
|
59
|
+
private _y;
|
|
60
|
+
private _degree;
|
|
61
|
+
private _scaleX;
|
|
62
|
+
private _scaleY;
|
|
63
|
+
vx: number;
|
|
64
|
+
vy: number;
|
|
65
|
+
ax: number;
|
|
66
|
+
ay: number;
|
|
67
|
+
mass: number;
|
|
68
|
+
show: boolean;
|
|
69
|
+
followMouse: boolean;
|
|
70
|
+
drag?: ShapeDrawOptions["drag"];
|
|
71
|
+
transform$: Subject<{
|
|
72
|
+
dx?: number;
|
|
73
|
+
dy?: number;
|
|
74
|
+
}>;
|
|
75
|
+
isMouseIn: boolean;
|
|
76
|
+
isDragging: boolean;
|
|
77
|
+
el?: HTMLElement | SVGElement;
|
|
78
|
+
constructor(options?: ShapeOptions);
|
|
79
|
+
destroy(): void;
|
|
80
|
+
moveTo(x: number, y: number): void;
|
|
81
|
+
move(dx: number, dy?: number): void;
|
|
82
|
+
moveXTo(x: number): void;
|
|
83
|
+
moveX(dx: number): void;
|
|
84
|
+
moveYTo(y: number): void;
|
|
85
|
+
moveY(dy: number): void;
|
|
86
|
+
get x(): number;
|
|
87
|
+
set x(v: number);
|
|
88
|
+
get y(): number;
|
|
89
|
+
set y(v: number);
|
|
90
|
+
rotateTo(degree: number): void;
|
|
91
|
+
rotate(degree: number): void;
|
|
92
|
+
get degree(): number;
|
|
93
|
+
set degree(v: number);
|
|
94
|
+
scaleTo(scaleX: number, scaleY?: number): void;
|
|
95
|
+
scale(scaleX: number, scaleY?: number): void;
|
|
96
|
+
get scaleX(): number;
|
|
97
|
+
set scaleX(v: number);
|
|
98
|
+
get scaleY(): number;
|
|
99
|
+
set scaleY(v: number);
|
|
100
|
+
pathD(): PathD;
|
|
101
|
+
forcePathD(p: PathD): void;
|
|
102
|
+
getBaseOptions(): {
|
|
103
|
+
d: string | SVGParsedPathData[] | PathD | undefined;
|
|
104
|
+
attrs: Record<string, string | CanvasGradient>;
|
|
105
|
+
centerX: number | undefined;
|
|
106
|
+
centerY: number | undefined;
|
|
107
|
+
x: number;
|
|
108
|
+
y: number;
|
|
109
|
+
degree: number;
|
|
110
|
+
scaleX: number;
|
|
111
|
+
scaleY: number;
|
|
112
|
+
vx: number;
|
|
113
|
+
vy: number;
|
|
114
|
+
ax: number;
|
|
115
|
+
ay: number;
|
|
116
|
+
mass: number;
|
|
117
|
+
followMouse: boolean;
|
|
118
|
+
drag: {
|
|
119
|
+
enable?: boolean;
|
|
120
|
+
followSibling?: boolean;
|
|
121
|
+
alongPath?: PathD;
|
|
122
|
+
targetToAfterDrop?: {
|
|
123
|
+
x: number;
|
|
124
|
+
y: number;
|
|
125
|
+
};
|
|
126
|
+
easing?: number;
|
|
127
|
+
} | undefined;
|
|
128
|
+
};
|
|
129
|
+
clone(): Shape;
|
|
130
|
+
protected cloneShape(): Shape;
|
|
131
|
+
toSVGPathData(): SVGParsedPathData[];
|
|
132
|
+
toSVGPathD(): string;
|
|
133
|
+
toCanvasContext(ctx: YZCanvasContext): void;
|
|
134
|
+
getBoundingClientRect(dot?: number): {
|
|
135
|
+
x: number;
|
|
136
|
+
y: number;
|
|
137
|
+
width: number;
|
|
138
|
+
height: number;
|
|
139
|
+
center: {
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
};
|
|
143
|
+
} | {
|
|
144
|
+
x: number;
|
|
145
|
+
y: number;
|
|
146
|
+
width: number;
|
|
147
|
+
height: number;
|
|
148
|
+
center?: undefined;
|
|
149
|
+
};
|
|
150
|
+
getBoundingClientRectCenter(dot?: number): {
|
|
151
|
+
x: number;
|
|
152
|
+
y: number;
|
|
153
|
+
};
|
|
154
|
+
transformOrigin(forceSelf?: boolean, dot?: number): {
|
|
155
|
+
x: number;
|
|
156
|
+
y: number;
|
|
157
|
+
};
|
|
158
|
+
isPointInPath(ctx: YZCanvasContext | SVGElement, x: number, y: number): boolean;
|
|
159
|
+
isPointInStroke(ctx: YZCanvasContext | SVGElement, x: number, y: number): boolean;
|
|
160
|
+
setAttr(obj: Record<string, string | CanvasGradient>): void;
|
|
161
|
+
setAttr(name: string, value: string | CanvasGradient): void;
|
|
162
|
+
getAttr(name: string, defaultValue: string | CanvasGradient): string | CanvasGradient;
|
|
163
|
+
getAttr(name: string): string | CanvasGradient | undefined;
|
|
164
|
+
hasAttr(name: string): boolean;
|
|
165
|
+
getAttrs(): Record<string, string | CanvasGradient>;
|
|
166
|
+
animate(options?: ShapeAnimateOptions): void;
|
|
167
|
+
animateEaseTo(target: {
|
|
168
|
+
x: number;
|
|
169
|
+
y: number;
|
|
170
|
+
}, options?: ShapeAnimateOptions): void;
|
|
171
|
+
animateSpringTo(target: {
|
|
172
|
+
x: number;
|
|
173
|
+
y: number;
|
|
174
|
+
} | {
|
|
175
|
+
x: number;
|
|
176
|
+
y: number;
|
|
177
|
+
}[], options?: ShapeAnimateOptions): void;
|
|
178
|
+
animateSpringMassTo(target: Shape, options?: {
|
|
179
|
+
springLength?: number;
|
|
180
|
+
spring?: number;
|
|
181
|
+
}): number;
|
|
182
|
+
distance(target: {
|
|
183
|
+
x: number;
|
|
184
|
+
y: number;
|
|
185
|
+
}): number;
|
|
186
|
+
rotateToTarget(target: {
|
|
187
|
+
x: number;
|
|
188
|
+
y: number;
|
|
189
|
+
}): void;
|
|
190
|
+
followTo(target: {
|
|
191
|
+
x: number;
|
|
192
|
+
y: number;
|
|
193
|
+
}, length?: number): void;
|
|
194
|
+
followAccelerationTo(target: {
|
|
195
|
+
x: number;
|
|
196
|
+
y: number;
|
|
197
|
+
}, length?: number): void;
|
|
198
|
+
gravitateTo(target: Shape): void;
|
|
199
|
+
checkCollision(target: Shape): void;
|
|
200
|
+
checkWall(options: {
|
|
201
|
+
wall: {
|
|
202
|
+
x: number;
|
|
203
|
+
y: number;
|
|
204
|
+
width: number;
|
|
205
|
+
height: number;
|
|
206
|
+
};
|
|
207
|
+
bounce?: number;
|
|
208
|
+
}): void;
|
|
209
|
+
getTotalLength(): number;
|
|
210
|
+
interpolate(t: number): {
|
|
211
|
+
x: number;
|
|
212
|
+
y: number;
|
|
213
|
+
};
|
|
214
|
+
getPointAtLength(length: number): {
|
|
215
|
+
x: number;
|
|
216
|
+
y: number;
|
|
217
|
+
alpha: number;
|
|
218
|
+
};
|
|
219
|
+
trailPath(t?: number): {
|
|
220
|
+
subPathD: PathD;
|
|
221
|
+
point: {
|
|
222
|
+
x: number;
|
|
223
|
+
y: number;
|
|
224
|
+
alpha: number;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
strokeDashTween(frameDuration?: number, options?: TweenRawOptions): void;
|
|
228
|
+
}
|
|
229
|
+
export type ShapeComboOptions = {
|
|
230
|
+
svg?: string;
|
|
231
|
+
forceWidth?: number;
|
|
232
|
+
};
|
|
233
|
+
export declare class ShapeCombo {
|
|
234
|
+
protected options?: ShapeComboOptions;
|
|
235
|
+
protected commonChildShapeOptions?: ShapeOptions;
|
|
236
|
+
shapes: Shape[];
|
|
237
|
+
x: number;
|
|
238
|
+
y: number;
|
|
239
|
+
degree: number;
|
|
240
|
+
scaleX: number;
|
|
241
|
+
scaleY: number;
|
|
242
|
+
constructor(options?: ShapeComboOptions, commonChildShapeOptions?: ShapeOptions);
|
|
243
|
+
destroy(): void;
|
|
244
|
+
clone(): ShapeCombo;
|
|
245
|
+
protected cloneShapeCombo(): ShapeCombo;
|
|
246
|
+
addShape(shape: Shape, dx?: number, dy?: number): void;
|
|
247
|
+
comboMove(dx: number, dy: number): void;
|
|
248
|
+
comboRotate(degree: number): void;
|
|
249
|
+
comboScale(scaleX: number, scaleY?: number): void;
|
|
250
|
+
comboTransform(options?: {
|
|
251
|
+
x?: number;
|
|
252
|
+
y?: number;
|
|
253
|
+
degree?: number;
|
|
254
|
+
scale?: number;
|
|
255
|
+
scaleX?: number;
|
|
256
|
+
scaleY?: number;
|
|
257
|
+
}): void;
|
|
258
|
+
getBoundingClientRect(dot?: number): {
|
|
259
|
+
x: number;
|
|
260
|
+
y: number;
|
|
261
|
+
width: number;
|
|
262
|
+
height: number;
|
|
263
|
+
center: {
|
|
264
|
+
x: number;
|
|
265
|
+
y: number;
|
|
266
|
+
};
|
|
267
|
+
} | {
|
|
268
|
+
x: number;
|
|
269
|
+
y: number;
|
|
270
|
+
width: number;
|
|
271
|
+
height: number;
|
|
272
|
+
center?: undefined;
|
|
273
|
+
};
|
|
274
|
+
getBoundingClientRectCenter(dot?: number): {
|
|
275
|
+
x: number;
|
|
276
|
+
y: number;
|
|
277
|
+
};
|
|
278
|
+
setAttr(obj: Record<string, string | CanvasGradient>): void;
|
|
279
|
+
setAttr(name: string, value: string | CanvasGradient): void;
|
|
280
|
+
sort(): void;
|
|
281
|
+
expendTo(larger: ShapeCombo): void;
|
|
282
|
+
strokeDashTween(frameDuration?: number, options?: Omit<TweenRawOptions, "onStart" | "onUpdate" | "onComplete"> & {
|
|
283
|
+
type?: "parallel" | "sequence";
|
|
284
|
+
onGroupStart?: () => void;
|
|
285
|
+
onGroupUpdate?: () => void;
|
|
286
|
+
onGroupComplete?: () => void;
|
|
287
|
+
}): void;
|
|
288
|
+
}
|
|
289
|
+
export declare function animateShapes(shapes: Shape[], options?: {
|
|
290
|
+
wall?: {
|
|
291
|
+
x: number;
|
|
292
|
+
y: number;
|
|
293
|
+
width: number;
|
|
294
|
+
height: number;
|
|
295
|
+
};
|
|
296
|
+
bounce?: number;
|
|
297
|
+
}): void;
|
|
298
|
+
export declare function gravitateShapes(shapes: Shape[]): void;
|
|
299
|
+
export declare function animateSpringChainShapes(shapes: Shape[], options?: ShapeAnimateOptions): void;
|
|
300
|
+
export declare function animateSpringConnectShapes(shapes: Shape[], options?: ShapeAnimateOptions): void;
|
|
301
|
+
export declare function animateSpringMassShapes(shapes: Shape[], wall: {
|
|
302
|
+
x: number;
|
|
303
|
+
y: number;
|
|
304
|
+
width: number;
|
|
305
|
+
height: number;
|
|
306
|
+
}, options?: ShapeAnimateOptions): number[][];
|
|
307
|
+
export declare function getPolymorphShapesInterpolator(shapes: Shape[]): (offset: number) => Shape;
|
|
308
|
+
export declare function getPolymorphShapeCombosInterpolator(shapeCombos: (Shape | ShapeCombo)[]): (offset: number) => ShapeCombo;
|
|
309
|
+
export declare function polymorphShapesTween(shapes: (Shape | ShapeCombo)[], frameDuration?: number, options?: TweenRawOptions & {
|
|
310
|
+
shape?: (shape: Shape) => void;
|
|
311
|
+
}): void;
|
|
312
|
+
export declare function generateRosettaShape(x: number, y: number, rx: number, ry: number, n: number): Shape;
|
|
313
|
+
//# sourceMappingURL=Shape.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Shape.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDraw/Shape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAO/B,OAAO,EAAU,KAAK,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAEL,iBAAiB,EAIlB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,eAAe,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AI,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAC7D,OAAO,CAAC,EAAE,mBAAmB,GAC5B,MAAM,EAAE,EAAE,CA0BZ;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAC/D,MAAM,EAAE,MAAM,KACX,KAAK,CA0CT;AAED,wBAAgB,mCAAmC,CACjD,WAAW,EAAE,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE,GAClC,CAAC,MAAM,EAAE,MAAM,KAAK,UAAU,CA6ChC;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE,EAC9B,aAAa,SAAO,EACpB,OAAO,CAAC,EAAE,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,QA2B/D;AAED,wBAAgB,oBAAoB,CAClC,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,CAAC,EAAE,MAAM,GACR,KAAK,CAyCP"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
declare const STYLES: Record<string, {
|
|
2
|
+
svgAttr?: string;
|
|
3
|
+
canvas?: string | number | string[] | number[];
|
|
4
|
+
svg?: string | number | null;
|
|
5
|
+
apply?: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare class CustomCanvasGradient {
|
|
8
|
+
__root: SVGElement;
|
|
9
|
+
__ctx: CustomCanvasContext;
|
|
10
|
+
constructor(gradientNode: SVGElement, ctx: CustomCanvasContext);
|
|
11
|
+
addColorStop(offset: number, color: string): void;
|
|
12
|
+
}
|
|
13
|
+
export declare class CustomCanvasPattern {
|
|
14
|
+
__root: SVGElement;
|
|
15
|
+
__ctx: CustomCanvasContext;
|
|
16
|
+
constructor(pattern: SVGElement, ctx: CustomCanvasContext);
|
|
17
|
+
}
|
|
18
|
+
export declare class CustomCanvasContext {
|
|
19
|
+
[index: keyof typeof STYLES]: any;
|
|
20
|
+
__document: Document;
|
|
21
|
+
__canvas: HTMLCanvasElement;
|
|
22
|
+
__ctx: CanvasRenderingContext2D;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
__styleStack: Record<string, any>[];
|
|
26
|
+
__groupStack: SVGElement[];
|
|
27
|
+
__rootSVG: SVGElement;
|
|
28
|
+
__ids: Record<string, string>;
|
|
29
|
+
__SVGdefs: SVGDefsElement;
|
|
30
|
+
__currentElement: SVGElement;
|
|
31
|
+
__currentElementsToStyle: {
|
|
32
|
+
element: SVGElement;
|
|
33
|
+
children: SVGElement[];
|
|
34
|
+
} | null;
|
|
35
|
+
constructor({ canvas, width, height }: {
|
|
36
|
+
canvas?: HTMLCanvasElement;
|
|
37
|
+
width?: number;
|
|
38
|
+
height?: number;
|
|
39
|
+
});
|
|
40
|
+
__setDefaultStyles(): void;
|
|
41
|
+
__getStyleState(): Record<string, any>;
|
|
42
|
+
__applyStyleState(styleState: Record<string, any>): void;
|
|
43
|
+
__createElement(elementName: string, properties?: Record<string, any>, resetFill?: boolean): SVGElement;
|
|
44
|
+
__applyStyleToCurrentElement(type: "fill" | "stroke"): void;
|
|
45
|
+
__closestGroupOrSvg(node?: SVGElement | null): SVGElement;
|
|
46
|
+
getSerializedSvg(fixNamedEntities: boolean): string;
|
|
47
|
+
getSvg(): SVGElement;
|
|
48
|
+
save(): void;
|
|
49
|
+
restore(): void;
|
|
50
|
+
__addTransform(t: string): void;
|
|
51
|
+
scale(x: number, y?: number): void;
|
|
52
|
+
rotate(angle: number): void;
|
|
53
|
+
translate(x: number, y: number): void;
|
|
54
|
+
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
55
|
+
beginPath(): void;
|
|
56
|
+
__applyCurrentDefaultPath(): void;
|
|
57
|
+
__addPathCommand(command: string): void;
|
|
58
|
+
moveTo(x: number, y: number): void;
|
|
59
|
+
closePath(): void;
|
|
60
|
+
lineTo(x: number, y: number): void;
|
|
61
|
+
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
|
|
62
|
+
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
63
|
+
normalize(vector: [number, number]): number[];
|
|
64
|
+
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
|
65
|
+
stroke(): void;
|
|
66
|
+
fill(): void;
|
|
67
|
+
rect(x: number, y: number, width: number, height: number): void;
|
|
68
|
+
fillRect(x: number, y: number, width: number, height: number): void;
|
|
69
|
+
strokeRect(x: number, y: number, width: number, height: number): void;
|
|
70
|
+
__clearCanvas(): void;
|
|
71
|
+
clearRect(x: number, y: number, width: number, height: number): void;
|
|
72
|
+
createLinearGradient(x1: number, y1: number, x2: number, y2: number): CustomCanvasGradient;
|
|
73
|
+
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CustomCanvasGradient;
|
|
74
|
+
__parseFont(): {
|
|
75
|
+
style: string;
|
|
76
|
+
size: string;
|
|
77
|
+
family: string;
|
|
78
|
+
weight: string;
|
|
79
|
+
decoration: string;
|
|
80
|
+
href: null;
|
|
81
|
+
};
|
|
82
|
+
__wrapTextLink(font: {
|
|
83
|
+
href: string | null;
|
|
84
|
+
}, element: HTMLElement): HTMLElement | SVGElement;
|
|
85
|
+
__applyText(text: string, x: number, y: number, action: "stroke" | "fill"): void;
|
|
86
|
+
fillText(text: string, x: number, y: number): void;
|
|
87
|
+
strokeText(text: string, x: number, y: number): void;
|
|
88
|
+
measureText(text: string): TextMetrics;
|
|
89
|
+
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterClockwise?: number): void;
|
|
90
|
+
clip(): void;
|
|
91
|
+
drawImage(...args: any[]): void;
|
|
92
|
+
createPattern(image: HTMLImageElement | HTMLCanvasElement | CustomCanvasContext, repetition: number): CustomCanvasPattern;
|
|
93
|
+
setLineDash(dashArray: number[]): void;
|
|
94
|
+
drawFocusRing(): void;
|
|
95
|
+
createImageData(): void;
|
|
96
|
+
getImageData(): void;
|
|
97
|
+
putImageData(): void;
|
|
98
|
+
globalCompositeOperation(): void;
|
|
99
|
+
setTransform(): void;
|
|
100
|
+
}
|
|
101
|
+
export default CustomCanvasContext;
|
|
102
|
+
//# sourceMappingURL=CustomCanvasContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomCanvasContext.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDraw/canvas/CustomCanvasContext.ts"],"names":[],"mappings":"AAqGA,QAAA,MAAM,MAAM,EAAE,MAAM,CAClB,MAAM,EACN;IACE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IAC/C,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CA8EF,CAAC;AAEF,qBAAa,oBAAoB;IAC/B,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,mBAAmB,CAAC;gBACf,YAAY,EAAE,UAAU,EAAE,GAAG,EAAE,mBAAmB;IAQ9D,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAwB3C;AAED,qBAAa,mBAAmB;IAC9B,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,mBAAmB,CAAC;gBACf,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,mBAAmB;CAI1D;AAKD,qBAAa,mBAAmB;IAC9B,CAAC,KAAK,EAAE,MAAM,OAAO,MAAM,GAAG,GAAG,CAAC;IAElC,UAAU,EAAE,QAAQ,CAAY;IAChC,QAAQ,EAAE,iBAAiB,CAAC;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