@zyzgroup/core-web 0.0.75 → 0.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/dist/animate_ce.css +615 -0
  2. package/dist/zyzgroup_core_web.iife.js +16 -16
  3. package/dist/zyzgroup_core_web.iife.js.map +1 -1
  4. package/dist/zyzgroup_core_web.js +13539 -12642
  5. package/dist/zyzgroup_core_web.js.map +1 -1
  6. package/dist/zyzgroup_core_web.umd.cjs +16 -16
  7. package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
  8. package/package.json +1 -1
  9. package/types/YZWorker.d.ts.map +1 -1
  10. package/types/ajax.d.ts +0 -1
  11. package/types/ajax.d.ts.map +1 -1
  12. package/types/animate/Clock.d.ts +14 -0
  13. package/types/animate/Clock.d.ts.map +1 -0
  14. package/types/animate/Timeline.d.ts +43 -0
  15. package/types/animate/Timeline.d.ts.map +1 -0
  16. package/types/animate/{YZAnimate.d.ts → _YZAnimate.d.ts} +3 -3
  17. package/types/animate/_YZAnimate.d.ts.map +1 -0
  18. package/types/animate/index.d.ts +3 -2
  19. package/types/animate/index.d.ts.map +1 -1
  20. package/types/animate/schedule.d.ts +11 -0
  21. package/types/animate/schedule.d.ts.map +1 -0
  22. package/types/animate/tween/BezierEasing.d.ts +8 -0
  23. package/types/animate/tween/BezierEasing.d.ts.map +1 -0
  24. package/types/animate/tween/Easing.d.ts +1 -0
  25. package/types/animate/tween/Easing.d.ts.map +1 -1
  26. package/types/animate/tween/Group.d.ts.map +1 -1
  27. package/types/animate/tween/Interpolation.d.ts +3 -1
  28. package/types/animate/tween/Interpolation.d.ts.map +1 -1
  29. package/types/animate/tween/Now.d.ts +0 -2
  30. package/types/animate/tween/Now.d.ts.map +1 -1
  31. package/types/animate/tween/Tween.d.ts.map +1 -1
  32. package/types/animate/tween/index.d.ts +8 -3
  33. package/types/animate/tween/index.d.ts.map +1 -1
  34. package/types/canvas/YZCanvas.d.ts +6 -5
  35. package/types/canvas/YZCanvas.d.ts.map +1 -1
  36. package/types/canvas/YZCanvasContext.d.ts.map +1 -1
  37. package/types/dom/DOMEventBus.d.ts +68 -42
  38. package/types/dom/DOMEventBus.d.ts.map +1 -1
  39. package/types/dom/DOMKey.d.ts +18 -0
  40. package/types/dom/DOMKey.d.ts.map +1 -1
  41. package/types/dom/DOMUtil.d.ts +18 -6
  42. package/types/dom/DOMUtil.d.ts.map +1 -1
  43. package/types/env.d.ts.map +1 -1
  44. package/types/image/bitmap.d.ts +5 -4
  45. package/types/image/bitmap.d.ts.map +1 -1
  46. package/types/image/image.d.ts +5 -0
  47. package/types/image/image.d.ts.map +1 -1
  48. package/types/index.d.ts +1 -4
  49. package/types/index.d.ts.map +1 -1
  50. package/types/loaders/AudioLoader.d.ts +12 -0
  51. package/types/loaders/AudioLoader.d.ts.map +1 -0
  52. package/types/loaders/Cache.d.ts +10 -0
  53. package/types/loaders/Cache.d.ts.map +1 -0
  54. package/types/loaders/FileLoader.d.ts +16 -0
  55. package/types/loaders/FileLoader.d.ts.map +1 -0
  56. package/types/loaders/ImageBitmapLoader.d.ts +14 -0
  57. package/types/loaders/ImageBitmapLoader.d.ts.map +1 -0
  58. package/types/loaders/ImageLoader.d.ts +11 -0
  59. package/types/loaders/ImageLoader.d.ts.map +1 -0
  60. package/types/loaders/Loader.d.ts +25 -0
  61. package/types/loaders/Loader.d.ts.map +1 -0
  62. package/types/loaders/LoadingManager.d.ts +29 -0
  63. package/types/loaders/LoadingManager.d.ts.map +1 -0
  64. package/types/loaders/index.d.ts +5 -0
  65. package/types/loaders/index.d.ts.map +1 -0
  66. package/types/math/Matrix.d.ts +65 -32
  67. package/types/math/Matrix.d.ts.map +1 -1
  68. package/types/math/Shape.d.ts +127 -84
  69. package/types/math/Shape.d.ts.map +1 -1
  70. package/types/math/ShapeCombo.d.ts +38 -0
  71. package/types/math/ShapeCombo.d.ts.map +1 -0
  72. package/types/math/ShapeGroup.d.ts +28 -14
  73. package/types/math/ShapeGroup.d.ts.map +1 -1
  74. package/types/math/index.d.ts +1 -15
  75. package/types/math/index.d.ts.map +1 -1
  76. package/types/math/line/Arc.d.ts +25 -0
  77. package/types/math/line/Arc.d.ts.map +1 -0
  78. package/types/math/{CubicBezier.d.ts → line/CubicBezier.d.ts} +20 -12
  79. package/types/math/line/CubicBezier.d.ts.map +1 -0
  80. package/types/math/line/L.d.ts +33 -0
  81. package/types/math/line/L.d.ts.map +1 -0
  82. package/types/math/line/PathD.d.ts +82 -0
  83. package/types/math/line/PathD.d.ts.map +1 -0
  84. package/types/math/line/QuadraticBezier.d.ts +30 -0
  85. package/types/math/line/QuadraticBezier.d.ts.map +1 -0
  86. package/types/math/line/index.d.ts +6 -0
  87. package/types/math/line/index.d.ts.map +1 -0
  88. package/types/math/math/cameras/Camera.d.ts +12 -0
  89. package/types/math/math/cameras/Camera.d.ts.map +1 -0
  90. package/types/math/math/constants.d.ts +211 -0
  91. package/types/math/math/constants.d.ts.map +1 -0
  92. package/types/math/math/controls/Controls.d.ts +25 -0
  93. package/types/math/math/controls/Controls.d.ts.map +1 -0
  94. package/types/math/math/controls/OrbitControls.d.ts +1 -0
  95. package/types/math/math/controls/OrbitControls.d.ts.map +1 -0
  96. package/types/math/math/core/BufferAttribute.d.ts +94 -0
  97. package/types/math/math/core/BufferAttribute.d.ts.map +1 -0
  98. package/types/math/math/core/BufferGeometry.d.ts +1 -0
  99. package/types/math/math/core/BufferGeometry.d.ts.map +1 -0
  100. package/types/math/math/core/EventDispatcher.d.ts +14 -0
  101. package/types/math/math/core/EventDispatcher.d.ts.map +1 -0
  102. package/types/math/math/core/GLBufferAttribute.d.ts +19 -0
  103. package/types/math/math/core/GLBufferAttribute.d.ts.map +1 -0
  104. package/types/math/math/core/Layers.d.ts +14 -0
  105. package/types/math/math/core/Layers.d.ts.map +1 -0
  106. package/types/math/math/core/Object3D.d.ts +91 -0
  107. package/types/math/math/core/Object3D.d.ts.map +1 -0
  108. package/types/math/math/index.d.ts +10 -0
  109. package/types/math/math/index.d.ts.map +1 -0
  110. package/types/math/math/interpolants/Interpolant.d.ts +14 -0
  111. package/types/math/math/interpolants/Interpolant.d.ts.map +1 -0
  112. package/types/math/math/math/Box2.d.ts +30 -0
  113. package/types/math/math/math/Box2.d.ts.map +1 -0
  114. package/types/math/math/math/Box3.d.ts +46 -0
  115. package/types/math/math/math/Box3.d.ts.map +1 -0
  116. package/types/math/math/math/Color.d.ts +59 -0
  117. package/types/math/math/math/Color.d.ts.map +1 -0
  118. package/types/math/math/math/ColorManagement.d.ts +20 -0
  119. package/types/math/math/math/ColorManagement.d.ts.map +1 -0
  120. package/types/math/math/math/Cylindrical.d.ts +14 -0
  121. package/types/math/math/math/Cylindrical.d.ts.map +1 -0
  122. package/types/math/math/math/Euler.d.ts +35 -0
  123. package/types/math/math/math/Euler.d.ts.map +1 -0
  124. package/types/math/math/math/Frustum.d.ts +21 -0
  125. package/types/math/math/math/Frustum.d.ts.map +1 -0
  126. package/types/math/math/math/Line3.d.ts +21 -0
  127. package/types/math/math/math/Line3.d.ts.map +1 -0
  128. package/types/math/math/math/Matrix.d.ts +16 -0
  129. package/types/math/math/math/Matrix.d.ts.map +1 -0
  130. package/types/math/math/math/Matrix2.d.ts +19 -0
  131. package/types/math/math/math/Matrix2.d.ts.map +1 -0
  132. package/types/math/math/math/Matrix3.d.ts +46 -0
  133. package/types/math/math/math/Matrix3.d.ts.map +1 -0
  134. package/types/math/math/math/Matrix4.d.ts +66 -0
  135. package/types/math/math/math/Matrix4.d.ts.map +1 -0
  136. package/types/math/math/math/Plane.d.ts +32 -0
  137. package/types/math/math/math/Plane.d.ts.map +1 -0
  138. package/types/math/math/math/Quaternion.d.ts +52 -0
  139. package/types/math/math/math/Quaternion.d.ts.map +1 -0
  140. package/types/math/math/math/Ray.d.ts +32 -0
  141. package/types/math/math/math/Ray.d.ts.map +1 -0
  142. package/types/math/math/math/Sphere.d.ts +29 -0
  143. package/types/math/math/math/Sphere.d.ts.map +1 -0
  144. package/types/math/math/math/Spherical.d.ts +15 -0
  145. package/types/math/math/math/Spherical.d.ts.map +1 -0
  146. package/types/math/math/math/SphericalHarmonics3.d.ts +21 -0
  147. package/types/math/math/math/SphericalHarmonics3.d.ts.map +1 -0
  148. package/types/math/math/math/Triangle.d.ts +35 -0
  149. package/types/math/math/math/Triangle.d.ts.map +1 -0
  150. package/types/math/math/math/Vector.d.ts +19 -0
  151. package/types/math/math/math/Vector.d.ts.map +1 -0
  152. package/types/math/math/math/Vector2.d.ts +66 -0
  153. package/types/math/math/math/Vector2.d.ts.map +1 -0
  154. package/types/math/math/math/Vector3.d.ts +80 -0
  155. package/types/math/math/math/Vector3.d.ts.map +1 -0
  156. package/types/math/math/math/Vector4.d.ts +64 -0
  157. package/types/math/math/math/Vector4.d.ts.map +1 -0
  158. package/types/math/math.d.ts +6 -1
  159. package/types/math/math.d.ts.map +1 -1
  160. package/types/math/shapes/Arrow.d.ts.map +1 -1
  161. package/types/math/{ComboConfetti.d.ts → shapes/Confetti.d.ts} +10 -8
  162. package/types/math/shapes/Confetti.d.ts.map +1 -0
  163. package/types/math/shapes/Cross.d.ts +2 -3
  164. package/types/math/shapes/Cross.d.ts.map +1 -1
  165. package/types/math/{Ellipse.d.ts → shapes/Ellipse.d.ts} +9 -5
  166. package/types/math/shapes/Ellipse.d.ts.map +1 -0
  167. package/types/math/shapes/Fox.d.ts.map +1 -1
  168. package/types/math/shapes/Heart.d.ts +6 -3
  169. package/types/math/shapes/Heart.d.ts.map +1 -1
  170. package/types/math/shapes/HeartVariant.d.ts +6 -3
  171. package/types/math/shapes/HeartVariant.d.ts.map +1 -1
  172. package/types/math/{Light3D.d.ts → shapes/Light3D.d.ts} +2 -5
  173. package/types/math/shapes/Light3D.d.ts.map +1 -0
  174. package/types/math/shapes/Line.d.ts +19 -0
  175. package/types/math/shapes/Line.d.ts.map +1 -0
  176. package/types/math/shapes/LinePicture.d.ts +15 -0
  177. package/types/math/shapes/LinePicture.d.ts.map +1 -0
  178. package/types/math/shapes/LineQuadraticBezier.d.ts +21 -0
  179. package/types/math/shapes/LineQuadraticBezier.d.ts.map +1 -0
  180. package/types/math/shapes/Point.d.ts +85 -0
  181. package/types/math/shapes/Point.d.ts.map +1 -0
  182. package/types/math/{Point3D.d.ts → shapes/Point3D.d.ts} +4 -6
  183. package/types/math/shapes/Point3D.d.ts.map +1 -0
  184. package/types/math/{Point3Ds.d.ts → shapes/Point3Ds.d.ts} +3 -3
  185. package/types/math/shapes/Point3Ds.d.ts.map +1 -0
  186. package/types/math/shapes/Points.d.ts +28 -0
  187. package/types/math/shapes/Points.d.ts.map +1 -0
  188. package/types/math/shapes/Rabbit.d.ts +4 -3
  189. package/types/math/shapes/Rabbit.d.ts.map +1 -1
  190. package/types/math/shapes/Rect.d.ts +33 -0
  191. package/types/math/shapes/Rect.d.ts.map +1 -0
  192. package/types/math/shapes/Ring.d.ts +7 -4
  193. package/types/math/shapes/Ring.d.ts.map +1 -1
  194. package/types/math/shapes/RingIndicator.d.ts +34 -0
  195. package/types/math/shapes/RingIndicator.d.ts.map +1 -0
  196. package/types/math/shapes/Sector.d.ts +15 -4
  197. package/types/math/shapes/Sector.d.ts.map +1 -1
  198. package/types/math/shapes/Segment.d.ts +10 -3
  199. package/types/math/shapes/Segment.d.ts.map +1 -1
  200. package/types/math/shapes/Ship.d.ts +4 -2
  201. package/types/math/shapes/Ship.d.ts.map +1 -1
  202. package/types/math/shapes/Slider.d.ts +7 -13
  203. package/types/math/shapes/Slider.d.ts.map +1 -1
  204. package/types/math/shapes/Star.d.ts +5 -3
  205. package/types/math/shapes/Star.d.ts.map +1 -1
  206. package/types/math/{Text.d.ts → shapes/Text.d.ts} +3 -4
  207. package/types/math/shapes/Text.d.ts.map +1 -0
  208. package/types/math/shapes/Tip.d.ts +8 -9
  209. package/types/math/shapes/Tip.d.ts.map +1 -1
  210. package/types/math/shapes/Tree.d.ts +2 -2
  211. package/types/math/shapes/Tree.d.ts.map +1 -1
  212. package/types/math/shapes/index.d.ts +12 -0
  213. package/types/math/shapes/index.d.ts.map +1 -1
  214. package/types/patch.d.ts.map +1 -1
  215. package/types/position.d.ts +13 -16
  216. package/types/position.d.ts.map +1 -1
  217. package/types/svg/DOMSVGUtil.d.ts +1 -13
  218. package/types/svg/DOMSVGUtil.d.ts.map +1 -1
  219. package/types/svg/YZSVG.d.ts +7 -6
  220. package/types/svg/YZSVG.d.ts.map +1 -1
  221. package/types/theme.d.ts +3 -3
  222. package/types/theme.d.ts.map +1 -1
  223. package/types/YZRequestIdleCallback.d.ts +0 -14
  224. package/types/YZRequestIdleCallback.d.ts.map +0 -1
  225. package/types/animate/YZAnimate.d.ts.map +0 -1
  226. package/types/animate/requestAnimationFrameCycle.d.ts +0 -14
  227. package/types/animate/requestAnimationFrameCycle.d.ts.map +0 -1
  228. package/types/animate/tween/cubicBezierToEase.d.ts +0 -4
  229. package/types/animate/tween/cubicBezierToEase.d.ts.map +0 -1
  230. package/types/math/Arc.d.ts +0 -27
  231. package/types/math/Arc.d.ts.map +0 -1
  232. package/types/math/ComboConfetti.d.ts.map +0 -1
  233. package/types/math/CubicBezier.d.ts.map +0 -1
  234. package/types/math/Ellipse.d.ts.map +0 -1
  235. package/types/math/Light3D.d.ts.map +0 -1
  236. package/types/math/Line.d.ts +0 -28
  237. package/types/math/Line.d.ts.map +0 -1
  238. package/types/math/PathD.d.ts +0 -82
  239. package/types/math/PathD.d.ts.map +0 -1
  240. package/types/math/PathDGroup.d.ts +0 -30
  241. package/types/math/PathDGroup.d.ts.map +0 -1
  242. package/types/math/Point.d.ts +0 -58
  243. package/types/math/Point.d.ts.map +0 -1
  244. package/types/math/Point3D.d.ts.map +0 -1
  245. package/types/math/Point3Ds.d.ts.map +0 -1
  246. package/types/math/Points.d.ts +0 -23
  247. package/types/math/Points.d.ts.map +0 -1
  248. package/types/math/QuadraticBezier.d.ts +0 -26
  249. package/types/math/QuadraticBezier.d.ts.map +0 -1
  250. package/types/math/Rect.d.ts +0 -25
  251. package/types/math/Rect.d.ts.map +0 -1
  252. package/types/math/RenderGroup.d.ts +0 -18
  253. package/types/math/RenderGroup.d.ts.map +0 -1
  254. package/types/math/Text.d.ts.map +0 -1
  255. package/types/microTask.d.ts +0 -2
  256. package/types/microTask.d.ts.map +0 -1
  257. package/types/nextTick.d.ts +0 -3
  258. package/types/nextTick.d.ts.map +0 -1
  259. package/types/reactive.d.ts +0 -14
  260. package/types/reactive.d.ts.map +0 -1
  261. package/types/three/three.d.ts +0 -2
  262. package/types/three/three.d.ts.map +0 -1
@@ -1,10 +1,13 @@
1
- import { TShapeOptions } from "../Shape";
2
- import { PathD } from "../PathD";
3
- export declare class HeartVariant extends PathD {
1
+ import { Shape, TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ export declare class HeartVariant extends Shape {
4
+ rx: number;
5
+ ry: number;
4
6
  constructor(options?: TShapeOptions & {
5
7
  rx?: number;
6
8
  ry?: number;
7
9
  });
10
+ toSVGPathData(): TSVGParsedPathData[];
8
11
  }
9
12
  export default HeartVariant;
10
13
  //# sourceMappingURL=HeartVariant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeartVariant.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/HeartVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,qBAAa,YAAa,SAAQ,KAAK;gBAEnC,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;KACb;CAmDJ;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"HeartVariant.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/HeartVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,YAAa,SAAQ,KAAK;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;gBAGT,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;KACb;IAOH,aAAa,IAAI,kBAAkB,EAAE;CA8BtC;AAED,eAAe,YAAY,CAAC"}
@@ -1,6 +1,5 @@
1
- import { Shape, TShapeOptions } from "./Shape";
2
- import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../canvas";
1
+ import { Shape, TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
4
3
  export type TLight3DOptions = {
5
4
  x?: number;
6
5
  y?: number;
@@ -14,9 +13,7 @@ export declare class Light3D extends Shape {
14
13
  brightness: number;
15
14
  constructor(options?: TLight3DOptions);
16
15
  setBrightness(b: number): number;
17
- getBoundingClientRect(): null;
18
16
  toSVGPathData(): TSVGParsedPathData[];
19
- toCanvasContext(ctx: YZCanvasContext): void;
20
17
  }
21
18
  export default Light3D;
22
19
  //# sourceMappingURL=Light3D.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Light3D.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Light3D.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,aAAa,CAAC;AAElB,qBAAa,OAAQ,SAAQ,KAAK;IACzB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,UAAU,EAAE,MAAM,CAAC;gBAEd,OAAO,CAAC,EAAE,eAAe;IAQrC,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAKhC,aAAa,IAAI,kBAAkB,EAAE;CAGtC;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1,19 @@
1
+ import Shape, { TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ import { YZCanvasContext } from "../../canvas/YZCanvasContext";
4
+ export declare class Line extends Shape {
5
+ toX: number;
6
+ toY: number;
7
+ constructor(options?: {
8
+ toX?: number;
9
+ toY?: number;
10
+ } & TShapeOptions);
11
+ toSVGPathData(): TSVGParsedPathData[];
12
+ toCanvasContext(ctx: YZCanvasContext): void;
13
+ intersection(line: Line): {
14
+ x: number;
15
+ y: number;
16
+ } | null;
17
+ }
18
+ export default Line;
19
+ //# sourceMappingURL=Line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Line.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,qBAAa,IAAK,SAAQ,KAAK;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;gBAEA,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,aAAa;IAyCpE,aAAa,IAAI,kBAAkB,EAAE;IAiBrC,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;IAM3C,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAe1D;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { TShapeOptions } from "../Shape";
2
+ import ShapeGroup from "../ShapeGroup";
3
+ export declare class LinePicture extends ShapeGroup {
4
+ svgWidth: number;
5
+ svgHeight: number;
6
+ width: number;
7
+ height: number;
8
+ constructor(options: {
9
+ svg: string;
10
+ width?: number;
11
+ } & TShapeOptions);
12
+ shapeInit(): void;
13
+ }
14
+ export default LinePicture;
15
+ //# sourceMappingURL=LinePicture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinePicture.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/LinePicture.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,qBAAa,WAAY,SAAQ,UAAU;IACzC,QAAQ,SAAK;IACb,SAAS,SAAK;IACd,KAAK,SAAK;IACV,MAAM,SAAK;gBAEC,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,aAAa;IA2EpE,SAAS;CAGV;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,21 @@
1
+ import Shape, { TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ import { YZCanvasContext } from "../../canvas/YZCanvasContext";
4
+ export declare class LineQuadraticBezier extends Shape {
5
+ cx: number;
6
+ cy: number;
7
+ toX: number;
8
+ toY: number;
9
+ isLineThrough: boolean;
10
+ constructor(options?: {
11
+ cx?: number;
12
+ cy?: number;
13
+ toX?: number;
14
+ toY?: number;
15
+ isLineThrough?: boolean;
16
+ } & TShapeOptions);
17
+ toSVGPathData(): TSVGParsedPathData[];
18
+ toCanvasContext(ctx: YZCanvasContext): void;
19
+ }
20
+ export default LineQuadraticBezier;
21
+ //# sourceMappingURL=LineQuadraticBezier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineQuadraticBezier.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/LineQuadraticBezier.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,qBAAa,mBAAoB,SAAQ,KAAK;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,OAAO,CAAC;gBAGrB,OAAO,CAAC,EAAE;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,GAAG,aAAa;IAgBnB,aAAa,IAAI,kBAAkB,EAAE;IAsBrC,eAAe,CAAC,GAAG,EAAE,eAAe,GAAG,IAAI;CAqB5C;AAED,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,85 @@
1
+ import { Shape, TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ import { YZCanvasContext } from "../../canvas";
4
+ export type TPointOptions = {
5
+ radius?: number;
6
+ } & TShapeOptions;
7
+ export declare class Point extends Shape {
8
+ radius: number;
9
+ constructor(options?: TPointOptions);
10
+ getBoundingClientRect(): {
11
+ x: number;
12
+ y: number;
13
+ width: number;
14
+ height: number;
15
+ };
16
+ toSVGPathData(): TSVGParsedPathData[];
17
+ toCanvasContext(ctx: YZCanvasContext): void;
18
+ eq(point: Point): boolean;
19
+ midPointBtw(point: Point): {
20
+ x: number;
21
+ y: number;
22
+ };
23
+ length(): number;
24
+ scalar(scale: number): this;
25
+ normalize(len?: number): Point;
26
+ clamp(len: number): this;
27
+ cross(pt: {
28
+ x: number;
29
+ y: number;
30
+ }): {
31
+ x: number;
32
+ y: number;
33
+ };
34
+ multiply(pt: {
35
+ x: number;
36
+ y: number;
37
+ }): {
38
+ x: number;
39
+ y: number;
40
+ };
41
+ div(pt: {
42
+ x: number;
43
+ y: number;
44
+ }): {
45
+ x: number;
46
+ y: number;
47
+ };
48
+ add(pt: {
49
+ x: number;
50
+ y: number;
51
+ }): {
52
+ x: number;
53
+ y: number;
54
+ };
55
+ sub(pt: {
56
+ x: number;
57
+ y: number;
58
+ }): {
59
+ x: number;
60
+ y: number;
61
+ };
62
+ dot(pt: {
63
+ x: number;
64
+ y: number;
65
+ }): number;
66
+ reflect(pt: {
67
+ x: number;
68
+ y: number;
69
+ }): {
70
+ x: number;
71
+ y: number;
72
+ };
73
+ checkCollision(target: Point): void;
74
+ checkWall(options: {
75
+ wall: {
76
+ x: number;
77
+ y: number;
78
+ width: number;
79
+ height: number;
80
+ };
81
+ bounce?: number;
82
+ }): void;
83
+ }
84
+ export default Point;
85
+ //# sourceMappingURL=Point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/C,MAAM,MAAM,aAAa,GAAG;IAE1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,aAAa,CAAC;AAElB,qBAAa,KAAM,SAAQ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,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAC9D,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;CAqBF;AAED,eAAe,KAAK,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Shape, TShapeOptions } from "./Shape";
2
- import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../canvas";
1
+ import { Shape, TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ import { YZCanvasContext } from "../../canvas";
4
4
  export type TPoint3DOptions = {
5
5
  x?: number;
6
6
  y?: number;
@@ -25,8 +25,7 @@ export declare class Point3D extends Shape {
25
25
  cZ: number;
26
26
  radius: number;
27
27
  constructor(options?: TPoint3DOptions);
28
- getBoundingClientRect(): null;
29
- toSVGPathData(): TSVGParsedPathData[] | TSVGParsedPathData;
28
+ toSVGPathData(): TSVGParsedPathData[];
30
29
  toCanvasContext(ctx: YZCanvasContext): void;
31
30
  setVanishingPoint(vpX: number, vpY: number): void;
32
31
  setCenter(cX: number, cY: number, cZ: number): void;
@@ -72,7 +71,6 @@ export declare class Point3D extends Shape {
72
71
  y: number;
73
72
  z: number;
74
73
  };
75
- clone(point: Point3D): Point3D;
76
74
  }
77
75
  export default Point3D;
78
76
  //# sourceMappingURL=Point3D.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Point3D.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Point3D.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI/C,MAAM,MAAM,eAAe,GAAG;IAC5B,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;I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GAAG,EAAE,MAAM;IAQjB,KAAK,CAAC,EAAE,EAAE,OAAO;;;;;IAWjB,QAAQ,CAAC,EAAE,EAAE,OAAO;;;;;IAQpB,GAAG,CAAC,EAAE,EAAE,OAAO;;;;;IAQf,GAAG,CAAC,EAAE,EAAE,OAAO;;;;;IAQf,GAAG,CAAC,EAAE,EAAE,OAAO;;;;;IAQf,GAAG,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM;IAIxB,OAAO,CAAC,EAAE,EAAE,OAAO;;;;;CAQpB;AAED,eAAe,OAAO,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Shape } from "./Shape";
2
- import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../canvas";
1
+ import { Shape } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ import { YZCanvasContext } from "../../canvas";
4
4
  import Point3D from "./Point3D";
5
5
  import Light3D from "./Light3D";
6
6
  export declare class Point3Ds extends Shape {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Point3Ds.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Point3Ds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAiB,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,OAAO,MAAM,WAAW,CAAC;AAGhC,qBAAa,QAAS,SAAQ,KAAK;IACjC,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;gBAEH,MAAM,GAAE,OAAO,EAAO;IAUlC,aAAa,IAAI,kBAAkB,EAAE;IAcrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAYpC,IAAI,MAAM,WAET;IAED,QAAQ,IAAI,MAAM;IAIlB,UAAU,IAAI,OAAO;IAQrB,cAAc,IAAI,MAAM;IAgCxB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;CAQxC;AAED,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { Shape, TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ import { YZCanvasContext } from "../../canvas";
4
+ export declare class Points extends Shape {
5
+ private points;
6
+ isStraight: boolean;
7
+ constructor(options: TShapeOptions & {
8
+ points: {
9
+ x: number;
10
+ y: number;
11
+ }[];
12
+ isStraight?: boolean;
13
+ });
14
+ toSVGPathData(): TSVGParsedPathData[];
15
+ toCanvasContext(ctx: YZCanvasContext): void;
16
+ isContainPoint(x: number, y: number): boolean;
17
+ [Symbol.iterator](): {
18
+ next: () => {
19
+ value: {
20
+ x: number;
21
+ y: number;
22
+ } | undefined;
23
+ done: boolean;
24
+ };
25
+ };
26
+ }
27
+ export default Points;
28
+ //# sourceMappingURL=Points.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Points.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Points.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAM/C,qBAAa,MAAO,SAAQ,KAAK;IAC/B,OAAO,CAAC,MAAM,CAA6B;IACpC,UAAU,EAAE,OAAO,CAAC;gBAGzB,OAAO,EAAE,aAAa,GAAG;QACvB,MAAM,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACnC,UAAU,CAAC,EAAE,OAAO,CAAC;KACtB;IAWH,aAAa,IAAI,kBAAkB,EAAE;IAsCrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAmCpC,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAwCnC,CAAC,MAAM,CAAC,QAAQ,CAAC;;;;;;;;;CAUlB;AAED,eAAe,MAAM,CAAC"}
@@ -1,7 +1,8 @@
1
- import { TShapeOptions } from "../Shape";
2
- import { PathD } from "../PathD";
3
- export declare class Rabbit extends PathD {
1
+ import { Shape, TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ export declare class Rabbit extends Shape {
4
4
  constructor(options?: TShapeOptions);
5
+ toSVGPathData(): TSVGParsedPathData[];
5
6
  }
6
7
  export default Rabbit;
7
8
  //# sourceMappingURL=Rabbit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rabbit.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Rabbit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,qBAAa,MAAO,SAAQ,KAAK;gBACnB,OAAO,CAAC,EAAE,aAAa;CAwCpC;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Rabbit.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Rabbit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,MAAO,SAAQ,KAAK;gBACnB,OAAO,CAAC,EAAE,aAAa;IAInC,aAAa,IAAI,kBAAkB,EAAE;CAWtC;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { Shape, TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ import { YZCanvasContext } from "../../canvas/YZCanvasContext";
4
+ export type TRectOptions = {
5
+ width: number;
6
+ height: number;
7
+ borderRadius?: number;
8
+ } & TShapeOptions;
9
+ export declare class Rect extends Shape {
10
+ width: number;
11
+ height: number;
12
+ borderRadius: number;
13
+ constructor(options: TRectOptions);
14
+ static fromCubicBezier(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number): Rect;
15
+ getBoundingClientRect(): {
16
+ x: number;
17
+ y: number;
18
+ width: number;
19
+ height: number;
20
+ };
21
+ toSVGPathData(): TSVGParsedPathData[];
22
+ toCanvasContext(ctx: YZCanvasContext): void;
23
+ eq(rect: Rect): boolean;
24
+ isIntersectRect(rect: {
25
+ x: number;
26
+ y: number;
27
+ width: number;
28
+ height: number;
29
+ }): boolean;
30
+ isContainPoint(x: number, y: number): boolean;
31
+ }
32
+ export default Rect;
33
+ //# sourceMappingURL=Rect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Rect.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAG/D,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,aAAa,CAAC;AAElB,qBAAa,IAAK,SAAQ,KAAK;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IAEf,YAAY,EAAE,MAAM,CAAC;gBAET,OAAO,EAAE,YAAY;IAOjC,MAAM,CAAC,eAAe,CACpB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,IAAI;IAcP,qBAAqB;;;;;;IASrB,aAAa,IAAI,kBAAkB,EAAE;IA6DrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAuBpC,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAUvB,eAAe,CAAC,IAAI,EAAE;QACpB,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB;IAaD,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;CAcpC;AAED,eAAe,IAAI,CAAC"}
@@ -10,13 +10,16 @@ export type TRingOptions = {
10
10
  endDegree: number;
11
11
  extendDegree?: number;
12
12
  lineWidth: number;
13
- color?: string;
14
- colorGradient?: CanvasGradient;
13
+ color?: CanvasGradient | string;
15
14
  } & TShapeOptions;
16
15
  export declare class Ring extends Shape {
16
+ extendDegree: number;
17
+ radius: number;
18
+ startDegree: number;
19
+ endDegree: number;
20
+ diffDegree: number;
17
21
  constructor(options: TRingOptions);
18
- update(options: TRingOptions): void;
19
- frameUpdate(): void;
22
+ setPercent(percent: number): void;
20
23
  toSVGPathData(): TSVGParsedPathData[];
21
24
  toCanvasContext(ctx: YZCanvasContext): void;
22
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Ring.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Ring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AA6B/C,MAAM,MAAM,YAAY,GAAG;IAEzB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAA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,EAAE,MAAM,CAAC;gBAEP,OAAO,EAAE,YAAY;IA+B1B,UAAU,CAAC,OAAO,EAAE,MAAM;IAKjC,aAAa,IAAI,kBAAkB,EAAE;IAqBrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAWrC;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { YZCanvasContext } from "../../canvas";
2
+ import { TShapeOptions } from "../Shape";
3
+ import ShapeGroup from "../ShapeGroup";
4
+ import Line from "./Line";
5
+ import Ring from "./Ring";
6
+ export declare class RingIndicator extends ShapeGroup {
7
+ percent: number;
8
+ ringBg: Ring;
9
+ ring: Ring;
10
+ lines: Line[];
11
+ bgColor: string;
12
+ startColor: string;
13
+ endColor: string;
14
+ indicatorLineCount: number;
15
+ constructor(options: TShapeOptions & {
16
+ x?: number;
17
+ y?: number;
18
+ width: number;
19
+ height: number;
20
+ startDegree?: number;
21
+ endDegree?: number;
22
+ extendDegree?: number;
23
+ lineWidth?: number;
24
+ bgColor?: string;
25
+ startColor?: string;
26
+ endColor?: string;
27
+ percent?: number;
28
+ });
29
+ setPercent(percent: number): void;
30
+ shapeInit(): void;
31
+ frameUpdate(_: any, ctx?: YZCanvasContext): void;
32
+ }
33
+ export default RingIndicator;
34
+ //# sourceMappingURL=RingIndicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RingIndicator.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/RingIndicator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,IAAI,MAAM,QAAQ,CAAC;AA4B1B,qBAAa,aAAc,SAAQ,UAAU;IAC3C,OAAO,SAAK;IAEZ,MAAM,EAAE,IAAI,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,IAAI,EAAE,CAAM;IAEnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,EAAE,MAAM,CAAC;gBAGzB,OAAO,EAAE,aAAa,GAAG;QAEvB,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,CAAC,CAAC,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IA6EI,UAAU,CAAC,OAAO,EAAE,MAAM;IAIjC,SAAS;IAWT,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,eAAe;CAoD1C;AAED,eAAe,aAAa,CAAC"}
@@ -1,6 +1,9 @@
1
1
  import { Shape, TShapeOptions } from "../Shape";
2
2
  import { ShapeGroup } from "../ShapeGroup";
3
- import { Point } from "../Point";
3
+ import { Point } from "./Point";
4
+ import { Line } from "./Line";
5
+ import { Text } from "./Text";
6
+ import { Tip } from "./Tip";
4
7
  import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
5
8
  import { YZCanvasContext } from "../../canvas";
6
9
  export type TSectorOptions = {
@@ -29,9 +32,18 @@ export declare class Sector extends ShapeGroup {
29
32
  p4: Point;
30
33
  p4Offset: number;
31
34
  direction: number;
35
+ sectorArc: SectorArc;
36
+ line12: Line;
37
+ line23: Line;
38
+ textShape: Text;
39
+ tipShape: Tip;
32
40
  constructor(options: TSectorOptions);
33
- frameUpdate(): void;
41
+ frameUpdate(mouse: {
42
+ x: number;
43
+ y: number;
44
+ }): void;
34
45
  }
46
+ export default Sector;
35
47
  export declare class SectorArc extends Shape {
36
48
  radius: number;
37
49
  realRadius: number;
@@ -41,7 +53,7 @@ export declare class SectorArc extends Shape {
41
53
  vr: number;
42
54
  ar: number;
43
55
  bounce: number;
44
- dur: number;
56
+ durationTime: number;
45
57
  status: number;
46
58
  constructor(options: TSectorOptions);
47
59
  frameUpdate(): void;
@@ -51,5 +63,4 @@ export declare class SectorArc extends Shape {
51
63
  toCanvasContext(ctx: YZCanvasContext): void;
52
64
  containPoint(x: number, y: number): boolean;
53
65
  }
54
- export default Sector;
55
66
  //# sourceMappingURL=Sector.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Sector.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Sector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,MAAM,cAAc,GAAG;IAE3B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GAAG,aAAa,CAAC;AAGlB,qBAAa,MAAO,SAAQ,UAAU;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IAC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AAE,MAAM,CAAA;KAAE,GAAG,IAAI;CAqDnD;AAED,eAAe,MAAM,CAAC;AAEtB,qBAAa,SAAU,SAAQ,KAAK;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IAIrB,MAAM,EAAE,MAAM,CAAC;gBAEV,OAAO,EAAE,cAAc;IAcnC,WAAW;IAiBX,MAAM,CAAC,QAAQ,EAAE,MAAM;IASvB,MAAM,CAAC,QAAQ,EAAE,MAAM;IASvB,aAAa,IAAI,kBAAkB,EAAE;IAuBrC,eAAe,CAAC,GAAG,EAAE,eAAe;IAcpC,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;CAS5C"}
@@ -1,11 +1,18 @@
1
1
  import { TShapeOptions } from "../Shape";
2
- import { PathDGroup } from "../PathDGroup";
3
- export declare class Segment extends PathDGroup {
2
+ import ShapeGroup from "../ShapeGroup";
3
+ import Rect from "./Rect";
4
+ import Point from "./Point";
5
+ export declare class Segment extends ShapeGroup {
6
+ width: number;
7
+ height: number;
8
+ cornerRadius: number;
9
+ controlPoint: Point;
10
+ mainRect: Rect;
11
+ rightPoint: Point;
4
12
  constructor(options: TShapeOptions & {
5
13
  width: number;
6
14
  height: number;
7
15
  });
8
- frameUpdate(): void;
9
16
  getPin(): {
10
17
  x: number;
11
18
  y: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Segment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,qBAAa,OAAQ,SAAQ,UAAU;gBACzB,OAAO,EAAE,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAwCtE,WAAW,IAAI,IAAI;IAInB,MAAM;;;;CAMP;AAED,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Segment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,qBAAa,OAAQ,SAAQ,UAAU;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,KAAK,CAAC;IACpB,QAAQ,EAAE,IAAI,CAAC;IACf,UAAU,EAAE,KAAK,CAAC;gBAEN,OAAO,EAAE,aAAa,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAyCtE,MAAM;;;;CAUP;AAED,eAAe,OAAO,CAAC"}
@@ -1,11 +1,13 @@
1
- import { TShapeOptions } from "../Shape";
1
+ import Shape, { TShapeOptions } from "../Shape";
2
2
  import { ShapeGroup } from "../ShapeGroup";
3
3
  export type TShipOptions = {
4
4
  showFlame?: boolean;
5
5
  } & TShapeOptions;
6
6
  export declare class Ship extends ShapeGroup {
7
7
  showFlame: boolean;
8
+ ship: Shape;
9
+ flame: Shape;
8
10
  constructor(options: TShipOptions);
9
- frameUpdate(): void;
11
+ shapeInit(): void;
10
12
  }
11
13
  //# sourceMappingURL=Ship.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Ship.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Ship.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,aAAa,CAAC;AAElB,qBAAa,IAAK,SAAQ,UAAU;IAC3B,SAAS,EAAE,OAAO,CAAC;gBAEd,OAAO,EAAE,YAAY;IAgCjC,WAAW,IAAI,IAAI;CAGpB"}
1
+ {"version":3,"file":"Ship.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Ship.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,aAAa,CAAC;AAElB,qBAAa,IAAK,SAAQ,UAAU;IAC3B,SAAS,EAAE,OAAO,CAAC;IAE1B,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;gBAED,OAAO,EAAE,YAAY;IA2BjC,SAAS;CASV"}
@@ -1,17 +1,12 @@
1
1
  import { TShapeOptions } from "../Shape";
2
- import { ShapeGroup } from "../ShapeGroup";
2
+ import ShapeGroup from "../ShapeGroup";
3
+ import Rect from "./Rect";
4
+ import Point from "./Point";
3
5
  export declare class Slider extends ShapeGroup {
4
- min: number;
5
- max: number;
6
- step: number;
7
6
  value: number;
8
- percent: number;
9
- barWidth: number;
10
- barHeight: number;
11
- barColor: string;
12
- handleSize: number;
13
- handleColor: string;
14
- realBarWidth: number;
7
+ backgroundRect: Rect;
8
+ occupyRect: Rect;
9
+ handle: Point;
15
10
  constructor(options?: TShapeOptions & {
16
11
  min?: number;
17
12
  max?: number;
@@ -20,10 +15,9 @@ export declare class Slider extends ShapeGroup {
20
15
  barWidth?: number;
21
16
  barHeight?: number;
22
17
  barColor?: string;
23
- handleSize?: number;
18
+ handleRadius?: number;
24
19
  handleColor?: string;
25
20
  });
26
- frameUpdate(): void;
27
21
  }
28
22
  export default Slider;
29
23
  //# sourceMappingURL=Slider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Slider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,qBAAa,MAAO,SAAQ,UAAU;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAEhB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;gBAGnB,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IA+DH,WAAW,IAAI,IAAI;CAmBpB;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Slider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,qBAAa,MAAO,SAAQ,UAAU;IAC7B,KAAK,EAAE,MAAM,CAAC;IAErB,cAAc,EAAE,IAAI,CAAC;IACrB,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,KAAK,CAAC;gBAGZ,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;CAyFJ;AAED,eAAe,MAAM,CAAC"}
@@ -1,9 +1,11 @@
1
- import { TShapeOptions } from "../Shape";
2
- import { PathD } from "../PathD";
3
- export declare class Star extends PathD {
1
+ import { Shape, TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ export declare class Star extends Shape {
4
+ r: number;
4
5
  constructor(options?: TShapeOptions & {
5
6
  r?: number;
6
7
  });
8
+ toSVGPathData(): TSVGParsedPathData[];
7
9
  }
8
10
  export default Star;
9
11
  //# sourceMappingURL=Star.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Star.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Star.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGjC,qBAAa,IAAK,SAAQ,KAAK;gBAE3B,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,CAAC,CAAC,EAAE,MAAM,CAAC;KACZ;CAcJ;AAED,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Star.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Star.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,qBAAa,IAAK,SAAQ,KAAK;IAC7B,CAAC,EAAE,MAAM,CAAC;gBAGR,OAAO,CAAC,EAAE,aAAa,GAAG;QACxB,CAAC,CAAC,EAAE,MAAM,CAAC;KACZ;IAMH,aAAa,IAAI,kBAAkB,EAAE;CAWtC;AAED,eAAe,IAAI,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Shape, TShapeOptions } from "./Shape";
2
- import { TSVGParsedPathData } from "../svg/DOMSVGUtil";
3
- import { YZCanvasContext } from "../canvas";
1
+ import { Shape, TShapeOptions } from "../Shape";
2
+ import { TSVGParsedPathData } from "../../svg/DOMSVGUtil";
3
+ import { YZCanvasContext } from "../../canvas";
4
4
  export declare class Text extends Shape {
5
5
  text: string;
6
6
  width: number;
@@ -8,7 +8,6 @@ export declare class Text extends Shape {
8
8
  constructor(options: {
9
9
  text: string;
10
10
  } & TShapeOptions);
11
- frameUpdate(): void;
12
11
  getBoundingClientRect(): null;
13
12
  toSVGPathData(): TSVGParsedPathData[];
14
13
  toCanvasContext(ctx: YZCanvasContext): void;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/math/shapes/Text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,qBAAa,IAAK,SAAQ,KAAK;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,SAAK;IACV,MAAM,SAAK;gBAGhB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,aAAa;IAuCnB,qBAAqB;IAIrB,aAAa,IAAI,kBAAkB,EAAE;IAIrC,eAAe,CAAC,GAAG,EAAE,eAAe;CAGrC;AAED,eAAe,IAAI,CAAC"}