@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.
Files changed (163) hide show
  1. package/dist/zyzgroup_core_web.iife.js +19 -20
  2. package/dist/zyzgroup_core_web.iife.js.map +1 -1
  3. package/dist/zyzgroup_core_web.js +16639 -14264
  4. package/dist/zyzgroup_core_web.js.map +1 -1
  5. package/dist/zyzgroup_core_web.umd.cjs +19 -20
  6. package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
  7. package/package.json +1 -1
  8. package/types/canvas/YZCanvas.d.ts +0 -23
  9. package/types/canvas/YZCanvas.d.ts.map +1 -1
  10. package/types/canvas/index.d.ts +0 -1
  11. package/types/canvas/index.d.ts.map +1 -1
  12. package/types/hooks/index.d.ts +20 -40
  13. package/types/hooks/index.d.ts.map +1 -1
  14. package/types/hooks/useActionChannel.d.ts +18 -0
  15. package/types/hooks/useActionChannel.d.ts.map +1 -0
  16. package/types/hooks/useAttribute.d.ts +2 -0
  17. package/types/hooks/useAttribute.d.ts.map +1 -1
  18. package/types/hooks/useCoords.d.ts +1 -1
  19. package/types/hooks/useCoords.d.ts.map +1 -1
  20. package/types/hooks/useDraw/Shape.d.ts +313 -0
  21. package/types/hooks/useDraw/Shape.d.ts.map +1 -0
  22. package/types/hooks/useDraw/canvas/CustomCanvasContext.d.ts +102 -0
  23. package/types/hooks/useDraw/canvas/CustomCanvasContext.d.ts.map +1 -0
  24. package/types/hooks/useDraw/canvas/YZCanvasContext.d.ts +84 -0
  25. package/types/hooks/useDraw/canvas/YZCanvasContext.d.ts.map +1 -0
  26. package/types/hooks/useDraw/canvas/index.d.ts +3 -0
  27. package/types/hooks/useDraw/canvas/index.d.ts.map +1 -0
  28. package/types/hooks/useDraw/index.d.ts +4 -0
  29. package/types/hooks/useDraw/index.d.ts.map +1 -0
  30. package/types/hooks/useDraw/line/Arc.d.ts +25 -0
  31. package/types/hooks/useDraw/line/Arc.d.ts.map +1 -0
  32. package/types/hooks/useDraw/line/CubicBezier.d.ts +62 -0
  33. package/types/hooks/useDraw/line/CubicBezier.d.ts.map +1 -0
  34. package/types/hooks/useDraw/line/L.d.ts +33 -0
  35. package/types/hooks/useDraw/line/L.d.ts.map +1 -0
  36. package/types/hooks/useDraw/line/PathD.d.ts +66 -0
  37. package/types/hooks/useDraw/line/PathD.d.ts.map +1 -0
  38. package/types/hooks/useDraw/line/QuadraticBezier.d.ts +30 -0
  39. package/types/hooks/useDraw/line/QuadraticBezier.d.ts.map +1 -0
  40. package/types/hooks/useDraw/line/index.d.ts +6 -0
  41. package/types/hooks/useDraw/line/index.d.ts.map +1 -0
  42. package/types/hooks/useDraw/shapes/ArrowShape.d.ts +11 -0
  43. package/types/hooks/useDraw/shapes/ArrowShape.d.ts.map +1 -0
  44. package/types/hooks/useDraw/shapes/BallShape.d.ts +86 -0
  45. package/types/hooks/useDraw/shapes/BallShape.d.ts.map +1 -0
  46. package/types/hooks/useDraw/shapes/CrossShape.d.ts +7 -0
  47. package/types/hooks/useDraw/shapes/CrossShape.d.ts.map +1 -0
  48. package/types/hooks/useDraw/shapes/FoxShape.d.ts +11 -0
  49. package/types/hooks/useDraw/shapes/FoxShape.d.ts.map +1 -0
  50. package/types/hooks/useDraw/shapes/HeartShape.d.ts +15 -0
  51. package/types/hooks/useDraw/shapes/HeartShape.d.ts.map +1 -0
  52. package/types/hooks/useDraw/shapes/HeartVariantShape.d.ts +15 -0
  53. package/types/hooks/useDraw/shapes/HeartVariantShape.d.ts.map +1 -0
  54. package/types/hooks/useDraw/shapes/LineShape.d.ts +27 -0
  55. package/types/hooks/useDraw/shapes/LineShape.d.ts.map +1 -0
  56. package/types/hooks/useDraw/shapes/RabbitShape.d.ts +9 -0
  57. package/types/hooks/useDraw/shapes/RabbitShape.d.ts.map +1 -0
  58. package/types/hooks/useDraw/shapes/RectShape.d.ts +31 -0
  59. package/types/hooks/useDraw/shapes/RectShape.d.ts.map +1 -0
  60. package/types/hooks/useDraw/shapes/SegmentShapeCombo.d.ts +23 -0
  61. package/types/hooks/useDraw/shapes/SegmentShapeCombo.d.ts.map +1 -0
  62. package/types/hooks/useDraw/shapes/ShipShapeCombo.d.ts +12 -0
  63. package/types/hooks/useDraw/shapes/ShipShapeCombo.d.ts.map +1 -0
  64. package/types/hooks/useDraw/shapes/SliderShapeCombo.d.ts +21 -0
  65. package/types/hooks/useDraw/shapes/SliderShapeCombo.d.ts.map +1 -0
  66. package/types/hooks/useDraw/shapes/StarShape.d.ts +13 -0
  67. package/types/hooks/useDraw/shapes/StarShape.d.ts.map +1 -0
  68. package/types/hooks/useDraw/shapes/TreeShapeCombo.d.ts +7 -0
  69. package/types/hooks/useDraw/shapes/TreeShapeCombo.d.ts.map +1 -0
  70. package/types/hooks/useDraw/shapes/index.d.ts +15 -0
  71. package/types/hooks/useDraw/shapes/index.d.ts.map +1 -0
  72. package/types/hooks/useDraw/svg/SVGParse.d.ts +16 -0
  73. package/types/hooks/useDraw/svg/SVGParse.d.ts.map +1 -0
  74. package/types/hooks/useDraw/svg/SVGUtil.d.ts +17 -0
  75. package/types/hooks/useDraw/svg/SVGUtil.d.ts.map +1 -0
  76. package/types/hooks/useDraw/svg/index.d.ts +4 -0
  77. package/types/hooks/useDraw/svg/index.d.ts.map +1 -0
  78. package/types/hooks/useDraw/svg/line2c.d.ts +5 -0
  79. package/types/hooks/useDraw/svg/line2c.d.ts.map +1 -0
  80. package/types/hooks/useDraw/useDraw.d.ts +19 -0
  81. package/types/hooks/useDraw/useDraw.d.ts.map +1 -0
  82. package/types/hooks/useElement.d.ts +79 -38
  83. package/types/hooks/useElement.d.ts.map +1 -1
  84. package/types/hooks/useElementEventBus.d.ts +21 -1
  85. package/types/hooks/useElementEventBus.d.ts.map +1 -1
  86. package/types/hooks/useElementEvents.d.ts +226 -0
  87. package/types/hooks/useElementEvents.d.ts.map +1 -0
  88. package/types/hooks/useEventListener.d.ts +9 -4
  89. package/types/hooks/useEventListener.d.ts.map +1 -1
  90. package/types/hooks/useIntersection.d.ts +2 -0
  91. package/types/hooks/useIntersection.d.ts.map +1 -1
  92. package/types/hooks/useMatchMedia.d.ts +3 -0
  93. package/types/hooks/useMatchMedia.d.ts.map +1 -0
  94. package/types/hooks/useMessageChannel.d.ts +17 -0
  95. package/types/hooks/useMessageChannel.d.ts.map +1 -0
  96. package/types/hooks/useResize.d.ts.map +1 -1
  97. package/types/hooks/useStyle.d.ts +1 -1
  98. package/types/hooks/useStyle.d.ts.map +1 -1
  99. package/types/hooks/useTheme.d.ts +4 -3
  100. package/types/hooks/useTheme.d.ts.map +1 -1
  101. package/types/hooks/useVisible.d.ts +5 -9
  102. package/types/hooks/useVisible.d.ts.map +1 -1
  103. package/types/index.d.ts +0 -1
  104. package/types/index.d.ts.map +1 -1
  105. package/types/math/BufferAttribute.d.ts +0 -15
  106. package/types/math/BufferAttribute.d.ts.map +1 -1
  107. package/types/math/index.d.ts +0 -4
  108. package/types/math/index.d.ts.map +1 -1
  109. package/types/math/line/PathD.d.ts.map +1 -1
  110. package/types/math/math.d.ts +0 -1
  111. package/types/math/math.d.ts.map +1 -1
  112. package/types/svg/YZSVG.d.ts +0 -34
  113. package/types/svg/YZSVG.d.ts.map +1 -1
  114. package/types/svg/index.d.ts +0 -1
  115. package/types/svg/index.d.ts.map +1 -1
  116. package/types/hooks/onDocumentReady.d.ts +0 -3
  117. package/types/hooks/onDocumentReady.d.ts.map +0 -1
  118. package/types/hooks/useClass.d.ts +0 -6
  119. package/types/hooks/useClass.d.ts.map +0 -1
  120. package/types/hooks/useClickA.d.ts +0 -2
  121. package/types/hooks/useClickA.d.ts.map +0 -1
  122. package/types/hooks/useClipboard.d.ts +0 -2
  123. package/types/hooks/useClipboard.d.ts.map +0 -1
  124. package/types/hooks/useDisplay.d.ts +0 -5
  125. package/types/hooks/useDisplay.d.ts.map +0 -1
  126. package/types/hooks/useDragDrop.d.ts +0 -12
  127. package/types/hooks/useDragDrop.d.ts.map +0 -1
  128. package/types/hooks/useFireEvent.d.ts +0 -7
  129. package/types/hooks/useFireEvent.d.ts.map +0 -1
  130. package/types/hooks/useHotKey.d.ts +0 -33
  131. package/types/hooks/useHotKey.d.ts.map +0 -1
  132. package/types/hooks/useHotKeyFile.d.ts +0 -8
  133. package/types/hooks/useHotKeyFile.d.ts.map +0 -1
  134. package/types/hooks/useIframe.d.ts +0 -2
  135. package/types/hooks/useIframe.d.ts.map +0 -1
  136. package/types/hooks/useLoadImage.d.ts +0 -9
  137. package/types/hooks/useLoadImage.d.ts.map +0 -1
  138. package/types/hooks/useLoadLink.d.ts +0 -3
  139. package/types/hooks/useLoadLink.d.ts.map +0 -1
  140. package/types/hooks/useLoadScript.d.ts +0 -2
  141. package/types/hooks/useLoadScript.d.ts.map +0 -1
  142. package/types/hooks/useMedia.d.ts +0 -4
  143. package/types/hooks/useMedia.d.ts.map +0 -1
  144. package/types/hooks/useMouse.d.ts +0 -32
  145. package/types/hooks/useMouse.d.ts.map +0 -1
  146. package/types/hooks/useObjectURL.d.ts +0 -3
  147. package/types/hooks/useObjectURL.d.ts.map +0 -1
  148. package/types/hooks/usePressDownMove.d.ts +0 -13
  149. package/types/hooks/usePressDownMove.d.ts.map +0 -1
  150. package/types/hooks/usePull.d.ts +0 -4
  151. package/types/hooks/usePull.d.ts.map +0 -1
  152. package/types/hooks/useRunInSandbox.d.ts +0 -2
  153. package/types/hooks/useRunInSandbox.d.ts.map +0 -1
  154. package/types/hooks/useScroll.d.ts +0 -4
  155. package/types/hooks/useScroll.d.ts.map +0 -1
  156. package/types/hooks/useSelectFile.d.ts +0 -18
  157. package/types/hooks/useSelectFile.d.ts.map +0 -1
  158. package/types/hooks/useVibrate.d.ts +0 -2
  159. package/types/hooks/useVibrate.d.ts.map +0 -1
  160. package/types/hooks/useWindow.d.ts +0 -5
  161. package/types/hooks/useWindow.d.ts.map +0 -1
  162. package/types/position.d.ts +0 -65
  163. package/types/position.d.ts.map +0 -1
@@ -1,7 +0,0 @@
1
- export declare function useFireEvent(target: EventTarget | any, eventName: string, options?: MouseEventInit | KeyboardEventInit | TouchEventInit | PointerEventInit | DragEventInit | EventInit | CustomEventInit): void;
2
- export declare function simulateMouseEventFromTouch(event: TouchEvent, eventName: string): MouseEvent;
3
- export declare function preventDefault(e: Event): void;
4
- export declare function cancelBubble(e: Event): void;
5
- export declare function isEventSupported(nodeName: any, eventName: string): boolean;
6
- export declare function getMouseButton(event: MouseEvent): number | undefined;
7
- //# sourceMappingURL=useFireEvent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useFireEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useFireEvent.ts"],"names":[],"mappings":"AA6CA,wBAAgB,YAAY,CAC1B,MAAM,EAAE,WAAW,GAAG,GAAG,EACzB,SAAS,EAAE,MAAM,EACjB,OAAO,GACH,cAAc,GACd,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,SAAS,GACT,eAGH,QA2CF;AAED,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,MAAM,GAChB,UAAU,CAkBZ;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,KAAK,QAStC;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,QASpC;AAOD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAU1E;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,sBAkB/C"}
@@ -1,33 +0,0 @@
1
- export interface HotKeyOptions {
2
- keys: string[];
3
- ctrl?: boolean;
4
- shift?: boolean;
5
- alt?: boolean;
6
- target?: EventTarget;
7
- }
8
- export declare function useHotKey(options: HotKeyOptions, keydownCb: () => Promise<void> | void, keyupCb?: () => Promise<void> | void): {
9
- hotKeys: (options: HotKeyOptions) => string[];
10
- destroy: () => void;
11
- pause: () => boolean;
12
- resume: () => boolean;
13
- };
14
- export declare const CommonKeyCode: {
15
- BACKSPACE: number;
16
- TAB: number;
17
- COMMA: number;
18
- DELETE: number;
19
- END: number;
20
- ENTER: number;
21
- ESCAPE: number;
22
- HOME: number;
23
- LEFT: number;
24
- UP: number;
25
- DOWN: number;
26
- PAGE_DOWN: number;
27
- PAGE_UP: number;
28
- PERIOD: number;
29
- RIGHT: number;
30
- SPACE: number;
31
- };
32
- export declare function getKeyCode(e: KeyboardEvent): string | number | undefined;
33
- //# sourceMappingURL=useHotKey.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useHotKey.d.ts","sourceRoot":"","sources":["../../src/hooks/useHotKey.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAkBD,wBAAgB,SAAS,CACvB,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,EACrC,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;uBAsCN,aAAa,KAAG,MAAM,EAAE;;;;EAsBvD;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;CAiBzB,CAAC;AAEF,wBAAgB,UAAU,CAAC,CAAC,EAAE,aAAa,+BAQ1C"}
@@ -1,8 +0,0 @@
1
- import { ReadInBrowserEnum } from "@zyzgroup/core-common";
2
- import { type HotKeyOptions } from "./useHotKey";
3
- export declare function useHotKeyFileOnce(hotKeyOptions?: HotKeyOptions, type?: ReadInBrowserEnum): Promise<any>;
4
- export declare function useHotKeyFileLoop(hotKeyOptions?: HotKeyOptions, type?: ReadInBrowserEnum): {
5
- on: (cb: (file: string | ArrayBuffer) => void) => void;
6
- off: (cb: (file: string | ArrayBuffer) => void) => void;
7
- };
8
- //# sourceMappingURL=useHotKeyFile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useHotKeyFile.d.ts","sourceRoot":"","sources":["../../src/hooks/useHotKeyFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,iBAAiB,EAAY,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,aAAa,CAAC;AAI5D,wBAAsB,iBAAiB,CACrC,aAAa,GAAE,aAA+B,EAC9C,IAAI,GAAE,iBAA0C,gBAkBjD;AAGD,wBAAgB,iBAAiB,CAC/B,aAAa,GAAE,aAA+B,EAC9C,IAAI,GAAE,iBAA0C;aAmBrC,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,KAAK,IAAI;cAGnC,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,KAAK,IAAI;EAIjD"}
@@ -1,2 +0,0 @@
1
- export declare function iframePostMessage(message: any, targetOrigin?: string): void;
2
- //# sourceMappingURL=useIframe.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useIframe.d.ts","sourceRoot":"","sources":["../../src/hooks/useIframe.ts"],"names":[],"mappings":"AASA,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,GAAG,EACZ,YAAY,SAAsC,QAYnD"}
@@ -1,9 +0,0 @@
1
- export interface RawImageInfo {
2
- width: number;
3
- height: number;
4
- aspectRatio: number;
5
- element: HTMLImageElement;
6
- imageData?: ImageData;
7
- }
8
- export declare function useLoadImage(url: string | Blob | File, ms?: number): Promise<RawImageInfo>;
9
- //# sourceMappingURL=useLoadImage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLoadImage.d.ts","sourceRoot":"","sources":["../../src/hooks/useLoadImage.ts"],"names":[],"mappings":"AAcA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAOD,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,EAAE,EAAE,SAAQ,yBAsCvE"}
@@ -1,3 +0,0 @@
1
- export declare function useLoadLink(url: string, parent?: HTMLHeadElement, ms?: number): Promise<unknown>;
2
- export declare function waitForStyleSheetsLoaded(): Promise<void>;
3
- //# sourceMappingURL=useLoadLink.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLoadLink.d.ts","sourceRoot":"","sources":["../../src/hooks/useLoadLink.ts"],"names":[],"mappings":"AAEA,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,MAAM,kBAA2C,EACjD,EAAE,SAAQ,oBAmCX;AAGD,wBAAgB,wBAAwB,kBAsBvC"}
@@ -1,2 +0,0 @@
1
- export declare function useLoadScript(url: string, ms?: number): Promise<unknown>;
2
- //# sourceMappingURL=useLoadScript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLoadScript.d.ts","sourceRoot":"","sources":["../../src/hooks/useLoadScript.ts"],"names":[],"mappings":"AAAA,wBAAsB,aAAa,CACjC,GAAG,EAAE,MAAM,EACX,EAAE,SAAQ,oBAiCX"}
@@ -1,4 +0,0 @@
1
- export declare function useMedia(query?: string): {
2
- get: () => boolean;
3
- };
4
- //# sourceMappingURL=useMedia.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMedia.d.ts","sourceRoot":"","sources":["../../src/hooks/useMedia.ts"],"names":[],"mappings":"AAOA,wBAAgB,QAAQ,CAAC,KAAK,SAAiC;;EAS9D"}
@@ -1,32 +0,0 @@
1
- import { AnyElement } from "@zyzgroup/core-common";
2
- export type MousePoint = {
3
- x: number;
4
- y: number;
5
- dx: number;
6
- dy: number;
7
- dStartX: number;
8
- dStartY: number;
9
- isDown: boolean;
10
- };
11
- export declare function useMousePoint(): {
12
- mousePoint: MousePoint;
13
- setStartMousePoint: (p: {
14
- x: number;
15
- y: number;
16
- }, isDown?: boolean) => void;
17
- setCurrentMousePoint: (p: {
18
- x: number;
19
- y: number;
20
- }, isDown?: boolean) => void;
21
- };
22
- export type MousePointEvent = MouseEvent | Touch | PointerEvent | HammerInput;
23
- export declare function getMousePositionInViewport(ev: MousePointEvent): {
24
- x: number;
25
- y: number;
26
- };
27
- export declare function getMousePositionInPage(ev: MousePointEvent): HammerPoint;
28
- export declare function getMousePositionInElement(ev: MousePointEvent, element?: AnyElement): {
29
- x: number;
30
- y: number;
31
- };
32
- //# sourceMappingURL=useMouse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useMouse.d.ts","sourceRoot":"","sources":["../../src/hooks/useMouse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAS,MAAM,uBAAuB,CAAC;AAO1D,MAAM,MAAM,UAAU,GAAG;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,wBAAgB,aAAa;;4BAyBpB;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,WAClB,OAAO;8BAUQ;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,WAAW,OAAO;EAcvE;AAID,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,KAAK,GAAG,YAAY,GAAG,WAAW,CAAC;AAE9E,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,eAAe;;;EAa7D;AAED,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,eAAe,eAezD;AAED,wBAAgB,yBAAyB,CACvC,EAAE,EAAE,eAAe,EACnB,OAAO,CAAC,EAAE,UAAU;;;EAyCrB"}
@@ -1,3 +0,0 @@
1
- export declare function createObjectURL(blob: File | Blob | MediaSource): string;
2
- export declare function revokeObjectURL(url: string): void;
3
- //# sourceMappingURL=useObjectURL.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useObjectURL.d.ts","sourceRoot":"","sources":["../../src/hooks/useObjectURL.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,WAAW,UAE9D;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,QAE1C"}
@@ -1,13 +0,0 @@
1
- import { ElementEventBusController } from "./useElementEventBus";
2
- import { MousePointEvent } from "./useMouse";
3
- type Options = {
4
- start?: (e: MousePointEvent) => void;
5
- move?: (e: MousePointEvent) => void;
6
- end?: (e: MousePointEvent) => void;
7
- };
8
- export declare function usePressDownMove(controller: ElementEventBusController, options?: Options): () => void;
9
- export declare function usePressDownMoveWithPointer(controller: ElementEventBusController, options?: Options): () => void;
10
- export declare function usePressDownMoveWithMouse(controller: ElementEventBusController, options?: Options): () => void;
11
- export declare function usePressDownMoveWithTouch(controller: ElementEventBusController, options?: Options): () => void;
12
- export {};
13
- //# sourceMappingURL=usePressDownMove.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePressDownMove.d.ts","sourceRoot":"","sources":["../../src/hooks/usePressDownMove.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,KAAK,OAAO,GAAG;IACb,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;IACrC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;IACpC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,eAAe,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,OAAO,GAChB,MAAM,IAAI,CAOZ;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,OAAO,GAChB,MAAM,IAAI,CA8BZ;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,OAAO,GAChB,MAAM,IAAI,CA4BZ;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,yBAAyB,EACrC,OAAO,CAAC,EAAE,OAAO,GAChB,MAAM,IAAI,CAiCZ"}
@@ -1,4 +0,0 @@
1
- import { ElementEventBusController } from "./useElementEventBus";
2
- export declare function usePullDown(controller: ElementEventBusController, cb: () => void, distance?: number): () => void;
3
- export declare function usePullUp(controller: ElementEventBusController, cb: () => void, distance?: number): () => void;
4
- //# sourceMappingURL=usePull.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usePull.d.ts","sourceRoot":"","sources":["../../src/hooks/usePull.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAIjE,wBAAgB,WAAW,CACzB,UAAU,EAAE,yBAAyB,EACrC,EAAE,EAAE,MAAM,IAAI,EACd,QAAQ,SAAK,cAiBd;AAGD,wBAAgB,SAAS,CACvB,UAAU,EAAE,yBAAyB,EACrC,EAAE,EAAE,MAAM,IAAI,EACd,QAAQ,SAAK,cAiBd"}
@@ -1,2 +0,0 @@
1
- export declare function useRunInSandbox(code: string): void;
2
- //# sourceMappingURL=useRunInSandbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRunInSandbox.d.ts","sourceRoot":"","sources":["../../src/hooks/useRunInSandbox.ts"],"names":[],"mappings":"AACA,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,QAmB3C"}
@@ -1,4 +0,0 @@
1
- export declare function useScroll(cb: (e: Event) => void): () => void;
2
- export declare function scrollTo(x: 0, y: 0): void;
3
- export declare function setManualScroll(): () => void;
4
- //# sourceMappingURL=useScroll.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useScroll.d.ts","sourceRoot":"","sources":["../../src/hooks/useScroll.ts"],"names":[],"mappings":"AAOA,wBAAgB,SAAS,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,cAe/C;AAQD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,QAElC;AAED,wBAAgB,eAAe,eAoB9B"}
@@ -1,18 +0,0 @@
1
- import { ReadInBrowserEnum } from "@zyzgroup/core-common";
2
- export declare function useSelectFile<T extends string | ArrayBuffer>(readType?: ReadInBrowserEnum, accepts?: string[]): Promise<{
3
- type: string;
4
- name: string;
5
- size: number;
6
- data: T;
7
- }>;
8
- export declare function useSelectFileImage(accepts?: string[]): Promise<Error | {
9
- type: string;
10
- name: string;
11
- size: number;
12
- data: ArrayBuffer;
13
- width: number;
14
- height: number;
15
- aspectRatio: number;
16
- imageData: ImageData | undefined;
17
- }>;
18
- //# sourceMappingURL=useSelectFile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSelectFile.d.ts","sourceRoot":"","sources":["../../src/hooks/useSelectFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAU,MAAM,uBAAuB,CAAC;AAIlE,wBAAsB,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,EAChE,QAAQ,GAAE,iBAA0C,EACpD,OAAO,GAAE,MAAM,EAAU;;;;;GAW1B;AAED,wBAAsB,kBAAkB,CAAC,OAAO,GAAE,MAAM,EAAgB;;;;;;;;;GAsBvE"}
@@ -1,2 +0,0 @@
1
- export declare function useVibrate(ms?: number): void;
2
- //# sourceMappingURL=useVibrate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useVibrate.d.ts","sourceRoot":"","sources":["../../src/hooks/useVibrate.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,EAAE,SAAM,QAMlC"}
@@ -1,5 +0,0 @@
1
- export declare const useWindow: {
2
- getSelectedText: () => string;
3
- };
4
- export declare function setWindowTitle(title: string): void;
5
- //# sourceMappingURL=useWindow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWindow.d.ts","sourceRoot":"","sources":["../../src/hooks/useWindow.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,SAAS;;CAErB,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,QAG3C"}
@@ -1,65 +0,0 @@
1
- export declare function getScreenPosition(): {
2
- screenWidth: number;
3
- screenHeight: number;
4
- screenX: number;
5
- screenY: number;
6
- };
7
- export declare function getDocumentElementPosition(): {
8
- clientWidth: number;
9
- clientHeight: number;
10
- clientTop: number;
11
- clientLeft: number;
12
- scrollWidth: number;
13
- scrollHeight: number;
14
- scrollTop: number;
15
- scrollLeft: number;
16
- offsetWidth: number;
17
- offsetHeight: number;
18
- offsetTop: number;
19
- offsetLeft: number;
20
- offsetParent: Element | null;
21
- };
22
- export declare function getBodyPosition(): {
23
- clientWidth: number;
24
- clientHeight: number;
25
- clientTop: number;
26
- clientLeft: number;
27
- scrollWidth: number;
28
- scrollHeight: number;
29
- scrollTop: number;
30
- scrollLeft: number;
31
- offsetWidth: number;
32
- offsetHeight: number;
33
- offsetTop: number;
34
- offsetLeft: number;
35
- offsetParent: Element | null;
36
- };
37
- export declare function getViewportSize(): {
38
- width: number;
39
- height: number;
40
- };
41
- export declare function getPageSize(): {
42
- width: number;
43
- height: number;
44
- };
45
- export declare function getElementPositionInPage(el: HTMLElement | SVGElement | Element): {
46
- x: number;
47
- y: number;
48
- width: number;
49
- height: number;
50
- };
51
- export declare function getElementPositionInPage2(el: HTMLElement): {
52
- x: number;
53
- y: number;
54
- width: number;
55
- height: number;
56
- };
57
- export declare function getElementPositionInViewport(el: HTMLElement): DOMRect;
58
- export declare function getRelativeBoundingClientRect(child: HTMLElement): {
59
- x: number;
60
- y: number;
61
- width: number;
62
- height: number;
63
- };
64
- export declare function getVerticalScrollPercentInPage(): number;
65
- //# sourceMappingURL=position.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../src/position.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB;;;;;EAOhC;AAID,wBAAgB,0BAA0B;;;;;;;;;;;;;;EAyBzC;AAGD,wBAAgB,eAAe;;;;;;;;;;;;;;EAoB9B;AAGD,wBAAgB,eAAe;;;EAsB9B;AAGD,wBAAgB,WAAW;;;EAY1B;AAED,wBAAgB,wBAAwB,CACtC,EAAE,EAAE,WAAW,GAAG,UAAU,GAAG,OAAO;;;;;EAUvC;AAED,wBAAgB,yBAAyB,CAAC,EAAE,EAAE,WAAW;;;;;EAmBxD;AAED,wBAAgB,4BAA4B,CAAC,EAAE,EAAE,WAAW,WAE3D;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,WAAW;;;;;EAQ/D;AAED,wBAAgB,8BAA8B,WAM7C"}