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