@zyzgroup/core-web 0.1.84 → 0.1.86

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 (174) hide show
  1. package/dist/animate_ce.css +0 -18
  2. package/dist/zyzgroup_core_web.iife.js +27 -24
  3. package/dist/zyzgroup_core_web.iife.js.map +1 -1
  4. package/dist/zyzgroup_core_web.js +8644 -7989
  5. package/dist/zyzgroup_core_web.js.map +1 -1
  6. package/dist/zyzgroup_core_web.umd.cjs +27 -24
  7. package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
  8. package/package.json +1 -1
  9. package/types/Context.d.ts +4 -3
  10. package/types/Context.d.ts.map +1 -1
  11. package/types/WebSocketClient.d.ts +3 -3
  12. package/types/WebSocketClient.d.ts.map +1 -1
  13. package/types/ajax.d.ts.map +1 -1
  14. package/types/axios.d.ts +2 -0
  15. package/types/axios.d.ts.map +1 -1
  16. package/types/env.d.ts +0 -6
  17. package/types/env.d.ts.map +1 -1
  18. package/types/hooks/index.d.ts +0 -1
  19. package/types/hooks/index.d.ts.map +1 -1
  20. package/types/hooks/useAttribute.d.ts +1 -1
  21. package/types/hooks/useAttribute.d.ts.map +1 -1
  22. package/types/hooks/useDraw/DrawContext.d.ts +3 -1
  23. package/types/hooks/useDraw/DrawContext.d.ts.map +1 -1
  24. package/types/hooks/useDraw/Shape.d.ts +134 -105
  25. package/types/hooks/useDraw/Shape.d.ts.map +1 -1
  26. package/types/hooks/useDraw/canvas/YZCanvasContext.d.ts +2 -1
  27. package/types/hooks/useDraw/canvas/YZCanvasContext.d.ts.map +1 -1
  28. package/types/hooks/useDraw/line/Arc.d.ts.map +1 -1
  29. package/types/hooks/useDraw/line/CubicBezier.d.ts +6 -6
  30. package/types/hooks/useDraw/line/CubicBezier.d.ts.map +1 -1
  31. package/types/hooks/useDraw/line/L.d.ts +1 -1
  32. package/types/hooks/useDraw/line/L.d.ts.map +1 -1
  33. package/types/hooks/useDraw/line/PathD.d.ts +23 -15
  34. package/types/hooks/useDraw/line/PathD.d.ts.map +1 -1
  35. package/types/hooks/useDraw/line/QuadraticBezier.d.ts +1 -1
  36. package/types/hooks/useDraw/line/QuadraticBezier.d.ts.map +1 -1
  37. package/types/hooks/useDraw/shapes/BallShape.d.ts +3 -11
  38. package/types/hooks/useDraw/shapes/BallShape.d.ts.map +1 -1
  39. package/types/hooks/useDraw/shapes/ConfettiShapeCombo.d.ts +27 -0
  40. package/types/hooks/useDraw/shapes/ConfettiShapeCombo.d.ts.map +1 -0
  41. package/types/hooks/useDraw/shapes/CrossShape.d.ts.map +1 -1
  42. package/types/hooks/useDraw/shapes/CurveShape.d.ts +24 -0
  43. package/types/hooks/useDraw/shapes/CurveShape.d.ts.map +1 -0
  44. package/types/hooks/useDraw/shapes/EllipseShape.d.ts +1 -0
  45. package/types/hooks/useDraw/shapes/EllipseShape.d.ts.map +1 -1
  46. package/types/hooks/useDraw/shapes/LineShape.d.ts +11 -9
  47. package/types/hooks/useDraw/shapes/LineShape.d.ts.map +1 -1
  48. package/types/hooks/useDraw/shapes/PointsShape.d.ts +35 -0
  49. package/types/hooks/useDraw/shapes/PointsShape.d.ts.map +1 -0
  50. package/types/hooks/useDraw/shapes/RectShape.d.ts +15 -12
  51. package/types/hooks/useDraw/shapes/RectShape.d.ts.map +1 -1
  52. package/types/hooks/useDraw/shapes/RingIndicatorShapeCombo.d.ts +2 -2
  53. package/types/hooks/useDraw/shapes/RingIndicatorShapeCombo.d.ts.map +1 -1
  54. package/types/hooks/useDraw/shapes/SegmentShapeCombo.d.ts +2 -2
  55. package/types/hooks/useDraw/shapes/SegmentShapeCombo.d.ts.map +1 -1
  56. package/types/hooks/useDraw/shapes/ShipShapeCombo.d.ts +6 -4
  57. package/types/hooks/useDraw/shapes/ShipShapeCombo.d.ts.map +1 -1
  58. package/types/hooks/useDraw/shapes/SliderShapeCombo.d.ts +3 -2
  59. package/types/hooks/useDraw/shapes/SliderShapeCombo.d.ts.map +1 -1
  60. package/types/hooks/useDraw/shapes/TextShape.d.ts +23 -0
  61. package/types/hooks/useDraw/shapes/TextShape.d.ts.map +1 -0
  62. package/types/hooks/useDraw/shapes/TreeShapeCombo.d.ts +3 -2
  63. package/types/hooks/useDraw/shapes/TreeShapeCombo.d.ts.map +1 -1
  64. package/types/hooks/useDraw/shapes/index.d.ts +4 -0
  65. package/types/hooks/useDraw/shapes/index.d.ts.map +1 -1
  66. package/types/hooks/useDraw/svg/SVGUtil.d.ts +3 -2
  67. package/types/hooks/useDraw/svg/SVGUtil.d.ts.map +1 -1
  68. package/types/hooks/useElement.d.ts +2 -2
  69. package/types/hooks/useElement.d.ts.map +1 -1
  70. package/types/hooks/useEventListener.d.ts +2 -0
  71. package/types/hooks/useEventListener.d.ts.map +1 -1
  72. package/types/hooks/useLocalStorage.d.ts +1 -1
  73. package/types/hooks/useLocalStorage.d.ts.map +1 -1
  74. package/types/hooks/useMutation.d.ts +1 -0
  75. package/types/hooks/useMutation.d.ts.map +1 -1
  76. package/types/hooks/useSafeArea.d.ts.map +1 -1
  77. package/types/hooks/useSessionStorage.d.ts +1 -1
  78. package/types/hooks/useSessionStorage.d.ts.map +1 -1
  79. package/types/hooks/useStyle.d.ts +1 -1
  80. package/types/hooks/useStyle.d.ts.map +1 -1
  81. package/types/hooks/useTheme.d.ts.map +1 -1
  82. package/types/hooks/useVnode.d.ts +5 -5
  83. package/types/hooks/useVnode.d.ts.map +1 -1
  84. package/types/index.d.ts +0 -3
  85. package/types/index.d.ts.map +1 -1
  86. package/types/math/Matrix.d.ts +3 -3
  87. package/types/math/Matrix.d.ts.map +1 -1
  88. package/types/math/ShapeGroup.d.ts +0 -34
  89. package/types/math/ShapeGroup.d.ts.map +1 -1
  90. package/types/math/shapes/Sector.d.ts +0 -65
  91. package/types/math/shapes/Sector.d.ts.map +1 -1
  92. package/types/math/shapes/Tip.d.ts +0 -21
  93. package/types/math/shapes/Tip.d.ts.map +1 -1
  94. package/types/rem.d.ts +1 -1
  95. package/types/rem.d.ts.map +1 -1
  96. package/types/signature.d.ts +29 -2
  97. package/types/signature.d.ts.map +1 -1
  98. package/types/vnode.d.ts.map +1 -1
  99. package/types/YZMessageChannel.d.ts +0 -21
  100. package/types/YZMessageChannel.d.ts.map +0 -1
  101. package/types/YZWorker.d.ts +0 -16
  102. package/types/YZWorker.d.ts.map +0 -1
  103. package/types/canvas/YZCanvas.d.ts +0 -1
  104. package/types/canvas/YZCanvas.d.ts.map +0 -1
  105. package/types/hooks/useTimestampValue.d.ts +0 -11
  106. package/types/hooks/useTimestampValue.d.ts.map +0 -1
  107. package/types/math/ShapeCombo.d.ts +0 -38
  108. package/types/math/ShapeCombo.d.ts.map +0 -1
  109. package/types/math/math/cameras/Camera.d.ts +0 -1
  110. package/types/math/math/cameras/Camera.d.ts.map +0 -1
  111. package/types/math/math/controls/Controls.d.ts +0 -1
  112. package/types/math/math/controls/Controls.d.ts.map +0 -1
  113. package/types/math/math/controls/OrbitControls.d.ts +0 -1
  114. package/types/math/math/controls/OrbitControls.d.ts.map +0 -1
  115. package/types/math/math/core/BufferGeometry.d.ts +0 -1
  116. package/types/math/math/core/BufferGeometry.d.ts.map +0 -1
  117. package/types/math/math/core/GLBufferAttribute.d.ts +0 -1
  118. package/types/math/math/core/GLBufferAttribute.d.ts.map +0 -1
  119. package/types/math/math/interpolants/Interpolant.d.ts +0 -14
  120. package/types/math/math/interpolants/Interpolant.d.ts.map +0 -1
  121. package/types/math/shapes/Arrow.d.ts +0 -10
  122. package/types/math/shapes/Arrow.d.ts.map +0 -1
  123. package/types/math/shapes/Confetti.d.ts +0 -27
  124. package/types/math/shapes/Confetti.d.ts.map +0 -1
  125. package/types/math/shapes/Cross.d.ts +0 -6
  126. package/types/math/shapes/Cross.d.ts.map +0 -1
  127. package/types/math/shapes/Ellipse.d.ts +0 -22
  128. package/types/math/shapes/Ellipse.d.ts.map +0 -1
  129. package/types/math/shapes/Fox.d.ts +0 -10
  130. package/types/math/shapes/Fox.d.ts.map +0 -1
  131. package/types/math/shapes/HalfRing.d.ts +0 -27
  132. package/types/math/shapes/HalfRing.d.ts.map +0 -1
  133. package/types/math/shapes/HalfRingIndicator.d.ts +0 -34
  134. package/types/math/shapes/HalfRingIndicator.d.ts.map +0 -1
  135. package/types/math/shapes/Heart.d.ts +0 -13
  136. package/types/math/shapes/Heart.d.ts.map +0 -1
  137. package/types/math/shapes/HeartVariant.d.ts +0 -13
  138. package/types/math/shapes/HeartVariant.d.ts.map +0 -1
  139. package/types/math/shapes/Line.d.ts +0 -19
  140. package/types/math/shapes/Line.d.ts.map +0 -1
  141. package/types/math/shapes/LinePicture.d.ts +0 -15
  142. package/types/math/shapes/LinePicture.d.ts.map +0 -1
  143. package/types/math/shapes/LineQuadraticBezier.d.ts +0 -21
  144. package/types/math/shapes/LineQuadraticBezier.d.ts.map +0 -1
  145. package/types/math/shapes/Point.d.ts +0 -85
  146. package/types/math/shapes/Point.d.ts.map +0 -1
  147. package/types/math/shapes/Points.d.ts +0 -28
  148. package/types/math/shapes/Points.d.ts.map +0 -1
  149. package/types/math/shapes/Rabbit.d.ts +0 -8
  150. package/types/math/shapes/Rabbit.d.ts.map +0 -1
  151. package/types/math/shapes/Rect.d.ts +0 -33
  152. package/types/math/shapes/Rect.d.ts.map +0 -1
  153. package/types/math/shapes/Ring.d.ts +0 -24
  154. package/types/math/shapes/Ring.d.ts.map +0 -1
  155. package/types/math/shapes/RingIndicator.d.ts +0 -28
  156. package/types/math/shapes/RingIndicator.d.ts.map +0 -1
  157. package/types/math/shapes/Segment.d.ts +0 -22
  158. package/types/math/shapes/Segment.d.ts.map +0 -1
  159. package/types/math/shapes/Ship.d.ts +0 -13
  160. package/types/math/shapes/Ship.d.ts.map +0 -1
  161. package/types/math/shapes/Slider.d.ts +0 -23
  162. package/types/math/shapes/Slider.d.ts.map +0 -1
  163. package/types/math/shapes/Star.d.ts +0 -11
  164. package/types/math/shapes/Star.d.ts.map +0 -1
  165. package/types/math/shapes/Text.d.ts +0 -21
  166. package/types/math/shapes/Text.d.ts.map +0 -1
  167. package/types/math/shapes/Tree.d.ts +0 -7
  168. package/types/math/shapes/Tree.d.ts.map +0 -1
  169. package/types/math/shapes/index.d.ts +0 -29
  170. package/types/math/shapes/index.d.ts.map +0 -1
  171. package/types/svg/YZSVG.d.ts +0 -1
  172. package/types/svg/YZSVG.d.ts.map +0 -1
  173. package/types/url.d.ts +0 -21
  174. package/types/url.d.ts.map +0 -1
@@ -1,21 +0,0 @@
1
- export type YZMessageChannelCallback = (port: MessagePort, event: MessageEvent) => void;
2
- export declare class YZMessageChannel {
3
- port1: MessagePort;
4
- port2: MessagePort;
5
- private port1MessageCbs;
6
- private port2MessageCbs;
7
- private port1MessageErrorCbs;
8
- private port2MessageErrorCbs;
9
- constructor();
10
- close(): void;
11
- onPort1Message(cb: YZMessageChannelCallback): void;
12
- onPort1MessageError(cb: YZMessageChannelCallback): void;
13
- offPort1Message(cb: YZMessageChannelCallback): void;
14
- offPort1MessageError(cb: YZMessageChannelCallback): void;
15
- onPort2Message(cb: YZMessageChannelCallback): void;
16
- onPort2MessageError(cb: YZMessageChannelCallback): void;
17
- offPort2Message(cb: YZMessageChannelCallback): void;
18
- offPort2MessageError(cb: YZMessageChannelCallback): void;
19
- }
20
- export default YZMessageChannel;
21
- //# sourceMappingURL=YZMessageChannel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"YZMessageChannel.d.ts","sourceRoot":"","sources":["../src/YZMessageChannel.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,wBAAwB,GAAG,CACrC,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,YAAY,KAChB,IAAI,CAAC;AAEV,qBAAa,gBAAgB;IACpB,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,WAAW,CAAC;IAE1B,OAAO,CAAC,eAAe,CAAkC;IACzD,OAAO,CAAC,eAAe,CAAkC;IAEzD,OAAO,CAAC,oBAAoB,CAAkC;IAC9D,OAAO,CAAC,oBAAoB,CAAkC;;IAqC9D,KAAK;IAKL,cAAc,CAAC,EAAE,EAAE,wBAAwB;IAG3C,mBAAmB,CAAC,EAAE,EAAE,wBAAwB;IAGhD,eAAe,CAAC,EAAE,EAAE,wBAAwB;IAG5C,oBAAoB,CAAC,EAAE,EAAE,wBAAwB;IAIjD,cAAc,CAAC,EAAE,EAAE,wBAAwB;IAG3C,mBAAmB,CAAC,EAAE,EAAE,wBAAwB;IAGhD,eAAe,CAAC,EAAE,EAAE,wBAAwB;IAG5C,oBAAoB,CAAC,EAAE,EAAE,wBAAwB;CAGlD;AAED,eAAe,gBAAgB,CAAC"}
@@ -1,16 +0,0 @@
1
- export declare class YZWorker {
2
- worker: Worker;
3
- cbs: Record<string, () => void>;
4
- constructor(code: string);
5
- postMessage(message: any, transfer?: Transferable[]): void;
6
- onmessage(cb: (ev: MessageEvent) => any): void;
7
- offmessage(cb: (ev: MessageEvent) => any): void;
8
- onmessageerror(cb: (ev: MessageEvent) => any): void;
9
- offmessageerror(cb: (ev: MessageEvent) => any): void;
10
- postCanvas(canvas: HTMLCanvasElement): void;
11
- postPort(port: MessagePort): void;
12
- postReset(): void;
13
- fire(messages: Record<string, any>, done?: () => void): Promise<void>;
14
- }
15
- export default YZWorker;
16
- //# sourceMappingURL=YZWorker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"YZWorker.d.ts","sourceRoot":"","sources":["../src/YZWorker.ts"],"names":[],"mappings":"AAEA,qBAAa,QAAQ;IACnB,MAAM,EAAE,MAAM,CAAC;IAEf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,CAAM;gBAEzB,IAAI,EAAE,MAAM;IAmCxB,WAAW,CAAC,OAAO,EAAE,GAAG,EAAE,QAAQ,GAAE,YAAY,EAAO;IAIvD,SAAS,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,GAAG;IAKvC,UAAU,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,GAAG;IAIxC,cAAc,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,GAAG;IAK5C,eAAe,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,YAAY,KAAK,GAAG;IAI7C,UAAU,CAAC,MAAM,EAAE,iBAAiB;IAKpC,QAAQ,CAAC,IAAI,EAAE,WAAW;IAI1B,SAAS;IAQT,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAsBtE;AAED,eAAe,QAAQ,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=YZCanvas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"YZCanvas.d.ts","sourceRoot":"","sources":["../../src/canvas/YZCanvas.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- export declare function useTimestampValue(initValue: any, options?: {
2
- aliveInSeconds?: number;
3
- aliveUntilTimestamp?: number;
4
- }): {
5
- get: () => {
6
- value: any;
7
- rawValue: any;
8
- };
9
- set: (v: any) => any;
10
- };
11
- //# sourceMappingURL=useTimestampValue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useTimestampValue.d.ts","sourceRoot":"","sources":["../../src/hooks/useTimestampValue.ts"],"names":[],"mappings":"AAOA,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,GAAG,EACd,OAAO,CAAC,EAAE;IACR,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;;;;;aAwCU,GAAG;EAEf"}
@@ -1,38 +0,0 @@
1
- import { TweenRawOptions } from "../animate";
2
- import { Shape, TShapeRunSpringOptions } from "./Shape";
3
- import { Points } from "./shapes";
4
- import { ShapeGroup } from "./ShapeGroup";
5
- type TShapeComboRunSpringOptions = TShapeRunSpringOptions & {
6
- springLength?: number;
7
- };
8
- export declare class ShapeCombo {
9
- private shapes;
10
- constructor(shapes: Shape[]);
11
- run(options?: {
12
- wall?: {
13
- x: number;
14
- y: number;
15
- width: number;
16
- height: number;
17
- };
18
- bounce?: number;
19
- }): void;
20
- gravitate(): void;
21
- springChain(options?: TShapeRunSpringOptions): void;
22
- springConnect(options?: TShapeComboRunSpringOptions): void;
23
- springMass(wall: {
24
- x: number;
25
- y: number;
26
- width: number;
27
- height: number;
28
- }, options?: TShapeComboRunSpringOptions): number[][];
29
- polymorph(): (offset: number) => Shape;
30
- polymorphGroup(): (offset: number) => ShapeGroup;
31
- polymorphTween(frameDuration?: number, options?: TweenRawOptions & {
32
- draw?: (shape: Shape) => void;
33
- }): void;
34
- static generatePointsShape(centerX: number, centerY: number, sideDistance: number, sideCount: number): Points;
35
- static generateRosettaShape(x: number, y: number, rx: number, ry: number, n: number): Shape;
36
- }
37
- export default ShapeCombo;
38
- //# sourceMappingURL=ShapeCombo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ShapeCombo.d.ts","sourceRoot":"","sources":["../../src/math/ShapeCombo.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,eAAe,EAAc,MAAM,YAAY,CAAC;AAEnE,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,KAAK,2BAA2B,GAAG,sBAAsB,GAAG;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAU;gBAEZ,MAAM,EAAE,KAAK,EAAE;IAI3B,GAAG,CAAC,OAAO,CAAC,EAAE;QACZ,IAAI,CAAC,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;IAgBM,SAAS;IAWT,WAAW,CAAC,OAAO,CAAC,EAAE,sBAAsB;IAQ5C,aAAa,CAAC,OAAO,CAAC,EAAE,2BAA2B;IAoBnD,UAAU,CACf,IAAI,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAC7D,OAAO,CAAC,EAAE,2BAA2B,GACpC,MAAM,EAAE,EAAE;IA6Bb,SAAS,IAAI,CAAC,MAAM,EAAE,MAAM,KAAK,KAAK;IA+CtC,cAAc,IAAI,CAAC,MAAM,EAAE,MAAM,KAAK,UAAU;IAkDhD,cAAc,CACZ,aAAa,SAAO,EACpB,OAAO,CAAC,EAAE,eAAe,GAAG;QAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;KAAE;IAuB/D,MAAM,CAAC,mBAAmB,CACxB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,MAAM,GAChB,MAAM;IAUT,MAAM,CAAC,oBAAoB,CACzB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,EACV,CAAC,EAAE,MAAM,GACR,KAAK;CAyCT;AAED,eAAe,UAAU,CAAC"}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=Camera.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Camera.d.ts","sourceRoot":"","sources":["../../../../src/math/math/cameras/Camera.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=Controls.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../../src/math/math/controls/Controls.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=OrbitControls.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OrbitControls.d.ts","sourceRoot":"","sources":["../../../../src/math/math/controls/OrbitControls.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=BufferGeometry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BufferGeometry.d.ts","sourceRoot":"","sources":["../../../../src/math/math/core/BufferGeometry.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- //# sourceMappingURL=GLBufferAttribute.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GLBufferAttribute.d.ts","sourceRoot":"","sources":["../../../../src/math/math/core/GLBufferAttribute.ts"],"names":[],"mappings":""}
@@ -1,14 +0,0 @@
1
- export declare class Interpolant {
2
- private _cachedIndex;
3
- parameterPositions: number[];
4
- sampleValues: number[];
5
- valueSize: number;
6
- resultBuffer: number[];
7
- constructor(parameterPositions: number[], sampleValues: number[], sampleSize: number, resultBuffer?: number[]);
8
- evaluate(t: number): void | number[];
9
- copySampleValue_(index: number): number[];
10
- interpolate_(i1: number, t0: number, t: number, t1: number): void;
11
- intervalChanged_(i1: number, t0: number, t1: number): void;
12
- }
13
- export default Interpolant;
14
- //# sourceMappingURL=Interpolant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Interpolant.d.ts","sourceRoot":"","sources":["../../../../src/math/math/interpolants/Interpolant.ts"],"names":[],"mappings":"AAqBA,qBAAa,WAAW;IACtB,OAAO,CAAC,YAAY,CAAK;IAEzB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,EAAE,CAAC;gBAGrB,kBAAkB,EAAE,MAAM,EAAE,EAC5B,YAAY,EAAE,MAAM,EAAE,EACtB,UAAU,EAAE,MAAM,EAClB,YAAY,GAAE,MAAM,EAAO;IAQ7B,QAAQ,CAAC,CAAC,EAAE,MAAM;IA4HlB,gBAAgB,CAAC,KAAK,EAAE,MAAM;IAc9B,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IAK1D,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAGpD;AAED,eAAe,WAAW,CAAC"}
@@ -1,10 +0,0 @@
1
- import { YZCanvasContext } from "../../canvas";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- import { Shape, TShapeOptions } from "../Shape";
4
- export declare class Arrow extends Shape {
5
- constructor(options?: TShapeOptions);
6
- toSVGPathData(): TSVGParsedPathData[];
7
- toCanvasContext(ctx: YZCanvasContext): void;
8
- }
9
- export default Arrow;
10
- //# sourceMappingURL=Arrow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Arrow.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Arrow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,KAAM,SAAQ,KAAK;gBAClB,OAAO,CAAC,EAAE,aAAa;IAInC,aAAa,IAAI,kBAAkB,EAAE;IAcrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAYrC;AAED,eAAe,KAAK,CAAC"}
@@ -1,27 +0,0 @@
1
- import { Shape } from "../Shape";
2
- import { ShapeGroup } from "../ShapeGroup";
3
- export declare class Confetti extends ShapeGroup {
4
- private fettis;
5
- constructor(width: number, height: number, options?: Partial<{
6
- shape: Shape;
7
- x: number;
8
- y: number;
9
- particleCount: number;
10
- angle: number;
11
- spread: number;
12
- startVelocity: number;
13
- decay: number;
14
- gravity: number;
15
- drift: number;
16
- ticks: number;
17
- colors: string[];
18
- scalar: number;
19
- flat: boolean;
20
- }>);
21
- frameUpdate(mouse: {
22
- x: number;
23
- y: number;
24
- }): void;
25
- }
26
- export default Confetti;
27
- //# sourceMappingURL=Confetti.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Confetti.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Confetti.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,qBAAa,QAAS,SAAQ,UAAU;IACtC,OAAO,CAAC,MAAM,CAA6B;gBAGzC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAChB,KAAK,EAAE,KAAK,CAAC;QACb,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,aAAa,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,OAAO,CAAC;KACf,CAAC;IA+EJ,WAAW,CAAC,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;CAmD5C;AAED,eAAe,QAAQ,CAAC"}
@@ -1,6 +0,0 @@
1
- import { Shape, TShapeOptions } from "../Shape";
2
- export declare class Cross extends Shape {
3
- constructor(options?: TShapeOptions);
4
- }
5
- export default Cross;
6
- //# sourceMappingURL=Cross.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Cross.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Cross.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,KAAM,SAAQ,KAAK;gBAClB,OAAO,CAAC,EAAE,aAAa;CAIpC;AAED,eAAe,KAAK,CAAC"}
@@ -1,22 +0,0 @@
1
- import { Shape, TShapeOptions } from "../Shape";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../../canvas";
4
- export type TEllipseOptions = {
5
- rx?: number;
6
- ry?: number;
7
- } & TShapeOptions;
8
- export declare class Ellipse extends Shape {
9
- rx: number;
10
- ry: number;
11
- constructor(options?: TEllipseOptions);
12
- getBoundingClientRect(): {
13
- x: number;
14
- y: number;
15
- width: number;
16
- height: number;
17
- };
18
- toSVGPathData(): TSVGParsedPathData[];
19
- toCanvasContext(ctx: YZCanvasContext): void;
20
- }
21
- export default Ellipse;
22
- //# sourceMappingURL=Ellipse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Ellipse.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Ellipse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG;IAE5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,GAAG,aAAa,CAAC;AAElB,qBAAa,OAAQ,SAAQ,KAAK;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;gBAEN,OAAO,CAAC,EAAE,eAAe;IAMrC,qBAAqB;;;;;;IASrB,aAAa,IAAI,kBAAkB,EAAE;IASrC,eAAe,CAAC,GAAG,EAAE,eAAe;CASrC;AAED,eAAe,OAAO,CAAC"}
@@ -1,10 +0,0 @@
1
- import { YZCanvasContext } from "../../canvas";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- import { Shape, TShapeOptions } from "../Shape";
4
- export declare class Fox extends Shape {
5
- constructor(options?: TShapeOptions);
6
- toSVGPathData(): TSVGParsedPathData[];
7
- toCanvasContext(ctx: YZCanvasContext): void;
8
- }
9
- export default Fox;
10
- //# sourceMappingURL=Fox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Fox.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Fox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhD,qBAAa,GAAI,SAAQ,KAAK;gBAChB,OAAO,CAAC,EAAE,aAAa;IAInC,aAAa,IAAI,kBAAkB,EAAE;IAkBrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAgBrC;AAED,eAAe,GAAG,CAAC"}
@@ -1,27 +0,0 @@
1
- import { Shape, TShapeOptions } from "../Shape";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../../canvas";
4
- export type THalfRingOptions = {
5
- x?: number;
6
- y?: number;
7
- width: number;
8
- height: number;
9
- startDegree: number;
10
- endDegree: number;
11
- extendDegree?: number;
12
- lineWidth: number;
13
- color?: CanvasGradient | string;
14
- } & TShapeOptions;
15
- export declare class HalfRing extends Shape {
16
- extendDegree: number;
17
- radius: number;
18
- startDegree: number;
19
- endDegree: number;
20
- diffDegree: number;
21
- constructor(options: THalfRingOptions);
22
- setPercent(percent: number): void;
23
- toSVGPathData(): TSVGParsedPathData[];
24
- toCanvasContext(ctx: YZCanvasContext): void;
25
- }
26
- export default HalfRing;
27
- //# sourceMappingURL=HalfRing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HalfRing.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/HalfRing.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;AA8B/C,MAAM,MAAM,gBAAgB,GAAG;IAE7B,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAGlB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,cAAc,GAAG,MAAM,CAAC;CACjC,GAAG,aAAa,CAAC;AAElB,qBAAa,QAAS,SAAQ,KAAK;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;gBAEP,OAAO,EAAE,gBAAgB;IAiC9B,UAAU,CAAC,OAAO,EAAE,MAAM;IAKjC,aAAa,IAAI,kBAAkB,EAAE;IAqBrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAWrC;AAED,eAAe,QAAQ,CAAC"}
@@ -1,34 +0,0 @@
1
- import { YZCanvasContext } from "../../canvas";
2
- import { TShapeOptions } from "../Shape";
3
- import ShapeGroup from "../ShapeGroup";
4
- import Line from "./Line";
5
- import HalfRing from "./HalfRing";
6
- export declare class HalfRingIndicator extends ShapeGroup {
7
- percent: number;
8
- ringBg: HalfRing;
9
- ring: HalfRing;
10
- lines: Line[];
11
- bgColor: string;
12
- startColor: string;
13
- endColor: string;
14
- indicatorLineCount: number;
15
- constructor(options: TShapeOptions & {
16
- x?: number;
17
- y?: number;
18
- width: number;
19
- height: number;
20
- startDegree?: number;
21
- endDegree?: number;
22
- extendDegree?: number;
23
- lineWidth?: number;
24
- bgColor?: string;
25
- startColor?: string;
26
- endColor?: string;
27
- percent?: number;
28
- });
29
- setPercent(percent: number): void;
30
- shapeInit(): void;
31
- frameUpdate(_: any, ctx?: YZCanvasContext): void;
32
- }
33
- export default HalfRingIndicator;
34
- //# sourceMappingURL=HalfRingIndicator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HalfRingIndicator.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/HalfRingIndicator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,QAAQ,MAAM,YAAY,CAAC;AA4BlC,qBAAa,iBAAkB,SAAQ,UAAU;IAC/C,OAAO,SAAK;IAEZ,MAAM,EAAE,QAAQ,CAAC;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,IAAI,EAAE,CAAM;IAEnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,EAAE,MAAM,CAAC;gBAGzB,OAAO,EAAE,aAAa,GAAG;QAEvB,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IA6EI,UAAU,CAAC,OAAO,EAAE,MAAM;IAIjC,SAAS;IAWT,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,eAAe;CAuD1C;AAED,eAAe,iBAAiB,CAAC"}
@@ -1,13 +0,0 @@
1
- import { Shape, TShapeOptions } from "../Shape";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- export declare class Heart extends Shape {
4
- rx: number;
5
- ry: number;
6
- constructor(options?: TShapeOptions & {
7
- rx?: number;
8
- ry?: number;
9
- });
10
- toSVGPathData(): TSVGParsedPathData[];
11
- }
12
- export default Heart;
13
- //# sourceMappingURL=Heart.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Heart.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Heart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,KAAM,SAAQ,KAAK;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;gBAGT,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;KACb;IAOH,aAAa,IAAI,kBAAkB,EAAE;CActC;AAED,eAAe,KAAK,CAAC"}
@@ -1,13 +0,0 @@
1
- import { Shape, TShapeOptions } from "../Shape";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- export declare class HeartVariant extends Shape {
4
- rx: number;
5
- ry: number;
6
- constructor(options?: TShapeOptions & {
7
- rx?: number;
8
- ry?: number;
9
- });
10
- toSVGPathData(): TSVGParsedPathData[];
11
- }
12
- export default HeartVariant;
13
- //# sourceMappingURL=HeartVariant.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HeartVariant.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/HeartVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,YAAa,SAAQ,KAAK;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;gBAGT,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;KACb;IAOH,aAAa,IAAI,kBAAkB,EAAE;CA8BtC;AAED,eAAe,YAAY,CAAC"}
@@ -1,19 +0,0 @@
1
- import Shape, { TShapeOptions } from "../Shape";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../../canvas/YZCanvasContext";
4
- export declare class Line extends Shape {
5
- toX: number;
6
- toY: number;
7
- constructor(options?: {
8
- toX?: number;
9
- toY?: number;
10
- } & TShapeOptions);
11
- toSVGPathData(): TSVGParsedPathData[];
12
- toCanvasContext(ctx: YZCanvasContext): void;
13
- intersection(line: Line): {
14
- x: number;
15
- y: number;
16
- } | null;
17
- }
18
- export default Line;
19
- //# sourceMappingURL=Line.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Line.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,qBAAa,IAAK,SAAQ,KAAK;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;gBAEA,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,aAAa;IAyCpE,aAAa,IAAI,kBAAkB,EAAE;IAiBrC,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAM3C,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAe1D;AAED,eAAe,IAAI,CAAC"}
@@ -1,15 +0,0 @@
1
- import { TShapeOptions } from "../Shape";
2
- import ShapeGroup from "../ShapeGroup";
3
- export declare class LinePicture extends ShapeGroup {
4
- svgWidth: number;
5
- svgHeight: number;
6
- width: number;
7
- height: number;
8
- constructor(options: {
9
- svg: string;
10
- width?: number;
11
- } & TShapeOptions);
12
- shapeInit(): void;
13
- }
14
- export default LinePicture;
15
- //# sourceMappingURL=LinePicture.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LinePicture.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/LinePicture.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,qBAAa,WAAY,SAAQ,UAAU;IACzC,QAAQ,SAAK;IACb,SAAS,SAAK;IACd,KAAK,SAAK;IACV,MAAM,SAAK;gBAEC,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,aAAa;IA2EpE,SAAS;CAGV;AAED,eAAe,WAAW,CAAC"}
@@ -1,21 +0,0 @@
1
- import Shape, { TShapeOptions } from "../Shape";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../../canvas/YZCanvasContext";
4
- export declare class LineQuadraticBezier extends Shape {
5
- cx: number;
6
- cy: number;
7
- toX: number;
8
- toY: number;
9
- isLineThrough: boolean;
10
- constructor(options?: {
11
- cx?: number;
12
- cy?: number;
13
- toX?: number;
14
- toY?: number;
15
- isLineThrough?: boolean;
16
- } & TShapeOptions);
17
- toSVGPathData(): TSVGParsedPathData[];
18
- toCanvasContext(ctx: YZCanvasContext): void;
19
- }
20
- export default LineQuadraticBezier;
21
- //# sourceMappingURL=LineQuadraticBezier.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LineQuadraticBezier.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/LineQuadraticBezier.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,OAAO,CAAC;gBAGrB,OAAO,CAAC,EAAE;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,GAAG,aAAa;IAgBnB,aAAa,IAAI,kBAAkB,EAAE;IAsBrC,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;CAqB5C;AAED,eAAe,mBAAmB,CAAC"}
@@ -1,85 +0,0 @@
1
- import { Shape, TShapeOptions } from "../Shape";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../../canvas";
4
- export type TPointOptions = {
5
- radius?: number;
6
- } & TShapeOptions;
7
- export declare class Point extends Shape {
8
- radius: number;
9
- constructor(options?: TPointOptions);
10
- getBoundingClientRect(): {
11
- x: number;
12
- y: number;
13
- width: number;
14
- height: number;
15
- };
16
- toSVGPathData(): TSVGParsedPathData[];
17
- toCanvasContext(ctx: YZCanvasContext): void;
18
- eq(point: Point): boolean;
19
- midPointBtw(point: Point): {
20
- x: number;
21
- y: number;
22
- };
23
- length(): number;
24
- scalar(scale: number): this;
25
- normalize(len?: number): Point;
26
- clamp(len: number): this;
27
- cross(pt: {
28
- x: number;
29
- y: number;
30
- }): {
31
- x: number;
32
- y: number;
33
- };
34
- multiply(pt: {
35
- x: number;
36
- y: number;
37
- }): {
38
- x: number;
39
- y: number;
40
- };
41
- div(pt: {
42
- x: number;
43
- y: number;
44
- }): {
45
- x: number;
46
- y: number;
47
- };
48
- add(pt: {
49
- x: number;
50
- y: number;
51
- }): {
52
- x: number;
53
- y: number;
54
- };
55
- sub(pt: {
56
- x: number;
57
- y: number;
58
- }): {
59
- x: number;
60
- y: number;
61
- };
62
- dot(pt: {
63
- x: number;
64
- y: number;
65
- }): number;
66
- reflect(pt: {
67
- x: number;
68
- y: number;
69
- }): {
70
- x: number;
71
- y: number;
72
- };
73
- checkCollision(target: Point): void;
74
- checkWall(options: {
75
- wall: {
76
- x: number;
77
- y: number;
78
- width: number;
79
- height: number;
80
- };
81
- bounce?: number;
82
- }): void;
83
- }
84
- export default Point;
85
- //# sourceMappingURL=Point.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/C,MAAM,MAAM,aAAa,GAAG;IAE1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,aAAa,CAAC;AAElB,qBAAa,KAAM,SAAQ,KAAK;IACvB,MAAM,EAAE,MAAM,CAAC;gBAEV,OAAO,CAAC,EAAE,aAAa;IAKnC,qBAAqB;;;;;;IASrB,aAAa,IAAI,kBAAkB,EAAE;IAarC,eAAe,CAAC,GAAG,EAAE,eAAe;IAMpC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IASzB,WAAW,CAAC,KAAK,EAAE,KAAK;;;;IAOxB,MAAM;IAIN,MAAM,CAAC,KAAK,EAAE,MAAM;IAMpB,SAAS,CAAC,GAAG,SAAI,GAAG,KAAK;IASzB,KAAK,CAAC,GAAG,EAAE,MAAM;IAQjB,KAAK,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IASlC,QAAQ,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAOrC,GAAG,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAOhC,GAAG,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAOhC,GAAG,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAOhC,GAAG,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM;IAIzC,OAAO,CAAC,EAAE,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IASpC,cAAc,CAAC,MAAM,EAAE,KAAK;IA4C5B,SAAS,CAAC,OAAO,EAAE;QACjB,IAAI,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CAqBF;AAED,eAAe,KAAK,CAAC"}
@@ -1,28 +0,0 @@
1
- import { Shape, TShapeOptions } from "../Shape";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../../canvas";
4
- export declare class Points extends Shape {
5
- private points;
6
- isStraight: boolean;
7
- constructor(options: TShapeOptions & {
8
- points: {
9
- x: number;
10
- y: number;
11
- }[];
12
- isStraight?: boolean;
13
- });
14
- toSVGPathData(): TSVGParsedPathData[];
15
- toCanvasContext(ctx: YZCanvasContext): void;
16
- isContainPoint(x: number, y: number): boolean;
17
- [Symbol.iterator](): {
18
- next: () => {
19
- value: {
20
- x: number;
21
- y: number;
22
- } | undefined;
23
- done: boolean;
24
- };
25
- };
26
- }
27
- export default Points;
28
- //# sourceMappingURL=Points.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Points.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Points.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAM/C,qBAAa,MAAO,SAAQ,KAAK;IAC/B,OAAO,CAAC,MAAM,CAA6B;IACpC,UAAU,EAAE,OAAO,CAAC;gBAGzB,OAAO,EAAE,aAAa,GAAG;QACvB,MAAM,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACnC,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB;IAWH,aAAa,IAAI,kBAAkB,EAAE;IAsCrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAmCpC,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAwCnC,CAAC,MAAM,CAAC,QAAQ,CAAC;;;mBAnII,MAAM;mBAAK,MAAM;;;;;CA6IvC;AAED,eAAe,MAAM,CAAC"}
@@ -1,8 +0,0 @@
1
- import { Shape, TShapeOptions } from "../Shape";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- export declare class Rabbit extends Shape {
4
- constructor(options?: TShapeOptions);
5
- toSVGPathData(): TSVGParsedPathData[];
6
- }
7
- export default Rabbit;
8
- //# sourceMappingURL=Rabbit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Rabbit.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Rabbit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,MAAO,SAAQ,KAAK;gBACnB,OAAO,CAAC,EAAE,aAAa;IAInC,aAAa,IAAI,kBAAkB,EAAE;CAWtC;AAED,eAAe,MAAM,CAAC"}
@@ -1,33 +0,0 @@
1
- import { Shape, TShapeOptions } from "../Shape";
2
- import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../../canvas/YZCanvasContext";
4
- export type TRectOptions = {
5
- width: number;
6
- height: number;
7
- borderRadius?: number;
8
- } & TShapeOptions;
9
- export declare class Rect extends Shape {
10
- width: number;
11
- height: number;
12
- borderRadius: number;
13
- constructor(options: TRectOptions);
14
- static fromCubicBezier(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number): Rect;
15
- getBoundingClientRect(): {
16
- x: number;
17
- y: number;
18
- width: number;
19
- height: number;
20
- };
21
- toSVGPathData(): TSVGParsedPathData[];
22
- toCanvasContext(ctx: YZCanvasContext): void;
23
- eq(rect: Rect): boolean;
24
- isIntersectRect(rect: {
25
- x: number;
26
- y: number;
27
- width: number;
28
- height: number;
29
- }): boolean;
30
- isContainPoint(x: number, y: number): boolean;
31
- }
32
- export default Rect;
33
- //# sourceMappingURL=Rect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Rect.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,aAAa,CAAC;AAElB,qBAAa,IAAK,SAAQ,KAAK;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;gBAET,OAAO,EAAE,YAAY;IAOjC,MAAM,CAAC,eAAe,CACpB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,IAAI;IAcP,qBAAqB;;;;;;IASrB,aAAa,IAAI,kBAAkB,EAAE;IA6DrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAuBpC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAUvB,eAAe,CAAC,IAAI,EAAE;QACpB,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB;IAaD,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;CAcpC;AAED,eAAe,IAAI,CAAC"}