tsparticles 1.40.2 → 1.41.0

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 (913) hide show
  1. package/Core/Container.d.ts +1 -1
  2. package/Core/Container.js +7 -21
  3. package/browser/Core/Container.d.ts +1 -1
  4. package/browser/Core/Container.js +7 -21
  5. package/esm/Core/Container.d.ts +1 -1
  6. package/esm/Core/Container.js +7 -21
  7. package/package.json +1 -1
  8. package/report.html +2 -2
  9. package/report.slim.html +2 -2
  10. package/tsparticles.engine.js +7 -21
  11. package/tsparticles.engine.min.js +2 -2
  12. package/tsparticles.interaction.external.attract.js +7 -21
  13. package/tsparticles.interaction.external.attract.min.js +1 -1
  14. package/tsparticles.interaction.external.bounce.js +7 -21
  15. package/tsparticles.interaction.external.bounce.min.js +1 -1
  16. package/tsparticles.interaction.external.bubble.js +7 -21
  17. package/tsparticles.interaction.external.bubble.min.js +1 -1
  18. package/tsparticles.interaction.external.connect.js +7 -21
  19. package/tsparticles.interaction.external.connect.min.js +1 -1
  20. package/tsparticles.interaction.external.grab.js +7 -21
  21. package/tsparticles.interaction.external.grab.min.js +1 -1
  22. package/tsparticles.interaction.external.repulse.js +7 -21
  23. package/tsparticles.interaction.external.repulse.min.js +1 -1
  24. package/tsparticles.interaction.external.trail.js +7 -21
  25. package/tsparticles.interaction.external.trail.min.js +1 -1
  26. package/tsparticles.interaction.particles.attract.js +7 -21
  27. package/tsparticles.interaction.particles.attract.min.js +1 -1
  28. package/tsparticles.interaction.particles.collisions.js +7 -21
  29. package/tsparticles.interaction.particles.collisions.min.js +1 -1
  30. package/tsparticles.interaction.particles.links.js +7 -21
  31. package/tsparticles.interaction.particles.links.min.js +1 -1
  32. package/tsparticles.js +7 -21
  33. package/tsparticles.min.js +2 -2
  34. package/tsparticles.pathseg.min.js +1 -1
  35. package/tsparticles.plugins.absorbers.js +7 -21
  36. package/tsparticles.plugins.absorbers.min.js +1 -1
  37. package/tsparticles.plugins.emitters.js +7 -21
  38. package/tsparticles.plugins.emitters.min.js +1 -1
  39. package/tsparticles.plugins.polygonMask.js +7 -21
  40. package/tsparticles.plugins.polygonMask.min.js +1 -1
  41. package/tsparticles.shape.circle.min.js +1 -1
  42. package/tsparticles.shape.image.js +7 -21
  43. package/tsparticles.shape.image.min.js +1 -1
  44. package/tsparticles.shape.line.min.js +1 -1
  45. package/tsparticles.shape.polygon.min.js +1 -1
  46. package/tsparticles.shape.square.min.js +1 -1
  47. package/tsparticles.shape.star.min.js +1 -1
  48. package/tsparticles.shape.text.js +7 -21
  49. package/tsparticles.shape.text.min.js +1 -1
  50. package/tsparticles.slim.js +7 -21
  51. package/tsparticles.slim.min.js +2 -2
  52. package/tsparticles.updater.angle.js +7 -21
  53. package/tsparticles.updater.angle.min.js +1 -1
  54. package/tsparticles.updater.color.js +7 -21
  55. package/tsparticles.updater.color.min.js +1 -1
  56. package/tsparticles.updater.life.js +7 -21
  57. package/tsparticles.updater.life.min.js +1 -1
  58. package/tsparticles.updater.opacity.js +7 -21
  59. package/tsparticles.updater.opacity.min.js +1 -1
  60. package/tsparticles.updater.outModes.js +7 -21
  61. package/tsparticles.updater.outModes.min.js +1 -1
  62. package/tsparticles.updater.roll.js +7 -21
  63. package/tsparticles.updater.roll.min.js +1 -1
  64. package/tsparticles.updater.size.js +7 -21
  65. package/tsparticles.updater.size.min.js +1 -1
  66. package/tsparticles.updater.strokeColor.js +7 -21
  67. package/tsparticles.updater.strokeColor.min.js +1 -1
  68. package/tsparticles.updater.tilt.js +7 -21
  69. package/tsparticles.updater.tilt.min.js +1 -1
  70. package/tsparticles.updater.wobble.js +7 -21
  71. package/tsparticles.updater.wobble.min.js +1 -1
  72. package/umd/Core/Canvas.d.ts +35 -0
  73. package/umd/Core/Canvas.js +328 -0
  74. package/umd/Core/Container.d.ts +68 -0
  75. package/umd/Core/Container.js +405 -0
  76. package/umd/Core/Interfaces/Colors.d.ts +33 -0
  77. package/umd/Core/Interfaces/Colors.js +12 -0
  78. package/umd/Core/Interfaces/Gradients.d.ts +21 -0
  79. package/umd/Core/Interfaces/Gradients.js +12 -0
  80. package/umd/Core/Interfaces/IAttract.d.ts +7 -0
  81. package/umd/Core/Interfaces/IAttract.js +12 -0
  82. package/umd/Core/Interfaces/IBounds.d.ts +6 -0
  83. package/umd/Core/Interfaces/IBounds.js +12 -0
  84. package/umd/Core/Interfaces/IBubble.d.ts +4 -0
  85. package/umd/Core/Interfaces/IBubble.js +12 -0
  86. package/umd/Core/Interfaces/IBubbleParticleData.d.ts +9 -0
  87. package/umd/Core/Interfaces/IBubbleParticleData.js +12 -0
  88. package/umd/Core/Interfaces/ICircleBouncer.d.ts +9 -0
  89. package/umd/Core/Interfaces/ICircleBouncer.js +12 -0
  90. package/umd/Core/Interfaces/IContainerInteractivity.d.ts +6 -0
  91. package/umd/Core/Interfaces/IContainerInteractivity.js +12 -0
  92. package/umd/Core/Interfaces/IContainerPlugin.d.ts +32 -0
  93. package/umd/Core/Interfaces/IContainerPlugin.js +12 -0
  94. package/umd/Core/Interfaces/ICoordinates.d.ts +7 -0
  95. package/umd/Core/Interfaces/ICoordinates.js +12 -0
  96. package/umd/Core/Interfaces/IDelta.d.ts +4 -0
  97. package/umd/Core/Interfaces/IDelta.js +12 -0
  98. package/umd/Core/Interfaces/IDimension.d.ts +4 -0
  99. package/umd/Core/Interfaces/IDimension.js +12 -0
  100. package/umd/Core/Interfaces/IDistance.d.ts +4 -0
  101. package/umd/Core/Interfaces/IDistance.js +12 -0
  102. package/umd/Core/Interfaces/IExternalInteractor.d.ts +6 -0
  103. package/umd/Core/Interfaces/IExternalInteractor.js +12 -0
  104. package/umd/Core/Interfaces/IInteractor.d.ts +6 -0
  105. package/umd/Core/Interfaces/IInteractor.js +12 -0
  106. package/umd/Core/Interfaces/IMouseData.d.ts +9 -0
  107. package/umd/Core/Interfaces/IMouseData.js +12 -0
  108. package/umd/Core/Interfaces/IMovePathGenerator.d.ts +8 -0
  109. package/umd/Core/Interfaces/IMovePathGenerator.js +12 -0
  110. package/umd/Core/Interfaces/IParticle.d.ts +55 -0
  111. package/umd/Core/Interfaces/IParticle.js +12 -0
  112. package/umd/Core/Interfaces/IParticleGradientAnimation.d.ts +8 -0
  113. package/umd/Core/Interfaces/IParticleGradientAnimation.js +12 -0
  114. package/umd/Core/Interfaces/IParticleGradientColorAnimation.d.ts +7 -0
  115. package/umd/Core/Interfaces/IParticleGradientColorAnimation.js +12 -0
  116. package/umd/Core/Interfaces/IParticleHslAnimation.d.ts +6 -0
  117. package/umd/Core/Interfaces/IParticleHslAnimation.js +12 -0
  118. package/umd/Core/Interfaces/IParticleLife.d.ts +7 -0
  119. package/umd/Core/Interfaces/IParticleLife.js +12 -0
  120. package/umd/Core/Interfaces/IParticleLoops.d.ts +4 -0
  121. package/umd/Core/Interfaces/IParticleLoops.js +12 -0
  122. package/umd/Core/Interfaces/IParticleRetinaProps.d.ts +12 -0
  123. package/umd/Core/Interfaces/IParticleRetinaProps.js +12 -0
  124. package/umd/Core/Interfaces/IParticleRoll.d.ts +9 -0
  125. package/umd/Core/Interfaces/IParticleRoll.js +12 -0
  126. package/umd/Core/Interfaces/IParticleSpin.d.ts +9 -0
  127. package/umd/Core/Interfaces/IParticleSpin.js +12 -0
  128. package/umd/Core/Interfaces/IParticleUpdater.d.ts +9 -0
  129. package/umd/Core/Interfaces/IParticleUpdater.js +12 -0
  130. package/umd/Core/Interfaces/IParticleValueAnimation.d.ts +17 -0
  131. package/umd/Core/Interfaces/IParticleValueAnimation.js +12 -0
  132. package/umd/Core/Interfaces/IParticleWobble.d.ts +4 -0
  133. package/umd/Core/Interfaces/IParticleWobble.js +12 -0
  134. package/umd/Core/Interfaces/IParticlesFrequencies.d.ts +4 -0
  135. package/umd/Core/Interfaces/IParticlesFrequencies.js +12 -0
  136. package/umd/Core/Interfaces/IParticlesInteractor.d.ts +7 -0
  137. package/umd/Core/Interfaces/IParticlesInteractor.js +12 -0
  138. package/umd/Core/Interfaces/IPlugin.d.ts +11 -0
  139. package/umd/Core/Interfaces/IPlugin.js +12 -0
  140. package/umd/Core/Interfaces/IRangeValue.d.ts +4 -0
  141. package/umd/Core/Interfaces/IRangeValue.js +12 -0
  142. package/umd/Core/Interfaces/IRectSideResult.d.ts +5 -0
  143. package/umd/Core/Interfaces/IRectSideResult.js +12 -0
  144. package/umd/Core/Interfaces/IRepulse.d.ts +7 -0
  145. package/umd/Core/Interfaces/IRepulse.js +12 -0
  146. package/umd/Core/Interfaces/IShapeDrawer.d.ts +10 -0
  147. package/umd/Core/Interfaces/IShapeDrawer.js +12 -0
  148. package/umd/Core/Interfaces/IShapeValues.d.ts +8 -0
  149. package/umd/Core/Interfaces/IShapeValues.js +12 -0
  150. package/umd/Core/Interfaces/index.d.ts +36 -0
  151. package/umd/Core/Interfaces/index.js +58 -0
  152. package/umd/Core/Loader.d.ts +32 -0
  153. package/umd/Core/Loader.js +193 -0
  154. package/umd/Core/Particle.d.ts +71 -0
  155. package/umd/Core/Particle.js +394 -0
  156. package/umd/Core/Particles.d.ts +46 -0
  157. package/umd/Core/Particles.js +331 -0
  158. package/umd/Core/Retina.d.ts +26 -0
  159. package/umd/Core/Retina.js +107 -0
  160. package/umd/Core/Utils/Circle.d.ts +8 -0
  161. package/umd/Core/Utils/Circle.js +52 -0
  162. package/umd/Core/Utils/CircleWarp.d.ts +9 -0
  163. package/umd/Core/Utils/CircleWarp.js +70 -0
  164. package/umd/Core/Utils/Constants.d.ts +18 -0
  165. package/umd/Core/Utils/Constants.js +32 -0
  166. package/umd/Core/Utils/EventListeners.d.ts +33 -0
  167. package/umd/Core/Utils/EventListeners.js +383 -0
  168. package/umd/Core/Utils/ExternalInteractorBase.d.ts +12 -0
  169. package/umd/Core/Utils/ExternalInteractorBase.js +20 -0
  170. package/umd/Core/Utils/FrameManager.d.ts +6 -0
  171. package/umd/Core/Utils/FrameManager.js +53 -0
  172. package/umd/Core/Utils/InteractionManager.d.ts +14 -0
  173. package/umd/Core/Utils/InteractionManager.js +69 -0
  174. package/umd/Core/Utils/ParticlesInteractorBase.d.ts +12 -0
  175. package/umd/Core/Utils/ParticlesInteractorBase.js +20 -0
  176. package/umd/Core/Utils/ParticlesMover.d.ts +13 -0
  177. package/umd/Core/Utils/ParticlesMover.js +196 -0
  178. package/umd/Core/Utils/Plugins.d.ts +36 -0
  179. package/umd/Core/Utils/Plugins.js +108 -0
  180. package/umd/Core/Utils/Point.d.ts +7 -0
  181. package/umd/Core/Utils/Point.js +20 -0
  182. package/umd/Core/Utils/QuadTree.d.ts +23 -0
  183. package/umd/Core/Utils/QuadTree.js +88 -0
  184. package/umd/Core/Utils/Range.d.ts +7 -0
  185. package/umd/Core/Utils/Range.js +22 -0
  186. package/umd/Core/Utils/Rectangle.d.ts +8 -0
  187. package/umd/Core/Utils/Rectangle.js +48 -0
  188. package/umd/Core/Utils/Vector.d.ts +29 -0
  189. package/umd/Core/Utils/Vector.js +106 -0
  190. package/umd/Core/Utils/Vector3d.d.ts +18 -0
  191. package/umd/Core/Utils/Vector3d.js +68 -0
  192. package/umd/Core/Utils/index.d.ts +16 -0
  193. package/umd/Core/Utils/index.js +38 -0
  194. package/umd/Core/index.d.ts +8 -0
  195. package/umd/Core/index.js +30 -0
  196. package/umd/Enums/AnimationStatus.d.ts +4 -0
  197. package/umd/Enums/AnimationStatus.js +12 -0
  198. package/umd/Enums/Directions/MoveDirection.d.ts +12 -0
  199. package/umd/Enums/Directions/MoveDirection.js +12 -0
  200. package/umd/Enums/Directions/OutModeDirection.d.ts +6 -0
  201. package/umd/Enums/Directions/OutModeDirection.js +12 -0
  202. package/umd/Enums/Directions/RotateDirection.d.ts +6 -0
  203. package/umd/Enums/Directions/RotateDirection.js +12 -0
  204. package/umd/Enums/Directions/TiltDirection.d.ts +6 -0
  205. package/umd/Enums/Directions/TiltDirection.js +12 -0
  206. package/umd/Enums/Directions/index.d.ts +4 -0
  207. package/umd/Enums/Directions/index.js +26 -0
  208. package/umd/Enums/InteractivityDetect.d.ts +5 -0
  209. package/umd/Enums/InteractivityDetect.js +12 -0
  210. package/umd/Enums/Modes/ClickMode.d.ts +9 -0
  211. package/umd/Enums/Modes/ClickMode.js +12 -0
  212. package/umd/Enums/Modes/CollisionMode.d.ts +5 -0
  213. package/umd/Enums/Modes/CollisionMode.js +12 -0
  214. package/umd/Enums/Modes/DestroyMode.d.ts +4 -0
  215. package/umd/Enums/Modes/DestroyMode.js +12 -0
  216. package/umd/Enums/Modes/DivMode.d.ts +5 -0
  217. package/umd/Enums/Modes/DivMode.js +12 -0
  218. package/umd/Enums/Modes/HoverMode.d.ts +11 -0
  219. package/umd/Enums/Modes/HoverMode.js +12 -0
  220. package/umd/Enums/Modes/OutMode.d.ts +10 -0
  221. package/umd/Enums/Modes/OutMode.js +12 -0
  222. package/umd/Enums/Modes/ResponsiveMode.d.ts +4 -0
  223. package/umd/Enums/Modes/ResponsiveMode.js +12 -0
  224. package/umd/Enums/Modes/RollMode.d.ts +5 -0
  225. package/umd/Enums/Modes/RollMode.js +12 -0
  226. package/umd/Enums/Modes/SizeMode.d.ts +4 -0
  227. package/umd/Enums/Modes/SizeMode.js +12 -0
  228. package/umd/Enums/Modes/ThemeMode.d.ts +5 -0
  229. package/umd/Enums/Modes/ThemeMode.js +12 -0
  230. package/umd/Enums/Modes/index.d.ts +10 -0
  231. package/umd/Enums/Modes/index.js +32 -0
  232. package/umd/Enums/Types/AlterType.d.ts +4 -0
  233. package/umd/Enums/Types/AlterType.js +12 -0
  234. package/umd/Enums/Types/DestroyType.d.ts +5 -0
  235. package/umd/Enums/Types/DestroyType.js +12 -0
  236. package/umd/Enums/Types/DivType.d.ts +4 -0
  237. package/umd/Enums/Types/DivType.js +12 -0
  238. package/umd/Enums/Types/EasingType.d.ts +10 -0
  239. package/umd/Enums/Types/EasingType.js +12 -0
  240. package/umd/Enums/Types/GradientType.d.ts +5 -0
  241. package/umd/Enums/Types/GradientType.js +12 -0
  242. package/umd/Enums/Types/InteractorType.d.ts +4 -0
  243. package/umd/Enums/Types/InteractorType.js +12 -0
  244. package/umd/Enums/Types/OrbitType.d.ts +4 -0
  245. package/umd/Enums/Types/OrbitType.js +12 -0
  246. package/umd/Enums/Types/ShapeType.d.ts +13 -0
  247. package/umd/Enums/Types/ShapeType.js +12 -0
  248. package/umd/Enums/Types/StartValueType.d.ts +5 -0
  249. package/umd/Enums/Types/StartValueType.js +12 -0
  250. package/umd/Enums/Types/index.d.ts +9 -0
  251. package/umd/Enums/Types/index.js +31 -0
  252. package/umd/Enums/index.d.ts +5 -0
  253. package/umd/Enums/index.js +27 -0
  254. package/umd/Interactions/External/Attract/Attractor.d.ts +11 -0
  255. package/umd/Interactions/External/Attract/Attractor.js +85 -0
  256. package/umd/Interactions/External/Attract/index.d.ts +2 -0
  257. package/umd/Interactions/External/Attract/index.js +18 -0
  258. package/umd/Interactions/External/Bounce/Bouncer.d.ts +11 -0
  259. package/umd/Interactions/External/Bounce/Bouncer.js +77 -0
  260. package/umd/Interactions/External/Bounce/index.d.ts +2 -0
  261. package/umd/Interactions/External/Bounce/index.js +18 -0
  262. package/umd/Interactions/External/Bubble/Bubbler.d.ts +16 -0
  263. package/umd/Interactions/External/Bubble/Bubbler.js +261 -0
  264. package/umd/Interactions/External/Bubble/IBubblerProcessParam.d.ts +10 -0
  265. package/umd/Interactions/External/Bubble/IBubblerProcessParam.js +12 -0
  266. package/umd/Interactions/External/Bubble/ProcessBubbleType.d.ts +5 -0
  267. package/umd/Interactions/External/Bubble/ProcessBubbleType.js +12 -0
  268. package/umd/Interactions/External/Bubble/index.d.ts +2 -0
  269. package/umd/Interactions/External/Bubble/index.js +18 -0
  270. package/umd/Interactions/External/Connect/Connector.d.ts +8 -0
  271. package/umd/Interactions/External/Connect/Connector.js +51 -0
  272. package/umd/Interactions/External/Connect/index.d.ts +2 -0
  273. package/umd/Interactions/External/Connect/index.js +18 -0
  274. package/umd/Interactions/External/Grab/Grabber.d.ts +8 -0
  275. package/umd/Interactions/External/Grab/Grabber.js +57 -0
  276. package/umd/Interactions/External/Grab/index.d.ts +2 -0
  277. package/umd/Interactions/External/Grab/index.js +18 -0
  278. package/umd/Interactions/External/Repulse/Repulser.d.ts +12 -0
  279. package/umd/Interactions/External/Repulse/Repulser.js +108 -0
  280. package/umd/Interactions/External/Repulse/index.d.ts +2 -0
  281. package/umd/Interactions/External/Repulse/index.js +18 -0
  282. package/umd/Interactions/External/Trail/TrailMaker.d.ts +10 -0
  283. package/umd/Interactions/External/Trail/TrailMaker.js +63 -0
  284. package/umd/Interactions/External/Trail/index.d.ts +2 -0
  285. package/umd/Interactions/External/Trail/index.js +18 -0
  286. package/umd/Interactions/Particles/Attract/Attractor.d.ts +8 -0
  287. package/umd/Interactions/Particles/Attract/Attractor.js +40 -0
  288. package/umd/Interactions/Particles/Attract/index.d.ts +2 -0
  289. package/umd/Interactions/Particles/Attract/index.js +18 -0
  290. package/umd/Interactions/Particles/Collisions/Collider.d.ts +10 -0
  291. package/umd/Interactions/Particles/Collisions/Collider.js +119 -0
  292. package/umd/Interactions/Particles/Collisions/index.d.ts +2 -0
  293. package/umd/Interactions/Particles/Collisions/index.js +18 -0
  294. package/umd/Interactions/Particles/Links/ILink.d.ts +9 -0
  295. package/umd/Interactions/Particles/Links/ILink.js +12 -0
  296. package/umd/Interactions/Particles/Links/LinkInstance.d.ts +10 -0
  297. package/umd/Interactions/Particles/Links/LinkInstance.js +134 -0
  298. package/umd/Interactions/Particles/Links/LinkParticle.d.ts +5 -0
  299. package/umd/Interactions/Particles/Links/LinkParticle.js +12 -0
  300. package/umd/Interactions/Particles/Links/Linker.d.ts +10 -0
  301. package/umd/Interactions/Particles/Links/Linker.js +115 -0
  302. package/umd/Interactions/Particles/Links/index.d.ts +2 -0
  303. package/umd/Interactions/Particles/Links/index.js +20 -0
  304. package/umd/Interactions/Particles/Links/interaction.d.ts +2 -0
  305. package/umd/Interactions/Particles/Links/interaction.js +18 -0
  306. package/umd/Interactions/Particles/Links/plugin.d.ts +2 -0
  307. package/umd/Interactions/Particles/Links/plugin.js +32 -0
  308. package/umd/Options/Classes/AnimatableColor.d.ts +11 -0
  309. package/umd/Options/Classes/AnimatableColor.js +50 -0
  310. package/umd/Options/Classes/AnimatableGradient.d.ts +53 -0
  311. package/umd/Options/Classes/AnimatableGradient.js +156 -0
  312. package/umd/Options/Classes/AnimationOptions.d.ts +11 -0
  313. package/umd/Options/Classes/AnimationOptions.js +39 -0
  314. package/umd/Options/Classes/Background/Background.d.ts +14 -0
  315. package/umd/Options/Classes/Background/Background.js +49 -0
  316. package/umd/Options/Classes/BackgroundMask/BackgroundMask.d.ts +11 -0
  317. package/umd/Options/Classes/BackgroundMask/BackgroundMask.js +38 -0
  318. package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.d.ts +10 -0
  319. package/umd/Options/Classes/BackgroundMask/BackgroundMaskCover.js +32 -0
  320. package/umd/Options/Classes/ColorAnimation.d.ts +12 -0
  321. package/umd/Options/Classes/ColorAnimation.js +44 -0
  322. package/umd/Options/Classes/FullScreen/FullScreen.d.ts +9 -0
  323. package/umd/Options/Classes/FullScreen/FullScreen.js +31 -0
  324. package/umd/Options/Classes/HslAnimation.d.ts +11 -0
  325. package/umd/Options/Classes/HslAnimation.js +30 -0
  326. package/umd/Options/Classes/Interactivity/Events/ClickEvent.d.ts +10 -0
  327. package/umd/Options/Classes/Interactivity/Events/ClickEvent.js +31 -0
  328. package/umd/Options/Classes/Interactivity/Events/DivEvent.d.ts +18 -0
  329. package/umd/Options/Classes/Interactivity/Events/DivEvent.js +64 -0
  330. package/umd/Options/Classes/Interactivity/Events/Events.d.ts +20 -0
  331. package/umd/Options/Classes/Interactivity/Events/Events.js +68 -0
  332. package/umd/Options/Classes/Interactivity/Events/HoverEvent.d.ts +12 -0
  333. package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +34 -0
  334. package/umd/Options/Classes/Interactivity/Events/Parallax.d.ts +10 -0
  335. package/umd/Options/Classes/Interactivity/Events/Parallax.js +35 -0
  336. package/umd/Options/Classes/Interactivity/Interactivity.d.ts +15 -0
  337. package/umd/Options/Classes/Interactivity/Interactivity.js +51 -0
  338. package/umd/Options/Classes/Interactivity/Modes/Attract.d.ts +14 -0
  339. package/umd/Options/Classes/Interactivity/Modes/Attract.js +47 -0
  340. package/umd/Options/Classes/Interactivity/Modes/Bounce.d.ts +8 -0
  341. package/umd/Options/Classes/Interactivity/Modes/Bounce.js +27 -0
  342. package/umd/Options/Classes/Interactivity/Modes/Bubble.d.ts +9 -0
  343. package/umd/Options/Classes/Interactivity/Modes/Bubble.js +37 -0
  344. package/umd/Options/Classes/Interactivity/Modes/BubbleBase.d.ts +13 -0
  345. package/umd/Options/Classes/Interactivity/Modes/BubbleBase.js +53 -0
  346. package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.d.ts +11 -0
  347. package/umd/Options/Classes/Interactivity/Modes/BubbleDiv.js +41 -0
  348. package/umd/Options/Classes/Interactivity/Modes/Connect.d.ts +15 -0
  349. package/umd/Options/Classes/Interactivity/Modes/Connect.js +47 -0
  350. package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.d.ts +8 -0
  351. package/umd/Options/Classes/Interactivity/Modes/ConnectLinks.js +25 -0
  352. package/umd/Options/Classes/Interactivity/Modes/Grab.d.ts +14 -0
  353. package/umd/Options/Classes/Interactivity/Modes/Grab.js +43 -0
  354. package/umd/Options/Classes/Interactivity/Modes/GrabLinks.d.ts +12 -0
  355. package/umd/Options/Classes/Interactivity/Modes/GrabLinks.js +39 -0
  356. package/umd/Options/Classes/Interactivity/Modes/Light.d.ts +11 -0
  357. package/umd/Options/Classes/Interactivity/Modes/Light.js +29 -0
  358. package/umd/Options/Classes/Interactivity/Modes/LightArea.d.ts +10 -0
  359. package/umd/Options/Classes/Interactivity/Modes/LightArea.js +30 -0
  360. package/umd/Options/Classes/Interactivity/Modes/LightGradient.d.ts +10 -0
  361. package/umd/Options/Classes/Interactivity/Modes/LightGradient.js +30 -0
  362. package/umd/Options/Classes/Interactivity/Modes/LightShadow.d.ts +10 -0
  363. package/umd/Options/Classes/Interactivity/Modes/LightShadow.js +31 -0
  364. package/umd/Options/Classes/Interactivity/Modes/Modes.d.ts +29 -0
  365. package/umd/Options/Classes/Interactivity/Modes/Modes.js +55 -0
  366. package/umd/Options/Classes/Interactivity/Modes/Push.d.ts +12 -0
  367. package/umd/Options/Classes/Interactivity/Modes/Push.js +46 -0
  368. package/umd/Options/Classes/Interactivity/Modes/Remove.d.ts +10 -0
  369. package/umd/Options/Classes/Interactivity/Modes/Remove.js +35 -0
  370. package/umd/Options/Classes/Interactivity/Modes/Repulse.d.ts +9 -0
  371. package/umd/Options/Classes/Interactivity/Modes/Repulse.js +37 -0
  372. package/umd/Options/Classes/Interactivity/Modes/RepulseBase.d.ts +14 -0
  373. package/umd/Options/Classes/Interactivity/Modes/RepulseBase.js +47 -0
  374. package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.d.ts +11 -0
  375. package/umd/Options/Classes/Interactivity/Modes/RepulseDiv.js +49 -0
  376. package/umd/Options/Classes/Interactivity/Modes/Slow.d.ts +11 -0
  377. package/umd/Options/Classes/Interactivity/Modes/Slow.js +36 -0
  378. package/umd/Options/Classes/Interactivity/Modes/Trail.d.ts +12 -0
  379. package/umd/Options/Classes/Interactivity/Modes/Trail.js +39 -0
  380. package/umd/Options/Classes/ManualParticle.d.ts +10 -0
  381. package/umd/Options/Classes/ManualParticle.js +32 -0
  382. package/umd/Options/Classes/Motion/Motion.d.ts +10 -0
  383. package/umd/Options/Classes/Motion/Motion.js +30 -0
  384. package/umd/Options/Classes/Motion/MotionReduce.d.ts +9 -0
  385. package/umd/Options/Classes/Motion/MotionReduce.js +31 -0
  386. package/umd/Options/Classes/Options.d.ts +48 -0
  387. package/umd/Options/Classes/Options.js +184 -0
  388. package/umd/Options/Classes/OptionsColor.d.ts +10 -0
  389. package/umd/Options/Classes/OptionsColor.js +38 -0
  390. package/umd/Options/Classes/Particles/Bounce/Bounce.d.ts +10 -0
  391. package/umd/Options/Classes/Particles/Bounce/Bounce.js +28 -0
  392. package/umd/Options/Classes/Particles/Bounce/BounceFactor.d.ts +4 -0
  393. package/umd/Options/Classes/Particles/Bounce/BounceFactor.js +22 -0
  394. package/umd/Options/Classes/Particles/Collisions/Collisions.d.ts +14 -0
  395. package/umd/Options/Classes/Particles/Collisions/Collisions.js +37 -0
  396. package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.d.ts +9 -0
  397. package/umd/Options/Classes/Particles/Collisions/CollisionsOverlap.js +31 -0
  398. package/umd/Options/Classes/Particles/Destroy/Destroy.d.ts +11 -0
  399. package/umd/Options/Classes/Particles/Destroy/Destroy.js +30 -0
  400. package/umd/Options/Classes/Particles/Destroy/Split.d.ts +15 -0
  401. package/umd/Options/Classes/Particles/Destroy/Split.js +41 -0
  402. package/umd/Options/Classes/Particles/Destroy/SplitFactor.d.ts +4 -0
  403. package/umd/Options/Classes/Particles/Destroy/SplitFactor.js +21 -0
  404. package/umd/Options/Classes/Particles/Destroy/SplitRate.d.ts +4 -0
  405. package/umd/Options/Classes/Particles/Destroy/SplitRate.js +21 -0
  406. package/umd/Options/Classes/Particles/Life/Life.d.ts +12 -0
  407. package/umd/Options/Classes/Particles/Life/Life.js +33 -0
  408. package/umd/Options/Classes/Particles/Life/LifeDelay.d.ts +9 -0
  409. package/umd/Options/Classes/Particles/Life/LifeDelay.js +30 -0
  410. package/umd/Options/Classes/Particles/Life/LifeDuration.d.ts +9 -0
  411. package/umd/Options/Classes/Particles/Life/LifeDuration.js +31 -0
  412. package/umd/Options/Classes/Particles/Links/Links.d.ts +22 -0
  413. package/umd/Options/Classes/Particles/Links/Links.js +67 -0
  414. package/umd/Options/Classes/Particles/Links/LinksShadow.d.ts +11 -0
  415. package/umd/Options/Classes/Particles/Links/LinksShadow.js +35 -0
  416. package/umd/Options/Classes/Particles/Links/LinksTriangle.d.ts +12 -0
  417. package/umd/Options/Classes/Particles/Links/LinksTriangle.js +38 -0
  418. package/umd/Options/Classes/Particles/Move/Attract.d.ts +15 -0
  419. package/umd/Options/Classes/Particles/Move/Attract.js +56 -0
  420. package/umd/Options/Classes/Particles/Move/Move.d.ts +44 -0
  421. package/umd/Options/Classes/Particles/Move/Move.js +142 -0
  422. package/umd/Options/Classes/Particles/Move/MoveAngle.d.ts +9 -0
  423. package/umd/Options/Classes/Particles/Move/MoveAngle.js +31 -0
  424. package/umd/Options/Classes/Particles/Move/MoveGravity.d.ts +11 -0
  425. package/umd/Options/Classes/Particles/Move/MoveGravity.js +39 -0
  426. package/umd/Options/Classes/Particles/Move/OutModes.d.ts +13 -0
  427. package/umd/Options/Classes/Particles/Move/OutModes.js +32 -0
  428. package/umd/Options/Classes/Particles/Move/Path/Path.d.ts +13 -0
  429. package/umd/Options/Classes/Particles/Move/Path/Path.js +40 -0
  430. package/umd/Options/Classes/Particles/Move/Path/PathDelay.d.ts +4 -0
  431. package/umd/Options/Classes/Particles/Move/Path/PathDelay.js +20 -0
  432. package/umd/Options/Classes/Particles/Move/Spin.d.ts +11 -0
  433. package/umd/Options/Classes/Particles/Move/Spin.js +33 -0
  434. package/umd/Options/Classes/Particles/Move/Trail.d.ts +11 -0
  435. package/umd/Options/Classes/Particles/Move/Trail.js +35 -0
  436. package/umd/Options/Classes/Particles/Number/Density.d.ts +12 -0
  437. package/umd/Options/Classes/Particles/Number/Density.js +43 -0
  438. package/umd/Options/Classes/Particles/Number/ParticlesNumber.d.ts +13 -0
  439. package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +42 -0
  440. package/umd/Options/Classes/Particles/Opacity/Opacity.d.ts +12 -0
  441. package/umd/Options/Classes/Particles/Opacity/Opacity.js +43 -0
  442. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.d.ts +14 -0
  443. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +54 -0
  444. package/umd/Options/Classes/Particles/Orbit/Orbit.d.ts +18 -0
  445. package/umd/Options/Classes/Particles/Orbit/Orbit.js +48 -0
  446. package/umd/Options/Classes/Particles/Orbit/OrbitRotation.d.ts +7 -0
  447. package/umd/Options/Classes/Particles/Orbit/OrbitRotation.js +29 -0
  448. package/umd/Options/Classes/Particles/ParticlesOptions.d.ts +58 -0
  449. package/umd/Options/Classes/Particles/ParticlesOptions.js +153 -0
  450. package/umd/Options/Classes/Particles/Repulse/Repulse.d.ts +13 -0
  451. package/umd/Options/Classes/Particles/Repulse/Repulse.js +46 -0
  452. package/umd/Options/Classes/Particles/Roll/Roll.d.ts +16 -0
  453. package/umd/Options/Classes/Particles/Roll/Roll.js +45 -0
  454. package/umd/Options/Classes/Particles/Roll/RollLight.d.ts +9 -0
  455. package/umd/Options/Classes/Particles/Roll/RollLight.js +31 -0
  456. package/umd/Options/Classes/Particles/Rotate/Rotate.d.ts +13 -0
  457. package/umd/Options/Classes/Particles/Rotate/Rotate.js +38 -0
  458. package/umd/Options/Classes/Particles/Rotate/RotateAnimation.d.ts +10 -0
  459. package/umd/Options/Classes/Particles/Rotate/RotateAnimation.js +35 -0
  460. package/umd/Options/Classes/Particles/Shadow.d.ts +13 -0
  461. package/umd/Options/Classes/Particles/Shadow.js +48 -0
  462. package/umd/Options/Classes/Particles/Shape/Shape.d.ts +27 -0
  463. package/umd/Options/Classes/Particles/Shape/Shape.js +113 -0
  464. package/umd/Options/Classes/Particles/Size/Size.d.ts +12 -0
  465. package/umd/Options/Classes/Particles/Size/Size.js +43 -0
  466. package/umd/Options/Classes/Particles/Size/SizeAnimation.d.ts +14 -0
  467. package/umd/Options/Classes/Particles/Size/SizeAnimation.js +54 -0
  468. package/umd/Options/Classes/Particles/Stroke.d.ts +11 -0
  469. package/umd/Options/Classes/Particles/Stroke.js +34 -0
  470. package/umd/Options/Classes/Particles/Tilt/Tilt.d.ts +13 -0
  471. package/umd/Options/Classes/Particles/Tilt/Tilt.js +38 -0
  472. package/umd/Options/Classes/Particles/Tilt/TiltAnimation.d.ts +10 -0
  473. package/umd/Options/Classes/Particles/Tilt/TiltAnimation.js +35 -0
  474. package/umd/Options/Classes/Particles/Twinkle/Twinkle.d.ts +10 -0
  475. package/umd/Options/Classes/Particles/Twinkle/Twinkle.js +28 -0
  476. package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.d.ts +12 -0
  477. package/umd/Options/Classes/Particles/Twinkle/TwinkleValues.js +39 -0
  478. package/umd/Options/Classes/Particles/Wobble/Wobble.d.ts +10 -0
  479. package/umd/Options/Classes/Particles/Wobble/Wobble.js +36 -0
  480. package/umd/Options/Classes/Particles/ZIndex/ZIndex.d.ts +11 -0
  481. package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +38 -0
  482. package/umd/Options/Classes/Random.d.ts +9 -0
  483. package/umd/Options/Classes/Random.js +31 -0
  484. package/umd/Options/Classes/Responsive.d.ts +12 -0
  485. package/umd/Options/Classes/Responsive.js +41 -0
  486. package/umd/Options/Classes/Theme/Theme.d.ts +12 -0
  487. package/umd/Options/Classes/Theme/Theme.js +34 -0
  488. package/umd/Options/Classes/Theme/ThemeDefault.d.ts +11 -0
  489. package/umd/Options/Classes/Theme/ThemeDefault.js +35 -0
  490. package/umd/Options/Classes/ValueWithRandom.d.ts +10 -0
  491. package/umd/Options/Classes/ValueWithRandom.js +36 -0
  492. package/umd/Options/Interfaces/Background/IBackground.d.ts +9 -0
  493. package/umd/Options/Interfaces/Background/IBackground.js +12 -0
  494. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.d.ts +7 -0
  495. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMask.js +12 -0
  496. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.d.ts +5 -0
  497. package/umd/Options/Interfaces/BackgroundMask/IBackgroundMaskCover.js +12 -0
  498. package/umd/Options/Interfaces/FullScreen/IFullScreen.d.ts +4 -0
  499. package/umd/Options/Interfaces/FullScreen/IFullScreen.js +12 -0
  500. package/umd/Options/Interfaces/IAnimatable.d.ts +4 -0
  501. package/umd/Options/Interfaces/IAnimatable.js +12 -0
  502. package/umd/Options/Interfaces/IAnimatableColor.d.ts +6 -0
  503. package/umd/Options/Interfaces/IAnimatableColor.js +12 -0
  504. package/umd/Options/Interfaces/IAnimatableGradient.d.ts +8 -0
  505. package/umd/Options/Interfaces/IAnimatableGradient.js +12 -0
  506. package/umd/Options/Interfaces/IAnimation.d.ts +6 -0
  507. package/umd/Options/Interfaces/IAnimation.js +12 -0
  508. package/umd/Options/Interfaces/IColorAnimation.d.ts +5 -0
  509. package/umd/Options/Interfaces/IColorAnimation.js +12 -0
  510. package/umd/Options/Interfaces/IHslAnimation.d.ts +6 -0
  511. package/umd/Options/Interfaces/IHslAnimation.js +12 -0
  512. package/umd/Options/Interfaces/IManualParticle.d.ts +7 -0
  513. package/umd/Options/Interfaces/IManualParticle.js +12 -0
  514. package/umd/Options/Interfaces/IOptionLoader.d.ts +4 -0
  515. package/umd/Options/Interfaces/IOptionLoader.js +12 -0
  516. package/umd/Options/Interfaces/IOptions.d.ts +34 -0
  517. package/umd/Options/Interfaces/IOptions.js +12 -0
  518. package/umd/Options/Interfaces/IOptionsColor.d.ts +2 -0
  519. package/umd/Options/Interfaces/IOptionsColor.js +12 -0
  520. package/umd/Options/Interfaces/IOptionsGradient.d.ts +13 -0
  521. package/umd/Options/Interfaces/IOptionsGradient.js +12 -0
  522. package/umd/Options/Interfaces/IRandom.d.ts +4 -0
  523. package/umd/Options/Interfaces/IRandom.js +12 -0
  524. package/umd/Options/Interfaces/IResponsive.d.ts +8 -0
  525. package/umd/Options/Interfaces/IResponsive.js +12 -0
  526. package/umd/Options/Interfaces/IValueWithRandom.d.ts +6 -0
  527. package/umd/Options/Interfaces/IValueWithRandom.js +12 -0
  528. package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +6 -0
  529. package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.js +12 -0
  530. package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +11 -0
  531. package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.js +12 -0
  532. package/umd/Options/Interfaces/Interactivity/Events/IEvents.d.ts +13 -0
  533. package/umd/Options/Interfaces/Interactivity/Events/IEvents.js +12 -0
  534. package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +8 -0
  535. package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.js +12 -0
  536. package/umd/Options/Interfaces/Interactivity/Events/IParallax.d.ts +5 -0
  537. package/umd/Options/Interfaces/Interactivity/Events/IParallax.js +12 -0
  538. package/umd/Options/Interfaces/Interactivity/IInteractivity.d.ts +9 -0
  539. package/umd/Options/Interfaces/Interactivity/IInteractivity.js +12 -0
  540. package/umd/Options/Interfaces/Interactivity/Modes/IAttract.d.ts +9 -0
  541. package/umd/Options/Interfaces/Interactivity/Modes/IAttract.js +12 -0
  542. package/umd/Options/Interfaces/Interactivity/Modes/IBounce.d.ts +3 -0
  543. package/umd/Options/Interfaces/Interactivity/Modes/IBounce.js +12 -0
  544. package/umd/Options/Interfaces/Interactivity/Modes/IBubble.d.ts +6 -0
  545. package/umd/Options/Interfaces/Interactivity/Modes/IBubble.js +12 -0
  546. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.d.ts +10 -0
  547. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleBase.js +12 -0
  548. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.d.ts +4 -0
  549. package/umd/Options/Interfaces/Interactivity/Modes/IBubbleDiv.js +12 -0
  550. package/umd/Options/Interfaces/Interactivity/Modes/IConnect.d.ts +8 -0
  551. package/umd/Options/Interfaces/Interactivity/Modes/IConnect.js +12 -0
  552. package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.d.ts +3 -0
  553. package/umd/Options/Interfaces/Interactivity/Modes/IConnectLinks.js +12 -0
  554. package/umd/Options/Interfaces/Interactivity/Modes/IGrab.d.ts +7 -0
  555. package/umd/Options/Interfaces/Interactivity/Modes/IGrab.js +12 -0
  556. package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.d.ts +7 -0
  557. package/umd/Options/Interfaces/Interactivity/Modes/IGrabLinks.js +12 -0
  558. package/umd/Options/Interfaces/Interactivity/Modes/ILight.d.ts +6 -0
  559. package/umd/Options/Interfaces/Interactivity/Modes/ILight.js +12 -0
  560. package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.d.ts +9 -0
  561. package/umd/Options/Interfaces/Interactivity/Modes/ILightArea.js +12 -0
  562. package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.d.ts +5 -0
  563. package/umd/Options/Interfaces/Interactivity/Modes/ILightShadow.js +12 -0
  564. package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +5 -0
  565. package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.js +12 -0
  566. package/umd/Options/Interfaces/Interactivity/Modes/IModes.d.ts +22 -0
  567. package/umd/Options/Interfaces/Interactivity/Modes/IModes.js +12 -0
  568. package/umd/Options/Interfaces/Interactivity/Modes/IPush.d.ts +6 -0
  569. package/umd/Options/Interfaces/Interactivity/Modes/IPush.js +12 -0
  570. package/umd/Options/Interfaces/Interactivity/Modes/IRemove.d.ts +4 -0
  571. package/umd/Options/Interfaces/Interactivity/Modes/IRemove.js +12 -0
  572. package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.d.ts +6 -0
  573. package/umd/Options/Interfaces/Interactivity/Modes/IRepulse.js +12 -0
  574. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.d.ts +9 -0
  575. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseBase.js +12 -0
  576. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.d.ts +4 -0
  577. package/umd/Options/Interfaces/Interactivity/Modes/IRepulseDiv.js +12 -0
  578. package/umd/Options/Interfaces/Interactivity/Modes/ISlow.d.ts +5 -0
  579. package/umd/Options/Interfaces/Interactivity/Modes/ISlow.js +12 -0
  580. package/umd/Options/Interfaces/Interactivity/Modes/ITrail.d.ts +8 -0
  581. package/umd/Options/Interfaces/Interactivity/Modes/ITrail.js +12 -0
  582. package/umd/Options/Interfaces/Motion/IMotion.d.ts +5 -0
  583. package/umd/Options/Interfaces/Motion/IMotion.js +12 -0
  584. package/umd/Options/Interfaces/Motion/IMotionReduce.d.ts +4 -0
  585. package/umd/Options/Interfaces/Motion/IMotionReduce.js +12 -0
  586. package/umd/Options/Interfaces/Particles/Bounce/IBounce.d.ts +5 -0
  587. package/umd/Options/Interfaces/Particles/Bounce/IBounce.js +12 -0
  588. package/umd/Options/Interfaces/Particles/Collisions/ICollisions.d.ts +9 -0
  589. package/umd/Options/Interfaces/Particles/Collisions/ICollisions.js +12 -0
  590. package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.d.ts +4 -0
  591. package/umd/Options/Interfaces/Particles/Collisions/ICollisionsOverlap.js +12 -0
  592. package/umd/Options/Interfaces/Particles/Destroy/IDestroy.d.ts +6 -0
  593. package/umd/Options/Interfaces/Particles/Destroy/IDestroy.js +12 -0
  594. package/umd/Options/Interfaces/Particles/Destroy/ISplit.d.ts +10 -0
  595. package/umd/Options/Interfaces/Particles/Destroy/ISplit.js +12 -0
  596. package/umd/Options/Interfaces/Particles/IParticles.d.ts +52 -0
  597. package/umd/Options/Interfaces/Particles/IParticles.js +12 -0
  598. package/umd/Options/Interfaces/Particles/IShadow.d.ts +8 -0
  599. package/umd/Options/Interfaces/Particles/IShadow.js +12 -0
  600. package/umd/Options/Interfaces/Particles/IStroke.d.ts +7 -0
  601. package/umd/Options/Interfaces/Particles/IStroke.js +12 -0
  602. package/umd/Options/Interfaces/Particles/Life/ILife.d.ts +7 -0
  603. package/umd/Options/Interfaces/Particles/Life/ILife.js +12 -0
  604. package/umd/Options/Interfaces/Particles/Life/ILifeDelay.d.ts +4 -0
  605. package/umd/Options/Interfaces/Particles/Life/ILifeDelay.js +12 -0
  606. package/umd/Options/Interfaces/Particles/Life/ILifeDuration.d.ts +4 -0
  607. package/umd/Options/Interfaces/Particles/Life/ILifeDuration.js +12 -0
  608. package/umd/Options/Interfaces/Particles/Links/ILinks.d.ts +17 -0
  609. package/umd/Options/Interfaces/Particles/Links/ILinks.js +12 -0
  610. package/umd/Options/Interfaces/Particles/Links/ILinksShadow.d.ts +6 -0
  611. package/umd/Options/Interfaces/Particles/Links/ILinksShadow.js +12 -0
  612. package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.d.ts +7 -0
  613. package/umd/Options/Interfaces/Particles/Links/ILinksTriangle.js +12 -0
  614. package/umd/Options/Interfaces/Particles/Move/IAttract.d.ts +8 -0
  615. package/umd/Options/Interfaces/Particles/Move/IAttract.js +12 -0
  616. package/umd/Options/Interfaces/Particles/Move/IMove.d.ts +35 -0
  617. package/umd/Options/Interfaces/Particles/Move/IMove.js +12 -0
  618. package/umd/Options/Interfaces/Particles/Move/IMoveAngle.d.ts +4 -0
  619. package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +12 -0
  620. package/umd/Options/Interfaces/Particles/Move/IMoveGravity.d.ts +6 -0
  621. package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +12 -0
  622. package/umd/Options/Interfaces/Particles/Move/IOutModes.d.ts +8 -0
  623. package/umd/Options/Interfaces/Particles/Move/IOutModes.js +12 -0
  624. package/umd/Options/Interfaces/Particles/Move/ISpin.d.ts +7 -0
  625. package/umd/Options/Interfaces/Particles/Move/ISpin.js +12 -0
  626. package/umd/Options/Interfaces/Particles/Move/ITrail.d.ts +6 -0
  627. package/umd/Options/Interfaces/Particles/Move/ITrail.js +12 -0
  628. package/umd/Options/Interfaces/Particles/Move/Path/IPath.d.ts +9 -0
  629. package/umd/Options/Interfaces/Particles/Move/Path/IPath.js +12 -0
  630. package/umd/Options/Interfaces/Particles/Number/IDensity.d.ts +6 -0
  631. package/umd/Options/Interfaces/Particles/Number/IDensity.js +12 -0
  632. package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.d.ts +7 -0
  633. package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +12 -0
  634. package/umd/Options/Interfaces/Particles/Opacity/IOpacity.d.ts +6 -0
  635. package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +12 -0
  636. package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.d.ts +8 -0
  637. package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +12 -0
  638. package/umd/Options/Interfaces/Particles/Orbit/IOrbit.d.ts +12 -0
  639. package/umd/Options/Interfaces/Particles/Orbit/IOrbit.js +12 -0
  640. package/umd/Options/Interfaces/Particles/Repulse/IRepulse.d.ts +8 -0
  641. package/umd/Options/Interfaces/Particles/Repulse/IRepulse.js +12 -0
  642. package/umd/Options/Interfaces/Particles/Roll/IRoll.d.ts +12 -0
  643. package/umd/Options/Interfaces/Particles/Roll/IRoll.js +12 -0
  644. package/umd/Options/Interfaces/Particles/Roll/IRollLight.d.ts +4 -0
  645. package/umd/Options/Interfaces/Particles/Roll/IRollLight.js +12 -0
  646. package/umd/Options/Interfaces/Particles/Rotate/IRotate.d.ts +8 -0
  647. package/umd/Options/Interfaces/Particles/Rotate/IRotate.js +12 -0
  648. package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.d.ts +5 -0
  649. package/umd/Options/Interfaces/Particles/Rotate/IRotateAnimation.js +12 -0
  650. package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.d.ts +8 -0
  651. package/umd/Options/Interfaces/Particles/Shape/ICharacterShape.js +12 -0
  652. package/umd/Options/Interfaces/Particles/Shape/IImageShape.d.ts +8 -0
  653. package/umd/Options/Interfaces/Particles/Shape/IImageShape.js +12 -0
  654. package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.d.ts +5 -0
  655. package/umd/Options/Interfaces/Particles/Shape/IPolygonShape.js +12 -0
  656. package/umd/Options/Interfaces/Particles/Shape/IShape.d.ts +16 -0
  657. package/umd/Options/Interfaces/Particles/Shape/IShape.js +12 -0
  658. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.d.ts +1 -0
  659. package/umd/Options/Interfaces/Particles/Shape/IShapeValues.js +23 -0
  660. package/umd/Options/Interfaces/Particles/Shape/IStarShape.d.ts +6 -0
  661. package/umd/Options/Interfaces/Particles/Shape/IStarShape.js +12 -0
  662. package/umd/Options/Interfaces/Particles/Size/ISize.d.ts +6 -0
  663. package/umd/Options/Interfaces/Particles/Size/ISize.js +12 -0
  664. package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.d.ts +8 -0
  665. package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +12 -0
  666. package/umd/Options/Interfaces/Particles/Tilt/ITilt.d.ts +8 -0
  667. package/umd/Options/Interfaces/Particles/Tilt/ITilt.js +12 -0
  668. package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.d.ts +5 -0
  669. package/umd/Options/Interfaces/Particles/Tilt/ITiltAnimation.js +12 -0
  670. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.d.ts +5 -0
  671. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkle.js +12 -0
  672. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.d.ts +7 -0
  673. package/umd/Options/Interfaces/Particles/Twinkle/ITwinkleValues.js +12 -0
  674. package/umd/Options/Interfaces/Particles/Wobble/IWobble.d.ts +6 -0
  675. package/umd/Options/Interfaces/Particles/Wobble/IWobble.js +12 -0
  676. package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.d.ts +6 -0
  677. package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +12 -0
  678. package/umd/Options/Interfaces/Theme/ITheme.d.ts +8 -0
  679. package/umd/Options/Interfaces/Theme/ITheme.js +12 -0
  680. package/umd/Options/Interfaces/Theme/IThemeDefault.d.ts +6 -0
  681. package/umd/Options/Interfaces/Theme/IThemeDefault.js +12 -0
  682. package/umd/Plugins/Absorbers/AbsorberContainer.d.ts +7 -0
  683. package/umd/Plugins/Absorbers/AbsorberContainer.js +12 -0
  684. package/umd/Plugins/Absorbers/AbsorberInstance.d.ts +33 -0
  685. package/umd/Plugins/Absorbers/AbsorberInstance.js +172 -0
  686. package/umd/Plugins/Absorbers/Absorbers.d.ts +22 -0
  687. package/umd/Plugins/Absorbers/Absorbers.js +128 -0
  688. package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.d.ts +3 -0
  689. package/umd/Plugins/Absorbers/Enums/AbsorberClickMode.js +12 -0
  690. package/umd/Plugins/Absorbers/Enums/index.d.ts +1 -0
  691. package/umd/Plugins/Absorbers/Enums/index.js +23 -0
  692. package/umd/Plugins/Absorbers/Options/Classes/Absorber.d.ts +18 -0
  693. package/umd/Plugins/Absorbers/Options/Classes/Absorber.js +57 -0
  694. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.d.ts +11 -0
  695. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSize.js +40 -0
  696. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.d.ts +9 -0
  697. package/umd/Plugins/Absorbers/Options/Classes/AbsorberSizeLimit.js +31 -0
  698. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.d.ts +13 -0
  699. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorber.js +12 -0
  700. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.d.ts +12 -0
  701. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberOptions.js +12 -0
  702. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.d.ts +6 -0
  703. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSize.js +12 -0
  704. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.d.ts +4 -0
  705. package/umd/Plugins/Absorbers/Options/Interfaces/IAbsorberSizeLimit.js +12 -0
  706. package/umd/Plugins/Absorbers/index.d.ts +2 -0
  707. package/umd/Plugins/Absorbers/index.js +90 -0
  708. package/umd/Plugins/Emitters/EmitterContainer.d.ts +10 -0
  709. package/umd/Plugins/Emitters/EmitterContainer.js +12 -0
  710. package/umd/Plugins/Emitters/EmitterInstance.d.ts +45 -0
  711. package/umd/Plugins/Emitters/EmitterInstance.js +278 -0
  712. package/umd/Plugins/Emitters/Emitters.d.ts +25 -0
  713. package/umd/Plugins/Emitters/Emitters.js +163 -0
  714. package/umd/Plugins/Emitters/EmittersEngine.d.ts +7 -0
  715. package/umd/Plugins/Emitters/EmittersEngine.js +12 -0
  716. package/umd/Plugins/Emitters/Enums/EmitterClickMode.d.ts +3 -0
  717. package/umd/Plugins/Emitters/Enums/EmitterClickMode.js +12 -0
  718. package/umd/Plugins/Emitters/Enums/EmitterShapeType.d.ts +4 -0
  719. package/umd/Plugins/Emitters/Enums/EmitterShapeType.js +12 -0
  720. package/umd/Plugins/Emitters/Enums/index.d.ts +2 -0
  721. package/umd/Plugins/Emitters/Enums/index.js +24 -0
  722. package/umd/Plugins/Emitters/IEmitterShape.d.ts +4 -0
  723. package/umd/Plugins/Emitters/IEmitterShape.js +12 -0
  724. package/umd/Plugins/Emitters/Options/Classes/Emitter.d.ts +28 -0
  725. package/umd/Plugins/Emitters/Options/Classes/Emitter.js +74 -0
  726. package/umd/Plugins/Emitters/Options/Classes/EmitterLife.d.ts +11 -0
  727. package/umd/Plugins/Emitters/Options/Classes/EmitterLife.js +36 -0
  728. package/umd/Plugins/Emitters/Options/Classes/EmitterRate.d.ts +9 -0
  729. package/umd/Plugins/Emitters/Options/Classes/EmitterRate.js +32 -0
  730. package/umd/Plugins/Emitters/Options/Classes/EmitterSize.d.ts +11 -0
  731. package/umd/Plugins/Emitters/Options/Classes/EmitterSize.js +35 -0
  732. package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.d.ts +24 -0
  733. package/umd/Plugins/Emitters/Options/Interfaces/IEmitter.js +12 -0
  734. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.d.ts +6 -0
  735. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterLife.js +12 -0
  736. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.d.ts +12 -0
  737. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterOptions.js +12 -0
  738. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.d.ts +5 -0
  739. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterRate.js +12 -0
  740. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.d.ts +5 -0
  741. package/umd/Plugins/Emitters/Options/Interfaces/IEmitterSize.js +12 -0
  742. package/umd/Plugins/Emitters/ShapeManager.d.ts +9 -0
  743. package/umd/Plugins/Emitters/ShapeManager.js +40 -0
  744. package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.d.ts +5 -0
  745. package/umd/Plugins/Emitters/Shapes/Circle/CircleShape.js +42 -0
  746. package/umd/Plugins/Emitters/Shapes/Square/SquareShape.d.ts +5 -0
  747. package/umd/Plugins/Emitters/Shapes/Square/SquareShape.js +53 -0
  748. package/umd/Plugins/Emitters/index.d.ts +3 -0
  749. package/umd/Plugins/Emitters/index.js +120 -0
  750. package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.d.ts +8 -0
  751. package/umd/Plugins/PolygonMask/Enums/PolygonMaskInlineArrangement.js +12 -0
  752. package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.d.ts +4 -0
  753. package/umd/Plugins/PolygonMask/Enums/PolygonMaskMoveType.js +12 -0
  754. package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.d.ts +6 -0
  755. package/umd/Plugins/PolygonMask/Enums/PolygonMaskType.js +12 -0
  756. package/umd/Plugins/PolygonMask/Enums/index.d.ts +3 -0
  757. package/umd/Plugins/PolygonMask/Enums/index.js +25 -0
  758. package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.d.ts +6 -0
  759. package/umd/Plugins/PolygonMask/Interfaces/ISvgPath.js +12 -0
  760. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.d.ts +24 -0
  761. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMask.js +76 -0
  762. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.d.ts +15 -0
  763. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDraw.js +48 -0
  764. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.d.ts +11 -0
  765. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskDrawStroke.js +39 -0
  766. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.d.ts +9 -0
  767. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskInline.js +27 -0
  768. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.d.ts +11 -0
  769. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskLocalSvg.js +39 -0
  770. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.d.ts +10 -0
  771. package/umd/Plugins/PolygonMask/Options/Classes/PolygonMaskMove.js +31 -0
  772. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.d.ts +18 -0
  773. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMask.js +12 -0
  774. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.d.ts +8 -0
  775. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDraw.js +12 -0
  776. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.d.ts +6 -0
  777. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskDrawStroke.js +12 -0
  778. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.d.ts +4 -0
  779. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskInline.js +12 -0
  780. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.d.ts +6 -0
  781. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskLocalSvg.js +12 -0
  782. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.d.ts +5 -0
  783. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskMove.js +12 -0
  784. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.d.ts +4 -0
  785. package/umd/Plugins/PolygonMask/Options/Interfaces/IPolygonMaskOptions.js +12 -0
  786. package/umd/Plugins/PolygonMask/PolygonMaskInstance.d.ts +38 -0
  787. package/umd/Plugins/PolygonMask/PolygonMaskInstance.js +396 -0
  788. package/umd/Plugins/PolygonMask/Types.d.ts +8 -0
  789. package/umd/Plugins/PolygonMask/Types.js +12 -0
  790. package/umd/Plugins/PolygonMask/Utils.d.ts +11 -0
  791. package/umd/Plugins/PolygonMask/Utils.js +134 -0
  792. package/umd/Plugins/PolygonMask/index.d.ts +2 -0
  793. package/umd/Plugins/PolygonMask/index.js +67 -0
  794. package/umd/Plugins/PolygonMask/pathseg.d.ts +0 -0
  795. package/umd/Plugins/PolygonMask/pathseg.js +1548 -0
  796. package/umd/Shapes/Circle/CircleDrawer.d.ts +5 -0
  797. package/umd/Shapes/Circle/CircleDrawer.js +22 -0
  798. package/umd/Shapes/Circle/index.d.ts +2 -0
  799. package/umd/Shapes/Circle/index.js +18 -0
  800. package/umd/Shapes/Image/ImageDrawer.d.ts +18 -0
  801. package/umd/Shapes/Image/ImageDrawer.js +142 -0
  802. package/umd/Shapes/Image/Utils.d.ts +28 -0
  803. package/umd/Shapes/Image/Utils.js +99 -0
  804. package/umd/Shapes/Image/index.d.ts +2 -0
  805. package/umd/Shapes/Image/index.js +20 -0
  806. package/umd/Shapes/Line/LineDrawer.d.ts +5 -0
  807. package/umd/Shapes/Line/LineDrawer.js +23 -0
  808. package/umd/Shapes/Line/index.d.ts +2 -0
  809. package/umd/Shapes/Line/index.js +18 -0
  810. package/umd/Shapes/Polygon/PolygonDrawer.d.ts +7 -0
  811. package/umd/Shapes/Polygon/PolygonDrawer.js +36 -0
  812. package/umd/Shapes/Polygon/PolygonDrawerBase.d.ts +15 -0
  813. package/umd/Shapes/Polygon/PolygonDrawerBase.js +40 -0
  814. package/umd/Shapes/Polygon/TriangleDrawer.d.ts +8 -0
  815. package/umd/Shapes/Polygon/TriangleDrawer.js +35 -0
  816. package/umd/Shapes/Polygon/index.d.ts +4 -0
  817. package/umd/Shapes/Polygon/index.js +28 -0
  818. package/umd/Shapes/Square/SquareDrawer.d.ts +5 -0
  819. package/umd/Shapes/Square/SquareDrawer.js +23 -0
  820. package/umd/Shapes/Square/index.d.ts +2 -0
  821. package/umd/Shapes/Square/index.js +20 -0
  822. package/umd/Shapes/Star/StarDrawer.d.ts +5 -0
  823. package/umd/Shapes/Star/StarDrawer.js +34 -0
  824. package/umd/Shapes/Star/index.d.ts +2 -0
  825. package/umd/Shapes/Star/index.js +18 -0
  826. package/umd/Shapes/Text/TextDrawer.d.ts +7 -0
  827. package/umd/Shapes/Text/TextDrawer.js +75 -0
  828. package/umd/Shapes/Text/index.d.ts +2 -0
  829. package/umd/Shapes/Text/index.js +21 -0
  830. package/umd/Types/ParticlesGroups.d.ts +4 -0
  831. package/umd/Types/ParticlesGroups.js +12 -0
  832. package/umd/Types/PathOptions.d.ts +3 -0
  833. package/umd/Types/PathOptions.js +12 -0
  834. package/umd/Types/RangeValue.d.ts +2 -0
  835. package/umd/Types/RangeValue.js +12 -0
  836. package/umd/Types/RecursivePartial.d.ts +3 -0
  837. package/umd/Types/RecursivePartial.js +12 -0
  838. package/umd/Types/ShapeData.d.ts +5 -0
  839. package/umd/Types/ShapeData.js +12 -0
  840. package/umd/Types/ShapeDrawerFunctions.d.ts +11 -0
  841. package/umd/Types/ShapeDrawerFunctions.js +12 -0
  842. package/umd/Types/SingleOrMultiple.d.ts +1 -0
  843. package/umd/Types/SingleOrMultiple.js +12 -0
  844. package/umd/Types/index.d.ts +6 -0
  845. package/umd/Types/index.js +28 -0
  846. package/umd/Updaters/Angle/AngleUpdater.d.ts +8 -0
  847. package/umd/Updaters/Angle/AngleUpdater.js +88 -0
  848. package/umd/Updaters/Angle/index.d.ts +2 -0
  849. package/umd/Updaters/Angle/index.js +18 -0
  850. package/umd/Updaters/Color/ColorUpdater.d.ts +8 -0
  851. package/umd/Updaters/Color/ColorUpdater.js +77 -0
  852. package/umd/Updaters/Color/index.d.ts +2 -0
  853. package/umd/Updaters/Color/index.js +18 -0
  854. package/umd/Updaters/Life/LifeUpdater.d.ts +8 -0
  855. package/umd/Updaters/Life/LifeUpdater.js +77 -0
  856. package/umd/Updaters/Life/index.d.ts +2 -0
  857. package/umd/Updaters/Life/index.js +18 -0
  858. package/umd/Updaters/Opacity/OpacityUpdater.d.ts +8 -0
  859. package/umd/Updaters/Opacity/OpacityUpdater.js +129 -0
  860. package/umd/Updaters/Opacity/index.d.ts +2 -0
  861. package/umd/Updaters/Opacity/index.js +18 -0
  862. package/umd/Updaters/OutModes/IBounceData.d.ts +11 -0
  863. package/umd/Updaters/OutModes/IBounceData.js +12 -0
  864. package/umd/Updaters/OutModes/OutOfCanvasUpdater.d.ts +13 -0
  865. package/umd/Updaters/OutModes/OutOfCanvasUpdater.js +156 -0
  866. package/umd/Updaters/OutModes/Utils.d.ts +3 -0
  867. package/umd/Updaters/OutModes/Utils.js +75 -0
  868. package/umd/Updaters/OutModes/index.d.ts +2 -0
  869. package/umd/Updaters/OutModes/index.js +18 -0
  870. package/umd/Updaters/Roll/RollUpdater.d.ts +6 -0
  871. package/umd/Updaters/Roll/RollUpdater.js +73 -0
  872. package/umd/Updaters/Roll/index.d.ts +2 -0
  873. package/umd/Updaters/Roll/index.js +18 -0
  874. package/umd/Updaters/Size/SizeUpdater.d.ts +6 -0
  875. package/umd/Updaters/Size/SizeUpdater.js +86 -0
  876. package/umd/Updaters/Size/index.d.ts +2 -0
  877. package/umd/Updaters/Size/index.js +18 -0
  878. package/umd/Updaters/StrokeColor/StrokeColorUpdater.d.ts +8 -0
  879. package/umd/Updaters/StrokeColor/StrokeColorUpdater.js +94 -0
  880. package/umd/Updaters/StrokeColor/index.d.ts +2 -0
  881. package/umd/Updaters/StrokeColor/index.js +18 -0
  882. package/umd/Updaters/Tilt/TiltUpdater.d.ts +8 -0
  883. package/umd/Updaters/Tilt/TiltUpdater.js +89 -0
  884. package/umd/Updaters/Tilt/index.d.ts +2 -0
  885. package/umd/Updaters/Tilt/index.js +18 -0
  886. package/umd/Updaters/Wobble/WobbleUpdater.d.ts +14 -0
  887. package/umd/Updaters/Wobble/WobbleUpdater.js +61 -0
  888. package/umd/Updaters/Wobble/index.d.ts +2 -0
  889. package/umd/Updaters/Wobble/index.js +18 -0
  890. package/umd/Utils/CanvasUtils.d.ts +19 -0
  891. package/umd/Utils/CanvasUtils.js +297 -0
  892. package/umd/Utils/ColorUtils.d.ts +26 -0
  893. package/umd/Utils/ColorUtils.js +486 -0
  894. package/umd/Utils/NumberUtils.d.ts +23 -0
  895. package/umd/Utils/NumberUtils.js +138 -0
  896. package/umd/Utils/Utils.d.ts +38 -0
  897. package/umd/Utils/Utils.js +279 -0
  898. package/umd/Utils/index.d.ts +4 -0
  899. package/umd/Utils/index.js +26 -0
  900. package/umd/engine.d.ts +26 -0
  901. package/umd/engine.js +108 -0
  902. package/umd/full.d.ts +2 -0
  903. package/umd/full.js +32 -0
  904. package/umd/index.d.ts +20 -0
  905. package/umd/index.engine.d.ts +13 -0
  906. package/umd/index.engine.js +37 -0
  907. package/umd/index.js +43 -0
  908. package/umd/index.slim.d.ts +14 -0
  909. package/umd/index.slim.js +40 -0
  910. package/umd/pjs.d.ts +14 -0
  911. package/umd/pjs.js +36 -0
  912. package/umd/slim.d.ts +2 -0
  913. package/umd/slim.js +62 -0
@@ -0,0 +1,1548 @@
1
+ "use strict";
2
+ (function () {
3
+ "use strict";
4
+ try {
5
+ if (typeof window === "undefined")
6
+ return;
7
+ if (!("SVGPathSeg" in window)) {
8
+ window.SVGPathSeg = function (type, typeAsLetter, owningPathSegList) {
9
+ this.pathSegType = type;
10
+ this.pathSegTypeAsLetter = typeAsLetter;
11
+ this._owningPathSegList = owningPathSegList;
12
+ };
13
+ window.SVGPathSeg.prototype.classname = "SVGPathSeg";
14
+ window.SVGPathSeg.PATHSEG_UNKNOWN = 0;
15
+ window.SVGPathSeg.PATHSEG_CLOSEPATH = 1;
16
+ window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2;
17
+ window.SVGPathSeg.PATHSEG_MOVETO_REL = 3;
18
+ window.SVGPathSeg.PATHSEG_LINETO_ABS = 4;
19
+ window.SVGPathSeg.PATHSEG_LINETO_REL = 5;
20
+ window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6;
21
+ window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7;
22
+ window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8;
23
+ window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9;
24
+ window.SVGPathSeg.PATHSEG_ARC_ABS = 10;
25
+ window.SVGPathSeg.PATHSEG_ARC_REL = 11;
26
+ window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12;
27
+ window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13;
28
+ window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14;
29
+ window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15;
30
+ window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
31
+ window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
32
+ window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
33
+ window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
34
+ window.SVGPathSeg.prototype._segmentChanged = function () {
35
+ if (this._owningPathSegList)
36
+ this._owningPathSegList.segmentChanged(this);
37
+ };
38
+ window.SVGPathSegClosePath = function (owningPathSegList) {
39
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CLOSEPATH, "z", owningPathSegList);
40
+ };
41
+ window.SVGPathSegClosePath.prototype = Object.create(window.SVGPathSeg.prototype);
42
+ window.SVGPathSegClosePath.prototype.toString = function () {
43
+ return "[object SVGPathSegClosePath]";
44
+ };
45
+ window.SVGPathSegClosePath.prototype._asPathString = function () {
46
+ return this.pathSegTypeAsLetter;
47
+ };
48
+ window.SVGPathSegClosePath.prototype.clone = function () {
49
+ return new window.SVGPathSegClosePath(undefined);
50
+ };
51
+ window.SVGPathSegMovetoAbs = function (owningPathSegList, x, y) {
52
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_ABS, "M", owningPathSegList);
53
+ this._x = x;
54
+ this._y = y;
55
+ };
56
+ window.SVGPathSegMovetoAbs.prototype = Object.create(window.SVGPathSeg.prototype);
57
+ window.SVGPathSegMovetoAbs.prototype.toString = function () {
58
+ return "[object SVGPathSegMovetoAbs]";
59
+ };
60
+ window.SVGPathSegMovetoAbs.prototype._asPathString = function () {
61
+ return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
62
+ };
63
+ window.SVGPathSegMovetoAbs.prototype.clone = function () {
64
+ return new window.SVGPathSegMovetoAbs(undefined, this._x, this._y);
65
+ };
66
+ Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, "x", {
67
+ get: function () {
68
+ return this._x;
69
+ },
70
+ set: function (x) {
71
+ this._x = x;
72
+ this._segmentChanged();
73
+ },
74
+ enumerable: true,
75
+ });
76
+ Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, "y", {
77
+ get: function () {
78
+ return this._y;
79
+ },
80
+ set: function (y) {
81
+ this._y = y;
82
+ this._segmentChanged();
83
+ },
84
+ enumerable: true,
85
+ });
86
+ window.SVGPathSegMovetoRel = function (owningPathSegList, x, y) {
87
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_REL, "m", owningPathSegList);
88
+ this._x = x;
89
+ this._y = y;
90
+ };
91
+ window.SVGPathSegMovetoRel.prototype = Object.create(window.SVGPathSeg.prototype);
92
+ window.SVGPathSegMovetoRel.prototype.toString = function () {
93
+ return "[object SVGPathSegMovetoRel]";
94
+ };
95
+ window.SVGPathSegMovetoRel.prototype._asPathString = function () {
96
+ return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
97
+ };
98
+ window.SVGPathSegMovetoRel.prototype.clone = function () {
99
+ return new window.SVGPathSegMovetoRel(undefined, this._x, this._y);
100
+ };
101
+ Object.defineProperty(window.SVGPathSegMovetoRel.prototype, "x", {
102
+ get: function () {
103
+ return this._x;
104
+ },
105
+ set: function (x) {
106
+ this._x = x;
107
+ this._segmentChanged();
108
+ },
109
+ enumerable: true,
110
+ });
111
+ Object.defineProperty(window.SVGPathSegMovetoRel.prototype, "y", {
112
+ get: function () {
113
+ return this._y;
114
+ },
115
+ set: function (y) {
116
+ this._y = y;
117
+ this._segmentChanged();
118
+ },
119
+ enumerable: true,
120
+ });
121
+ window.SVGPathSegLinetoAbs = function (owningPathSegList, x, y) {
122
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_ABS, "L", owningPathSegList);
123
+ this._x = x;
124
+ this._y = y;
125
+ };
126
+ window.SVGPathSegLinetoAbs.prototype = Object.create(window.SVGPathSeg.prototype);
127
+ window.SVGPathSegLinetoAbs.prototype.toString = function () {
128
+ return "[object SVGPathSegLinetoAbs]";
129
+ };
130
+ window.SVGPathSegLinetoAbs.prototype._asPathString = function () {
131
+ return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
132
+ };
133
+ window.SVGPathSegLinetoAbs.prototype.clone = function () {
134
+ return new window.SVGPathSegLinetoAbs(undefined, this._x, this._y);
135
+ };
136
+ Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, "x", {
137
+ get: function () {
138
+ return this._x;
139
+ },
140
+ set: function (x) {
141
+ this._x = x;
142
+ this._segmentChanged();
143
+ },
144
+ enumerable: true,
145
+ });
146
+ Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, "y", {
147
+ get: function () {
148
+ return this._y;
149
+ },
150
+ set: function (y) {
151
+ this._y = y;
152
+ this._segmentChanged();
153
+ },
154
+ enumerable: true,
155
+ });
156
+ window.SVGPathSegLinetoRel = function (owningPathSegList, x, y) {
157
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_REL, "l", owningPathSegList);
158
+ this._x = x;
159
+ this._y = y;
160
+ };
161
+ window.SVGPathSegLinetoRel.prototype = Object.create(window.SVGPathSeg.prototype);
162
+ window.SVGPathSegLinetoRel.prototype.toString = function () {
163
+ return "[object SVGPathSegLinetoRel]";
164
+ };
165
+ window.SVGPathSegLinetoRel.prototype._asPathString = function () {
166
+ return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
167
+ };
168
+ window.SVGPathSegLinetoRel.prototype.clone = function () {
169
+ return new window.SVGPathSegLinetoRel(undefined, this._x, this._y);
170
+ };
171
+ Object.defineProperty(window.SVGPathSegLinetoRel.prototype, "x", {
172
+ get: function () {
173
+ return this._x;
174
+ },
175
+ set: function (x) {
176
+ this._x = x;
177
+ this._segmentChanged();
178
+ },
179
+ enumerable: true,
180
+ });
181
+ Object.defineProperty(window.SVGPathSegLinetoRel.prototype, "y", {
182
+ get: function () {
183
+ return this._y;
184
+ },
185
+ set: function (y) {
186
+ this._y = y;
187
+ this._segmentChanged();
188
+ },
189
+ enumerable: true,
190
+ });
191
+ window.SVGPathSegCurvetoCubicAbs = function (owningPathSegList, x, y, x1, y1, x2, y2) {
192
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, "C", owningPathSegList);
193
+ this._x = x;
194
+ this._y = y;
195
+ this._x1 = x1;
196
+ this._y1 = y1;
197
+ this._x2 = x2;
198
+ this._y2 = y2;
199
+ };
200
+ window.SVGPathSegCurvetoCubicAbs.prototype = Object.create(window.SVGPathSeg.prototype);
201
+ window.SVGPathSegCurvetoCubicAbs.prototype.toString = function () {
202
+ return "[object SVGPathSegCurvetoCubicAbs]";
203
+ };
204
+ window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function () {
205
+ return (this.pathSegTypeAsLetter +
206
+ " " +
207
+ this._x1 +
208
+ " " +
209
+ this._y1 +
210
+ " " +
211
+ this._x2 +
212
+ " " +
213
+ this._y2 +
214
+ " " +
215
+ this._x +
216
+ " " +
217
+ this._y);
218
+ };
219
+ window.SVGPathSegCurvetoCubicAbs.prototype.clone = function () {
220
+ return new window.SVGPathSegCurvetoCubicAbs(undefined, this._x, this._y, this._x1, this._y1, this._x2, this._y2);
221
+ };
222
+ Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x", {
223
+ get: function () {
224
+ return this._x;
225
+ },
226
+ set: function (x) {
227
+ this._x = x;
228
+ this._segmentChanged();
229
+ },
230
+ enumerable: true,
231
+ });
232
+ Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y", {
233
+ get: function () {
234
+ return this._y;
235
+ },
236
+ set: function (y) {
237
+ this._y = y;
238
+ this._segmentChanged();
239
+ },
240
+ enumerable: true,
241
+ });
242
+ Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x1", {
243
+ get: function () {
244
+ return this._x1;
245
+ },
246
+ set: function (x1) {
247
+ this._x1 = x1;
248
+ this._segmentChanged();
249
+ },
250
+ enumerable: true,
251
+ });
252
+ Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y1", {
253
+ get: function () {
254
+ return this._y1;
255
+ },
256
+ set: function (y1) {
257
+ this._y1 = y1;
258
+ this._segmentChanged();
259
+ },
260
+ enumerable: true,
261
+ });
262
+ Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x2", {
263
+ get: function () {
264
+ return this._x2;
265
+ },
266
+ set: function (x2) {
267
+ this._x2 = x2;
268
+ this._segmentChanged();
269
+ },
270
+ enumerable: true,
271
+ });
272
+ Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y2", {
273
+ get: function () {
274
+ return this._y2;
275
+ },
276
+ set: function (y2) {
277
+ this._y2 = y2;
278
+ this._segmentChanged();
279
+ },
280
+ enumerable: true,
281
+ });
282
+ window.SVGPathSegCurvetoCubicRel = function (owningPathSegList, x, y, x1, y1, x2, y2) {
283
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, "c", owningPathSegList);
284
+ this._x = x;
285
+ this._y = y;
286
+ this._x1 = x1;
287
+ this._y1 = y1;
288
+ this._x2 = x2;
289
+ this._y2 = y2;
290
+ };
291
+ window.SVGPathSegCurvetoCubicRel.prototype = Object.create(window.SVGPathSeg.prototype);
292
+ window.SVGPathSegCurvetoCubicRel.prototype.toString = function () {
293
+ return "[object SVGPathSegCurvetoCubicRel]";
294
+ };
295
+ window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function () {
296
+ return (this.pathSegTypeAsLetter +
297
+ " " +
298
+ this._x1 +
299
+ " " +
300
+ this._y1 +
301
+ " " +
302
+ this._x2 +
303
+ " " +
304
+ this._y2 +
305
+ " " +
306
+ this._x +
307
+ " " +
308
+ this._y);
309
+ };
310
+ window.SVGPathSegCurvetoCubicRel.prototype.clone = function () {
311
+ return new window.SVGPathSegCurvetoCubicRel(undefined, this._x, this._y, this._x1, this._y1, this._x2, this._y2);
312
+ };
313
+ Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x", {
314
+ get: function () {
315
+ return this._x;
316
+ },
317
+ set: function (x) {
318
+ this._x = x;
319
+ this._segmentChanged();
320
+ },
321
+ enumerable: true,
322
+ });
323
+ Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y", {
324
+ get: function () {
325
+ return this._y;
326
+ },
327
+ set: function (y) {
328
+ this._y = y;
329
+ this._segmentChanged();
330
+ },
331
+ enumerable: true,
332
+ });
333
+ Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x1", {
334
+ get: function () {
335
+ return this._x1;
336
+ },
337
+ set: function (x1) {
338
+ this._x1 = x1;
339
+ this._segmentChanged();
340
+ },
341
+ enumerable: true,
342
+ });
343
+ Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y1", {
344
+ get: function () {
345
+ return this._y1;
346
+ },
347
+ set: function (y1) {
348
+ this._y1 = y1;
349
+ this._segmentChanged();
350
+ },
351
+ enumerable: true,
352
+ });
353
+ Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x2", {
354
+ get: function () {
355
+ return this._x2;
356
+ },
357
+ set: function (x2) {
358
+ this._x2 = x2;
359
+ this._segmentChanged();
360
+ },
361
+ enumerable: true,
362
+ });
363
+ Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y2", {
364
+ get: function () {
365
+ return this._y2;
366
+ },
367
+ set: function (y2) {
368
+ this._y2 = y2;
369
+ this._segmentChanged();
370
+ },
371
+ enumerable: true,
372
+ });
373
+ window.SVGPathSegCurvetoQuadraticAbs = function (owningPathSegList, x, y, x1, y1) {
374
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, "Q", owningPathSegList);
375
+ this._x = x;
376
+ this._y = y;
377
+ this._x1 = x1;
378
+ this._y1 = y1;
379
+ };
380
+ window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create(window.SVGPathSeg.prototype);
381
+ window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function () {
382
+ return "[object SVGPathSegCurvetoQuadraticAbs]";
383
+ };
384
+ window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function () {
385
+ return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x + " " + this._y;
386
+ };
387
+ window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function () {
388
+ return new window.SVGPathSegCurvetoQuadraticAbs(undefined, this._x, this._y, this._x1, this._y1);
389
+ };
390
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "x", {
391
+ get: function () {
392
+ return this._x;
393
+ },
394
+ set: function (x) {
395
+ this._x = x;
396
+ this._segmentChanged();
397
+ },
398
+ enumerable: true,
399
+ });
400
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "y", {
401
+ get: function () {
402
+ return this._y;
403
+ },
404
+ set: function (y) {
405
+ this._y = y;
406
+ this._segmentChanged();
407
+ },
408
+ enumerable: true,
409
+ });
410
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "x1", {
411
+ get: function () {
412
+ return this._x1;
413
+ },
414
+ set: function (x1) {
415
+ this._x1 = x1;
416
+ this._segmentChanged();
417
+ },
418
+ enumerable: true,
419
+ });
420
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "y1", {
421
+ get: function () {
422
+ return this._y1;
423
+ },
424
+ set: function (y1) {
425
+ this._y1 = y1;
426
+ this._segmentChanged();
427
+ },
428
+ enumerable: true,
429
+ });
430
+ window.SVGPathSegCurvetoQuadraticRel = function (owningPathSegList, x, y, x1, y1) {
431
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, "q", owningPathSegList);
432
+ this._x = x;
433
+ this._y = y;
434
+ this._x1 = x1;
435
+ this._y1 = y1;
436
+ };
437
+ window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create(window.SVGPathSeg.prototype);
438
+ window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function () {
439
+ return "[object SVGPathSegCurvetoQuadraticRel]";
440
+ };
441
+ window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function () {
442
+ return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x + " " + this._y;
443
+ };
444
+ window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function () {
445
+ return new window.SVGPathSegCurvetoQuadraticRel(undefined, this._x, this._y, this._x1, this._y1);
446
+ };
447
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "x", {
448
+ get: function () {
449
+ return this._x;
450
+ },
451
+ set: function (x) {
452
+ this._x = x;
453
+ this._segmentChanged();
454
+ },
455
+ enumerable: true,
456
+ });
457
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "y", {
458
+ get: function () {
459
+ return this._y;
460
+ },
461
+ set: function (y) {
462
+ this._y = y;
463
+ this._segmentChanged();
464
+ },
465
+ enumerable: true,
466
+ });
467
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "x1", {
468
+ get: function () {
469
+ return this._x1;
470
+ },
471
+ set: function (x1) {
472
+ this._x1 = x1;
473
+ this._segmentChanged();
474
+ },
475
+ enumerable: true,
476
+ });
477
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "y1", {
478
+ get: function () {
479
+ return this._y1;
480
+ },
481
+ set: function (y1) {
482
+ this._y1 = y1;
483
+ this._segmentChanged();
484
+ },
485
+ enumerable: true,
486
+ });
487
+ window.SVGPathSegArcAbs = function (owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
488
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_ABS, "A", owningPathSegList);
489
+ this._x = x;
490
+ this._y = y;
491
+ this._r1 = r1;
492
+ this._r2 = r2;
493
+ this._angle = angle;
494
+ this._largeArcFlag = largeArcFlag;
495
+ this._sweepFlag = sweepFlag;
496
+ };
497
+ window.SVGPathSegArcAbs.prototype = Object.create(window.SVGPathSeg.prototype);
498
+ window.SVGPathSegArcAbs.prototype.toString = function () {
499
+ return "[object SVGPathSegArcAbs]";
500
+ };
501
+ window.SVGPathSegArcAbs.prototype._asPathString = function () {
502
+ return (this.pathSegTypeAsLetter +
503
+ " " +
504
+ this._r1 +
505
+ " " +
506
+ this._r2 +
507
+ " " +
508
+ this._angle +
509
+ " " +
510
+ (this._largeArcFlag ? "1" : "0") +
511
+ " " +
512
+ (this._sweepFlag ? "1" : "0") +
513
+ " " +
514
+ this._x +
515
+ " " +
516
+ this._y);
517
+ };
518
+ window.SVGPathSegArcAbs.prototype.clone = function () {
519
+ return new window.SVGPathSegArcAbs(undefined, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag);
520
+ };
521
+ Object.defineProperty(window.SVGPathSegArcAbs.prototype, "x", {
522
+ get: function () {
523
+ return this._x;
524
+ },
525
+ set: function (x) {
526
+ this._x = x;
527
+ this._segmentChanged();
528
+ },
529
+ enumerable: true,
530
+ });
531
+ Object.defineProperty(window.SVGPathSegArcAbs.prototype, "y", {
532
+ get: function () {
533
+ return this._y;
534
+ },
535
+ set: function (y) {
536
+ this._y = y;
537
+ this._segmentChanged();
538
+ },
539
+ enumerable: true,
540
+ });
541
+ Object.defineProperty(window.SVGPathSegArcAbs.prototype, "r1", {
542
+ get: function () {
543
+ return this._r1;
544
+ },
545
+ set: function (r1) {
546
+ this._r1 = r1;
547
+ this._segmentChanged();
548
+ },
549
+ enumerable: true,
550
+ });
551
+ Object.defineProperty(window.SVGPathSegArcAbs.prototype, "r2", {
552
+ get: function () {
553
+ return this._r2;
554
+ },
555
+ set: function (r2) {
556
+ this._r2 = r2;
557
+ this._segmentChanged();
558
+ },
559
+ enumerable: true,
560
+ });
561
+ Object.defineProperty(window.SVGPathSegArcAbs.prototype, "angle", {
562
+ get: function () {
563
+ return this._angle;
564
+ },
565
+ set: function (angle) {
566
+ this._angle = angle;
567
+ this._segmentChanged();
568
+ },
569
+ enumerable: true,
570
+ });
571
+ Object.defineProperty(window.SVGPathSegArcAbs.prototype, "largeArcFlag", {
572
+ get: function () {
573
+ return this._largeArcFlag;
574
+ },
575
+ set: function (largeArcFlag) {
576
+ this._largeArcFlag = largeArcFlag;
577
+ this._segmentChanged();
578
+ },
579
+ enumerable: true,
580
+ });
581
+ Object.defineProperty(window.SVGPathSegArcAbs.prototype, "sweepFlag", {
582
+ get: function () {
583
+ return this._sweepFlag;
584
+ },
585
+ set: function (sweepFlag) {
586
+ this._sweepFlag = sweepFlag;
587
+ this._segmentChanged();
588
+ },
589
+ enumerable: true,
590
+ });
591
+ window.SVGPathSegArcRel = function (owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
592
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_REL, "a", owningPathSegList);
593
+ this._x = x;
594
+ this._y = y;
595
+ this._r1 = r1;
596
+ this._r2 = r2;
597
+ this._angle = angle;
598
+ this._largeArcFlag = largeArcFlag;
599
+ this._sweepFlag = sweepFlag;
600
+ };
601
+ window.SVGPathSegArcRel.prototype = Object.create(window.SVGPathSeg.prototype);
602
+ window.SVGPathSegArcRel.prototype.toString = function () {
603
+ return "[object SVGPathSegArcRel]";
604
+ };
605
+ window.SVGPathSegArcRel.prototype._asPathString = function () {
606
+ return (this.pathSegTypeAsLetter +
607
+ " " +
608
+ this._r1 +
609
+ " " +
610
+ this._r2 +
611
+ " " +
612
+ this._angle +
613
+ " " +
614
+ (this._largeArcFlag ? "1" : "0") +
615
+ " " +
616
+ (this._sweepFlag ? "1" : "0") +
617
+ " " +
618
+ this._x +
619
+ " " +
620
+ this._y);
621
+ };
622
+ window.SVGPathSegArcRel.prototype.clone = function () {
623
+ return new window.SVGPathSegArcRel(undefined, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag);
624
+ };
625
+ Object.defineProperty(window.SVGPathSegArcRel.prototype, "x", {
626
+ get: function () {
627
+ return this._x;
628
+ },
629
+ set: function (x) {
630
+ this._x = x;
631
+ this._segmentChanged();
632
+ },
633
+ enumerable: true,
634
+ });
635
+ Object.defineProperty(window.SVGPathSegArcRel.prototype, "y", {
636
+ get: function () {
637
+ return this._y;
638
+ },
639
+ set: function (y) {
640
+ this._y = y;
641
+ this._segmentChanged();
642
+ },
643
+ enumerable: true,
644
+ });
645
+ Object.defineProperty(window.SVGPathSegArcRel.prototype, "r1", {
646
+ get: function () {
647
+ return this._r1;
648
+ },
649
+ set: function (r1) {
650
+ this._r1 = r1;
651
+ this._segmentChanged();
652
+ },
653
+ enumerable: true,
654
+ });
655
+ Object.defineProperty(window.SVGPathSegArcRel.prototype, "r2", {
656
+ get: function () {
657
+ return this._r2;
658
+ },
659
+ set: function (r2) {
660
+ this._r2 = r2;
661
+ this._segmentChanged();
662
+ },
663
+ enumerable: true,
664
+ });
665
+ Object.defineProperty(window.SVGPathSegArcRel.prototype, "angle", {
666
+ get: function () {
667
+ return this._angle;
668
+ },
669
+ set: function (angle) {
670
+ this._angle = angle;
671
+ this._segmentChanged();
672
+ },
673
+ enumerable: true,
674
+ });
675
+ Object.defineProperty(window.SVGPathSegArcRel.prototype, "largeArcFlag", {
676
+ get: function () {
677
+ return this._largeArcFlag;
678
+ },
679
+ set: function (largeArcFlag) {
680
+ this._largeArcFlag = largeArcFlag;
681
+ this._segmentChanged();
682
+ },
683
+ enumerable: true,
684
+ });
685
+ Object.defineProperty(window.SVGPathSegArcRel.prototype, "sweepFlag", {
686
+ get: function () {
687
+ return this._sweepFlag;
688
+ },
689
+ set: function (sweepFlag) {
690
+ this._sweepFlag = sweepFlag;
691
+ this._segmentChanged();
692
+ },
693
+ enumerable: true,
694
+ });
695
+ window.SVGPathSegLinetoHorizontalAbs = function (owningPathSegList, x) {
696
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, "H", owningPathSegList);
697
+ this._x = x;
698
+ };
699
+ window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create(window.SVGPathSeg.prototype);
700
+ window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function () {
701
+ return "[object SVGPathSegLinetoHorizontalAbs]";
702
+ };
703
+ window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function () {
704
+ return this.pathSegTypeAsLetter + " " + this._x;
705
+ };
706
+ window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function () {
707
+ return new window.SVGPathSegLinetoHorizontalAbs(undefined, this._x);
708
+ };
709
+ Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype, "x", {
710
+ get: function () {
711
+ return this._x;
712
+ },
713
+ set: function (x) {
714
+ this._x = x;
715
+ this._segmentChanged();
716
+ },
717
+ enumerable: true,
718
+ });
719
+ window.SVGPathSegLinetoHorizontalRel = function (owningPathSegList, x) {
720
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, "h", owningPathSegList);
721
+ this._x = x;
722
+ };
723
+ window.SVGPathSegLinetoHorizontalRel.prototype = Object.create(window.SVGPathSeg.prototype);
724
+ window.SVGPathSegLinetoHorizontalRel.prototype.toString = function () {
725
+ return "[object SVGPathSegLinetoHorizontalRel]";
726
+ };
727
+ window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function () {
728
+ return this.pathSegTypeAsLetter + " " + this._x;
729
+ };
730
+ window.SVGPathSegLinetoHorizontalRel.prototype.clone = function () {
731
+ return new window.SVGPathSegLinetoHorizontalRel(undefined, this._x);
732
+ };
733
+ Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype, "x", {
734
+ get: function () {
735
+ return this._x;
736
+ },
737
+ set: function (x) {
738
+ this._x = x;
739
+ this._segmentChanged();
740
+ },
741
+ enumerable: true,
742
+ });
743
+ window.SVGPathSegLinetoVerticalAbs = function (owningPathSegList, y) {
744
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, "V", owningPathSegList);
745
+ this._y = y;
746
+ };
747
+ window.SVGPathSegLinetoVerticalAbs.prototype = Object.create(window.SVGPathSeg.prototype);
748
+ window.SVGPathSegLinetoVerticalAbs.prototype.toString = function () {
749
+ return "[object SVGPathSegLinetoVerticalAbs]";
750
+ };
751
+ window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function () {
752
+ return this.pathSegTypeAsLetter + " " + this._y;
753
+ };
754
+ window.SVGPathSegLinetoVerticalAbs.prototype.clone = function () {
755
+ return new window.SVGPathSegLinetoVerticalAbs(undefined, this._y);
756
+ };
757
+ Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype, "y", {
758
+ get: function () {
759
+ return this._y;
760
+ },
761
+ set: function (y) {
762
+ this._y = y;
763
+ this._segmentChanged();
764
+ },
765
+ enumerable: true,
766
+ });
767
+ window.SVGPathSegLinetoVerticalRel = function (owningPathSegList, y) {
768
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, "v", owningPathSegList);
769
+ this._y = y;
770
+ };
771
+ window.SVGPathSegLinetoVerticalRel.prototype = Object.create(window.SVGPathSeg.prototype);
772
+ window.SVGPathSegLinetoVerticalRel.prototype.toString = function () {
773
+ return "[object SVGPathSegLinetoVerticalRel]";
774
+ };
775
+ window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function () {
776
+ return this.pathSegTypeAsLetter + " " + this._y;
777
+ };
778
+ window.SVGPathSegLinetoVerticalRel.prototype.clone = function () {
779
+ return new window.SVGPathSegLinetoVerticalRel(undefined, this._y);
780
+ };
781
+ Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype, "y", {
782
+ get: function () {
783
+ return this._y;
784
+ },
785
+ set: function (y) {
786
+ this._y = y;
787
+ this._segmentChanged();
788
+ },
789
+ enumerable: true,
790
+ });
791
+ window.SVGPathSegCurvetoCubicSmoothAbs = function (owningPathSegList, x, y, x2, y2) {
792
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, "S", owningPathSegList);
793
+ this._x = x;
794
+ this._y = y;
795
+ this._x2 = x2;
796
+ this._y2 = y2;
797
+ };
798
+ window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype);
799
+ window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function () {
800
+ return "[object SVGPathSegCurvetoCubicSmoothAbs]";
801
+ };
802
+ window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function () {
803
+ return this.pathSegTypeAsLetter + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y;
804
+ };
805
+ window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function () {
806
+ return new window.SVGPathSegCurvetoCubicSmoothAbs(undefined, this._x, this._y, this._x2, this._y2);
807
+ };
808
+ Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "x", {
809
+ get: function () {
810
+ return this._x;
811
+ },
812
+ set: function (x) {
813
+ this._x = x;
814
+ this._segmentChanged();
815
+ },
816
+ enumerable: true,
817
+ });
818
+ Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "y", {
819
+ get: function () {
820
+ return this._y;
821
+ },
822
+ set: function (y) {
823
+ this._y = y;
824
+ this._segmentChanged();
825
+ },
826
+ enumerable: true,
827
+ });
828
+ Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "x2", {
829
+ get: function () {
830
+ return this._x2;
831
+ },
832
+ set: function (x2) {
833
+ this._x2 = x2;
834
+ this._segmentChanged();
835
+ },
836
+ enumerable: true,
837
+ });
838
+ Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "y2", {
839
+ get: function () {
840
+ return this._y2;
841
+ },
842
+ set: function (y2) {
843
+ this._y2 = y2;
844
+ this._segmentChanged();
845
+ },
846
+ enumerable: true,
847
+ });
848
+ window.SVGPathSegCurvetoCubicSmoothRel = function (owningPathSegList, x, y, x2, y2) {
849
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, "s", owningPathSegList);
850
+ this._x = x;
851
+ this._y = y;
852
+ this._x2 = x2;
853
+ this._y2 = y2;
854
+ };
855
+ window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype);
856
+ window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function () {
857
+ return "[object SVGPathSegCurvetoCubicSmoothRel]";
858
+ };
859
+ window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function () {
860
+ return this.pathSegTypeAsLetter + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y;
861
+ };
862
+ window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function () {
863
+ return new window.SVGPathSegCurvetoCubicSmoothRel(undefined, this._x, this._y, this._x2, this._y2);
864
+ };
865
+ Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "x", {
866
+ get: function () {
867
+ return this._x;
868
+ },
869
+ set: function (x) {
870
+ this._x = x;
871
+ this._segmentChanged();
872
+ },
873
+ enumerable: true,
874
+ });
875
+ Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "y", {
876
+ get: function () {
877
+ return this._y;
878
+ },
879
+ set: function (y) {
880
+ this._y = y;
881
+ this._segmentChanged();
882
+ },
883
+ enumerable: true,
884
+ });
885
+ Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "x2", {
886
+ get: function () {
887
+ return this._x2;
888
+ },
889
+ set: function (x2) {
890
+ this._x2 = x2;
891
+ this._segmentChanged();
892
+ },
893
+ enumerable: true,
894
+ });
895
+ Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "y2", {
896
+ get: function () {
897
+ return this._y2;
898
+ },
899
+ set: function (y2) {
900
+ this._y2 = y2;
901
+ this._segmentChanged();
902
+ },
903
+ enumerable: true,
904
+ });
905
+ window.SVGPathSegCurvetoQuadraticSmoothAbs = function (owningPathSegList, x, y) {
906
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, "T", owningPathSegList);
907
+ this._x = x;
908
+ this._y = y;
909
+ };
910
+ window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype);
911
+ window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function () {
912
+ return "[object SVGPathSegCurvetoQuadraticSmoothAbs]";
913
+ };
914
+ window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function () {
915
+ return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
916
+ };
917
+ window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function () {
918
+ return new window.SVGPathSegCurvetoQuadraticSmoothAbs(undefined, this._x, this._y);
919
+ };
920
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, "x", {
921
+ get: function () {
922
+ return this._x;
923
+ },
924
+ set: function (x) {
925
+ this._x = x;
926
+ this._segmentChanged();
927
+ },
928
+ enumerable: true,
929
+ });
930
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, "y", {
931
+ get: function () {
932
+ return this._y;
933
+ },
934
+ set: function (y) {
935
+ this._y = y;
936
+ this._segmentChanged();
937
+ },
938
+ enumerable: true,
939
+ });
940
+ window.SVGPathSegCurvetoQuadraticSmoothRel = function (owningPathSegList, x, y) {
941
+ window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, "t", owningPathSegList);
942
+ this._x = x;
943
+ this._y = y;
944
+ };
945
+ window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype);
946
+ window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function () {
947
+ return "[object SVGPathSegCurvetoQuadraticSmoothRel]";
948
+ };
949
+ window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function () {
950
+ return this.pathSegTypeAsLetter + " " + this._x + " " + this._y;
951
+ };
952
+ window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function () {
953
+ return new window.SVGPathSegCurvetoQuadraticSmoothRel(undefined, this._x, this._y);
954
+ };
955
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, "x", {
956
+ get: function () {
957
+ return this._x;
958
+ },
959
+ set: function (x) {
960
+ this._x = x;
961
+ this._segmentChanged();
962
+ },
963
+ enumerable: true,
964
+ });
965
+ Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, "y", {
966
+ get: function () {
967
+ return this._y;
968
+ },
969
+ set: function (y) {
970
+ this._y = y;
971
+ this._segmentChanged();
972
+ },
973
+ enumerable: true,
974
+ });
975
+ window.SVGPathElement.prototype.createSVGPathSegClosePath = function () {
976
+ return new window.SVGPathSegClosePath(undefined);
977
+ };
978
+ window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function (x, y) {
979
+ return new window.SVGPathSegMovetoAbs(undefined, x, y);
980
+ };
981
+ window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function (x, y) {
982
+ return new window.SVGPathSegMovetoRel(undefined, x, y);
983
+ };
984
+ window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function (x, y) {
985
+ return new window.SVGPathSegLinetoAbs(undefined, x, y);
986
+ };
987
+ window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function (x, y) {
988
+ return new window.SVGPathSegLinetoRel(undefined, x, y);
989
+ };
990
+ window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function (x, y, x1, y1, x2, y2) {
991
+ return new window.SVGPathSegCurvetoCubicAbs(undefined, x, y, x1, y1, x2, y2);
992
+ };
993
+ window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function (x, y, x1, y1, x2, y2) {
994
+ return new window.SVGPathSegCurvetoCubicRel(undefined, x, y, x1, y1, x2, y2);
995
+ };
996
+ window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function (x, y, x1, y1) {
997
+ return new window.SVGPathSegCurvetoQuadraticAbs(undefined, x, y, x1, y1);
998
+ };
999
+ window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function (x, y, x1, y1) {
1000
+ return new window.SVGPathSegCurvetoQuadraticRel(undefined, x, y, x1, y1);
1001
+ };
1002
+ window.SVGPathElement.prototype.createSVGPathSegArcAbs = function (x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
1003
+ return new window.SVGPathSegArcAbs(undefined, x, y, r1, r2, angle, largeArcFlag, sweepFlag);
1004
+ };
1005
+ window.SVGPathElement.prototype.createSVGPathSegArcRel = function (x, y, r1, r2, angle, largeArcFlag, sweepFlag) {
1006
+ return new window.SVGPathSegArcRel(undefined, x, y, r1, r2, angle, largeArcFlag, sweepFlag);
1007
+ };
1008
+ window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function (x) {
1009
+ return new window.SVGPathSegLinetoHorizontalAbs(undefined, x);
1010
+ };
1011
+ window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function (x) {
1012
+ return new window.SVGPathSegLinetoHorizontalRel(undefined, x);
1013
+ };
1014
+ window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function (y) {
1015
+ return new window.SVGPathSegLinetoVerticalAbs(undefined, y);
1016
+ };
1017
+ window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function (y) {
1018
+ return new window.SVGPathSegLinetoVerticalRel(undefined, y);
1019
+ };
1020
+ window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function (x, y, x2, y2) {
1021
+ return new window.SVGPathSegCurvetoCubicSmoothAbs(undefined, x, y, x2, y2);
1022
+ };
1023
+ window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function (x, y, x2, y2) {
1024
+ return new window.SVGPathSegCurvetoCubicSmoothRel(undefined, x, y, x2, y2);
1025
+ };
1026
+ window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function (x, y) {
1027
+ return new window.SVGPathSegCurvetoQuadraticSmoothAbs(undefined, x, y);
1028
+ };
1029
+ window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function (x, y) {
1030
+ return new window.SVGPathSegCurvetoQuadraticSmoothRel(undefined, x, y);
1031
+ };
1032
+ if (!("getPathSegAtLength" in window.SVGPathElement.prototype)) {
1033
+ window.SVGPathElement.prototype.getPathSegAtLength = function (distance) {
1034
+ if (distance === undefined || !isFinite(distance))
1035
+ throw "Invalid arguments.";
1036
+ const measurementElement = document.createElementNS("http://www.w3.org/2000/svg", "path");
1037
+ measurementElement.setAttribute("d", this.getAttribute("d"));
1038
+ let lastPathSegment = measurementElement.pathSegList.numberOfItems - 1;
1039
+ if (lastPathSegment <= 0)
1040
+ return 0;
1041
+ do {
1042
+ measurementElement.pathSegList.removeItem(lastPathSegment);
1043
+ if (distance > measurementElement.getTotalLength())
1044
+ break;
1045
+ lastPathSegment--;
1046
+ } while (lastPathSegment > 0);
1047
+ return lastPathSegment;
1048
+ };
1049
+ }
1050
+ }
1051
+ if (!("SVGPathSegList" in window) || !("appendItem" in window.SVGPathSegList.prototype)) {
1052
+ window.SVGPathSegList = function (pathElement) {
1053
+ this._pathElement = pathElement;
1054
+ this._list = this._parsePath(this._pathElement.getAttribute("d"));
1055
+ this._mutationObserverConfig = { attributes: true, attributeFilter: ["d"] };
1056
+ this._pathElementMutationObserver = new MutationObserver(this._updateListFromPathMutations.bind(this));
1057
+ this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
1058
+ };
1059
+ window.SVGPathSegList.prototype.classname = "SVGPathSegList";
1060
+ Object.defineProperty(window.SVGPathSegList.prototype, "numberOfItems", {
1061
+ get: function () {
1062
+ this._checkPathSynchronizedToList();
1063
+ return this._list.length;
1064
+ },
1065
+ enumerable: true,
1066
+ });
1067
+ Object.defineProperty(window.SVGPathSegList.prototype, "length", {
1068
+ get: function () {
1069
+ this._checkPathSynchronizedToList();
1070
+ return this._list.length;
1071
+ },
1072
+ enumerable: true,
1073
+ });
1074
+ Object.defineProperty(window.SVGPathElement.prototype, "pathSegList", {
1075
+ get: function () {
1076
+ if (!this._pathSegList)
1077
+ this._pathSegList = new window.SVGPathSegList(this);
1078
+ return this._pathSegList;
1079
+ },
1080
+ enumerable: true,
1081
+ });
1082
+ Object.defineProperty(window.SVGPathElement.prototype, "normalizedPathSegList", {
1083
+ get: function () {
1084
+ return this.pathSegList;
1085
+ },
1086
+ enumerable: true,
1087
+ });
1088
+ Object.defineProperty(window.SVGPathElement.prototype, "animatedPathSegList", {
1089
+ get: function () {
1090
+ return this.pathSegList;
1091
+ },
1092
+ enumerable: true,
1093
+ });
1094
+ Object.defineProperty(window.SVGPathElement.prototype, "animatedNormalizedPathSegList", {
1095
+ get: function () {
1096
+ return this.pathSegList;
1097
+ },
1098
+ enumerable: true,
1099
+ });
1100
+ window.SVGPathSegList.prototype._checkPathSynchronizedToList = function () {
1101
+ this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords());
1102
+ };
1103
+ window.SVGPathSegList.prototype._updateListFromPathMutations = function (mutationRecords) {
1104
+ if (!this._pathElement)
1105
+ return;
1106
+ let hasPathMutations = false;
1107
+ mutationRecords.forEach(function (record) {
1108
+ if (record.attributeName == "d")
1109
+ hasPathMutations = true;
1110
+ });
1111
+ if (hasPathMutations)
1112
+ this._list = this._parsePath(this._pathElement.getAttribute("d"));
1113
+ };
1114
+ window.SVGPathSegList.prototype._writeListToPath = function () {
1115
+ this._pathElementMutationObserver.disconnect();
1116
+ this._pathElement.setAttribute("d", window.SVGPathSegList._pathSegArrayAsString(this._list));
1117
+ this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);
1118
+ };
1119
+ window.SVGPathSegList.prototype.segmentChanged = function (pathSeg) {
1120
+ this._writeListToPath();
1121
+ };
1122
+ window.SVGPathSegList.prototype.clear = function () {
1123
+ this._checkPathSynchronizedToList();
1124
+ this._list.forEach(function (pathSeg) {
1125
+ pathSeg._owningPathSegList = null;
1126
+ });
1127
+ this._list = [];
1128
+ this._writeListToPath();
1129
+ };
1130
+ window.SVGPathSegList.prototype.initialize = function (newItem) {
1131
+ this._checkPathSynchronizedToList();
1132
+ this._list = [newItem];
1133
+ newItem._owningPathSegList = this;
1134
+ this._writeListToPath();
1135
+ return newItem;
1136
+ };
1137
+ window.SVGPathSegList.prototype._checkValidIndex = function (index) {
1138
+ if (isNaN(index) || index < 0 || index >= this.numberOfItems)
1139
+ throw "INDEX_SIZE_ERR";
1140
+ };
1141
+ window.SVGPathSegList.prototype.getItem = function (index) {
1142
+ this._checkPathSynchronizedToList();
1143
+ this._checkValidIndex(index);
1144
+ return this._list[index];
1145
+ };
1146
+ window.SVGPathSegList.prototype.insertItemBefore = function (newItem, index) {
1147
+ this._checkPathSynchronizedToList();
1148
+ if (index > this.numberOfItems)
1149
+ index = this.numberOfItems;
1150
+ if (newItem._owningPathSegList) {
1151
+ newItem = newItem.clone();
1152
+ }
1153
+ this._list.splice(index, 0, newItem);
1154
+ newItem._owningPathSegList = this;
1155
+ this._writeListToPath();
1156
+ return newItem;
1157
+ };
1158
+ window.SVGPathSegList.prototype.replaceItem = function (newItem, index) {
1159
+ this._checkPathSynchronizedToList();
1160
+ if (newItem._owningPathSegList) {
1161
+ newItem = newItem.clone();
1162
+ }
1163
+ this._checkValidIndex(index);
1164
+ this._list[index] = newItem;
1165
+ newItem._owningPathSegList = this;
1166
+ this._writeListToPath();
1167
+ return newItem;
1168
+ };
1169
+ window.SVGPathSegList.prototype.removeItem = function (index) {
1170
+ this._checkPathSynchronizedToList();
1171
+ this._checkValidIndex(index);
1172
+ const item = this._list[index];
1173
+ this._list.splice(index, 1);
1174
+ this._writeListToPath();
1175
+ return item;
1176
+ };
1177
+ window.SVGPathSegList.prototype.appendItem = function (newItem) {
1178
+ this._checkPathSynchronizedToList();
1179
+ if (newItem._owningPathSegList) {
1180
+ newItem = newItem.clone();
1181
+ }
1182
+ this._list.push(newItem);
1183
+ newItem._owningPathSegList = this;
1184
+ this._writeListToPath();
1185
+ return newItem;
1186
+ };
1187
+ window.SVGPathSegList._pathSegArrayAsString = function (pathSegArray) {
1188
+ let string = "";
1189
+ let first = true;
1190
+ pathSegArray.forEach(function (pathSeg) {
1191
+ if (first) {
1192
+ first = false;
1193
+ string += pathSeg._asPathString();
1194
+ }
1195
+ else {
1196
+ string += " " + pathSeg._asPathString();
1197
+ }
1198
+ });
1199
+ return string;
1200
+ };
1201
+ window.SVGPathSegList.prototype._parsePath = function (string) {
1202
+ if (!string || string.length == 0)
1203
+ return [];
1204
+ const owningPathSegList = this;
1205
+ const Builder = function () {
1206
+ this.pathSegList = [];
1207
+ };
1208
+ Builder.prototype.appendSegment = function (pathSeg) {
1209
+ this.pathSegList.push(pathSeg);
1210
+ };
1211
+ const Source = function (string) {
1212
+ this._string = string;
1213
+ this._currentIndex = 0;
1214
+ this._endIndex = this._string.length;
1215
+ this._previousCommand = window.SVGPathSeg.PATHSEG_UNKNOWN;
1216
+ this._skipOptionalSpaces();
1217
+ };
1218
+ Source.prototype._isCurrentSpace = function () {
1219
+ const character = this._string[this._currentIndex];
1220
+ return (character <= " " &&
1221
+ (character == " " ||
1222
+ character == "\n" ||
1223
+ character == "\t" ||
1224
+ character == "\r" ||
1225
+ character == "\f"));
1226
+ };
1227
+ Source.prototype._skipOptionalSpaces = function () {
1228
+ while (this._currentIndex < this._endIndex && this._isCurrentSpace())
1229
+ this._currentIndex++;
1230
+ return this._currentIndex < this._endIndex;
1231
+ };
1232
+ Source.prototype._skipOptionalSpacesOrDelimiter = function () {
1233
+ if (this._currentIndex < this._endIndex &&
1234
+ !this._isCurrentSpace() &&
1235
+ this._string.charAt(this._currentIndex) != ",")
1236
+ return false;
1237
+ if (this._skipOptionalSpaces()) {
1238
+ if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == ",") {
1239
+ this._currentIndex++;
1240
+ this._skipOptionalSpaces();
1241
+ }
1242
+ }
1243
+ return this._currentIndex < this._endIndex;
1244
+ };
1245
+ Source.prototype.hasMoreData = function () {
1246
+ return this._currentIndex < this._endIndex;
1247
+ };
1248
+ Source.prototype.peekSegmentType = function () {
1249
+ const lookahead = this._string[this._currentIndex];
1250
+ return this._pathSegTypeFromChar(lookahead);
1251
+ };
1252
+ Source.prototype._pathSegTypeFromChar = function (lookahead) {
1253
+ switch (lookahead) {
1254
+ case "Z":
1255
+ case "z":
1256
+ return window.SVGPathSeg.PATHSEG_CLOSEPATH;
1257
+ case "M":
1258
+ return window.SVGPathSeg.PATHSEG_MOVETO_ABS;
1259
+ case "m":
1260
+ return window.SVGPathSeg.PATHSEG_MOVETO_REL;
1261
+ case "L":
1262
+ return window.SVGPathSeg.PATHSEG_LINETO_ABS;
1263
+ case "l":
1264
+ return window.SVGPathSeg.PATHSEG_LINETO_REL;
1265
+ case "C":
1266
+ return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;
1267
+ case "c":
1268
+ return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;
1269
+ case "Q":
1270
+ return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;
1271
+ case "q":
1272
+ return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;
1273
+ case "A":
1274
+ return window.SVGPathSeg.PATHSEG_ARC_ABS;
1275
+ case "a":
1276
+ return window.SVGPathSeg.PATHSEG_ARC_REL;
1277
+ case "H":
1278
+ return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;
1279
+ case "h":
1280
+ return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;
1281
+ case "V":
1282
+ return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;
1283
+ case "v":
1284
+ return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;
1285
+ case "S":
1286
+ return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;
1287
+ case "s":
1288
+ return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;
1289
+ case "T":
1290
+ return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;
1291
+ case "t":
1292
+ return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;
1293
+ default:
1294
+ return window.SVGPathSeg.PATHSEG_UNKNOWN;
1295
+ }
1296
+ };
1297
+ Source.prototype._nextCommandHelper = function (lookahead, previousCommand) {
1298
+ if ((lookahead == "+" ||
1299
+ lookahead == "-" ||
1300
+ lookahead == "." ||
1301
+ (lookahead >= "0" && lookahead <= "9")) &&
1302
+ previousCommand != window.SVGPathSeg.PATHSEG_CLOSEPATH) {
1303
+ if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_ABS)
1304
+ return window.SVGPathSeg.PATHSEG_LINETO_ABS;
1305
+ if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_REL)
1306
+ return window.SVGPathSeg.PATHSEG_LINETO_REL;
1307
+ return previousCommand;
1308
+ }
1309
+ return window.SVGPathSeg.PATHSEG_UNKNOWN;
1310
+ };
1311
+ Source.prototype.initialCommandIsMoveTo = function () {
1312
+ if (!this.hasMoreData())
1313
+ return true;
1314
+ const command = this.peekSegmentType();
1315
+ return (command == window.SVGPathSeg.PATHSEG_MOVETO_ABS ||
1316
+ command == window.SVGPathSeg.PATHSEG_MOVETO_REL);
1317
+ };
1318
+ Source.prototype._parseNumber = function () {
1319
+ let exponent = 0;
1320
+ let integer = 0;
1321
+ let frac = 1;
1322
+ let decimal = 0;
1323
+ let sign = 1;
1324
+ let expsign = 1;
1325
+ const startIndex = this._currentIndex;
1326
+ this._skipOptionalSpaces();
1327
+ if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == "+")
1328
+ this._currentIndex++;
1329
+ else if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == "-") {
1330
+ this._currentIndex++;
1331
+ sign = -1;
1332
+ }
1333
+ if (this._currentIndex == this._endIndex ||
1334
+ ((this._string.charAt(this._currentIndex) < "0" ||
1335
+ this._string.charAt(this._currentIndex) > "9") &&
1336
+ this._string.charAt(this._currentIndex) != "."))
1337
+ return undefined;
1338
+ const startIntPartIndex = this._currentIndex;
1339
+ while (this._currentIndex < this._endIndex &&
1340
+ this._string.charAt(this._currentIndex) >= "0" &&
1341
+ this._string.charAt(this._currentIndex) <= "9")
1342
+ this._currentIndex++;
1343
+ if (this._currentIndex != startIntPartIndex) {
1344
+ let scanIntPartIndex = this._currentIndex - 1;
1345
+ let multiplier = 1;
1346
+ while (scanIntPartIndex >= startIntPartIndex) {
1347
+ integer += multiplier * (this._string.charAt(scanIntPartIndex--) - "0");
1348
+ multiplier *= 10;
1349
+ }
1350
+ }
1351
+ if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == ".") {
1352
+ this._currentIndex++;
1353
+ if (this._currentIndex >= this._endIndex ||
1354
+ this._string.charAt(this._currentIndex) < "0" ||
1355
+ this._string.charAt(this._currentIndex) > "9")
1356
+ return undefined;
1357
+ while (this._currentIndex < this._endIndex &&
1358
+ this._string.charAt(this._currentIndex) >= "0" &&
1359
+ this._string.charAt(this._currentIndex) <= "9") {
1360
+ frac *= 10;
1361
+ decimal += (this._string.charAt(this._currentIndex) - "0") / frac;
1362
+ this._currentIndex += 1;
1363
+ }
1364
+ }
1365
+ if (this._currentIndex != startIndex &&
1366
+ this._currentIndex + 1 < this._endIndex &&
1367
+ (this._string.charAt(this._currentIndex) == "e" ||
1368
+ this._string.charAt(this._currentIndex) == "E") &&
1369
+ this._string.charAt(this._currentIndex + 1) != "x" &&
1370
+ this._string.charAt(this._currentIndex + 1) != "m") {
1371
+ this._currentIndex++;
1372
+ if (this._string.charAt(this._currentIndex) == "+") {
1373
+ this._currentIndex++;
1374
+ }
1375
+ else if (this._string.charAt(this._currentIndex) == "-") {
1376
+ this._currentIndex++;
1377
+ expsign = -1;
1378
+ }
1379
+ if (this._currentIndex >= this._endIndex ||
1380
+ this._string.charAt(this._currentIndex) < "0" ||
1381
+ this._string.charAt(this._currentIndex) > "9")
1382
+ return undefined;
1383
+ while (this._currentIndex < this._endIndex &&
1384
+ this._string.charAt(this._currentIndex) >= "0" &&
1385
+ this._string.charAt(this._currentIndex) <= "9") {
1386
+ exponent *= 10;
1387
+ exponent += this._string.charAt(this._currentIndex) - "0";
1388
+ this._currentIndex++;
1389
+ }
1390
+ }
1391
+ let number = integer + decimal;
1392
+ number *= sign;
1393
+ if (exponent)
1394
+ number *= Math.pow(10, expsign * exponent);
1395
+ if (startIndex == this._currentIndex)
1396
+ return undefined;
1397
+ this._skipOptionalSpacesOrDelimiter();
1398
+ return number;
1399
+ };
1400
+ Source.prototype._parseArcFlag = function () {
1401
+ if (this._currentIndex >= this._endIndex)
1402
+ return undefined;
1403
+ let flag = false;
1404
+ const flagChar = this._string.charAt(this._currentIndex++);
1405
+ if (flagChar == "0")
1406
+ flag = false;
1407
+ else if (flagChar == "1")
1408
+ flag = true;
1409
+ else
1410
+ return undefined;
1411
+ this._skipOptionalSpacesOrDelimiter();
1412
+ return flag;
1413
+ };
1414
+ Source.prototype.parseSegment = function () {
1415
+ const lookahead = this._string[this._currentIndex];
1416
+ let command = this._pathSegTypeFromChar(lookahead);
1417
+ if (command == window.SVGPathSeg.PATHSEG_UNKNOWN) {
1418
+ if (this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN)
1419
+ return null;
1420
+ command = this._nextCommandHelper(lookahead, this._previousCommand);
1421
+ if (command == window.SVGPathSeg.PATHSEG_UNKNOWN)
1422
+ return null;
1423
+ }
1424
+ else {
1425
+ this._currentIndex++;
1426
+ }
1427
+ this._previousCommand = command;
1428
+ let points;
1429
+ switch (command) {
1430
+ case window.SVGPathSeg.PATHSEG_MOVETO_REL:
1431
+ return new window.SVGPathSegMovetoRel(owningPathSegList, this._parseNumber(), this._parseNumber());
1432
+ case window.SVGPathSeg.PATHSEG_MOVETO_ABS:
1433
+ return new window.SVGPathSegMovetoAbs(owningPathSegList, this._parseNumber(), this._parseNumber());
1434
+ case window.SVGPathSeg.PATHSEG_LINETO_REL:
1435
+ return new window.SVGPathSegLinetoRel(owningPathSegList, this._parseNumber(), this._parseNumber());
1436
+ case window.SVGPathSeg.PATHSEG_LINETO_ABS:
1437
+ return new window.SVGPathSegLinetoAbs(owningPathSegList, this._parseNumber(), this._parseNumber());
1438
+ case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:
1439
+ return new window.SVGPathSegLinetoHorizontalRel(owningPathSegList, this._parseNumber());
1440
+ case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:
1441
+ return new window.SVGPathSegLinetoHorizontalAbs(owningPathSegList, this._parseNumber());
1442
+ case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:
1443
+ return new window.SVGPathSegLinetoVerticalRel(owningPathSegList, this._parseNumber());
1444
+ case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:
1445
+ return new window.SVGPathSegLinetoVerticalAbs(owningPathSegList, this._parseNumber());
1446
+ case window.SVGPathSeg.PATHSEG_CLOSEPATH:
1447
+ this._skipOptionalSpaces();
1448
+ return new window.SVGPathSegClosePath(owningPathSegList);
1449
+ case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:
1450
+ points = {
1451
+ x1: this._parseNumber(),
1452
+ y1: this._parseNumber(),
1453
+ x2: this._parseNumber(),
1454
+ y2: this._parseNumber(),
1455
+ x: this._parseNumber(),
1456
+ y: this._parseNumber(),
1457
+ };
1458
+ return new window.SVGPathSegCurvetoCubicRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);
1459
+ case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:
1460
+ points = {
1461
+ x1: this._parseNumber(),
1462
+ y1: this._parseNumber(),
1463
+ x2: this._parseNumber(),
1464
+ y2: this._parseNumber(),
1465
+ x: this._parseNumber(),
1466
+ y: this._parseNumber(),
1467
+ };
1468
+ return new window.SVGPathSegCurvetoCubicAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);
1469
+ case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:
1470
+ points = {
1471
+ x2: this._parseNumber(),
1472
+ y2: this._parseNumber(),
1473
+ x: this._parseNumber(),
1474
+ y: this._parseNumber(),
1475
+ };
1476
+ return new window.SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, points.x, points.y, points.x2, points.y2);
1477
+ case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:
1478
+ points = {
1479
+ x2: this._parseNumber(),
1480
+ y2: this._parseNumber(),
1481
+ x: this._parseNumber(),
1482
+ y: this._parseNumber(),
1483
+ };
1484
+ return new window.SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, points.x, points.y, points.x2, points.y2);
1485
+ case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:
1486
+ points = {
1487
+ x1: this._parseNumber(),
1488
+ y1: this._parseNumber(),
1489
+ x: this._parseNumber(),
1490
+ y: this._parseNumber(),
1491
+ };
1492
+ return new window.SVGPathSegCurvetoQuadraticRel(owningPathSegList, points.x, points.y, points.x1, points.y1);
1493
+ case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:
1494
+ points = {
1495
+ x1: this._parseNumber(),
1496
+ y1: this._parseNumber(),
1497
+ x: this._parseNumber(),
1498
+ y: this._parseNumber(),
1499
+ };
1500
+ return new window.SVGPathSegCurvetoQuadraticAbs(owningPathSegList, points.x, points.y, points.x1, points.y1);
1501
+ case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:
1502
+ return new window.SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, this._parseNumber(), this._parseNumber());
1503
+ case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:
1504
+ return new window.SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, this._parseNumber(), this._parseNumber());
1505
+ case window.SVGPathSeg.PATHSEG_ARC_REL:
1506
+ points = {
1507
+ x1: this._parseNumber(),
1508
+ y1: this._parseNumber(),
1509
+ arcAngle: this._parseNumber(),
1510
+ arcLarge: this._parseArcFlag(),
1511
+ arcSweep: this._parseArcFlag(),
1512
+ x: this._parseNumber(),
1513
+ y: this._parseNumber(),
1514
+ };
1515
+ return new window.SVGPathSegArcRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);
1516
+ case window.SVGPathSeg.PATHSEG_ARC_ABS:
1517
+ points = {
1518
+ x1: this._parseNumber(),
1519
+ y1: this._parseNumber(),
1520
+ arcAngle: this._parseNumber(),
1521
+ arcLarge: this._parseArcFlag(),
1522
+ arcSweep: this._parseArcFlag(),
1523
+ x: this._parseNumber(),
1524
+ y: this._parseNumber(),
1525
+ };
1526
+ return new window.SVGPathSegArcAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);
1527
+ default:
1528
+ throw "Unknown path seg type.";
1529
+ }
1530
+ };
1531
+ const builder = new Builder();
1532
+ const source = new Source(string);
1533
+ if (!source.initialCommandIsMoveTo())
1534
+ return [];
1535
+ while (source.hasMoreData()) {
1536
+ const pathSeg = source.parseSegment();
1537
+ if (!pathSeg)
1538
+ return [];
1539
+ builder.appendSegment(pathSeg);
1540
+ }
1541
+ return builder.pathSegList;
1542
+ };
1543
+ }
1544
+ }
1545
+ catch (e) {
1546
+ console.warn("An error occurred in tsParticles pathseg polyfill. If the Polygon Mask is not working, please open an issue here: https://github.com/matteobruni/tsparticles", e);
1547
+ }
1548
+ })();