@tsparticles/all 4.0.0-beta.9 → 4.0.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 (610) hide show
  1. package/README.md +18 -14
  2. package/browser/browser.js +5 -0
  3. package/browser/bundle.js +4 -0
  4. package/browser/index.js +107 -108
  5. package/browser/index.lazy.js +167 -0
  6. package/cjs/browser.js +5 -0
  7. package/cjs/bundle.js +4 -0
  8. package/cjs/index.js +107 -108
  9. package/cjs/index.lazy.js +167 -0
  10. package/esm/browser.js +5 -0
  11. package/esm/bundle.js +4 -0
  12. package/esm/index.js +107 -108
  13. package/esm/index.lazy.js +167 -0
  14. package/package.json +86 -79
  15. package/report.html +4949 -94
  16. package/tsparticles.all.bundle.js +29039 -784
  17. package/tsparticles.all.bundle.min.js +1 -2
  18. package/tsparticles.all.js +111 -912
  19. package/tsparticles.all.min.js +1 -1
  20. package/types/browser.d.ts +1 -0
  21. package/types/index.lazy.d.ts +2 -0
  22. package/1001.min.js +0 -1
  23. package/1020.min.js +0 -1
  24. package/1043.min.js +0 -1
  25. package/1080.min.js +0 -1
  26. package/1089.min.js +0 -1
  27. package/1138.min.js +0 -1
  28. package/1197.min.js +0 -1
  29. package/1241.min.js +0 -1
  30. package/1289.min.js +0 -1
  31. package/1336.min.js +0 -1
  32. package/1411.min.js +0 -1
  33. package/143.min.js +0 -2
  34. package/1441.min.js +0 -2
  35. package/1472.min.js +0 -1
  36. package/1481.min.js +0 -1
  37. package/1521.min.js +0 -1
  38. package/1523.min.js +0 -1
  39. package/1562.min.js +0 -1
  40. package/1581.min.js +0 -1
  41. package/1583.min.js +0 -1
  42. package/1680.min.js +0 -1
  43. package/1684.min.js +0 -1
  44. package/1690.min.js +0 -1
  45. package/1712.min.js +0 -1
  46. package/1723.min.js +0 -1
  47. package/175.min.js +0 -1
  48. package/1807.min.js +0 -1
  49. package/1809.min.js +0 -1
  50. package/1846.min.js +0 -1
  51. package/1876.min.js +0 -1
  52. package/1879.min.js +0 -1
  53. package/1887.min.js +0 -1
  54. package/189.min.js +0 -1
  55. package/1890.min.js +0 -1
  56. package/1924.min.js +0 -1
  57. package/2004.min.js +0 -1
  58. package/2037.min.js +0 -1
  59. package/2049.min.js +0 -1
  60. package/2066.min.js +0 -1
  61. package/2127.min.js +0 -1
  62. package/2141.min.js +0 -1
  63. package/2182.min.js +0 -1
  64. package/2191.min.js +0 -1
  65. package/2219.min.js +0 -1
  66. package/2241.min.js +0 -1
  67. package/2268.min.js +0 -1
  68. package/2270.min.js +0 -1
  69. package/2288.min.js +0 -1
  70. package/2310.min.js +0 -1
  71. package/2319.min.js +0 -1
  72. package/2344.min.js +0 -1
  73. package/2438.min.js +0 -1
  74. package/2520.min.js +0 -1
  75. package/2528.min.js +0 -1
  76. package/2556.min.js +0 -1
  77. package/2575.min.js +0 -1
  78. package/2582.min.js +0 -1
  79. package/2602.min.js +0 -1
  80. package/2631.min.js +0 -1
  81. package/2637.min.js +0 -1
  82. package/2672.min.js +0 -1
  83. package/2697.min.js +0 -1
  84. package/2734.min.js +0 -1
  85. package/2760.min.js +0 -1
  86. package/2827.min.js +0 -1
  87. package/283.min.js +0 -1
  88. package/2858.min.js +0 -1
  89. package/2861.min.js +0 -1
  90. package/2865.min.js +0 -33
  91. package/2893.min.js +0 -1
  92. package/2946.min.js +0 -1
  93. package/2962.min.js +0 -1
  94. package/2974.min.js +0 -1
  95. package/2975.min.js +0 -1
  96. package/2981.min.js +0 -1
  97. package/3023.min.js +0 -1
  98. package/3047.min.js +0 -1
  99. package/3057.min.js +0 -1
  100. package/3073.min.js +0 -1
  101. package/3092.min.js +0 -1
  102. package/3113.min.js +0 -1
  103. package/316.min.js +0 -1
  104. package/3198.min.js +0 -1
  105. package/3289.min.js +0 -1
  106. package/3376.min.js +0 -1
  107. package/3384.min.js +0 -1
  108. package/3443.min.js +0 -1
  109. package/3511.min.js +0 -1
  110. package/3523.min.js +0 -1
  111. package/3544.min.js +0 -1
  112. package/3583.min.js +0 -1
  113. package/3641.min.js +0 -1
  114. package/3683.min.js +0 -2
  115. package/3685.min.js +0 -1
  116. package/3713.min.js +0 -1
  117. package/3729.min.js +0 -1
  118. package/3733.min.js +0 -1
  119. package/374.min.js +0 -1
  120. package/3748.min.js +0 -1
  121. package/3763.min.js +0 -1
  122. package/3768.min.js +0 -1
  123. package/382.min.js +0 -1
  124. package/3897.min.js +0 -1
  125. package/3958.min.js +0 -1
  126. package/4.min.js +0 -1
  127. package/4067.min.js +0 -1
  128. package/4068.min.js +0 -1
  129. package/4077.min.js +0 -1
  130. package/4086.min.js +0 -1
  131. package/4129.min.js +0 -1
  132. package/4145.min.js +0 -1
  133. package/4153.min.js +0 -1
  134. package/4186.min.js +0 -1
  135. package/4217.min.js +0 -1
  136. package/4282.min.js +0 -1
  137. package/4291.min.js +0 -1
  138. package/4317.min.js +0 -1
  139. package/4332.min.js +0 -1
  140. package/4358.min.js +0 -1
  141. package/440.min.js +0 -1
  142. package/4427.min.js +0 -1
  143. package/4430.min.js +0 -1
  144. package/4465.min.js +0 -1
  145. package/4512.min.js +0 -1
  146. package/4519.min.js +0 -1
  147. package/4568.min.js +0 -1
  148. package/4582.min.js +0 -1
  149. package/4626.min.js +0 -1
  150. package/4657.min.js +0 -1
  151. package/4698.min.js +0 -1
  152. package/4752.min.js +0 -1
  153. package/4816.min.js +0 -1
  154. package/4862.min.js +0 -1
  155. package/4886.min.js +0 -1
  156. package/4903.min.js +0 -1
  157. package/4912.min.js +0 -1
  158. package/5048.min.js +0 -1
  159. package/511.min.js +0 -1
  160. package/5149.min.js +0 -1
  161. package/5162.min.js +0 -1
  162. package/5294.min.js +0 -1
  163. package/5333.min.js +0 -1
  164. package/5344.min.js +0 -1
  165. package/5358.min.js +0 -1
  166. package/539.min.js +0 -1
  167. package/5392.min.js +0 -1
  168. package/5400.min.js +0 -1
  169. package/5402.min.js +0 -1
  170. package/5405.min.js +0 -1
  171. package/5406.min.js +0 -1
  172. package/541.min.js +0 -1
  173. package/5445.min.js +0 -1
  174. package/548.min.js +0 -1
  175. package/5551.min.js +0 -1
  176. package/5583.min.js +0 -1
  177. package/5601.min.js +0 -1
  178. package/5616.min.js +0 -1
  179. package/5628.min.js +0 -1
  180. package/5629.min.js +0 -1
  181. package/5675.min.js +0 -1
  182. package/5757.min.js +0 -1
  183. package/5828.min.js +0 -1
  184. package/5856.min.js +0 -1
  185. package/5936.min.js +0 -1
  186. package/5970.min.js +0 -1
  187. package/6055.min.js +0 -1
  188. package/6067.min.js +0 -1
  189. package/6079.min.js +0 -1
  190. package/6090.min.js +0 -1
  191. package/6099.min.js +0 -1
  192. package/6119.min.js +0 -1
  193. package/6171.min.js +0 -1
  194. package/6192.min.js +0 -1
  195. package/6207.min.js +0 -1
  196. package/6251.min.js +0 -1
  197. package/6281.min.js +0 -1
  198. package/6377.min.js +0 -1
  199. package/6379.min.js +0 -1
  200. package/6380.min.js +0 -1
  201. package/6420.min.js +0 -1
  202. package/6448.min.js +0 -1
  203. package/646.min.js +0 -1
  204. package/6466.min.js +0 -1
  205. package/6477.min.js +0 -1
  206. package/648.min.js +0 -1
  207. package/6483.min.js +0 -1
  208. package/6487.min.js +0 -1
  209. package/6549.min.js +0 -1
  210. package/6602.min.js +0 -1
  211. package/6704.min.js +0 -1
  212. package/6715.min.js +0 -1
  213. package/674.min.js +0 -1
  214. package/6798.min.js +0 -1
  215. package/6858.min.js +0 -1
  216. package/6868.min.js +0 -1
  217. package/6943.min.js +0 -1
  218. package/6966.min.js +0 -1
  219. package/6972.min.js +0 -1
  220. package/6996.min.js +0 -1
  221. package/7072.min.js +0 -1
  222. package/7129.min.js +0 -1
  223. package/7137.min.js +0 -2
  224. package/7147.min.js +0 -1
  225. package/7162.min.js +0 -1
  226. package/7175.min.js +0 -1
  227. package/7209.min.js +0 -1
  228. package/7210.min.js +0 -1
  229. package/7213.min.js +0 -1
  230. package/7259.min.js +0 -1
  231. package/7316.min.js +0 -1
  232. package/736.min.js +0 -1
  233. package/739.min.js +0 -1
  234. package/7447.min.js +0 -1
  235. package/7474.min.js +0 -1
  236. package/7563.min.js +0 -1
  237. package/7584.min.js +0 -1
  238. package/770.min.js +0 -1
  239. package/7711.min.js +0 -1
  240. package/7726.min.js +0 -1
  241. package/7757.min.js +0 -1
  242. package/7775.min.js +0 -1
  243. package/7792.min.js +0 -1
  244. package/7812.min.js +0 -1
  245. package/7840.min.js +0 -1
  246. package/7853.min.js +0 -1
  247. package/7912.min.js +0 -1
  248. package/7983.min.js +0 -1
  249. package/803.min.js +0 -1
  250. package/8035.min.js +0 -1
  251. package/805.min.js +0 -1
  252. package/8051.min.js +0 -1
  253. package/8068.min.js +0 -1
  254. package/8073.min.js +0 -1
  255. package/8149.min.js +0 -1
  256. package/8161.min.js +0 -1
  257. package/8180.min.js +0 -1
  258. package/8192.min.js +0 -1
  259. package/8204.min.js +0 -1
  260. package/8230.min.js +0 -1
  261. package/8272.min.js +0 -1
  262. package/8292.min.js +0 -1
  263. package/832.min.js +0 -2
  264. package/8331.min.js +0 -1
  265. package/8333.min.js +0 -1
  266. package/8357.min.js +0 -1
  267. package/8386.min.js +0 -1
  268. package/8459.min.js +0 -1
  269. package/8523.min.js +0 -1
  270. package/8529.min.js +0 -1
  271. package/8580.min.js +0 -1
  272. package/8607.min.js +0 -1
  273. package/8630.min.js +0 -1
  274. package/8632.min.js +0 -1
  275. package/8653.min.js +0 -1
  276. package/8656.min.js +0 -1
  277. package/8692.min.js +0 -1
  278. package/8712.min.js +0 -1
  279. package/8731.min.js +0 -1
  280. package/8855.min.js +0 -1
  281. package/8965.min.js +0 -1
  282. package/8968.min.js +0 -1
  283. package/9007.min.js +0 -1
  284. package/9081.min.js +0 -1
  285. package/9086.min.js +0 -1
  286. package/9154.min.js +0 -1
  287. package/9166.min.js +0 -1
  288. package/9291.min.js +0 -1
  289. package/9310.min.js +0 -1
  290. package/9328.min.js +0 -1
  291. package/9333.min.js +0 -1
  292. package/9335.min.js +0 -1
  293. package/9368.min.js +0 -1
  294. package/9407.min.js +0 -1
  295. package/9423.min.js +0 -1
  296. package/9434.min.js +0 -1
  297. package/9470.min.js +0 -1
  298. package/9515.min.js +0 -1
  299. package/9555.min.js +0 -1
  300. package/9608.min.js +0 -1
  301. package/9618.min.js +0 -1
  302. package/9622.min.js +0 -1
  303. package/9631.min.js +0 -1
  304. package/9644.min.js +0 -1
  305. package/9674.min.js +0 -1
  306. package/9716.min.js +0 -1
  307. package/9726.min.js +0 -1
  308. package/9766.min.js +0 -1
  309. package/980.min.js +0 -1
  310. package/9829.min.js +0 -1
  311. package/9835.min.js +0 -1
  312. package/9851.min.js +0 -1
  313. package/9876.min.js +0 -1
  314. package/9907.min.js +0 -1
  315. package/9915.min.js +0 -1
  316. package/basic_dist_browser_index_js.js +0 -30
  317. package/effects_bubble_dist_browser_BubbleDrawer_js.js +0 -30
  318. package/effects_bubble_dist_browser_index_js.js +0 -30
  319. package/effects_filter_dist_browser_FilterDrawer_js.js +0 -30
  320. package/effects_filter_dist_browser_index_js.js +0 -30
  321. package/effects_particles_dist_browser_ParticlesDrawer_js.js +0 -30
  322. package/effects_particles_dist_browser_index_js.js +0 -30
  323. package/effects_shadow_dist_browser_ShadowDrawer_js.js +0 -30
  324. package/effects_shadow_dist_browser_index_js.js +0 -30
  325. package/effects_trail_dist_browser_TrailDrawer_js.js +0 -30
  326. package/effects_trail_dist_browser_index_js.js +0 -30
  327. package/engine_dist_browser_Core_Container_js.js +0 -100
  328. package/full_dist_browser_index_js.js +0 -30
  329. package/interactions_external_attract_dist_browser_Attractor_js.js +0 -140
  330. package/interactions_external_attract_dist_browser_index_js.js +0 -40
  331. package/interactions_external_bounce_dist_browser_Bouncer_js.js +0 -140
  332. package/interactions_external_bounce_dist_browser_index_js.js +0 -40
  333. package/interactions_external_bubble_dist_browser_Bubbler_js.js +0 -150
  334. package/interactions_external_bubble_dist_browser_index_js.js +0 -60
  335. package/interactions_external_cannon_dist_browser_Cannoner_js.js +0 -130
  336. package/interactions_external_cannon_dist_browser_index_js.js +0 -40
  337. package/interactions_external_connect_dist_browser_Connector_js.js +0 -160
  338. package/interactions_external_connect_dist_browser_index_js.js +0 -50
  339. package/interactions_external_drag_dist_browser_Dragger_js.js +0 -130
  340. package/interactions_external_drag_dist_browser_index_js.js +0 -40
  341. package/interactions_external_grab_dist_browser_Grabber_js.js +0 -160
  342. package/interactions_external_grab_dist_browser_index_js.js +0 -50
  343. package/interactions_external_parallax_dist_browser_Parallaxer_js.js +0 -130
  344. package/interactions_external_parallax_dist_browser_index_js.js +0 -40
  345. package/interactions_external_particle_dist_browser_InteractivityParticleMaker_js.js +0 -140
  346. package/interactions_external_particle_dist_browser_index_js.js +0 -30
  347. package/interactions_external_pause_dist_browser_Pauser_js.js +0 -130
  348. package/interactions_external_pause_dist_browser_index_js.js +0 -30
  349. package/interactions_external_pop_dist_browser_Popper_js.js +0 -130
  350. package/interactions_external_pop_dist_browser_index_js.js +0 -30
  351. package/interactions_external_push_dist_browser_Pusher_js.js +0 -130
  352. package/interactions_external_push_dist_browser_index_js.js +0 -40
  353. package/interactions_external_remove_dist_browser_Remover_js.js +0 -130
  354. package/interactions_external_remove_dist_browser_index_js.js +0 -40
  355. package/interactions_external_repulse_dist_browser_Repulser_js.js +0 -130
  356. package/interactions_external_repulse_dist_browser_index_js.js +0 -60
  357. package/interactions_external_slow_dist_browser_Slower_js.js +0 -130
  358. package/interactions_external_slow_dist_browser_index_js.js +0 -40
  359. package/interactions_external_trail_dist_browser_TrailMaker_js.js +0 -130
  360. package/interactions_external_trail_dist_browser_index_js.js +0 -70
  361. package/interactions_light_dist_browser_ExternalLighter_js.js +0 -140
  362. package/interactions_light_dist_browser_ParticlesLighter_js.js +0 -140
  363. package/interactions_light_dist_browser_index_js.js +0 -70
  364. package/interactions_particles_attract_dist_browser_Attractor_js.js +0 -140
  365. package/interactions_particles_attract_dist_browser_index_js.js +0 -30
  366. package/interactions_particles_collisions_dist_browser_Collider_js.js +0 -210
  367. package/interactions_particles_collisions_dist_browser_OverlapPluginInstance_js.js +0 -30
  368. package/interactions_particles_collisions_dist_browser_OverlapPlugin_js.js +0 -30
  369. package/interactions_particles_collisions_dist_browser_index_js.js +0 -30
  370. package/interactions_particles_links_dist_browser_LinkInstance_js.js +0 -40
  371. package/interactions_particles_links_dist_browser_Linker_js.js +0 -140
  372. package/interactions_particles_links_dist_browser_LinksPlugin_js.js +0 -30
  373. package/interactions_particles_links_dist_browser_index_js.js +0 -60
  374. package/interactions_particles_repulse_dist_browser_Repulser_js.js +0 -140
  375. package/interactions_particles_repulse_dist_browser_index_js.js +0 -30
  376. package/paths_branches_dist_browser_BranchesPathGenerator_js.js +0 -30
  377. package/paths_branches_dist_browser_index_js.js +0 -30
  378. package/paths_brownian_dist_browser_BrownianPathGenerator_js.js +0 -30
  379. package/paths_brownian_dist_browser_index_js.js +0 -30
  380. package/paths_curlNoise_dist_browser_CurlNoiseGenerator_js.js +0 -30
  381. package/paths_curlNoise_dist_browser_index_js.js +0 -30
  382. package/paths_curves_dist_browser_CurvesPathGenerator_js.js +0 -40
  383. package/paths_curves_dist_browser_index_js.js +0 -30
  384. package/paths_fractalNoise_dist_browser_FractalNoiseGenerator_js.js +0 -90
  385. package/paths_fractalNoise_dist_browser_index_js.js +0 -30
  386. package/paths_grid_dist_browser_GridPathGenerator_js.js +0 -30
  387. package/paths_grid_dist_browser_index_js.js +0 -30
  388. package/paths_levy_dist_browser_LevyPathGenerator_js.js +0 -30
  389. package/paths_levy_dist_browser_index_js.js +0 -30
  390. package/paths_perlinNoise_dist_browser_PerlinNoiseGenerator_js.js +0 -80
  391. package/paths_perlinNoise_dist_browser_index_js.js +0 -30
  392. package/paths_polygon_dist_browser_PolygonPathGenerator_js.js +0 -30
  393. package/paths_polygon_dist_browser_index_js.js +0 -30
  394. package/paths_random_dist_browser_RandomPathGenerator_js.js +0 -30
  395. package/paths_random_dist_browser_index_js.js +0 -30
  396. package/paths_simplexNoise_dist_browser_SimplexNoiseGenerator_js.js +0 -50
  397. package/paths_simplexNoise_dist_browser_index_js.js +0 -30
  398. package/paths_spiral_dist_browser_SpiralPathGenerator_js.js +0 -40
  399. package/paths_spiral_dist_browser_index_js.js +0 -30
  400. package/paths_svg_dist_browser_SVGPathGenerator_js.js +0 -50
  401. package/paths_svg_dist_browser_index_js.js +0 -30
  402. package/paths_zigzag_dist_browser_ZigZagPathGenerator_js.js +0 -30
  403. package/paths_zigzag_dist_browser_index_js.js +0 -30
  404. package/plugins_absorbers_dist_browser_AbsorberInstance_js.js +0 -70
  405. package/plugins_absorbers_dist_browser_AbsorbersInstancesManager_js.js +0 -30
  406. package/plugins_absorbers_dist_browser_AbsorbersInteractor_js.js +0 -170
  407. package/plugins_absorbers_dist_browser_AbsorbersPluginInstance_js.js +0 -30
  408. package/plugins_absorbers_dist_browser_AbsorbersPlugin_js.js +0 -70
  409. package/plugins_absorbers_dist_browser_getAbsorbersInstancesManager_js.js +0 -30
  410. package/plugins_absorbers_dist_browser_index_js.js +0 -50
  411. package/plugins_backgroundMask_dist_browser_BackgroundMaskPluginInstance_js.js +0 -30
  412. package/plugins_backgroundMask_dist_browser_BackgroundMaskPlugin_js.js +0 -50
  413. package/plugins_backgroundMask_dist_browser_index_js.js +0 -30
  414. package/plugins_blend_dist_browser_BlendPluginInstance_js.js +0 -30
  415. package/plugins_blend_dist_browser_BlendPlugin_js.js +0 -40
  416. package/plugins_blend_dist_browser_index_js.js +0 -30
  417. package/plugins_canvasMask_dist_browser_CanvasMaskPluginInstance_js.js +0 -60
  418. package/plugins_canvasMask_dist_browser_CanvasMaskPlugin_js.js +0 -100
  419. package/plugins_canvasMask_dist_browser_index_js.js +0 -30
  420. package/plugins_colors_hex_dist_browser_HexColorManager_js.js +0 -30
  421. package/plugins_colors_hex_dist_browser_index_js.js +0 -30
  422. package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +0 -30
  423. package/plugins_colors_hsl_dist_browser_index_js.js +0 -30
  424. package/plugins_colors_hsv_dist_browser_HsvColorManager_js.js +0 -40
  425. package/plugins_colors_hsv_dist_browser_index_js.js +0 -30
  426. package/plugins_colors_hwb_dist_browser_HwbColorManager_js.js +0 -30
  427. package/plugins_colors_hwb_dist_browser_index_js.js +0 -30
  428. package/plugins_colors_lab_dist_browser_LabColorManager_js.js +0 -40
  429. package/plugins_colors_lab_dist_browser_index_js.js +0 -30
  430. package/plugins_colors_lch_dist_browser_LchColorManager_js.js +0 -40
  431. package/plugins_colors_lch_dist_browser_index_js.js +0 -30
  432. package/plugins_colors_named_dist_browser_NamedColorManager_js.js +0 -30
  433. package/plugins_colors_named_dist_browser_index_js.js +0 -30
  434. package/plugins_colors_oklab_dist_browser_OklabColorManager_js.js +0 -40
  435. package/plugins_colors_oklab_dist_browser_index_js.js +0 -30
  436. package/plugins_colors_oklch_dist_browser_OklchColorManager_js.js +0 -40
  437. package/plugins_colors_oklch_dist_browser_index_js.js +0 -30
  438. package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +0 -30
  439. package/plugins_colors_rgb_dist_browser_index_js.js +0 -30
  440. package/plugins_easings_back_dist_browser_easingsFunctions_js.js +0 -30
  441. package/plugins_easings_back_dist_browser_index_js.js +0 -30
  442. package/plugins_easings_bounce_dist_browser_easingsFunctions_js.js +0 -30
  443. package/plugins_easings_bounce_dist_browser_index_js.js +0 -30
  444. package/plugins_easings_circ_dist_browser_easingsFunctions_js.js +0 -30
  445. package/plugins_easings_circ_dist_browser_index_js.js +0 -30
  446. package/plugins_easings_cubic_dist_browser_easingsFunctions_js.js +0 -30
  447. package/plugins_easings_cubic_dist_browser_index_js.js +0 -30
  448. package/plugins_easings_elastic_dist_browser_easingsFunctions_js.js +0 -30
  449. package/plugins_easings_elastic_dist_browser_index_js.js +0 -30
  450. package/plugins_easings_expo_dist_browser_easingsFunctions_js.js +0 -30
  451. package/plugins_easings_expo_dist_browser_index_js.js +0 -30
  452. package/plugins_easings_gaussian_dist_browser_easingsFunctions_js.js +0 -30
  453. package/plugins_easings_gaussian_dist_browser_index_js.js +0 -30
  454. package/plugins_easings_linear_dist_browser_easingsFunctions_js.js +0 -30
  455. package/plugins_easings_linear_dist_browser_index_js.js +0 -30
  456. package/plugins_easings_quad_dist_browser_easingsFunctions_js.js +0 -30
  457. package/plugins_easings_quad_dist_browser_index_js.js +0 -30
  458. package/plugins_easings_quart_dist_browser_easingsFunctions_js.js +0 -30
  459. package/plugins_easings_quart_dist_browser_index_js.js +0 -30
  460. package/plugins_easings_quint_dist_browser_easingsFunctions_js.js +0 -30
  461. package/plugins_easings_quint_dist_browser_index_js.js +0 -30
  462. package/plugins_easings_sigmoid_dist_browser_easingsFunctions_js.js +0 -30
  463. package/plugins_easings_sigmoid_dist_browser_index_js.js +0 -30
  464. package/plugins_easings_sine_dist_browser_easingsFunctions_js.js +0 -30
  465. package/plugins_easings_sine_dist_browser_index_js.js +0 -30
  466. package/plugins_easings_smoothstep_dist_browser_easingsFunctions_js.js +0 -30
  467. package/plugins_easings_smoothstep_dist_browser_index_js.js +0 -30
  468. package/plugins_emittersShapes_canvas_dist_browser_EmittersCanvasShapeGenerator_js.js +0 -170
  469. package/plugins_emittersShapes_canvas_dist_browser_index_js.js +0 -30
  470. package/plugins_emittersShapes_circle_dist_browser_EmittersCircleShapeGenerator_js.js +0 -100
  471. package/plugins_emittersShapes_circle_dist_browser_index_js.js +0 -30
  472. package/plugins_emittersShapes_path_dist_browser_EmittersPathShapeGenerator_js.js +0 -120
  473. package/plugins_emittersShapes_path_dist_browser_index_js.js +0 -30
  474. package/plugins_emittersShapes_polygon_dist_browser_EmittersPolygonShapeGenerator_js.js +0 -120
  475. package/plugins_emittersShapes_polygon_dist_browser_index_js.js +0 -30
  476. package/plugins_emittersShapes_square_dist_browser_EmittersSquareShapeGenerator_js.js +0 -100
  477. package/plugins_emittersShapes_square_dist_browser_index_js.js +0 -30
  478. package/plugins_emitters_dist_browser_EmitterInstance_js.js +0 -30
  479. package/plugins_emitters_dist_browser_EmittersInstancesManager_js.js +0 -100
  480. package/plugins_emitters_dist_browser_EmittersInteractor_js.js +0 -210
  481. package/plugins_emitters_dist_browser_EmittersPluginInstance_js.js +0 -30
  482. package/plugins_emitters_dist_browser_EmittersPlugin_js.js +0 -100
  483. package/plugins_emitters_dist_browser_ShapeManager_js.js +0 -30
  484. package/plugins_emitters_dist_browser_addEmittersShapesManager_js.js +0 -30
  485. package/plugins_emitters_dist_browser_getEmittersInstancesManager_js.js +0 -30
  486. package/plugins_emitters_dist_browser_index_js.js +0 -80
  487. package/plugins_exports_image_dist_browser_ExportImagePluginInstance_js.js +0 -30
  488. package/plugins_exports_image_dist_browser_ExportImagePlugin_js.js +0 -30
  489. package/plugins_exports_image_dist_browser_index_js.js +0 -30
  490. package/plugins_exports_json_dist_browser_ExportJSONPluginInstance_js.js +0 -30
  491. package/plugins_exports_json_dist_browser_ExportJSONPlugin_js.js +0 -30
  492. package/plugins_exports_json_dist_browser_index_js.js +0 -30
  493. package/plugins_exports_video_dist_browser_ExportVideoPluginInstance_js.js +0 -30
  494. package/plugins_exports_video_dist_browser_ExportVideoPlugin_js.js +0 -30
  495. package/plugins_exports_video_dist_browser_index_js.js +0 -30
  496. package/plugins_infection_dist_browser_InfectionPluginInstance_js.js +0 -40
  497. package/plugins_infection_dist_browser_InfectionPlugin_js.js +0 -50
  498. package/plugins_infection_dist_browser_ParticlesInfecter_js.js +0 -130
  499. package/plugins_infection_dist_browser_index_js.js +0 -30
  500. package/plugins_interactivity_dist_browser_InteractivityPluginInstance_js.js +0 -50
  501. package/plugins_interactivity_dist_browser_InteractivityPlugin_js.js +0 -70
  502. package/plugins_interactivity_dist_browser_index_js.js +0 -120
  503. package/plugins_manualParticles_dist_browser_ManualParticlesPluginInstance_js.js +0 -30
  504. package/plugins_manualParticles_dist_browser_ManualParticlesPlugin_js.js +0 -40
  505. package/plugins_manualParticles_dist_browser_index_js.js +0 -30
  506. package/plugins_motion_dist_browser_MotionPluginInstance_js.js +0 -30
  507. package/plugins_motion_dist_browser_MotionPlugin_js.js +0 -50
  508. package/plugins_motion_dist_browser_index_js.js +0 -30
  509. package/plugins_move_dist_browser_MovePluginInstance_js.js +0 -40
  510. package/plugins_move_dist_browser_MovePlugin_js.js +0 -30
  511. package/plugins_move_dist_browser_index_js.js +0 -30
  512. package/plugins_poisson_dist_browser_PoissonDiscPluginInstance_js.js +0 -30
  513. package/plugins_poisson_dist_browser_PoissonDiscPlugin_js.js +0 -40
  514. package/plugins_poisson_dist_browser_PoissonDisc_js.js +0 -30
  515. package/plugins_poisson_dist_browser_index_js.js +0 -30
  516. package/plugins_polygonMask_dist_browser_PolygonMaskInstance_js.js +0 -50
  517. package/plugins_polygonMask_dist_browser_PolygonMaskPlugin_js.js +0 -90
  518. package/plugins_polygonMask_dist_browser_index_js.js +0 -60
  519. package/plugins_responsive_dist_browser_ResponsivePluginInstance_js.js +0 -30
  520. package/plugins_responsive_dist_browser_ResponsivePlugin_js.js +0 -50
  521. package/plugins_responsive_dist_browser_index_js.js +0 -30
  522. package/plugins_sounds_dist_browser_SoundsPluginInstance_js.js +0 -40
  523. package/plugins_sounds_dist_browser_SoundsPlugin_js.js +0 -130
  524. package/plugins_sounds_dist_browser_index_js.js +0 -30
  525. package/plugins_themes_dist_browser_ThemesPluginInstance_js.js +0 -30
  526. package/plugins_themes_dist_browser_ThemesPlugin_js.js +0 -60
  527. package/plugins_themes_dist_browser_index_js.js +0 -30
  528. package/plugins_trail_dist_browser_TrailPluginInstance_js.js +0 -30
  529. package/plugins_trail_dist_browser_TrailPlugin_js.js +0 -50
  530. package/plugins_trail_dist_browser_index_js.js +0 -30
  531. package/plugins_zoom_dist_browser_ZoomPluginInstance_js.js +0 -40
  532. package/plugins_zoom_dist_browser_ZoomPlugin_js.js +0 -30
  533. package/plugins_zoom_dist_browser_index_js.js +0 -50
  534. package/shapes_arrow_dist_browser_ArrowDrawer_js.js +0 -40
  535. package/shapes_arrow_dist_browser_index_js.js +0 -30
  536. package/shapes_cards_dist_browser_cards_CardDrawer_js.js +0 -40
  537. package/shapes_cards_dist_browser_clubs_ClubDrawer_js.js +0 -30
  538. package/shapes_cards_dist_browser_diamonds_DiamondDrawer_js.js +0 -30
  539. package/shapes_cards_dist_browser_hearts_HeartDrawer_js.js +0 -30
  540. package/shapes_cards_dist_browser_index_js.js +0 -90
  541. package/shapes_cards_dist_browser_paths_js.js +0 -70
  542. package/shapes_cards_dist_browser_spades_SpadeDrawer_js.js +0 -30
  543. package/shapes_circle_dist_browser_CircleDrawer_js.js +0 -40
  544. package/shapes_circle_dist_browser_index_js.js +0 -30
  545. package/shapes_cog_dist_browser_CogDrawer_js.js +0 -40
  546. package/shapes_cog_dist_browser_index_js.js +0 -30
  547. package/shapes_emoji_dist_browser_EmojiDrawer_js.js +0 -50
  548. package/shapes_emoji_dist_browser_index_js.js +0 -40
  549. package/shapes_heart_dist_browser_HeartDrawer_js.js +0 -40
  550. package/shapes_heart_dist_browser_index_js.js +0 -30
  551. package/shapes_image_dist_browser_GifUtils_Utils_js.js +0 -70
  552. package/shapes_image_dist_browser_ImageDrawer_js.js +0 -30
  553. package/shapes_image_dist_browser_ImagePreloaderInstance_js.js +0 -30
  554. package/shapes_image_dist_browser_ImagePreloader_js.js +0 -40
  555. package/shapes_image_dist_browser_index_js.js +0 -40
  556. package/shapes_infinity_dist_browser_InfinityDrawer_js.js +0 -40
  557. package/shapes_infinity_dist_browser_index_js.js +0 -30
  558. package/shapes_line_dist_browser_LineDrawer_js.js +0 -40
  559. package/shapes_line_dist_browser_index_js.js +0 -30
  560. package/shapes_matrix_dist_browser_MatrixDrawer_js.js +0 -40
  561. package/shapes_matrix_dist_browser_index_js.js +0 -30
  562. package/shapes_path_dist_browser_PathDrawer_js.js +0 -60
  563. package/shapes_path_dist_browser_index_js.js +0 -30
  564. package/shapes_polygon_dist_browser_PolygonDrawer_js.js +0 -50
  565. package/shapes_polygon_dist_browser_TriangleDrawer_js.js +0 -50
  566. package/shapes_polygon_dist_browser_index_js.js +0 -30
  567. package/shapes_rounded-polygon_dist_browser_RoundedPolygonDrawer_js.js +0 -40
  568. package/shapes_rounded-polygon_dist_browser_index_js.js +0 -30
  569. package/shapes_rounded-rect_dist_browser_RoundedRectDrawer_js.js +0 -40
  570. package/shapes_rounded-rect_dist_browser_index_js.js +0 -30
  571. package/shapes_spiral_dist_browser_SpiralDrawer_js.js +0 -40
  572. package/shapes_spiral_dist_browser_index_js.js +0 -30
  573. package/shapes_square_dist_browser_SquareDrawer_js.js +0 -40
  574. package/shapes_square_dist_browser_index_js.js +0 -30
  575. package/shapes_squircle_dist_browser_SquircleDrawer_js.js +0 -40
  576. package/shapes_squircle_dist_browser_index_js.js +0 -30
  577. package/shapes_star_dist_browser_StarDrawer_js.js +0 -40
  578. package/shapes_star_dist_browser_index_js.js +0 -30
  579. package/shapes_text_dist_browser_TextDrawer_js.js +0 -50
  580. package/shapes_text_dist_browser_index_js.js +0 -40
  581. package/slim_dist_browser_index_js.js +0 -30
  582. package/updaters_destroy_dist_browser_DestroyUpdater_js.js +0 -100
  583. package/updaters_destroy_dist_browser_index_js.js +0 -30
  584. package/updaters_fillColor_dist_browser_FillColorUpdater_js.js +0 -30
  585. package/updaters_fillColor_dist_browser_index_js.js +0 -30
  586. package/updaters_gradient_dist_browser_GradientUpdater_js.js +0 -100
  587. package/updaters_gradient_dist_browser_index_js.js +0 -30
  588. package/updaters_life_dist_browser_LifeUpdater_js.js +0 -70
  589. package/updaters_life_dist_browser_index_js.js +0 -30
  590. package/updaters_opacity_dist_browser_OpacityUpdater_js.js +0 -30
  591. package/updaters_opacity_dist_browser_index_js.js +0 -30
  592. package/updaters_orbit_dist_browser_OrbitUpdater_js.js +0 -70
  593. package/updaters_orbit_dist_browser_index_js.js +0 -30
  594. package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +0 -80
  595. package/updaters_outModes_dist_browser_index_js.js +0 -30
  596. package/updaters_roll_dist_browser_RollUpdater_js.js +0 -70
  597. package/updaters_roll_dist_browser_index_js.js +0 -30
  598. package/updaters_rotate_dist_browser_RotateUpdater_js.js +0 -50
  599. package/updaters_rotate_dist_browser_index_js.js +0 -30
  600. package/updaters_size_dist_browser_SizeUpdater_js.js +0 -30
  601. package/updaters_size_dist_browser_index_js.js +0 -30
  602. package/updaters_strokeColor_dist_browser_StrokeColorUpdater_js.js +0 -30
  603. package/updaters_strokeColor_dist_browser_index_js.js +0 -30
  604. package/updaters_tilt_dist_browser_TiltUpdater_js.js +0 -60
  605. package/updaters_tilt_dist_browser_index_js.js +0 -30
  606. package/updaters_twinkle_dist_browser_TwinkleUpdater_js.js +0 -60
  607. package/updaters_twinkle_dist_browser_index_js.js +0 -30
  608. package/updaters_wobble_dist_browser_WobbleUpdater_js.js +0 -60
  609. package/updaters_wobble_dist_browser_index_js.js +0 -30
  610. package/utils_simplexNoise_dist_browser_index_js.js +0 -80
@@ -1,50 +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
- * v4.0.0-beta.9
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_all"] = this["webpackChunk_tsparticles_all"] || []).push([["plugins_polygonMask_dist_browser_PolygonMaskInstance_js"],{
19
-
20
- /***/ "../../plugins/polygonMask/dist/browser/PolygonMaskInstance.js"
21
- /*!*********************************************************************!*\
22
- !*** ../../plugins/polygonMask/dist/browser/PolygonMaskInstance.js ***!
23
- \*********************************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskInstance: () => (/* binding */ PolygonMaskInstance)\n/* harmony export */ });\n/* harmony import */ var _pathseg_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pathseg.js */ \"../../plugins/polygonMask/dist/browser/pathseg.js\");\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils.js */ \"../../plugins/polygonMask/dist/browser/utils.js\");\n/* harmony import */ var _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Enums/PolygonMaskInlineArrangement.js */ \"../../plugins/polygonMask/dist/browser/Enums/PolygonMaskInlineArrangement.js\");\n/* harmony import */ var _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Enums/PolygonMaskType.js */ \"../../plugins/polygonMask/dist/browser/Enums/PolygonMaskType.js\");\n\n\n\n\n\nconst noPolygonDataLoaded = `No polygon data loaded.`, noPolygonFound = `No polygon found, you need to specify SVG url in config.`;\nclass PolygonMaskInstance {\n dimension;\n offset;\n paths;\n raw;\n redrawTimeout;\n _container;\n _moveRadius;\n _pluginManager;\n _scale;\n constructor(pluginManager, container){\n this._container = container;\n this._pluginManager = pluginManager;\n this.dimension = {\n height: 0,\n width: 0\n };\n this._moveRadius = 0;\n this._scale = 1;\n }\n clickPositionValid(position) {\n const options = this._container.actualOptions.polygon;\n return !!options?.enable && options.type !== _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.none && options.type !== _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.inline && this._checkInsidePolygon(position);\n }\n draw(context) {\n if (!this.paths?.length) {\n return;\n }\n const options = this._container.actualOptions.polygon;\n if (!options?.enable) {\n return;\n }\n const polygonDraw = options.draw;\n if (!polygonDraw.enable) {\n return;\n }\n const rawData = this.raw;\n for (const path of this.paths){\n const path2d = path.path2d;\n if (path2d && this.offset) {\n (0,_utils_js__WEBPACK_IMPORTED_MODULE_2__.drawPolygonMaskPath)(this._pluginManager, context, path2d, polygonDraw.stroke, this.offset, this._container.hdr);\n } else if (rawData) {\n (0,_utils_js__WEBPACK_IMPORTED_MODULE_2__.drawPolygonMask)(this._pluginManager, context, rawData, polygonDraw.stroke, this._container.hdr);\n }\n }\n }\n async init() {\n const container = this._container, polygonMaskOptions = container.actualOptions.polygon, pxRatio = container.retina.pixelRatio;\n if (!polygonMaskOptions) {\n return;\n }\n this._moveRadius = polygonMaskOptions.move.radius * pxRatio;\n this._scale = polygonMaskOptions.scale * pxRatio;\n if (polygonMaskOptions.enable) {\n await this._initRawData();\n }\n }\n particleBounce(particle, delta, direction) {\n return this._polygonBounce(particle, delta, direction);\n }\n particlePosition(position) {\n const options = this._container.actualOptions.polygon, defaultLength = 0;\n if (!(options?.enable && (this.raw?.length ?? defaultLength) > defaultLength)) {\n return;\n }\n return (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.deepExtend)({}, position ?? this._randomPoint());\n }\n particlesInitialization() {\n const options = this._container.actualOptions.polygon;\n if (options?.enable && options.type === _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.inline && (options.inline.arrangement === _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_3__.PolygonMaskInlineArrangement.onePerPoint || options.inline.arrangement === _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_3__.PolygonMaskInlineArrangement.perPoint)) {\n this._drawPoints();\n return true;\n }\n return false;\n }\n resize() {\n const container = this._container, options = container.actualOptions.polygon;\n if (!(options?.enable && options.type !== _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.none)) {\n return;\n }\n if (this.redrawTimeout) {\n clearTimeout(this.redrawTimeout);\n }\n const timeout = 250;\n this.redrawTimeout = setTimeout(()=>{\n void (async ()=>{\n await this._initRawData(true);\n await container.particles.redraw();\n })();\n }, timeout);\n }\n stop() {\n delete this.raw;\n delete this.paths;\n }\n _checkInsidePolygon = (position)=>{\n const container = this._container, options = container.actualOptions.polygon;\n if (!options?.enable || options.type === _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.none || options.type === _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.inline) {\n return true;\n }\n if (!this.raw) {\n throw new Error(noPolygonFound);\n }\n const canvasSize = container.canvas.size, x = position?.x ?? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() * canvasSize.width, y = position?.y ?? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() * canvasSize.height, indexOffset = 1;\n let inside = false;\n for(let i = 0, j = this.raw.length - indexOffset; i < this.raw.length; j = i++){\n const pi = this.raw[i], pj = this.raw[j];\n if (!pi || !pj) {\n continue;\n }\n const intersect = pi.y > y !== pj.y > y && x < (pj.x - pi.x) * (y - pi.y) / (pj.y - pi.y) + pi.x;\n if (intersect) {\n inside = !inside;\n }\n }\n if (options.type === _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.inside) {\n return inside;\n } else {\n return !inside;\n }\n };\n _createPath2D = ()=>{\n const container = this._container, options = container.actualOptions.polygon;\n if (!options || !this.paths?.length) {\n return;\n }\n for (const path of this.paths){\n const pathData = path.element.getAttribute(\"d\");\n if (pathData) {\n const path2d = new Path2D(pathData), matrix = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.safeDocument)().createElementNS(\"http://www.w3.org/2000/svg\", \"svg\").createSVGMatrix(), finalPath = new Path2D(), transform = matrix.scale(this._scale);\n finalPath.addPath(path2d, transform);\n path.path2d = finalPath;\n } else {\n delete path.path2d;\n }\n if (path.path2d ?? !this.raw) {\n continue;\n }\n path.path2d = new Path2D();\n const firstIndex = 0, firstPoint = this.raw[firstIndex];\n if (!firstPoint) {\n continue;\n }\n path.path2d.moveTo(firstPoint.x, firstPoint.y);\n this.raw.forEach((pos, i)=>{\n if (i > firstIndex) {\n path.path2d?.lineTo(pos.x, pos.y);\n }\n });\n path.path2d.closePath();\n }\n };\n _downloadSvgPath = async (svgUrl, force)=>{\n const options = this._container.actualOptions.polygon;\n if (!options) {\n return;\n }\n const url = svgUrl ?? options.url, forceDownload = force ?? false;\n if (!url || this.paths !== undefined && !forceDownload) {\n return this.raw;\n }\n const req = await fetch(url);\n if (!req.ok) {\n throw new Error(`Error occurred during polygon mask download`);\n }\n return this._parseSvgPath(await req.text(), force);\n };\n _drawPoints = ()=>{\n if (!this.raw) {\n return;\n }\n for (const item of this.raw){\n this._container.particles.addParticle({\n x: item.x,\n y: item.y\n });\n }\n };\n _getEquidistantPointByIndex = (index)=>{\n const container = this._container, options = container.actualOptions, polygonMaskOptions = options.polygon;\n if (!polygonMaskOptions) {\n return;\n }\n if (!this.raw?.length || !this.paths?.length) {\n throw new Error(noPolygonDataLoaded);\n }\n let offset = 0, point;\n const baseAccumulator = 0, totalLength = this.paths.reduce((tot, path)=>tot + path.length, baseAccumulator), distance = totalLength / options.particles.number.value;\n for (const path of this.paths){\n const pathDistance = distance * index - offset;\n if (pathDistance <= path.length) {\n point = path.element.getPointAtLength(pathDistance);\n break;\n } else {\n offset += path.length;\n }\n }\n const scale = this._scale;\n return {\n x: (point?.x ?? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.originPoint.x) * scale + (this.offset?.x ?? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.originPoint.x),\n y: (point?.y ?? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.originPoint.y) * scale + (this.offset?.y ?? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.originPoint.y)\n };\n };\n _getPointByIndex = (index)=>{\n if (!this.raw?.length) {\n throw new Error(noPolygonDataLoaded);\n }\n const coords = this.raw[index % this.raw.length];\n if (!coords) {\n return;\n }\n return {\n x: coords.x,\n y: coords.y\n };\n };\n _getRandomPoint = ()=>{\n if (!this.raw?.length) {\n throw new Error(noPolygonDataLoaded);\n }\n const coords = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.itemFromArray)(this.raw);\n if (!coords) {\n return;\n }\n return {\n x: coords.x,\n y: coords.y\n };\n };\n _getRandomPointByLength = ()=>{\n const container = this._container, options = container.actualOptions.polygon;\n if (!options) {\n return;\n }\n if (!this.raw?.length || !this.paths?.length) {\n throw new Error(noPolygonDataLoaded);\n }\n const path = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.itemFromArray)(this.paths);\n if (!path) {\n return;\n }\n const offset = 1, distance = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() * path.length) + offset, point = path.element.getPointAtLength(distance), scale = this._scale;\n return {\n x: point.x * scale + (this.offset?.x ?? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.originPoint.x),\n y: point.y * scale + (this.offset?.y ?? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.originPoint.y)\n };\n };\n _initRawData = async (force)=>{\n const options = this._container.actualOptions.polygon;\n if (!options) {\n return;\n }\n if (options.url) {\n this.raw = await this._downloadSvgPath(options.url, force);\n } else if (options.data) {\n const data = options.data;\n let svg;\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.isString)(data)) {\n svg = data;\n } else {\n const getPath = (p)=>`<path d=\"${p}\" />`, path = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.isArray)(data.path) ? data.path.map(getPath).join(\"\") : getPath(data.path), namespaces = 'xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"';\n svg = `<svg ${namespaces} width=\"${data.size.width.toString()}\" height=\"${data.size.height.toString()}\">${path}</svg>`;\n }\n this.raw = this._parseSvgPath(svg, force);\n }\n this._createPath2D();\n this._container.dispatchEvent(\"polygonMaskLoaded\");\n };\n _parseSvgPath = (xml, force)=>{\n const forceDownload = force ?? false;\n if (this.paths !== undefined && !forceDownload) {\n return this.raw;\n }\n const container = this._container, options = container.actualOptions.polygon;\n if (!options) {\n return;\n }\n const parser = new DOMParser(), doc = parser.parseFromString(xml, \"image/svg+xml\"), firstIndex = 0, svg = doc.getElementsByTagName(\"svg\")[firstIndex];\n if (!svg) {\n return;\n }\n let svgPaths = svg.getElementsByTagName(\"path\");\n if (!svgPaths.length) {\n svgPaths = doc.getElementsByTagName(\"path\");\n }\n this.paths = [];\n for(let i = 0; i < svgPaths.length; i++){\n const path = svgPaths.item(i);\n if (path) {\n this.paths.push({\n element: path,\n length: path.getTotalLength()\n });\n }\n }\n const scale = this._scale;\n this.dimension.width = parseFloat(svg.getAttribute(\"width\") ?? \"0\") * scale;\n this.dimension.height = parseFloat(svg.getAttribute(\"height\") ?? \"0\") * scale;\n const position = options.position ?? {\n x: 50,\n y: 50\n }, canvasSize = container.canvas.size;\n this.offset = {\n x: canvasSize.width * position.x / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.percentDenominator - this.dimension.width * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half,\n y: canvasSize.height * position.y / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.percentDenominator - this.dimension.height * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half\n };\n return (0,_utils_js__WEBPACK_IMPORTED_MODULE_2__.parsePaths)(this.paths, scale, this.offset);\n };\n _polygonBounce = (particle, _delta, direction)=>{\n const options = this._container.actualOptions.polygon;\n if (!this.raw || !options?.enable || direction !== _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.OutModeDirection.top) {\n return false;\n }\n if (options.type === _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.inside || options.type === _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.outside) {\n let closest, dx, dy;\n const pos = particle.getPosition(), radius = particle.getRadius(), offset = 1;\n for(let i = 0, j = this.raw.length - offset; i < this.raw.length; j = i++){\n const pi = this.raw[i], pj = this.raw[j];\n if (!pi || !pj) {\n continue;\n }\n closest = (0,_utils_js__WEBPACK_IMPORTED_MODULE_2__.calcClosestPointOnSegment)(pi, pj, pos);\n const dist = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getDistances)(pos, closest);\n [dx, dy] = [\n dist.dx,\n dist.dy\n ];\n if (dist.distance < radius) {\n (0,_utils_js__WEBPACK_IMPORTED_MODULE_2__.segmentBounce)(pi, pj, particle.velocity);\n return true;\n }\n }\n if (closest && dx !== undefined && dy !== undefined && !this._checkInsidePolygon(pos)) {\n const factor = {\n x: 1,\n y: 1\n }, diameter = radius * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.double, inverse = -1;\n if (pos.x >= closest.x) {\n factor.x = -1;\n }\n if (pos.y >= closest.y) {\n factor.y = -1;\n }\n particle.position.x = closest.x + diameter * factor.x;\n particle.position.y = closest.y + diameter * factor.y;\n particle.velocity.mult(inverse);\n return true;\n }\n } else if (options.type === _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.inline) {\n const dist = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getDistance)(particle.initialPosition, particle.getPosition()), { velocity } = particle;\n if (dist > this._moveRadius) {\n velocity.x = velocity.y * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half - velocity.x;\n velocity.y = velocity.x * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.half - velocity.y;\n return true;\n }\n }\n return false;\n };\n _randomPoint = ()=>{\n const container = this._container, options = container.actualOptions.polygon;\n if (!options) {\n return;\n }\n let position;\n if (options.type === _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskType.inline) {\n switch(options.inline.arrangement){\n case _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_3__.PolygonMaskInlineArrangement.randomPoint:\n position = this._getRandomPoint();\n break;\n case _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_3__.PolygonMaskInlineArrangement.randomLength:\n position = this._getRandomPointByLength();\n break;\n case _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_3__.PolygonMaskInlineArrangement.equidistant:\n position = this._getEquidistantPointByIndex(container.particles.count);\n break;\n case _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_3__.PolygonMaskInlineArrangement.onePerPoint:\n case _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_3__.PolygonMaskInlineArrangement.perPoint:\n default:\n position = this._getPointByIndex(container.particles.count);\n }\n } else {\n const canvasSize = container.canvas.size;\n position = {\n x: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() * canvasSize.width,\n y: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_1__.getRandom)() * canvasSize.height\n };\n }\n if (this._checkInsidePolygon(position)) {\n return position;\n } else {\n return this._randomPoint();\n }\n };\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/PolygonMaskInstance.js?\n}");
27
-
28
- /***/ },
29
-
30
- /***/ "../../plugins/polygonMask/dist/browser/pathseg.js"
31
- /*!*********************************************************!*\
32
- !*** ../../plugins/polygonMask/dist/browser/pathseg.js ***!
33
- \*********************************************************/
34
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
35
-
36
- eval("{__webpack_require__.r(__webpack_exports__);\n\n(function() {\n \"use strict\";\n try {\n if (typeof window === \"undefined\") return;\n if (!(\"SVGPathSeg\" in window)) {\n window.SVGPathSeg = function(type, typeAsLetter, owningPathSegList) {\n this.pathSegType = type;\n this.pathSegTypeAsLetter = typeAsLetter;\n this._owningPathSegList = owningPathSegList;\n };\n window.SVGPathSeg.prototype.classname = \"SVGPathSeg\";\n window.SVGPathSeg.PATHSEG_UNKNOWN = 0;\n window.SVGPathSeg.PATHSEG_CLOSEPATH = 1;\n window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2;\n window.SVGPathSeg.PATHSEG_MOVETO_REL = 3;\n window.SVGPathSeg.PATHSEG_LINETO_ABS = 4;\n window.SVGPathSeg.PATHSEG_LINETO_REL = 5;\n window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6;\n window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7;\n window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8;\n window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9;\n window.SVGPathSeg.PATHSEG_ARC_ABS = 10;\n window.SVGPathSeg.PATHSEG_ARC_REL = 11;\n window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12;\n window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13;\n window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14;\n window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15;\n window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;\n window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;\n window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;\n window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;\n window.SVGPathSeg.prototype._segmentChanged = function() {\n if (this._owningPathSegList) this._owningPathSegList.segmentChanged(this);\n };\n window.SVGPathSegClosePath = function(owningPathSegList) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CLOSEPATH, \"z\", owningPathSegList);\n };\n window.SVGPathSegClosePath.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegClosePath.prototype.toString = function() {\n return \"[object SVGPathSegClosePath]\";\n };\n window.SVGPathSegClosePath.prototype._asPathString = function() {\n return this.pathSegTypeAsLetter;\n };\n window.SVGPathSegClosePath.prototype.clone = function() {\n return new window.SVGPathSegClosePath(undefined);\n };\n window.SVGPathSegMovetoAbs = function(owningPathSegList, x, y) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_ABS, \"M\", owningPathSegList);\n this._x = x;\n this._y = y;\n };\n window.SVGPathSegMovetoAbs.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegMovetoAbs.prototype.toString = function() {\n return \"[object SVGPathSegMovetoAbs]\";\n };\n window.SVGPathSegMovetoAbs.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x} ${this._y}`;\n };\n window.SVGPathSegMovetoAbs.prototype.clone = function() {\n return new window.SVGPathSegMovetoAbs(undefined, this._x, this._y);\n };\n Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegMovetoRel = function(owningPathSegList, x, y) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_REL, \"m\", owningPathSegList);\n this._x = x;\n this._y = y;\n };\n window.SVGPathSegMovetoRel.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegMovetoRel.prototype.toString = function() {\n return \"[object SVGPathSegMovetoRel]\";\n };\n window.SVGPathSegMovetoRel.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x} ${this._y}`;\n };\n window.SVGPathSegMovetoRel.prototype.clone = function() {\n return new window.SVGPathSegMovetoRel(undefined, this._x, this._y);\n };\n Object.defineProperty(window.SVGPathSegMovetoRel.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegMovetoRel.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegLinetoAbs = function(owningPathSegList, x, y) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_ABS, \"L\", owningPathSegList);\n this._x = x;\n this._y = y;\n };\n window.SVGPathSegLinetoAbs.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegLinetoAbs.prototype.toString = function() {\n return \"[object SVGPathSegLinetoAbs]\";\n };\n window.SVGPathSegLinetoAbs.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x} ${this._y}`;\n };\n window.SVGPathSegLinetoAbs.prototype.clone = function() {\n return new window.SVGPathSegLinetoAbs(undefined, this._x, this._y);\n };\n Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegLinetoRel = function(owningPathSegList, x, y) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_REL, \"l\", owningPathSegList);\n this._x = x;\n this._y = y;\n };\n window.SVGPathSegLinetoRel.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegLinetoRel.prototype.toString = function() {\n return \"[object SVGPathSegLinetoRel]\";\n };\n window.SVGPathSegLinetoRel.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x} ${this._y}`;\n };\n window.SVGPathSegLinetoRel.prototype.clone = function() {\n return new window.SVGPathSegLinetoRel(undefined, this._x, this._y);\n };\n Object.defineProperty(window.SVGPathSegLinetoRel.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegLinetoRel.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegCurvetoCubicAbs = function(owningPathSegList, x, y, x1, y1, x2, y2) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, \"C\", owningPathSegList);\n this._x = x;\n this._y = y;\n this._x1 = x1;\n this._y1 = y1;\n this._x2 = x2;\n this._y2 = y2;\n };\n window.SVGPathSegCurvetoCubicAbs.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegCurvetoCubicAbs.prototype.toString = function() {\n return \"[object SVGPathSegCurvetoCubicAbs]\";\n };\n window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x2} ${this._y2} ${this._x} ${this._y}`;\n };\n window.SVGPathSegCurvetoCubicAbs.prototype.clone = function() {\n return new window.SVGPathSegCurvetoCubicAbs(undefined, this._x, this._y, this._x1, this._y1, this._x2, this._y2);\n };\n Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \"x1\", {\n get: function() {\n return this._x1;\n },\n set: function(x1) {\n this._x1 = x1;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \"y1\", {\n get: function() {\n return this._y1;\n },\n set: function(y1) {\n this._y1 = y1;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \"x2\", {\n get: function() {\n return this._x2;\n },\n set: function(x2) {\n this._x2 = x2;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, \"y2\", {\n get: function() {\n return this._y2;\n },\n set: function(y2) {\n this._y2 = y2;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegCurvetoCubicRel = function(owningPathSegList, x, y, x1, y1, x2, y2) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, \"c\", owningPathSegList);\n this._x = x;\n this._y = y;\n this._x1 = x1;\n this._y1 = y1;\n this._x2 = x2;\n this._y2 = y2;\n };\n window.SVGPathSegCurvetoCubicRel.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegCurvetoCubicRel.prototype.toString = function() {\n return \"[object SVGPathSegCurvetoCubicRel]\";\n };\n window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x2} ${this._y2} ${this._x} ${this._y}`;\n };\n window.SVGPathSegCurvetoCubicRel.prototype.clone = function() {\n return new window.SVGPathSegCurvetoCubicRel(undefined, this._x, this._y, this._x1, this._y1, this._x2, this._y2);\n };\n Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \"x1\", {\n get: function() {\n return this._x1;\n },\n set: function(x1) {\n this._x1 = x1;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \"y1\", {\n get: function() {\n return this._y1;\n },\n set: function(y1) {\n this._y1 = y1;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \"x2\", {\n get: function() {\n return this._x2;\n },\n set: function(x2) {\n this._x2 = x2;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, \"y2\", {\n get: function() {\n return this._y2;\n },\n set: function(y2) {\n this._y2 = y2;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegCurvetoQuadraticAbs = function(owningPathSegList, x, y, x1, y1) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, \"Q\", owningPathSegList);\n this._x = x;\n this._y = y;\n this._x1 = x1;\n this._y1 = y1;\n };\n window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function() {\n return \"[object SVGPathSegCurvetoQuadraticAbs]\";\n };\n window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x} ${this._y}`;\n };\n window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function() {\n return new window.SVGPathSegCurvetoQuadraticAbs(undefined, this._x, this._y, this._x1, this._y1);\n };\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, \"x1\", {\n get: function() {\n return this._x1;\n },\n set: function(x1) {\n this._x1 = x1;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, \"y1\", {\n get: function() {\n return this._y1;\n },\n set: function(y1) {\n this._y1 = y1;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegCurvetoQuadraticRel = function(owningPathSegList, x, y, x1, y1) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, \"q\", owningPathSegList);\n this._x = x;\n this._y = y;\n this._x1 = x1;\n this._y1 = y1;\n };\n window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function() {\n return \"[object SVGPathSegCurvetoQuadraticRel]\";\n };\n window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x1} ${this._y1} ${this._x} ${this._y}`;\n };\n window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function() {\n return new window.SVGPathSegCurvetoQuadraticRel(undefined, this._x, this._y, this._x1, this._y1);\n };\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, \"x1\", {\n get: function() {\n return this._x1;\n },\n set: function(x1) {\n this._x1 = x1;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, \"y1\", {\n get: function() {\n return this._y1;\n },\n set: function(y1) {\n this._y1 = y1;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegArcAbs = function(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_ABS, \"A\", owningPathSegList);\n this._x = x;\n this._y = y;\n this._r1 = r1;\n this._r2 = r2;\n this._angle = angle;\n this._largeArcFlag = largeArcFlag;\n this._sweepFlag = sweepFlag;\n };\n window.SVGPathSegArcAbs.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegArcAbs.prototype.toString = function() {\n return \"[object SVGPathSegArcAbs]\";\n };\n window.SVGPathSegArcAbs.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._r1} ${this._r2} ${this._angle} ${this._largeArcFlag ? \"1\" : \"0\"} ${this._sweepFlag ? \"1\" : \"0\"} ${this._x} ${this._y}`;\n };\n window.SVGPathSegArcAbs.prototype.clone = function() {\n return new window.SVGPathSegArcAbs(undefined, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag);\n };\n Object.defineProperty(window.SVGPathSegArcAbs.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcAbs.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcAbs.prototype, \"r1\", {\n get: function() {\n return this._r1;\n },\n set: function(r1) {\n this._r1 = r1;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcAbs.prototype, \"r2\", {\n get: function() {\n return this._r2;\n },\n set: function(r2) {\n this._r2 = r2;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcAbs.prototype, \"angle\", {\n get: function() {\n return this._angle;\n },\n set: function(angle) {\n this._angle = angle;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcAbs.prototype, \"largeArcFlag\", {\n get: function() {\n return this._largeArcFlag;\n },\n set: function(largeArcFlag) {\n this._largeArcFlag = largeArcFlag;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcAbs.prototype, \"sweepFlag\", {\n get: function() {\n return this._sweepFlag;\n },\n set: function(sweepFlag) {\n this._sweepFlag = sweepFlag;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegArcRel = function(owningPathSegList, x, y, r1, r2, angle, largeArcFlag, sweepFlag) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_REL, \"a\", owningPathSegList);\n this._x = x;\n this._y = y;\n this._r1 = r1;\n this._r2 = r2;\n this._angle = angle;\n this._largeArcFlag = largeArcFlag;\n this._sweepFlag = sweepFlag;\n };\n window.SVGPathSegArcRel.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegArcRel.prototype.toString = function() {\n return \"[object SVGPathSegArcRel]\";\n };\n window.SVGPathSegArcRel.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._r1} ${this._r2} ${this._angle} ${this._largeArcFlag ? \"1\" : \"0\"} ${this._sweepFlag ? \"1\" : \"0\"} ${this._x} ${this._y}`;\n };\n window.SVGPathSegArcRel.prototype.clone = function() {\n return new window.SVGPathSegArcRel(undefined, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag);\n };\n Object.defineProperty(window.SVGPathSegArcRel.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcRel.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcRel.prototype, \"r1\", {\n get: function() {\n return this._r1;\n },\n set: function(r1) {\n this._r1 = r1;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcRel.prototype, \"r2\", {\n get: function() {\n return this._r2;\n },\n set: function(r2) {\n this._r2 = r2;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcRel.prototype, \"angle\", {\n get: function() {\n return this._angle;\n },\n set: function(angle) {\n this._angle = angle;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcRel.prototype, \"largeArcFlag\", {\n get: function() {\n return this._largeArcFlag;\n },\n set: function(largeArcFlag) {\n this._largeArcFlag = largeArcFlag;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegArcRel.prototype, \"sweepFlag\", {\n get: function() {\n return this._sweepFlag;\n },\n set: function(sweepFlag) {\n this._sweepFlag = sweepFlag;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegLinetoHorizontalAbs = function(owningPathSegList, x) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, \"H\", owningPathSegList);\n this._x = x;\n };\n window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function() {\n return \"[object SVGPathSegLinetoHorizontalAbs]\";\n };\n window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x}`;\n };\n window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function() {\n return new window.SVGPathSegLinetoHorizontalAbs(undefined, this._x);\n };\n Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegLinetoHorizontalRel = function(owningPathSegList, x) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, \"h\", owningPathSegList);\n this._x = x;\n };\n window.SVGPathSegLinetoHorizontalRel.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegLinetoHorizontalRel.prototype.toString = function() {\n return \"[object SVGPathSegLinetoHorizontalRel]\";\n };\n window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x}`;\n };\n window.SVGPathSegLinetoHorizontalRel.prototype.clone = function() {\n return new window.SVGPathSegLinetoHorizontalRel(undefined, this._x);\n };\n Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegLinetoVerticalAbs = function(owningPathSegList, y) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, \"V\", owningPathSegList);\n this._y = y;\n };\n window.SVGPathSegLinetoVerticalAbs.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegLinetoVerticalAbs.prototype.toString = function() {\n return \"[object SVGPathSegLinetoVerticalAbs]\";\n };\n window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._y}`;\n };\n window.SVGPathSegLinetoVerticalAbs.prototype.clone = function() {\n return new window.SVGPathSegLinetoVerticalAbs(undefined, this._y);\n };\n Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegLinetoVerticalRel = function(owningPathSegList, y) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, \"v\", owningPathSegList);\n this._y = y;\n };\n window.SVGPathSegLinetoVerticalRel.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegLinetoVerticalRel.prototype.toString = function() {\n return \"[object SVGPathSegLinetoVerticalRel]\";\n };\n window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._y}`;\n };\n window.SVGPathSegLinetoVerticalRel.prototype.clone = function() {\n return new window.SVGPathSegLinetoVerticalRel(undefined, this._y);\n };\n Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegCurvetoCubicSmoothAbs = function(owningPathSegList, x, y, x2, y2) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, \"S\", owningPathSegList);\n this._x = x;\n this._y = y;\n this._x2 = x2;\n this._y2 = y2;\n };\n window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function() {\n return \"[object SVGPathSegCurvetoCubicSmoothAbs]\";\n };\n window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x2} ${this._y2} ${this._x} ${this._y}`;\n };\n window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function() {\n return new window.SVGPathSegCurvetoCubicSmoothAbs(undefined, this._x, this._y, this._x2, this._y2);\n };\n Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, \"x2\", {\n get: function() {\n return this._x2;\n },\n set: function(x2) {\n this._x2 = x2;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, \"y2\", {\n get: function() {\n return this._y2;\n },\n set: function(y2) {\n this._y2 = y2;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegCurvetoCubicSmoothRel = function(owningPathSegList, x, y, x2, y2) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, \"s\", owningPathSegList);\n this._x = x;\n this._y = y;\n this._x2 = x2;\n this._y2 = y2;\n };\n window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function() {\n return \"[object SVGPathSegCurvetoCubicSmoothRel]\";\n };\n window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x2} ${this._y2} ${this._x} ${this._y}`;\n };\n window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function() {\n return new window.SVGPathSegCurvetoCubicSmoothRel(undefined, this._x, this._y, this._x2, this._y2);\n };\n Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, \"x2\", {\n get: function() {\n return this._x2;\n },\n set: function(x2) {\n this._x2 = x2;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, \"y2\", {\n get: function() {\n return this._y2;\n },\n set: function(y2) {\n this._y2 = y2;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegCurvetoQuadraticSmoothAbs = function(owningPathSegList, x, y) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, \"T\", owningPathSegList);\n this._x = x;\n this._y = y;\n };\n window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function() {\n return \"[object SVGPathSegCurvetoQuadraticSmoothAbs]\";\n };\n window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x} ${this._y}`;\n };\n window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function() {\n return new window.SVGPathSegCurvetoQuadraticSmoothAbs(undefined, this._x, this._y);\n };\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathSegCurvetoQuadraticSmoothRel = function(owningPathSegList, x, y) {\n window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, \"t\", owningPathSegList);\n this._x = x;\n this._y = y;\n };\n window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype);\n window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function() {\n return \"[object SVGPathSegCurvetoQuadraticSmoothRel]\";\n };\n window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function() {\n return `${this.pathSegTypeAsLetter} ${this._x} ${this._y}`;\n };\n window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function() {\n return new window.SVGPathSegCurvetoQuadraticSmoothRel(undefined, this._x, this._y);\n };\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, \"x\", {\n get: function() {\n return this._x;\n },\n set: function(x) {\n this._x = x;\n this._segmentChanged();\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, \"y\", {\n get: function() {\n return this._y;\n },\n set: function(y) {\n this._y = y;\n this._segmentChanged();\n },\n enumerable: true\n });\n window.SVGPathElement.prototype.createSVGPathSegClosePath = function() {\n return new window.SVGPathSegClosePath(undefined);\n };\n window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function(x, y) {\n return new window.SVGPathSegMovetoAbs(undefined, x, y);\n };\n window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function(x, y) {\n return new window.SVGPathSegMovetoRel(undefined, x, y);\n };\n window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function(x, y) {\n return new window.SVGPathSegLinetoAbs(undefined, x, y);\n };\n window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function(x, y) {\n return new window.SVGPathSegLinetoRel(undefined, x, y);\n };\n window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function(x, y, x1, y1, x2, y2) {\n return new window.SVGPathSegCurvetoCubicAbs(undefined, x, y, x1, y1, x2, y2);\n };\n window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function(x, y, x1, y1, x2, y2) {\n return new window.SVGPathSegCurvetoCubicRel(undefined, x, y, x1, y1, x2, y2);\n };\n window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function(x, y, x1, y1) {\n return new window.SVGPathSegCurvetoQuadraticAbs(undefined, x, y, x1, y1);\n };\n window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function(x, y, x1, y1) {\n return new window.SVGPathSegCurvetoQuadraticRel(undefined, x, y, x1, y1);\n };\n window.SVGPathElement.prototype.createSVGPathSegArcAbs = function(x, y, r1, r2, angle, largeArcFlag, sweepFlag) {\n return new window.SVGPathSegArcAbs(undefined, x, y, r1, r2, angle, largeArcFlag, sweepFlag);\n };\n window.SVGPathElement.prototype.createSVGPathSegArcRel = function(x, y, r1, r2, angle, largeArcFlag, sweepFlag) {\n return new window.SVGPathSegArcRel(undefined, x, y, r1, r2, angle, largeArcFlag, sweepFlag);\n };\n window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function(x) {\n return new window.SVGPathSegLinetoHorizontalAbs(undefined, x);\n };\n window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function(x) {\n return new window.SVGPathSegLinetoHorizontalRel(undefined, x);\n };\n window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function(y) {\n return new window.SVGPathSegLinetoVerticalAbs(undefined, y);\n };\n window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function(y) {\n return new window.SVGPathSegLinetoVerticalRel(undefined, y);\n };\n window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function(x, y, x2, y2) {\n return new window.SVGPathSegCurvetoCubicSmoothAbs(undefined, x, y, x2, y2);\n };\n window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function(x, y, x2, y2) {\n return new window.SVGPathSegCurvetoCubicSmoothRel(undefined, x, y, x2, y2);\n };\n window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function(x, y) {\n return new window.SVGPathSegCurvetoQuadraticSmoothAbs(undefined, x, y);\n };\n window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function(x, y) {\n return new window.SVGPathSegCurvetoQuadraticSmoothRel(undefined, x, y);\n };\n if (!(\"getPathSegAtLength\" in window.SVGPathElement.prototype)) {\n window.SVGPathElement.prototype.getPathSegAtLength = function(distance) {\n if (distance === undefined || !isFinite(distance)) throw \"Invalid arguments.\";\n const measurementElement = document.createElementNS(\"http://www.w3.org/2000/svg\", \"path\");\n measurementElement.setAttribute(\"d\", this.getAttribute(\"d\"));\n let lastPathSegment = measurementElement.pathSegList.numberOfItems - 1;\n if (lastPathSegment <= 0) return 0;\n do {\n measurementElement.pathSegList.removeItem(lastPathSegment);\n if (distance > measurementElement.getTotalLength()) break;\n lastPathSegment--;\n }while (lastPathSegment > 0)\n return lastPathSegment;\n };\n }\n }\n if (!(\"SVGPathSegList\" in window) || !(\"appendItem\" in window.SVGPathSegList.prototype)) {\n window.SVGPathSegList = function(pathElement) {\n this._pathElement = pathElement;\n this._list = this._parsePath(this._pathElement.getAttribute(\"d\"));\n this._mutationObserverConfig = {\n attributes: true,\n attributeFilter: [\n \"d\"\n ]\n };\n this._pathElementMutationObserver = new MutationObserver(this._updateListFromPathMutations.bind(this));\n this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);\n };\n window.SVGPathSegList.prototype.classname = \"SVGPathSegList\";\n Object.defineProperty(window.SVGPathSegList.prototype, \"numberOfItems\", {\n get: function() {\n this._checkPathSynchronizedToList();\n return this._list.length;\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathSegList.prototype, \"length\", {\n get: function() {\n this._checkPathSynchronizedToList();\n return this._list.length;\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathElement.prototype, \"pathSegList\", {\n get: function() {\n if (!this._pathSegList) this._pathSegList = new window.SVGPathSegList(this);\n return this._pathSegList;\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathElement.prototype, \"normalizedPathSegList\", {\n get: function() {\n return this.pathSegList;\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathElement.prototype, \"animatedPathSegList\", {\n get: function() {\n return this.pathSegList;\n },\n enumerable: true\n });\n Object.defineProperty(window.SVGPathElement.prototype, \"animatedNormalizedPathSegList\", {\n get: function() {\n return this.pathSegList;\n },\n enumerable: true\n });\n window.SVGPathSegList.prototype._checkPathSynchronizedToList = function() {\n this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords());\n };\n window.SVGPathSegList.prototype._updateListFromPathMutations = function(mutationRecords) {\n if (!this._pathElement) return;\n let hasPathMutations = false;\n mutationRecords.forEach(function(record) {\n if (record.attributeName == \"d\") hasPathMutations = true;\n });\n if (hasPathMutations) this._list = this._parsePath(this._pathElement.getAttribute(\"d\"));\n };\n window.SVGPathSegList.prototype._writeListToPath = function() {\n this._pathElementMutationObserver.disconnect();\n this._pathElement.setAttribute(\"d\", window.SVGPathSegList._pathSegArrayAsString(this._list));\n this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig);\n };\n window.SVGPathSegList.prototype.segmentChanged = function() {\n this._writeListToPath();\n };\n window.SVGPathSegList.prototype.clear = function() {\n this._checkPathSynchronizedToList();\n this._list.forEach(function(pathSeg) {\n pathSeg._owningPathSegList = null;\n });\n this._list = [];\n this._writeListToPath();\n };\n window.SVGPathSegList.prototype.initialize = function(newItem) {\n this._checkPathSynchronizedToList();\n this._list = [\n newItem\n ];\n newItem._owningPathSegList = this;\n this._writeListToPath();\n return newItem;\n };\n window.SVGPathSegList.prototype._checkValidIndex = function(index) {\n if (isNaN(index) || index < 0 || index >= this.numberOfItems) throw \"INDEX_SIZE_ERR\";\n };\n window.SVGPathSegList.prototype.getItem = function(index) {\n this._checkPathSynchronizedToList();\n this._checkValidIndex(index);\n return this._list[index];\n };\n window.SVGPathSegList.prototype.insertItemBefore = function(newItem, index) {\n this._checkPathSynchronizedToList();\n if (index > this.numberOfItems) index = this.numberOfItems;\n if (newItem._owningPathSegList) {\n newItem = newItem.clone();\n }\n this._list.splice(index, 0, newItem);\n newItem._owningPathSegList = this;\n this._writeListToPath();\n return newItem;\n };\n window.SVGPathSegList.prototype.replaceItem = function(newItem, index) {\n this._checkPathSynchronizedToList();\n if (newItem._owningPathSegList) {\n newItem = newItem.clone();\n }\n this._checkValidIndex(index);\n this._list[index] = newItem;\n newItem._owningPathSegList = this;\n this._writeListToPath();\n return newItem;\n };\n window.SVGPathSegList.prototype.removeItem = function(index) {\n this._checkPathSynchronizedToList();\n this._checkValidIndex(index);\n const item = this._list[index];\n this._list.splice(index, 1);\n this._writeListToPath();\n return item;\n };\n window.SVGPathSegList.prototype.appendItem = function(newItem) {\n this._checkPathSynchronizedToList();\n if (newItem._owningPathSegList) {\n newItem = newItem.clone();\n }\n this._list.push(newItem);\n newItem._owningPathSegList = this;\n this._writeListToPath();\n return newItem;\n };\n window.SVGPathSegList._pathSegArrayAsString = function(pathSegArray) {\n let string = \"\";\n let first = true;\n pathSegArray.forEach(function(pathSeg) {\n if (first) {\n first = false;\n string += pathSeg._asPathString();\n } else {\n string += ` ${pathSeg._asPathString()}`;\n }\n });\n return string;\n };\n window.SVGPathSegList.prototype._parsePath = function(string) {\n if (!string?.length) return [];\n const owningPathSegList = this;\n const Builder = function() {\n this.pathSegList = [];\n };\n Builder.prototype.appendSegment = function(pathSeg) {\n this.pathSegList.push(pathSeg);\n };\n const Source = function(string) {\n this._string = string;\n this._currentIndex = 0;\n this._endIndex = this._string.length;\n this._previousCommand = window.SVGPathSeg.PATHSEG_UNKNOWN;\n this._skipOptionalSpaces();\n };\n Source.prototype._isCurrentSpace = function() {\n const character = this._string[this._currentIndex];\n return character <= \" \" && (character == \" \" || character == \"\\n\" || character == \"\\t\" || character == \"\\r\" || character == \"\\f\");\n };\n Source.prototype._skipOptionalSpaces = function() {\n while(this._currentIndex < this._endIndex && this._isCurrentSpace())this._currentIndex++;\n return this._currentIndex < this._endIndex;\n };\n Source.prototype._skipOptionalSpacesOrDelimiter = function() {\n if (this._currentIndex < this._endIndex && !this._isCurrentSpace() && this._string.charAt(this._currentIndex) != \",\") return false;\n if (this._skipOptionalSpaces()) {\n if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == \",\") {\n this._currentIndex++;\n this._skipOptionalSpaces();\n }\n }\n return this._currentIndex < this._endIndex;\n };\n Source.prototype.hasMoreData = function() {\n return this._currentIndex < this._endIndex;\n };\n Source.prototype.peekSegmentType = function() {\n const lookahead = this._string[this._currentIndex];\n return this._pathSegTypeFromChar(lookahead);\n };\n Source.prototype._pathSegTypeFromChar = function(lookahead) {\n switch(lookahead){\n case \"Z\":\n case \"z\":\n return window.SVGPathSeg.PATHSEG_CLOSEPATH;\n case \"M\":\n return window.SVGPathSeg.PATHSEG_MOVETO_ABS;\n case \"m\":\n return window.SVGPathSeg.PATHSEG_MOVETO_REL;\n case \"L\":\n return window.SVGPathSeg.PATHSEG_LINETO_ABS;\n case \"l\":\n return window.SVGPathSeg.PATHSEG_LINETO_REL;\n case \"C\":\n return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;\n case \"c\":\n return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;\n case \"Q\":\n return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;\n case \"q\":\n return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;\n case \"A\":\n return window.SVGPathSeg.PATHSEG_ARC_ABS;\n case \"a\":\n return window.SVGPathSeg.PATHSEG_ARC_REL;\n case \"H\":\n return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;\n case \"h\":\n return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;\n case \"V\":\n return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;\n case \"v\":\n return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;\n case \"S\":\n return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;\n case \"s\":\n return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;\n case \"T\":\n return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;\n case \"t\":\n return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;\n default:\n return window.SVGPathSeg.PATHSEG_UNKNOWN;\n }\n };\n Source.prototype._nextCommandHelper = function(lookahead, previousCommand) {\n if ((lookahead == \"+\" || lookahead == \"-\" || lookahead == \".\" || lookahead >= \"0\" && lookahead <= \"9\") && previousCommand != window.SVGPathSeg.PATHSEG_CLOSEPATH) {\n if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_ABS) return window.SVGPathSeg.PATHSEG_LINETO_ABS;\n if (previousCommand == window.SVGPathSeg.PATHSEG_MOVETO_REL) return window.SVGPathSeg.PATHSEG_LINETO_REL;\n return previousCommand;\n }\n return window.SVGPathSeg.PATHSEG_UNKNOWN;\n };\n Source.prototype.initialCommandIsMoveTo = function() {\n if (!this.hasMoreData()) return true;\n const command = this.peekSegmentType();\n return command == window.SVGPathSeg.PATHSEG_MOVETO_ABS || command == window.SVGPathSeg.PATHSEG_MOVETO_REL;\n };\n Source.prototype._parseNumber = function() {\n let exponent = 0;\n let integer = 0;\n let frac = 1;\n let decimal = 0;\n let sign = 1;\n let expsign = 1;\n const startIndex = this._currentIndex;\n this._skipOptionalSpaces();\n if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == \"+\") this._currentIndex++;\n else if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == \"-\") {\n this._currentIndex++;\n sign = -1;\n }\n if (this._currentIndex == this._endIndex || (this._string.charAt(this._currentIndex) < \"0\" || this._string.charAt(this._currentIndex) > \"9\") && this._string.charAt(this._currentIndex) != \".\") return undefined;\n const startIntPartIndex = this._currentIndex;\n while(this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= \"0\" && this._string.charAt(this._currentIndex) <= \"9\")this._currentIndex++;\n if (this._currentIndex != startIntPartIndex) {\n let scanIntPartIndex = this._currentIndex - 1;\n let multiplier = 1;\n while(scanIntPartIndex >= startIntPartIndex){\n integer += multiplier * (this._string.charAt(scanIntPartIndex--) - \"0\");\n multiplier *= 10;\n }\n }\n if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == \".\") {\n this._currentIndex++;\n if (this._currentIndex >= this._endIndex || this._string.charAt(this._currentIndex) < \"0\" || this._string.charAt(this._currentIndex) > \"9\") return undefined;\n while(this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= \"0\" && this._string.charAt(this._currentIndex) <= \"9\"){\n frac *= 10;\n decimal += (this._string.charAt(this._currentIndex) - \"0\") / frac;\n this._currentIndex += 1;\n }\n }\n 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\") {\n this._currentIndex++;\n if (this._string.charAt(this._currentIndex) == \"+\") {\n this._currentIndex++;\n } else if (this._string.charAt(this._currentIndex) == \"-\") {\n this._currentIndex++;\n expsign = -1;\n }\n if (this._currentIndex >= this._endIndex || this._string.charAt(this._currentIndex) < \"0\" || this._string.charAt(this._currentIndex) > \"9\") return undefined;\n while(this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= \"0\" && this._string.charAt(this._currentIndex) <= \"9\"){\n exponent *= 10;\n exponent += this._string.charAt(this._currentIndex) - \"0\";\n this._currentIndex++;\n }\n }\n let number = integer + decimal;\n number *= sign;\n if (exponent) number *= Math.pow(10, expsign * exponent);\n if (startIndex == this._currentIndex) return undefined;\n this._skipOptionalSpacesOrDelimiter();\n return number;\n };\n Source.prototype._parseArcFlag = function() {\n if (this._currentIndex >= this._endIndex) return undefined;\n let flag = false;\n const flagChar = this._string.charAt(this._currentIndex++);\n if (flagChar == \"0\") flag = false;\n else if (flagChar == \"1\") flag = true;\n else return undefined;\n this._skipOptionalSpacesOrDelimiter();\n return flag;\n };\n Source.prototype.parseSegment = function() {\n const lookahead = this._string[this._currentIndex];\n let command = this._pathSegTypeFromChar(lookahead);\n if (command == window.SVGPathSeg.PATHSEG_UNKNOWN) {\n if (this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN) return null;\n command = this._nextCommandHelper(lookahead, this._previousCommand);\n if (command == window.SVGPathSeg.PATHSEG_UNKNOWN) return null;\n } else {\n this._currentIndex++;\n }\n this._previousCommand = command;\n let points;\n switch(command){\n case window.SVGPathSeg.PATHSEG_MOVETO_REL:\n return new window.SVGPathSegMovetoRel(owningPathSegList, this._parseNumber(), this._parseNumber());\n case window.SVGPathSeg.PATHSEG_MOVETO_ABS:\n return new window.SVGPathSegMovetoAbs(owningPathSegList, this._parseNumber(), this._parseNumber());\n case window.SVGPathSeg.PATHSEG_LINETO_REL:\n return new window.SVGPathSegLinetoRel(owningPathSegList, this._parseNumber(), this._parseNumber());\n case window.SVGPathSeg.PATHSEG_LINETO_ABS:\n return new window.SVGPathSegLinetoAbs(owningPathSegList, this._parseNumber(), this._parseNumber());\n case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:\n return new window.SVGPathSegLinetoHorizontalRel(owningPathSegList, this._parseNumber());\n case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:\n return new window.SVGPathSegLinetoHorizontalAbs(owningPathSegList, this._parseNumber());\n case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:\n return new window.SVGPathSegLinetoVerticalRel(owningPathSegList, this._parseNumber());\n case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:\n return new window.SVGPathSegLinetoVerticalAbs(owningPathSegList, this._parseNumber());\n case window.SVGPathSeg.PATHSEG_CLOSEPATH:\n this._skipOptionalSpaces();\n return new window.SVGPathSegClosePath(owningPathSegList);\n case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:\n points = {\n x1: this._parseNumber(),\n y1: this._parseNumber(),\n x2: this._parseNumber(),\n y2: this._parseNumber(),\n x: this._parseNumber(),\n y: this._parseNumber()\n };\n return new window.SVGPathSegCurvetoCubicRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);\n case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:\n points = {\n x1: this._parseNumber(),\n y1: this._parseNumber(),\n x2: this._parseNumber(),\n y2: this._parseNumber(),\n x: this._parseNumber(),\n y: this._parseNumber()\n };\n return new window.SVGPathSegCurvetoCubicAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.x2, points.y2);\n case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:\n points = {\n x2: this._parseNumber(),\n y2: this._parseNumber(),\n x: this._parseNumber(),\n y: this._parseNumber()\n };\n return new window.SVGPathSegCurvetoCubicSmoothRel(owningPathSegList, points.x, points.y, points.x2, points.y2);\n case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:\n points = {\n x2: this._parseNumber(),\n y2: this._parseNumber(),\n x: this._parseNumber(),\n y: this._parseNumber()\n };\n return new window.SVGPathSegCurvetoCubicSmoothAbs(owningPathSegList, points.x, points.y, points.x2, points.y2);\n case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:\n points = {\n x1: this._parseNumber(),\n y1: this._parseNumber(),\n x: this._parseNumber(),\n y: this._parseNumber()\n };\n return new window.SVGPathSegCurvetoQuadraticRel(owningPathSegList, points.x, points.y, points.x1, points.y1);\n case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:\n points = {\n x1: this._parseNumber(),\n y1: this._parseNumber(),\n x: this._parseNumber(),\n y: this._parseNumber()\n };\n return new window.SVGPathSegCurvetoQuadraticAbs(owningPathSegList, points.x, points.y, points.x1, points.y1);\n case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:\n return new window.SVGPathSegCurvetoQuadraticSmoothRel(owningPathSegList, this._parseNumber(), this._parseNumber());\n case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:\n return new window.SVGPathSegCurvetoQuadraticSmoothAbs(owningPathSegList, this._parseNumber(), this._parseNumber());\n case window.SVGPathSeg.PATHSEG_ARC_REL:\n points = {\n x1: this._parseNumber(),\n y1: this._parseNumber(),\n arcAngle: this._parseNumber(),\n arcLarge: this._parseArcFlag(),\n arcSweep: this._parseArcFlag(),\n x: this._parseNumber(),\n y: this._parseNumber()\n };\n return new window.SVGPathSegArcRel(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);\n case window.SVGPathSeg.PATHSEG_ARC_ABS:\n points = {\n x1: this._parseNumber(),\n y1: this._parseNumber(),\n arcAngle: this._parseNumber(),\n arcLarge: this._parseArcFlag(),\n arcSweep: this._parseArcFlag(),\n x: this._parseNumber(),\n y: this._parseNumber()\n };\n return new window.SVGPathSegArcAbs(owningPathSegList, points.x, points.y, points.x1, points.y1, points.arcAngle, points.arcLarge, points.arcSweep);\n default:\n throw \"Unknown path seg type.\";\n }\n };\n const builder = new Builder();\n const source = new Source(string);\n if (!source.initialCommandIsMoveTo()) return [];\n while(source.hasMoreData()){\n const pathSeg = source.parseSegment();\n if (!pathSeg) return [];\n builder.appendSegment(pathSeg);\n }\n return builder.pathSegList;\n };\n }\n } catch (e) {\n console.warn(\"An error occurred in tsParticles pathseg polyfill. If the Polygon Mask is not working, please open an issue here: https://github.com/tsparticles/tsparticles\", e);\n }\n})();\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/pathseg.js?\n}");
37
-
38
- /***/ },
39
-
40
- /***/ "../../plugins/polygonMask/dist/browser/utils.js"
41
- /*!*******************************************************!*\
42
- !*** ../../plugins/polygonMask/dist/browser/utils.js ***!
43
- \*******************************************************/
44
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
45
-
46
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ calcClosestPointOnSegment: () => (/* binding */ calcClosestPointOnSegment),\n/* harmony export */ drawPolygonMask: () => (/* binding */ drawPolygonMask),\n/* harmony export */ drawPolygonMaskPath: () => (/* binding */ drawPolygonMaskPath),\n/* harmony export */ parsePaths: () => (/* binding */ parsePaths),\n/* harmony export */ segmentBounce: () => (/* binding */ segmentBounce)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst squareExp = 2, inSegmentRange = {\n min: 0,\n max: 1\n};\nfunction drawPolygonMask(pluginManager, context, rawData, stroke, hdr = false) {\n const color = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToRgb)(pluginManager, stroke.color);\n if (!color) {\n return;\n }\n const firstIndex = 0, firstItem = rawData[firstIndex];\n if (!firstItem) {\n return;\n }\n context.beginPath();\n context.moveTo(firstItem.x, firstItem.y);\n for (const item of rawData){\n context.lineTo(item.x, item.y);\n }\n context.closePath();\n context.strokeStyle = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getStyleFromRgb)(color, hdr);\n context.lineWidth = stroke.width;\n context.stroke();\n}\nfunction drawPolygonMaskPath(pluginManager, context, path, stroke, position, hdr = false) {\n const defaultTransform = {\n a: 1,\n b: 0,\n c: 0,\n d: 1\n };\n context.setTransform(defaultTransform.a, defaultTransform.b, defaultTransform.c, defaultTransform.d, position.x, position.y);\n const color = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToRgb)(pluginManager, stroke.color);\n if (!color) {\n return;\n }\n context.strokeStyle = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getStyleFromRgb)(color, hdr, stroke.opacity);\n context.lineWidth = stroke.width;\n context.stroke(path);\n context.resetTransform();\n}\nfunction parsePaths(paths, scale, offset) {\n const res = [], defaultCount = 0;\n for (const path of paths){\n const segments = path.element.pathSegList, len = segments?.numberOfItems ?? defaultCount, p = {\n x: 0,\n y: 0\n };\n for(let i = 0; i < len; i++){\n const segment = segments?.getItem(i), svgPathSeg = globalThis.SVGPathSeg;\n switch(segment?.pathSegType){\n case svgPathSeg.PATHSEG_MOVETO_ABS:\n case svgPathSeg.PATHSEG_LINETO_ABS:\n case svgPathSeg.PATHSEG_CURVETO_CUBIC_ABS:\n case svgPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:\n case svgPathSeg.PATHSEG_ARC_ABS:\n case svgPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:\n case svgPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:\n {\n const absSeg = segment;\n p.x = absSeg.x;\n p.y = absSeg.y;\n break;\n }\n case svgPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:\n p.x = segment.x;\n break;\n case svgPathSeg.PATHSEG_LINETO_VERTICAL_ABS:\n p.y = segment.y;\n break;\n case svgPathSeg.PATHSEG_LINETO_REL:\n case svgPathSeg.PATHSEG_MOVETO_REL:\n case svgPathSeg.PATHSEG_CURVETO_CUBIC_REL:\n case svgPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:\n case svgPathSeg.PATHSEG_ARC_REL:\n case svgPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:\n case svgPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:\n {\n const relSeg = segment;\n p.x += relSeg.x;\n p.y += relSeg.y;\n break;\n }\n case svgPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:\n p.x += segment.x;\n break;\n case svgPathSeg.PATHSEG_LINETO_VERTICAL_REL:\n p.y += segment.y;\n break;\n case svgPathSeg.PATHSEG_UNKNOWN:\n case svgPathSeg.PATHSEG_CLOSEPATH:\n continue;\n default:\n continue;\n }\n res.push({\n x: p.x * scale + offset.x,\n y: p.y * scale + offset.y\n });\n }\n }\n return res;\n}\nfunction calcClosestPointOnSegment(s1, s2, pos) {\n const { dx: dx1, dy: dy1 } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(pos, s1), { dx: dx2, dy: dy2 } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(s2, s1), t = (dx1 * dx2 + dy1 * dy2) / (dx2 ** squareExp + dy2 ** squareExp), res = {\n x: s1.x + dx2 * t,\n y: s1.y + dy2 * t,\n isOnSegment: t >= inSegmentRange.min && t <= inSegmentRange.max\n };\n if (t < inSegmentRange.min) {\n res.x = s1.x;\n res.y = s1.y;\n } else if (t > inSegmentRange.max) {\n res.x = s2.x;\n res.y = s2.y;\n }\n return res;\n}\nfunction segmentBounce(start, stop, velocity) {\n const { dx, dy } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(start, stop), wallAngle = Math.atan2(dy, dx), wallNormal = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.create(Math.sin(wallAngle), -Math.cos(wallAngle)), d = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.double * (velocity.x * wallNormal.x + velocity.y * wallNormal.y);\n wallNormal.multTo(d);\n velocity.subFrom(wallNormal);\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/utils.js?\n}");
47
-
48
- /***/ }
49
-
50
- }]);
@@ -1,90 +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
- * v4.0.0-beta.9
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_all"] = this["webpackChunk_tsparticles_all"] || []).push([["plugins_polygonMask_dist_browser_PolygonMaskPlugin_js"],{
19
-
20
- /***/ "../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMask.js"
21
- /*!*****************************************************************************!*\
22
- !*** ../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMask.js ***!
23
- \*****************************************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMask: () => (/* binding */ PolygonMask)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _PolygonMaskDraw_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PolygonMaskDraw.js */ \"../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskDraw.js\");\n/* harmony import */ var _PolygonMaskInline_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PolygonMaskInline.js */ \"../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskInline.js\");\n/* harmony import */ var _PolygonMaskLocalSvg_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PolygonMaskLocalSvg.js */ \"../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskLocalSvg.js\");\n/* harmony import */ var _PolygonMaskMove_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PolygonMaskMove.js */ \"../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskMove.js\");\n/* harmony import */ var _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Enums/PolygonMaskType.js */ \"../../plugins/polygonMask/dist/browser/Enums/PolygonMaskType.js\");\n\n\n\n\n\n\nclass PolygonMask {\n data;\n draw;\n enable;\n inline;\n move;\n position;\n scale;\n type;\n url;\n constructor(pluginManager){\n this.draw = new _PolygonMaskDraw_js__WEBPACK_IMPORTED_MODULE_1__.PolygonMaskDraw(pluginManager);\n this.enable = false;\n this.inline = new _PolygonMaskInline_js__WEBPACK_IMPORTED_MODULE_2__.PolygonMaskInline();\n this.move = new _PolygonMaskMove_js__WEBPACK_IMPORTED_MODULE_4__.PolygonMaskMove();\n this.scale = 1;\n this.type = _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_5__.PolygonMaskType.none;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n this.draw.load(data.draw);\n this.inline.load(data.inline);\n this.move.load(data.move);\n if (data.scale !== undefined) {\n this.scale = data.scale;\n }\n if (data.type !== undefined) {\n this.type = data.type;\n }\n if (data.enable !== undefined) {\n this.enable = data.enable;\n } else {\n this.enable = this.type !== _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_5__.PolygonMaskType.none;\n }\n if (data.url !== undefined) {\n this.url = data.url;\n }\n if (data.data !== undefined) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(data.data)) {\n this.data = data.data;\n } else {\n this.data = new _PolygonMaskLocalSvg_js__WEBPACK_IMPORTED_MODULE_3__.PolygonMaskLocalSvg();\n this.data.load(data.data);\n }\n }\n if (data.position !== undefined) {\n this.position = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, data.position);\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMask.js?\n}");
27
-
28
- /***/ },
29
-
30
- /***/ "../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskDraw.js"
31
- /*!*********************************************************************************!*\
32
- !*** ../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskDraw.js ***!
33
- \*********************************************************************************/
34
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
35
-
36
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskDraw: () => (/* binding */ PolygonMaskDraw)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _PolygonMaskDrawStroke_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PolygonMaskDrawStroke.js */ \"../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskDrawStroke.js\");\n\n\nclass PolygonMaskDraw {\n enable;\n stroke;\n constructor(pluginManager){\n this.enable = false;\n this.stroke = new _PolygonMaskDrawStroke_js__WEBPACK_IMPORTED_MODULE_1__.PolygonMaskDrawStroke(pluginManager);\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.enable !== undefined) {\n this.enable = data.enable;\n }\n const stroke = data.stroke;\n this.stroke.load(stroke);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskDraw.js?\n}");
37
-
38
- /***/ },
39
-
40
- /***/ "../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskDrawStroke.js"
41
- /*!***************************************************************************************!*\
42
- !*** ../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskDrawStroke.js ***!
43
- \***************************************************************************************/
44
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
45
-
46
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskDrawStroke: () => (/* binding */ PolygonMaskDrawStroke)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass PolygonMaskDrawStroke {\n color;\n opacity;\n width;\n _pluginManager;\n constructor(pluginManager){\n this._pluginManager = pluginManager;\n this.color = new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OptionsColor();\n this.width = 0.5;\n this.opacity = 1;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n this.color = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OptionsColor.create(this.color, data.color);\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isString)(this.color.value)) {\n this.opacity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.stringToAlpha)(this._pluginManager, this.color.value) ?? this.opacity;\n }\n if (data.opacity !== undefined) {\n this.opacity = data.opacity;\n }\n if (data.width !== undefined) {\n this.width = data.width;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskDrawStroke.js?\n}");
47
-
48
- /***/ },
49
-
50
- /***/ "../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskInline.js"
51
- /*!***********************************************************************************!*\
52
- !*** ../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskInline.js ***!
53
- \***********************************************************************************/
54
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
55
-
56
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskInline: () => (/* binding */ PolygonMaskInline)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Enums/PolygonMaskInlineArrangement.js */ \"../../plugins/polygonMask/dist/browser/Enums/PolygonMaskInlineArrangement.js\");\n\n\nclass PolygonMaskInline {\n arrangement;\n constructor(){\n this.arrangement = _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_1__.PolygonMaskInlineArrangement.onePerPoint;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.arrangement !== undefined) {\n this.arrangement = data.arrangement;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskInline.js?\n}");
57
-
58
- /***/ },
59
-
60
- /***/ "../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskLocalSvg.js"
61
- /*!*************************************************************************************!*\
62
- !*** ../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskLocalSvg.js ***!
63
- \*************************************************************************************/
64
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
65
-
66
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskLocalSvg: () => (/* binding */ PolygonMaskLocalSvg)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass PolygonMaskLocalSvg {\n path;\n size;\n constructor(){\n this.path = [];\n this.size = {\n height: 0,\n width: 0\n };\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.path !== undefined) {\n this.path = data.path;\n }\n if (data.size !== undefined) {\n if (data.size.width !== undefined) {\n this.size.width = data.size.width;\n }\n if (data.size.height !== undefined) {\n this.size.height = data.size.height;\n }\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskLocalSvg.js?\n}");
67
-
68
- /***/ },
69
-
70
- /***/ "../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskMove.js"
71
- /*!*********************************************************************************!*\
72
- !*** ../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskMove.js ***!
73
- \*********************************************************************************/
74
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75
-
76
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskMove: () => (/* binding */ PolygonMaskMove)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _Enums_PolygonMaskMoveType_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Enums/PolygonMaskMoveType.js */ \"../../plugins/polygonMask/dist/browser/Enums/PolygonMaskMoveType.js\");\n\n\nclass PolygonMaskMove {\n radius;\n type;\n constructor(){\n this.radius = 10;\n this.type = _Enums_PolygonMaskMoveType_js__WEBPACK_IMPORTED_MODULE_1__.PolygonMaskMoveType.path;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.radius !== undefined) {\n this.radius = data.radius;\n }\n if (data.type !== undefined) {\n this.type = data.type;\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMaskMove.js?\n}");
77
-
78
- /***/ },
79
-
80
- /***/ "../../plugins/polygonMask/dist/browser/PolygonMaskPlugin.js"
81
- /*!*******************************************************************!*\
82
- !*** ../../plugins/polygonMask/dist/browser/PolygonMaskPlugin.js ***!
83
- \*******************************************************************/
84
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
85
-
86
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskPlugin: () => (/* binding */ PolygonMaskPlugin)\n/* harmony export */ });\n/* harmony import */ var _Options_Classes_PolygonMask_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Options/Classes/PolygonMask.js */ \"../../plugins/polygonMask/dist/browser/Options/Classes/PolygonMask.js\");\n/* harmony import */ var _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enums/PolygonMaskType.js */ \"../../plugins/polygonMask/dist/browser/Enums/PolygonMaskType.js\");\n\n\nclass PolygonMaskPlugin {\n id = \"polygon-mask\";\n _pluginManager;\n constructor(pluginManager){\n this._pluginManager = pluginManager;\n }\n async getPlugin(container) {\n const { PolygonMaskInstance } = await __webpack_require__.e(/*! import() */ \"plugins_polygonMask_dist_browser_PolygonMaskInstance_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./PolygonMaskInstance.js */ \"../../plugins/polygonMask/dist/browser/PolygonMaskInstance.js\"));\n return new PolygonMaskInstance(this._pluginManager, container);\n }\n loadOptions(_container, options, source) {\n if (!this.needsPlugin(options) && !this.needsPlugin(source)) {\n return;\n }\n let polygonOptions = options.polygon;\n if (polygonOptions?.load === undefined) {\n options.polygon = polygonOptions = new _Options_Classes_PolygonMask_js__WEBPACK_IMPORTED_MODULE_0__.PolygonMask(this._pluginManager);\n }\n polygonOptions.load(source?.polygon);\n }\n needsPlugin(options) {\n return options?.polygon?.enable ?? (options?.polygon?.type !== undefined && options.polygon.type !== _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_1__.PolygonMaskType.none);\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/PolygonMaskPlugin.js?\n}");
87
-
88
- /***/ }
89
-
90
- }]);
@@ -1,60 +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
- * v4.0.0-beta.9
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_all"] = this["webpackChunk_tsparticles_all"] || []).push([["plugins_polygonMask_dist_browser_index_js"],{
19
-
20
- /***/ "../../plugins/polygonMask/dist/browser/Enums/PolygonMaskInlineArrangement.js"
21
- /*!************************************************************************************!*\
22
- !*** ../../plugins/polygonMask/dist/browser/Enums/PolygonMaskInlineArrangement.js ***!
23
- \************************************************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskInlineArrangement: () => (/* binding */ PolygonMaskInlineArrangement)\n/* harmony export */ });\nvar PolygonMaskInlineArrangement;\n(function(PolygonMaskInlineArrangement) {\n PolygonMaskInlineArrangement[\"equidistant\"] = \"equidistant\";\n PolygonMaskInlineArrangement[\"onePerPoint\"] = \"one-per-point\";\n PolygonMaskInlineArrangement[\"perPoint\"] = \"per-point\";\n PolygonMaskInlineArrangement[\"randomLength\"] = \"random-length\";\n PolygonMaskInlineArrangement[\"randomPoint\"] = \"random-point\";\n})(PolygonMaskInlineArrangement || (PolygonMaskInlineArrangement = {}));\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/Enums/PolygonMaskInlineArrangement.js?\n}");
27
-
28
- /***/ },
29
-
30
- /***/ "../../plugins/polygonMask/dist/browser/Enums/PolygonMaskMoveType.js"
31
- /*!***************************************************************************!*\
32
- !*** ../../plugins/polygonMask/dist/browser/Enums/PolygonMaskMoveType.js ***!
33
- \***************************************************************************/
34
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
35
-
36
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskMoveType: () => (/* binding */ PolygonMaskMoveType)\n/* harmony export */ });\nvar PolygonMaskMoveType;\n(function(PolygonMaskMoveType) {\n PolygonMaskMoveType[\"path\"] = \"path\";\n PolygonMaskMoveType[\"radius\"] = \"radius\";\n})(PolygonMaskMoveType || (PolygonMaskMoveType = {}));\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/Enums/PolygonMaskMoveType.js?\n}");
37
-
38
- /***/ },
39
-
40
- /***/ "../../plugins/polygonMask/dist/browser/Enums/PolygonMaskType.js"
41
- /*!***********************************************************************!*\
42
- !*** ../../plugins/polygonMask/dist/browser/Enums/PolygonMaskType.js ***!
43
- \***********************************************************************/
44
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
45
-
46
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskType: () => (/* binding */ PolygonMaskType)\n/* harmony export */ });\nvar PolygonMaskType;\n(function(PolygonMaskType) {\n PolygonMaskType[\"inline\"] = \"inline\";\n PolygonMaskType[\"inside\"] = \"inside\";\n PolygonMaskType[\"outside\"] = \"outside\";\n PolygonMaskType[\"none\"] = \"none\";\n})(PolygonMaskType || (PolygonMaskType = {}));\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/Enums/PolygonMaskType.js?\n}");
47
-
48
- /***/ },
49
-
50
- /***/ "../../plugins/polygonMask/dist/browser/index.js"
51
- /*!*******************************************************!*\
52
- !*** ../../plugins/polygonMask/dist/browser/index.js ***!
53
- \*******************************************************/
54
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
55
-
56
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ PolygonMaskInlineArrangement: () => (/* reexport safe */ _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_0__.PolygonMaskInlineArrangement),\n/* harmony export */ PolygonMaskMoveType: () => (/* reexport safe */ _Enums_PolygonMaskMoveType_js__WEBPACK_IMPORTED_MODULE_1__.PolygonMaskMoveType),\n/* harmony export */ PolygonMaskType: () => (/* reexport safe */ _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_2__.PolygonMaskType),\n/* harmony export */ loadPolygonMaskPlugin: () => (/* binding */ loadPolygonMaskPlugin)\n/* harmony export */ });\n/* harmony import */ var _Enums_PolygonMaskInlineArrangement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Enums/PolygonMaskInlineArrangement.js */ \"../../plugins/polygonMask/dist/browser/Enums/PolygonMaskInlineArrangement.js\");\n/* harmony import */ var _Enums_PolygonMaskMoveType_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Enums/PolygonMaskMoveType.js */ \"../../plugins/polygonMask/dist/browser/Enums/PolygonMaskMoveType.js\");\n/* harmony import */ var _Enums_PolygonMaskType_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Enums/PolygonMaskType.js */ \"../../plugins/polygonMask/dist/browser/Enums/PolygonMaskType.js\");\nasync function loadPolygonMaskPlugin(engine) {\n engine.checkVersion(\"4.0.0-beta.9\");\n await engine.pluginManager.register(async (e)=>{\n const { PolygonMaskPlugin } = await __webpack_require__.e(/*! import() */ \"plugins_polygonMask_dist_browser_PolygonMaskPlugin_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./PolygonMaskPlugin.js */ \"../../plugins/polygonMask/dist/browser/PolygonMaskPlugin.js\"));\n e.pluginManager.addPlugin(new PolygonMaskPlugin(e.pluginManager));\n });\n}\n\n\n\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/polygonMask/dist/browser/index.js?\n}");
57
-
58
- /***/ }
59
-
60
- }]);
@@ -1,30 +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
- * v4.0.0-beta.9
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_all"] = this["webpackChunk_tsparticles_all"] || []).push([["plugins_responsive_dist_browser_ResponsivePluginInstance_js"],{
19
-
20
- /***/ "../../plugins/responsive/dist/browser/ResponsivePluginInstance.js"
21
- /*!*************************************************************************!*\
22
- !*** ../../plugins/responsive/dist/browser/ResponsivePluginInstance.js ***!
23
- \*************************************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ResponsivePluginInstance: () => (/* binding */ ResponsivePluginInstance)\n/* harmony export */ });\nclass ResponsivePluginInstance {\n _container;\n constructor(container){\n this._container = container;\n }\n updateActualOptions() {\n const container = this._container;\n container.actualOptions.responsive = [];\n const newMaxWidth = container.actualOptions.setResponsive?.(container.canvas.size.width, container.retina.pixelRatio, container.options);\n if (container.responsiveMaxWidth === newMaxWidth) {\n return false;\n }\n container.responsiveMaxWidth = newMaxWidth;\n return true;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/responsive/dist/browser/ResponsivePluginInstance.js?\n}");
27
-
28
- /***/ }
29
-
30
- }]);
@@ -1,50 +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
- * v4.0.0-beta.9
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_all"] = this["webpackChunk_tsparticles_all"] || []).push([["plugins_responsive_dist_browser_ResponsivePlugin_js"],{
19
-
20
- /***/ "../../plugins/responsive/dist/browser/Options/Classes/Responsive.js"
21
- /*!***************************************************************************!*\
22
- !*** ../../plugins/responsive/dist/browser/Options/Classes/Responsive.js ***!
23
- \***************************************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ Responsive: () => (/* binding */ Responsive)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n/* harmony import */ var _ResponsiveMode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../ResponsiveMode.js */ \"../../plugins/responsive/dist/browser/ResponsiveMode.js\");\n\n\nclass Responsive {\n maxWidth;\n mode;\n options;\n constructor(){\n this.maxWidth = Infinity;\n this.options = {};\n this.mode = _ResponsiveMode_js__WEBPACK_IMPORTED_MODULE_1__.ResponsiveMode.canvas;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (!(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data.maxWidth)) {\n this.maxWidth = data.maxWidth;\n }\n if (!(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data.mode)) {\n if (data.mode === _ResponsiveMode_js__WEBPACK_IMPORTED_MODULE_1__.ResponsiveMode.screen) {\n this.mode = _ResponsiveMode_js__WEBPACK_IMPORTED_MODULE_1__.ResponsiveMode.screen;\n } else {\n this.mode = _ResponsiveMode_js__WEBPACK_IMPORTED_MODULE_1__.ResponsiveMode.canvas;\n }\n }\n if (!(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data.options)) {\n this.options = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)({}, data.options);\n }\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/responsive/dist/browser/Options/Classes/Responsive.js?\n}");
27
-
28
- /***/ },
29
-
30
- /***/ "../../plugins/responsive/dist/browser/ResponsiveMode.js"
31
- /*!***************************************************************!*\
32
- !*** ../../plugins/responsive/dist/browser/ResponsiveMode.js ***!
33
- \***************************************************************/
34
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
35
-
36
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ResponsiveMode: () => (/* binding */ ResponsiveMode)\n/* harmony export */ });\nvar ResponsiveMode;\n(function(ResponsiveMode) {\n ResponsiveMode[\"screen\"] = \"screen\";\n ResponsiveMode[\"window\"] = \"window\";\n ResponsiveMode[\"canvas\"] = \"canvas\";\n})(ResponsiveMode || (ResponsiveMode = {}));\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/responsive/dist/browser/ResponsiveMode.js?\n}");
37
-
38
- /***/ },
39
-
40
- /***/ "../../plugins/responsive/dist/browser/ResponsivePlugin.js"
41
- /*!*****************************************************************!*\
42
- !*** ../../plugins/responsive/dist/browser/ResponsivePlugin.js ***!
43
- \*****************************************************************/
44
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
45
-
46
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ ResponsivePlugin: () => (/* binding */ ResponsivePlugin)\n/* harmony export */ });\n/* harmony import */ var _Options_Classes_Responsive_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Options/Classes/Responsive.js */ \"../../plugins/responsive/dist/browser/Options/Classes/Responsive.js\");\n/* harmony import */ var _ResponsiveMode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ResponsiveMode.js */ \"../../plugins/responsive/dist/browser/ResponsiveMode.js\");\n\n\nclass ResponsivePlugin {\n id = \"responsive\";\n async getPlugin(container) {\n const { ResponsivePluginInstance } = await __webpack_require__.e(/*! import() */ \"plugins_responsive_dist_browser_ResponsivePluginInstance_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ResponsivePluginInstance.js */ \"../../plugins/responsive/dist/browser/ResponsivePluginInstance.js\"));\n return new ResponsivePluginInstance(container);\n }\n loadOptions(_container, options, source) {\n if (!this.needsPlugin(options) && !this.needsPlugin(source)) {\n return;\n }\n const setResponsive = (width, pxRatio, defaultOptions)=>{\n options.load(defaultOptions);\n const logicalWidth = width / pxRatio, widthMap = {\n [_ResponsiveMode_js__WEBPACK_IMPORTED_MODULE_1__.ResponsiveMode.screen]: screen.availWidth,\n [_ResponsiveMode_js__WEBPACK_IMPORTED_MODULE_1__.ResponsiveMode.window]: innerWidth,\n [_ResponsiveMode_js__WEBPACK_IMPORTED_MODULE_1__.ResponsiveMode.canvas]: logicalWidth\n }, responsiveOptions = options.responsive?.find((t)=>t.maxWidth > widthMap[t.mode]);\n options.load(responsiveOptions?.options);\n return responsiveOptions?.maxWidth;\n };\n options.setResponsive = setResponsive;\n options.responsive ??= [];\n if (source?.responsive !== undefined) {\n for (const responsive of source.responsive){\n const optResponsive = new _Options_Classes_Responsive_js__WEBPACK_IMPORTED_MODULE_0__.Responsive();\n if (responsive) {\n optResponsive.load(responsive);\n }\n options.responsive.push(optResponsive);\n }\n }\n options.responsive.sort((a, b)=>a.maxWidth - b.maxWidth);\n }\n needsPlugin(options) {\n return !!options?.responsive?.length;\n }\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/responsive/dist/browser/ResponsivePlugin.js?\n}");
47
-
48
- /***/ }
49
-
50
- }]);
@@ -1,30 +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
- * v4.0.0-beta.9
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_all"] = this["webpackChunk_tsparticles_all"] || []).push([["plugins_responsive_dist_browser_index_js"],{
19
-
20
- /***/ "../../plugins/responsive/dist/browser/index.js"
21
- /*!******************************************************!*\
22
- !*** ../../plugins/responsive/dist/browser/index.js ***!
23
- \******************************************************/
24
- (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
-
26
- eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadResponsivePlugin: () => (/* binding */ loadResponsivePlugin)\n/* harmony export */ });\nasync function loadResponsivePlugin(engine) {\n engine.checkVersion(\"4.0.0-beta.9\");\n await engine.pluginManager.register(async (e)=>{\n const { ResponsivePlugin } = await __webpack_require__.e(/*! import() */ \"plugins_responsive_dist_browser_ResponsivePlugin_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./ResponsivePlugin.js */ \"../../plugins/responsive/dist/browser/ResponsivePlugin.js\"));\n e.pluginManager.addPlugin(new ResponsivePlugin());\n });\n}\n\n\n//# sourceURL=webpack://@tsparticles/all/../../plugins/responsive/dist/browser/index.js?\n}");
27
-
28
- /***/ }
29
-
30
- }]);