@tsparticles/all 3.9.1 → 4.0.0-alpha.1
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.
- package/1013.min.js +2 -0
- package/1013.min.js.LICENSE.txt +1 -0
- package/1080.min.js +2 -0
- package/1080.min.js.LICENSE.txt +1 -0
- package/1081.min.js +2 -0
- package/1081.min.js.LICENSE.txt +1 -0
- package/1143.min.js +2 -0
- package/1143.min.js.LICENSE.txt +1 -0
- package/1392.min.js +2 -0
- package/1392.min.js.LICENSE.txt +1 -0
- package/1406.min.js +2 -0
- package/1406.min.js.LICENSE.txt +1 -0
- package/1581.min.js +2 -0
- package/1581.min.js.LICENSE.txt +1 -0
- package/1761.min.js +2 -0
- package/1761.min.js.LICENSE.txt +1 -0
- package/1816.min.js +2 -0
- package/1816.min.js.LICENSE.txt +1 -0
- package/1842.min.js +2 -0
- package/1842.min.js.LICENSE.txt +1 -0
- package/1866.min.js +2 -0
- package/1866.min.js.LICENSE.txt +1 -0
- package/1872.min.js +2 -0
- package/1872.min.js.LICENSE.txt +1 -0
- package/1878.min.js +2 -0
- package/1878.min.js.LICENSE.txt +1 -0
- package/1887.min.js +2 -0
- package/1887.min.js.LICENSE.txt +1 -0
- package/1916.min.js +2 -0
- package/1916.min.js.LICENSE.txt +1 -0
- package/198.min.js +2 -0
- package/198.min.js.LICENSE.txt +1 -0
- package/201.min.js +2 -0
- package/201.min.js.LICENSE.txt +1 -0
- package/2058.min.js +2 -0
- package/2058.min.js.LICENSE.txt +1 -0
- package/2124.min.js +2 -0
- package/2124.min.js.LICENSE.txt +1 -0
- package/2126.min.js +2 -0
- package/2126.min.js.LICENSE.txt +1 -0
- package/2142.min.js +2 -0
- package/2142.min.js.LICENSE.txt +1 -0
- package/2164.min.js +2 -0
- package/2164.min.js.LICENSE.txt +1 -0
- package/2175.min.js +2 -0
- package/2175.min.js.LICENSE.txt +1 -0
- package/2201.min.js +2 -0
- package/2201.min.js.LICENSE.txt +1 -0
- package/2243.min.js +2 -0
- package/2243.min.js.LICENSE.txt +1 -0
- package/2264.min.js +2 -0
- package/2264.min.js.LICENSE.txt +1 -0
- package/2370.min.js +2 -0
- package/2370.min.js.LICENSE.txt +1 -0
- package/2399.min.js +2 -0
- package/2399.min.js.LICENSE.txt +1 -0
- package/2422.min.js +2 -0
- package/2422.min.js.LICENSE.txt +1 -0
- package/2534.min.js +2 -0
- package/2534.min.js.LICENSE.txt +1 -0
- package/2554.min.js +2 -0
- package/2554.min.js.LICENSE.txt +1 -0
- package/2572.min.js +2 -0
- package/2572.min.js.LICENSE.txt +1 -0
- package/262.min.js +2 -0
- package/262.min.js.LICENSE.txt +1 -0
- package/2636.min.js +2 -0
- package/2636.min.js.LICENSE.txt +1 -0
- package/2739.min.js +2 -0
- package/2739.min.js.LICENSE.txt +1 -0
- package/2745.min.js +2 -0
- package/2745.min.js.LICENSE.txt +1 -0
- package/276.min.js +2 -0
- package/276.min.js.LICENSE.txt +1 -0
- package/2819.min.js +2 -0
- package/2819.min.js.LICENSE.txt +1 -0
- package/2885.min.js +2 -0
- package/2885.min.js.LICENSE.txt +1 -0
- package/29.min.js +2 -0
- package/29.min.js.LICENSE.txt +1 -0
- package/2953.min.js +2 -0
- package/2953.min.js.LICENSE.txt +1 -0
- package/3017.min.js +2 -0
- package/3017.min.js.LICENSE.txt +1 -0
- package/303.min.js +2 -0
- package/303.min.js.LICENSE.txt +1 -0
- package/3089.min.js +2 -0
- package/3089.min.js.LICENSE.txt +1 -0
- package/3101.min.js +2 -0
- package/3101.min.js.LICENSE.txt +1 -0
- package/3156.min.js +2 -0
- package/3156.min.js.LICENSE.txt +1 -0
- package/3206.min.js +2 -0
- package/3206.min.js.LICENSE.txt +1 -0
- package/3214.min.js +2 -0
- package/3214.min.js.LICENSE.txt +1 -0
- package/3225.min.js +2 -0
- package/3225.min.js.LICENSE.txt +1 -0
- package/3241.min.js +2 -0
- package/3241.min.js.LICENSE.txt +1 -0
- package/3289.min.js +2 -0
- package/3289.min.js.LICENSE.txt +1 -0
- package/3309.min.js +2 -0
- package/3309.min.js.LICENSE.txt +1 -0
- package/3435.min.js +2 -0
- package/3435.min.js.LICENSE.txt +1 -0
- package/3465.min.js +2 -0
- package/3465.min.js.LICENSE.txt +1 -0
- package/3493.min.js +2 -0
- package/3493.min.js.LICENSE.txt +1 -0
- package/350.min.js +2 -0
- package/350.min.js.LICENSE.txt +1 -0
- package/3522.min.js +2 -0
- package/3522.min.js.LICENSE.txt +1 -0
- package/3561.min.js +2 -0
- package/3561.min.js.LICENSE.txt +1 -0
- package/3595.min.js +2 -0
- package/3595.min.js.LICENSE.txt +1 -0
- package/3636.min.js +2 -0
- package/3636.min.js.LICENSE.txt +1 -0
- package/3658.min.js +2 -0
- package/3658.min.js.LICENSE.txt +1 -0
- package/368.min.js +2 -0
- package/368.min.js.LICENSE.txt +1 -0
- package/3710.min.js +2 -0
- package/3710.min.js.LICENSE.txt +1 -0
- package/3753.min.js +2 -0
- package/3753.min.js.LICENSE.txt +1 -0
- package/3809.min.js +2 -0
- package/3809.min.js.LICENSE.txt +1 -0
- package/3828.min.js +2 -0
- package/3828.min.js.LICENSE.txt +1 -0
- package/3853.min.js +2 -0
- package/3853.min.js.LICENSE.txt +1 -0
- package/3872.min.js +2 -0
- package/3872.min.js.LICENSE.txt +1 -0
- package/3897.min.js +2 -0
- package/3897.min.js.LICENSE.txt +1 -0
- package/3920.min.js +2 -0
- package/3920.min.js.LICENSE.txt +1 -0
- package/3922.min.js +2 -0
- package/3922.min.js.LICENSE.txt +1 -0
- package/404.min.js +2 -0
- package/404.min.js.LICENSE.txt +1 -0
- package/408.min.js +2 -0
- package/408.min.js.LICENSE.txt +1 -0
- package/41.min.js +2 -0
- package/41.min.js.LICENSE.txt +1 -0
- package/4125.min.js +2 -0
- package/4125.min.js.LICENSE.txt +1 -0
- package/4159.min.js +2 -0
- package/4159.min.js.LICENSE.txt +1 -0
- package/4204.min.js +2 -0
- package/4204.min.js.LICENSE.txt +1 -0
- package/4231.min.js +2 -0
- package/4231.min.js.LICENSE.txt +1 -0
- package/4242.min.js +2 -0
- package/4242.min.js.LICENSE.txt +1 -0
- package/4339.min.js +2 -0
- package/4339.min.js.LICENSE.txt +1 -0
- package/4398.min.js +2 -0
- package/4398.min.js.LICENSE.txt +1 -0
- package/4469.min.js +2 -0
- package/4469.min.js.LICENSE.txt +1 -0
- package/4482.min.js +2 -0
- package/4482.min.js.LICENSE.txt +1 -0
- package/4493.min.js +2 -0
- package/4493.min.js.LICENSE.txt +1 -0
- package/4510.min.js +2 -0
- package/4510.min.js.LICENSE.txt +1 -0
- package/4565.min.js +2 -0
- package/4565.min.js.LICENSE.txt +1 -0
- package/458.min.js +2 -0
- package/458.min.js.LICENSE.txt +1 -0
- package/4606.min.js +2 -0
- package/4606.min.js.LICENSE.txt +1 -0
- package/4620.min.js +2 -0
- package/4620.min.js.LICENSE.txt +1 -0
- package/4688.min.js +2 -0
- package/4688.min.js.LICENSE.txt +1 -0
- package/4717.min.js +2 -0
- package/4717.min.js.LICENSE.txt +1 -0
- package/4743.min.js +2 -0
- package/4743.min.js.LICENSE.txt +1 -0
- package/4817.min.js +2 -0
- package/4817.min.js.LICENSE.txt +1 -0
- package/4894.min.js +2 -0
- package/4894.min.js.LICENSE.txt +1 -0
- package/491.min.js +2 -0
- package/491.min.js.LICENSE.txt +1 -0
- package/4915.min.js +2 -0
- package/4915.min.js.LICENSE.txt +1 -0
- package/508.min.js +2 -0
- package/508.min.js.LICENSE.txt +1 -0
- package/5082.min.js +2 -0
- package/5082.min.js.LICENSE.txt +1 -0
- package/5090.min.js +2 -0
- package/5090.min.js.LICENSE.txt +1 -0
- package/5169.min.js +2 -0
- package/5169.min.js.LICENSE.txt +1 -0
- package/5187.min.js +2 -0
- package/5187.min.js.LICENSE.txt +1 -0
- package/5202.min.js +2 -0
- package/5202.min.js.LICENSE.txt +1 -0
- package/5226.min.js +2 -0
- package/5226.min.js.LICENSE.txt +1 -0
- package/5243.min.js +2 -0
- package/5243.min.js.LICENSE.txt +1 -0
- package/5322.min.js +2 -0
- package/5322.min.js.LICENSE.txt +1 -0
- package/5367.min.js +2 -0
- package/5367.min.js.LICENSE.txt +1 -0
- package/5433.min.js +2 -0
- package/5433.min.js.LICENSE.txt +1 -0
- package/5504.min.js +2 -0
- package/5504.min.js.LICENSE.txt +1 -0
- package/5563.min.js +2 -0
- package/5563.min.js.LICENSE.txt +1 -0
- package/5627.min.js +2 -0
- package/5627.min.js.LICENSE.txt +1 -0
- package/5635.min.js +2 -0
- package/5635.min.js.LICENSE.txt +1 -0
- package/5689.min.js +2 -0
- package/5689.min.js.LICENSE.txt +1 -0
- package/5693.min.js +2 -0
- package/5693.min.js.LICENSE.txt +1 -0
- package/5711.min.js +2 -0
- package/5711.min.js.LICENSE.txt +1 -0
- package/5713.min.js +2 -0
- package/5713.min.js.LICENSE.txt +1 -0
- package/5727.min.js +2 -0
- package/5727.min.js.LICENSE.txt +1 -0
- package/5728.min.js +2 -0
- package/5728.min.js.LICENSE.txt +1 -0
- package/5749.min.js +2 -0
- package/5749.min.js.LICENSE.txt +1 -0
- package/5770.min.js +2 -0
- package/5770.min.js.LICENSE.txt +1 -0
- package/582.min.js +2 -0
- package/582.min.js.LICENSE.txt +1 -0
- package/5849.min.js +2 -0
- package/5849.min.js.LICENSE.txt +1 -0
- package/5885.min.js +2 -0
- package/5885.min.js.LICENSE.txt +1 -0
- package/5898.min.js +2 -0
- package/5898.min.js.LICENSE.txt +1 -0
- package/590.min.js +2 -0
- package/590.min.js.LICENSE.txt +1 -0
- package/5917.min.js +2 -0
- package/5917.min.js.LICENSE.txt +1 -0
- package/6024.min.js +2 -0
- package/6024.min.js.LICENSE.txt +1 -0
- package/6137.min.js +2 -0
- package/6137.min.js.LICENSE.txt +1 -0
- package/617.min.js +2 -0
- package/617.min.js.LICENSE.txt +1 -0
- package/6203.min.js +2 -0
- package/6203.min.js.LICENSE.txt +1 -0
- package/6284.min.js +2 -0
- package/6284.min.js.LICENSE.txt +1 -0
- package/6314.min.js +2 -0
- package/6314.min.js.LICENSE.txt +1 -0
- package/6315.min.js +2 -0
- package/6315.min.js.LICENSE.txt +1 -0
- package/6408.min.js +2 -0
- package/6408.min.js.LICENSE.txt +1 -0
- package/6416.min.js +2 -0
- package/6416.min.js.LICENSE.txt +1 -0
- package/6434.min.js +2 -0
- package/6434.min.js.LICENSE.txt +1 -0
- package/6528.min.js +2 -0
- package/6528.min.js.LICENSE.txt +1 -0
- package/6560.min.js +2 -0
- package/6560.min.js.LICENSE.txt +1 -0
- package/6573.min.js +2 -0
- package/6573.min.js.LICENSE.txt +1 -0
- package/6606.min.js +2 -0
- package/6606.min.js.LICENSE.txt +1 -0
- package/6625.min.js +2 -0
- package/6625.min.js.LICENSE.txt +1 -0
- package/6660.min.js +2 -0
- package/6660.min.js.LICENSE.txt +1 -0
- package/6674.min.js +2 -0
- package/6674.min.js.LICENSE.txt +1 -0
- package/6687.min.js +2 -0
- package/6687.min.js.LICENSE.txt +1 -0
- package/669.min.js +2 -0
- package/669.min.js.LICENSE.txt +1 -0
- package/6848.min.js +2 -0
- package/6848.min.js.LICENSE.txt +1 -0
- package/6866.min.js +2 -0
- package/6866.min.js.LICENSE.txt +1 -0
- package/7009.min.js +2 -0
- package/7009.min.js.LICENSE.txt +1 -0
- package/704.min.js +2 -0
- package/704.min.js.LICENSE.txt +1 -0
- package/7094.min.js +2 -0
- package/7094.min.js.LICENSE.txt +1 -0
- package/7146.min.js +2 -0
- package/7146.min.js.LICENSE.txt +1 -0
- package/7152.min.js +2 -0
- package/7152.min.js.LICENSE.txt +1 -0
- package/7278.min.js +2 -0
- package/7278.min.js.LICENSE.txt +1 -0
- package/7281.min.js +2 -0
- package/7281.min.js.LICENSE.txt +1 -0
- package/731.min.js +2 -0
- package/731.min.js.LICENSE.txt +1 -0
- package/7321.min.js +2 -0
- package/7321.min.js.LICENSE.txt +1 -0
- package/7342.min.js +2 -0
- package/7342.min.js.LICENSE.txt +1 -0
- package/7358.min.js +2 -0
- package/7358.min.js.LICENSE.txt +1 -0
- package/7406.min.js +2 -0
- package/7406.min.js.LICENSE.txt +1 -0
- package/7426.min.js +2 -0
- package/7426.min.js.LICENSE.txt +1 -0
- package/745.min.js +2 -0
- package/745.min.js.LICENSE.txt +1 -0
- package/7485.min.js +2 -0
- package/7485.min.js.LICENSE.txt +1 -0
- package/7489.min.js +2 -0
- package/7489.min.js.LICENSE.txt +1 -0
- package/7571.min.js +2 -0
- package/7571.min.js.LICENSE.txt +1 -0
- package/7586.min.js +2 -0
- package/7586.min.js.LICENSE.txt +1 -0
- package/7679.min.js +2 -0
- package/7679.min.js.LICENSE.txt +1 -0
- package/774.min.js +2 -0
- package/774.min.js.LICENSE.txt +1 -0
- package/7753.min.js +2 -0
- package/7753.min.js.LICENSE.txt +1 -0
- package/7839.min.js +2 -0
- package/7839.min.js.LICENSE.txt +1 -0
- package/7962.min.js +2 -0
- package/7962.min.js.LICENSE.txt +1 -0
- package/7998.min.js +2 -0
- package/7998.min.js.LICENSE.txt +1 -0
- package/8127.min.js +2 -0
- package/8127.min.js.LICENSE.txt +1 -0
- package/8182.min.js +2 -0
- package/8182.min.js.LICENSE.txt +1 -0
- package/8191.min.js +2 -0
- package/8191.min.js.LICENSE.txt +1 -0
- package/8204.min.js +2 -0
- package/8204.min.js.LICENSE.txt +1 -0
- package/8230.min.js +2 -0
- package/8230.min.js.LICENSE.txt +1 -0
- package/8245.min.js +2 -0
- package/8245.min.js.LICENSE.txt +1 -0
- package/8365.min.js +2 -0
- package/8365.min.js.LICENSE.txt +1 -0
- package/8404.min.js +2 -0
- package/8404.min.js.LICENSE.txt +1 -0
- package/8420.min.js +2 -0
- package/8420.min.js.LICENSE.txt +1 -0
- package/8440.min.js +2 -0
- package/8440.min.js.LICENSE.txt +1 -0
- package/8457.min.js +2 -0
- package/8457.min.js.LICENSE.txt +1 -0
- package/8470.min.js +2 -0
- package/8470.min.js.LICENSE.txt +1 -0
- package/8484.min.js +2 -0
- package/8484.min.js.LICENSE.txt +1 -0
- package/8520.min.js +2 -0
- package/8520.min.js.LICENSE.txt +1 -0
- package/8582.min.js +2 -0
- package/8582.min.js.LICENSE.txt +1 -0
- package/869.min.js +2 -0
- package/869.min.js.LICENSE.txt +1 -0
- package/8770.min.js +2 -0
- package/8770.min.js.LICENSE.txt +1 -0
- package/8848.min.js +2 -0
- package/8848.min.js.LICENSE.txt +1 -0
- package/8926.min.js +2 -0
- package/8926.min.js.LICENSE.txt +1 -0
- package/8930.min.js +2 -0
- package/8930.min.js.LICENSE.txt +1 -0
- package/8952.min.js +2 -0
- package/8952.min.js.LICENSE.txt +1 -0
- package/9076.min.js +2 -0
- package/9076.min.js.LICENSE.txt +1 -0
- package/9095.min.js +2 -0
- package/9095.min.js.LICENSE.txt +1 -0
- package/91.min.js +2 -0
- package/91.min.js.LICENSE.txt +1 -0
- package/9113.min.js +2 -0
- package/9113.min.js.LICENSE.txt +1 -0
- package/9149.min.js +2 -0
- package/9149.min.js.LICENSE.txt +1 -0
- package/917.min.js +2 -0
- package/917.min.js.LICENSE.txt +1 -0
- package/9213.min.js +2 -0
- package/9213.min.js.LICENSE.txt +1 -0
- package/9234.min.js +2 -0
- package/9234.min.js.LICENSE.txt +1 -0
- package/9287.min.js +2 -0
- package/9287.min.js.LICENSE.txt +1 -0
- package/9312.min.js +2 -0
- package/9312.min.js.LICENSE.txt +1 -0
- package/9438.min.js +2 -0
- package/9438.min.js.LICENSE.txt +1 -0
- package/9475.min.js +2 -0
- package/9475.min.js.LICENSE.txt +1 -0
- package/9648.min.js +2 -0
- package/9648.min.js.LICENSE.txt +1 -0
- package/9754.min.js +2 -0
- package/9754.min.js.LICENSE.txt +1 -0
- package/9825.min.js +2 -0
- package/9825.min.js.LICENSE.txt +1 -0
- package/986.min.js +2 -0
- package/986.min.js.LICENSE.txt +1 -0
- package/9907.min.js +2 -0
- package/9907.min.js.LICENSE.txt +1 -0
- package/9915.min.js +2 -0
- package/9915.min.js.LICENSE.txt +1 -0
- package/9944.min.js +2 -0
- package/9944.min.js.LICENSE.txt +1 -0
- package/9950.min.js +2 -0
- package/9950.min.js.LICENSE.txt +1 -0
- package/9965.min.js +2 -0
- package/9965.min.js.LICENSE.txt +1 -0
- package/9966.min.js +2 -0
- package/9966.min.js.LICENSE.txt +1 -0
- package/basic_dist_browser_index_js.js +30 -0
- package/browser/bundle.js +1 -1
- package/browser/index.js +62 -103
- package/cjs/bundle.js +3 -20
- package/cjs/index.js +62 -106
- package/effects_bubble_dist_browser_BubbleDrawer_js.js +30 -0
- package/effects_bubble_dist_browser_index_js.js +30 -0
- package/effects_shadow_dist_browser_ShadowDrawer_js.js +30 -0
- package/effects_shadow_dist_browser_index_js.js +30 -0
- package/effects_trail_dist_browser_TrailDrawer_js.js +30 -0
- package/effects_trail_dist_browser_index_js.js +30 -0
- package/engine_dist_browser_Core_Container_js.js +100 -0
- package/esm/bundle.js +1 -1
- package/esm/index.js +62 -103
- package/full_dist_browser_index_js.js +30 -0
- package/interactions_external_attract_dist_browser_Attractor_js.js +40 -0
- package/interactions_external_attract_dist_browser_index_js.js +40 -0
- package/interactions_external_bounce_dist_browser_Bouncer_js.js +40 -0
- package/interactions_external_bounce_dist_browser_index_js.js +40 -0
- package/interactions_external_bubble_dist_browser_Bubbler_js.js +50 -0
- package/interactions_external_bubble_dist_browser_index_js.js +60 -0
- package/interactions_external_connect_dist_browser_Connector_js.js +40 -0
- package/interactions_external_connect_dist_browser_index_js.js +50 -0
- package/interactions_external_grab_dist_browser_Grabber_js.js +40 -0
- package/interactions_external_grab_dist_browser_index_js.js +50 -0
- package/interactions_external_particle_dist_browser_InteractivityParticleMaker_js.js +40 -0
- package/interactions_external_particle_dist_browser_index_js.js +30 -0
- package/interactions_external_pause_dist_browser_Pauser_js.js +30 -0
- package/interactions_external_pause_dist_browser_index_js.js +30 -0
- package/interactions_external_pop_dist_browser_Popper_js.js +30 -0
- package/interactions_external_pop_dist_browser_index_js.js +30 -0
- package/interactions_external_push_dist_browser_Pusher_js.js +30 -0
- package/interactions_external_push_dist_browser_index_js.js +40 -0
- package/interactions_external_remove_dist_browser_Remover_js.js +30 -0
- package/interactions_external_remove_dist_browser_index_js.js +40 -0
- package/interactions_external_repulse_dist_browser_Repulser_js.js +30 -0
- package/interactions_external_repulse_dist_browser_index_js.js +60 -0
- package/interactions_external_slow_dist_browser_Slower_js.js +30 -0
- package/interactions_external_slow_dist_browser_index_js.js +40 -0
- package/interactions_external_trail_dist_browser_TrailMaker_js.js +30 -0
- package/interactions_external_trail_dist_browser_index_js.js +40 -0
- package/interactions_light_dist_browser_ExternalLighter_js.js +40 -0
- package/interactions_light_dist_browser_ParticlesLighter_js.js +40 -0
- package/interactions_light_dist_browser_index_js.js +70 -0
- package/interactions_particles_attract_dist_browser_Attractor_js.js +30 -0
- package/interactions_particles_attract_dist_browser_index_js.js +30 -0
- package/interactions_particles_collisions_dist_browser_Collider_js.js +110 -0
- package/interactions_particles_collisions_dist_browser_OverlapPlugin_js.js +40 -0
- package/interactions_particles_collisions_dist_browser_index_js.js +30 -0
- package/interactions_particles_links_dist_browser_Linker_js.js +40 -0
- package/interactions_particles_links_dist_browser_LinksPlugin_js.js +50 -0
- package/interactions_particles_links_dist_browser_index_js.js +60 -0
- package/interactions_particles_links_dist_browser_interaction_js.js +30 -0
- package/interactions_particles_links_dist_browser_plugin_js.js +30 -0
- package/interactions_particles_repulse_dist_browser_Repulser_js.js +40 -0
- package/interactions_particles_repulse_dist_browser_index_js.js +30 -0
- package/move_base_dist_browser_BaseMover_js.js +40 -0
- package/move_base_dist_browser_index_js.js +30 -0
- package/move_parallax_dist_browser_ParallaxMover_js.js +30 -0
- package/move_parallax_dist_browser_index_js.js +30 -0
- package/package.json +61 -53
- package/paths_curlNoise_dist_browser_CurlNoiseGenerator_js.js +30 -0
- package/paths_curlNoise_dist_browser_index_js.js +30 -0
- package/paths_curves_dist_browser_CurvesPathGenerator_js.js +40 -0
- package/paths_curves_dist_browser_index_js.js +30 -0
- package/paths_fractalNoise_dist_browser_FractalNoiseGenerator_js.js +90 -0
- package/paths_fractalNoise_dist_browser_index_js.js +30 -0
- package/paths_perlinNoise_dist_browser_PerlinNoiseGenerator_js.js +80 -0
- package/paths_perlinNoise_dist_browser_index_js.js +30 -0
- package/paths_polygon_dist_browser_PolygonPathGenerator_js.js +30 -0
- package/paths_polygon_dist_browser_index_js.js +30 -0
- package/paths_simplexNoise_dist_browser_SimplexNoiseGenerator_js.js +50 -0
- package/paths_simplexNoise_dist_browser_index_js.js +30 -0
- package/paths_svg_dist_browser_SVGPathGenerator_js.js +30 -0
- package/paths_svg_dist_browser_index_js.js +30 -0
- package/paths_zigzag_dist_browser_ZigZagPathGenerator_js.js +30 -0
- package/paths_zigzag_dist_browser_index_js.js +30 -0
- package/pjs_dist_browser_index_js.js +50 -0
- package/plugins_absorbers_dist_browser_AbsorbersPlugin_js.js +80 -0
- package/plugins_absorbers_dist_browser_index_js.js +40 -0
- package/plugins_backgroundMask_dist_browser_BackgroundMaskPlugin_js.js +60 -0
- package/plugins_backgroundMask_dist_browser_index_js.js +30 -0
- package/plugins_canvasMask_dist_browser_CanvasMaskPlugin_js.js +120 -0
- package/plugins_canvasMask_dist_browser_index_js.js +30 -0
- package/plugins_colors_hex_dist_browser_HexColorManager_js.js +30 -0
- package/plugins_colors_hex_dist_browser_index_js.js +30 -0
- package/plugins_colors_hsl_dist_browser_HslColorManager_js.js +30 -0
- package/plugins_colors_hsl_dist_browser_index_js.js +30 -0
- package/plugins_colors_hsv_dist_browser_HsvColorManager_js.js +40 -0
- package/plugins_colors_hsv_dist_browser_index_js.js +30 -0
- package/plugins_colors_hwb_dist_browser_HwbColorManager_js.js +30 -0
- package/plugins_colors_hwb_dist_browser_index_js.js +30 -0
- package/plugins_colors_lab_dist_browser_LabColorManager_js.js +40 -0
- package/plugins_colors_lab_dist_browser_index_js.js +30 -0
- package/plugins_colors_lch_dist_browser_LchColorManager_js.js +40 -0
- package/plugins_colors_lch_dist_browser_index_js.js +30 -0
- package/plugins_colors_named_dist_browser_NamedColorManager_js.js +30 -0
- package/plugins_colors_named_dist_browser_index_js.js +30 -0
- package/plugins_colors_oklab_dist_browser_OklabColorManager_js.js +40 -0
- package/plugins_colors_oklab_dist_browser_index_js.js +30 -0
- package/plugins_colors_oklch_dist_browser_OklchColorManager_js.js +40 -0
- package/plugins_colors_oklch_dist_browser_index_js.js +30 -0
- package/plugins_colors_rgb_dist_browser_RgbColorManager_js.js +30 -0
- package/plugins_colors_rgb_dist_browser_index_js.js +30 -0
- package/plugins_easings_back_dist_browser_index_js.js +30 -0
- package/plugins_easings_circ_dist_browser_index_js.js +30 -0
- package/plugins_easings_cubic_dist_browser_index_js.js +30 -0
- package/plugins_easings_expo_dist_browser_index_js.js +30 -0
- package/plugins_easings_linear_dist_browser_index_js.js +30 -0
- package/plugins_easings_quad_dist_browser_index_js.js +30 -0
- package/plugins_easings_quart_dist_browser_index_js.js +30 -0
- package/plugins_easings_quint_dist_browser_index_js.js +30 -0
- package/plugins_easings_sine_dist_browser_index_js.js +30 -0
- package/plugins_emittersShapes_canvas_dist_browser_EmittersCanvasShapeGenerator_js.js +130 -0
- package/plugins_emittersShapes_canvas_dist_browser_index_js.js +30 -0
- package/plugins_emittersShapes_circle_dist_browser_EmittersCircleShapeGenerator_js.js +70 -0
- package/plugins_emittersShapes_circle_dist_browser_index_js.js +30 -0
- package/plugins_emittersShapes_path_dist_browser_EmittersPathShapeGenerator_js.js +90 -0
- package/plugins_emittersShapes_path_dist_browser_index_js.js +30 -0
- package/plugins_emittersShapes_polygon_dist_browser_EmittersPolygonShapeGenerator_js.js +90 -0
- package/plugins_emittersShapes_polygon_dist_browser_index_js.js +30 -0
- package/plugins_emittersShapes_square_dist_browser_EmittersSquareShapeGenerator_js.js +70 -0
- package/plugins_emittersShapes_square_dist_browser_index_js.js +30 -0
- package/plugins_emitters_dist_browser_EmittersPlugin_js.js +110 -0
- package/plugins_emitters_dist_browser_ShapeManager_js.js +30 -0
- package/plugins_emitters_dist_browser_index_js.js +50 -0
- package/plugins_exports_image_dist_browser_ExportImagePlugin_js.js +40 -0
- package/plugins_exports_image_dist_browser_index_js.js +30 -0
- package/plugins_exports_json_dist_browser_ExportJSONPlugin_js.js +40 -0
- package/plugins_exports_json_dist_browser_index_js.js +30 -0
- package/plugins_exports_video_dist_browser_ExportVideoPlugin_js.js +40 -0
- package/plugins_exports_video_dist_browser_index_js.js +30 -0
- package/plugins_infection_dist_browser_InfectionPlugin_js.js +70 -0
- package/plugins_infection_dist_browser_ParticlesInfecter_js.js +30 -0
- package/plugins_infection_dist_browser_index_js.js +30 -0
- package/plugins_motion_dist_browser_MotionPlugin_js.js +60 -0
- package/plugins_motion_dist_browser_index_js.js +30 -0
- package/plugins_poisson_dist_browser_PoissonDiscPlugin_js.js +60 -0
- package/plugins_poisson_dist_browser_index_js.js +30 -0
- package/plugins_polygonMask_dist_browser_PolygonMaskPlugin_js.js +120 -0
- package/plugins_polygonMask_dist_browser_index_js.js +60 -0
- package/plugins_sounds_dist_browser_SoundsPlugin_js.js +140 -0
- package/plugins_sounds_dist_browser_index_js.js +30 -0
- package/plugins_trail_dist_browser_TrailPlugin_js.js +60 -0
- package/plugins_trail_dist_browser_index_js.js +30 -0
- package/report.html +5 -4
- package/shapes_arrow_dist_browser_ArrowDrawer_js.js +40 -0
- package/shapes_arrow_dist_browser_index_js.js +30 -0
- package/shapes_cards_dist_browser_clubs_ClubDrawer_js.js +40 -0
- package/shapes_cards_dist_browser_diamonds_DiamondDrawer_js.js +40 -0
- package/shapes_cards_dist_browser_hearts_HeartDrawer_js.js +40 -0
- package/shapes_cards_dist_browser_index_js.js +70 -0
- package/shapes_cards_dist_browser_spades_SpadeDrawer_js.js +40 -0
- package/shapes_circle_dist_browser_CircleDrawer_js.js +40 -0
- package/shapes_circle_dist_browser_index_js.js +30 -0
- package/shapes_cog_dist_browser_CogDrawer_js.js +40 -0
- package/shapes_cog_dist_browser_index_js.js +30 -0
- package/shapes_emoji_dist_browser_EmojiDrawer_js.js +40 -0
- package/shapes_emoji_dist_browser_index_js.js +30 -0
- package/shapes_heart_dist_browser_HeartDrawer_js.js +40 -0
- package/shapes_heart_dist_browser_index_js.js +30 -0
- package/shapes_image_dist_browser_GifUtils_Utils_js.js +80 -0
- package/shapes_image_dist_browser_ImageDrawer_js.js +30 -0
- package/shapes_image_dist_browser_ImagePreloader_js.js +40 -0
- package/shapes_image_dist_browser_Utils_js.js +30 -0
- package/shapes_image_dist_browser_index_js.js +30 -0
- package/shapes_infinity_dist_browser_InfinityDrawer_js.js +40 -0
- package/shapes_infinity_dist_browser_index_js.js +30 -0
- package/shapes_line_dist_browser_LineDrawer_js.js +40 -0
- package/shapes_line_dist_browser_index_js.js +30 -0
- package/shapes_path_dist_browser_PathDrawer_js.js +50 -0
- package/shapes_path_dist_browser_index_js.js +30 -0
- package/shapes_polygon_dist_browser_PolygonDrawer_js.js +50 -0
- package/shapes_polygon_dist_browser_TriangleDrawer_js.js +50 -0
- package/shapes_polygon_dist_browser_index_js.js +30 -0
- package/shapes_rounded-polygon_dist_browser_RoundedPolygonDrawer_js.js +40 -0
- package/shapes_rounded-polygon_dist_browser_index_js.js +30 -0
- package/shapes_rounded-rect_dist_browser_RoundedRectDrawer_js.js +40 -0
- package/shapes_rounded-rect_dist_browser_index_js.js +30 -0
- package/shapes_spiral_dist_browser_SpiralDrawer_js.js +40 -0
- package/shapes_spiral_dist_browser_index_js.js +30 -0
- package/shapes_square_dist_browser_SquareDrawer_js.js +40 -0
- package/shapes_square_dist_browser_index_js.js +30 -0
- package/shapes_star_dist_browser_StarDrawer_js.js +40 -0
- package/shapes_star_dist_browser_index_js.js +30 -0
- package/shapes_text_dist_browser_TextDrawer_js.js +40 -0
- package/shapes_text_dist_browser_index_js.js +30 -0
- package/slim_dist_browser_index_js.js +30 -0
- package/tsparticles.all.bundle.js +536 -5705
- package/tsparticles.all.bundle.min.js +1 -1
- package/tsparticles.all.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.all.js +261 -167
- package/tsparticles.all.min.js +1 -1
- package/tsparticles.all.min.js.LICENSE.txt +1 -1
- package/types/bundle.d.ts +1 -1
- package/types/index.d.ts +1 -1
- package/umd/bundle.js +3 -3
- package/umd/index.js +97 -104
- package/updaters_color_dist_browser_ColorUpdater_js.js +30 -0
- package/updaters_color_dist_browser_index_js.js +30 -0
- package/updaters_destroy_dist_browser_DestroyUpdater_js.js +100 -0
- package/updaters_destroy_dist_browser_index_js.js +30 -0
- package/updaters_gradient_dist_browser_GradientUpdater_js.js +100 -0
- package/updaters_gradient_dist_browser_index_js.js +30 -0
- package/updaters_life_dist_browser_LifeUpdater_js.js +70 -0
- package/updaters_life_dist_browser_index_js.js +30 -0
- package/updaters_opacity_dist_browser_OpacityUpdater_js.js +30 -0
- package/updaters_opacity_dist_browser_index_js.js +30 -0
- package/updaters_orbit_dist_browser_OrbitUpdater_js.js +70 -0
- package/updaters_orbit_dist_browser_index_js.js +30 -0
- package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +80 -0
- package/updaters_outModes_dist_browser_index_js.js +30 -0
- package/updaters_roll_dist_browser_RollUpdater_js.js +70 -0
- package/updaters_roll_dist_browser_index_js.js +30 -0
- package/updaters_rotate_dist_browser_RotateUpdater_js.js +50 -0
- package/updaters_rotate_dist_browser_index_js.js +30 -0
- package/updaters_size_dist_browser_SizeUpdater_js.js +30 -0
- package/updaters_size_dist_browser_index_js.js +30 -0
- package/updaters_strokeColor_dist_browser_StrokeColorUpdater_js.js +30 -0
- package/updaters_strokeColor_dist_browser_index_js.js +30 -0
- package/updaters_tilt_dist_browser_TiltUpdater_js.js +60 -0
- package/updaters_tilt_dist_browser_index_js.js +30 -0
- package/updaters_twinkle_dist_browser_TwinkleUpdater_js.js +50 -0
- package/updaters_twinkle_dist_browser_index_js.js +30 -0
- package/updaters_wobble_dist_browser_WobbleUpdater_js.js +60 -0
- package/updaters_wobble_dist_browser_index_js.js +30 -0
- package/utils_simplexNoise_dist_browser_index_js.js +80 -0
|
@@ -0,0 +1,100 @@
|
|
|
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-alpha.1
|
|
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([["updaters_gradient_dist_browser_GradientUpdater_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/gradient/dist/browser/GradientUpdater.js"
|
|
21
|
+
/*!***************************************************************!*\
|
|
22
|
+
!*** ../../updaters/gradient/dist/browser/GradientUpdater.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 */ GradientUpdater: () => (/* binding */ GradientUpdater)\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 _Options_Classes_AnimatableGradient_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/AnimatableGradient.js */ \"../../updaters/gradient/dist/browser/Options/Classes/AnimatableGradient.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/gradient/dist/browser/Utils.js\");\n\n\n\nclass GradientUpdater {\n constructor(engine) {\n this._engine = engine;\n }\n getColorStyles(particle, context, radius, opacity) {\n const gradient = particle.gradient;\n if (!gradient) {\n return {};\n }\n const {\n container\n } = particle,\n gradientAngle = gradient.angle.value,\n origin = {\n x: 0,\n y: 0\n },\n minRadius = 0,\n fillGradient = gradient.type === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.GradientType.radial ? context.createRadialGradient(origin.x, origin.y, minRadius, origin.x, origin.y, radius) : context.createLinearGradient(Math.cos(gradientAngle) * -radius, Math.sin(gradientAngle) * -radius, Math.cos(gradientAngle) * radius, Math.sin(gradientAngle) * radius);\n for (const {\n stop,\n value,\n opacity: cOpacity\n } of gradient.colors) {\n const hsl = {\n h: value.h.value,\n s: value.s.value,\n l: value.l.value\n };\n fillGradient.addColorStop(stop, (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getStyleFromHsl)(hsl, container.hdr, cOpacity?.value ?? opacity));\n }\n return {\n fill: fillGradient\n };\n }\n init(particle) {\n const gradient = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.itemFromSingleOrMultiple)(particle.options.gradient);\n if (!gradient) {\n return;\n }\n const {\n angle\n } = gradient,\n speedFactor = 360,\n delayOffset = 1;\n particle.gradient = {\n angle: {\n value: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(angle.value),\n enable: angle.animation.enable,\n velocity: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(angle.animation.speed) / speedFactor * particle.container.retina.reduceFactor,\n decay: delayOffset - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(angle.animation.decay),\n delayTime: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(angle.animation.delay) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds,\n max: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.doublePI,\n min: 0,\n time: 0\n },\n type: gradient.type,\n colors: []\n };\n let rotateDirection = gradient.angle.direction;\n if (rotateDirection === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.random) {\n rotateDirection = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() > _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half ? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.counterClockwise : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise;\n }\n switch (rotateDirection) {\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.counterClockwise:\n case \"counterClockwise\":\n particle.gradient.angle.status = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimationStatus.decreasing;\n break;\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise:\n particle.gradient.angle.status = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimationStatus.increasing;\n break;\n }\n const reduceDuplicates = particle.options.reduceDuplicates;\n for (const grColor of gradient.colors) {\n const grHslColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(this._engine, grColor.value, particle.id, reduceDuplicates);\n if (!grHslColor) {\n continue;\n }\n const grHslAnimation = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getHslAnimationFromHsl)(grHslColor, grColor.value.animation, particle.container.retina.reduceFactor),\n addColor = {\n stop: grColor.stop,\n value: grHslAnimation,\n opacity: grColor.opacity ? {\n enable: grColor.opacity.animation.enable,\n max: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(grColor.opacity.value),\n min: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMin)(grColor.opacity.value),\n status: _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimationStatus.increasing,\n value: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(grColor.opacity.value),\n velocity: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(grColor.opacity.animation.speed) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator * particle.container.retina.reduceFactor,\n decay: delayOffset - (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(grColor.opacity.animation.decay),\n delayTime: (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(grColor.opacity.animation.delay) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds,\n time: 0\n } : undefined\n };\n const {\n opacity: addOpacity\n } = addColor;\n if (grColor.opacity && addOpacity) {\n const opacityRange = grColor.opacity.value;\n addOpacity.min = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMin)(opacityRange);\n addOpacity.max = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeMax)(opacityRange);\n const opacityAnimation = grColor.opacity.animation;\n switch (opacityAnimation.startValue) {\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.min:\n addOpacity.value = addOpacity.min;\n addOpacity.status = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimationStatus.increasing;\n break;\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.max:\n addOpacity.value = addOpacity.max;\n addOpacity.status = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimationStatus.decreasing;\n break;\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.random:\n default:\n addOpacity.value = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(addOpacity);\n addOpacity.status = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() >= _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half ? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimationStatus.increasing : _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimationStatus.decreasing;\n break;\n }\n }\n particle.gradient.colors.push(addColor);\n }\n }\n isEnabled(particle) {\n return !particle.destroyed && !particle.spawning && (!!particle.gradient?.angle.enable || (particle.gradient?.colors.some(c => c.value.h.enable || c.value.s.enable || c.value.l.enable) ?? false));\n }\n loadOptions(options, ...sources) {\n for (const source of sources) {\n if (!source?.gradient) {\n continue;\n }\n const gradientToLoad = source.gradient;\n options.gradient = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.executeOnSingleOrMultiple)(gradientToLoad, gradient => {\n const tmp = new _Options_Classes_AnimatableGradient_js__WEBPACK_IMPORTED_MODULE_1__.AnimatableGradient();\n tmp.load(gradient);\n return tmp;\n });\n }\n }\n update(particle, delta) {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__.updateGradient)(particle, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/gradient/dist/browser/GradientUpdater.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../updaters/gradient/dist/browser/Options/Classes/AnimatableGradient.js"
|
|
31
|
+
/*!**********************************************************************************!*\
|
|
32
|
+
!*** ../../updaters/gradient/dist/browser/Options/Classes/AnimatableGradient.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 */ AnimatableGradient: () => (/* binding */ AnimatableGradient)\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 _AnimatableGradientColor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AnimatableGradientColor.js */ \"../../updaters/gradient/dist/browser/Options/Classes/AnimatableGradientColor.js\");\n/* harmony import */ var _GradientAngle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GradientAngle.js */ \"../../updaters/gradient/dist/browser/Options/Classes/GradientAngle.js\");\n\n\n\nclass AnimatableGradient {\n constructor() {\n this.angle = new _GradientAngle_js__WEBPACK_IMPORTED_MODULE_2__.GradientAngle();\n this.colors = [];\n this.type = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.GradientType.random;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n this.angle.load(data.angle);\n if (data.colors !== undefined) {\n this.colors = data.colors.map(s => {\n const tmp = new _AnimatableGradientColor_js__WEBPACK_IMPORTED_MODULE_1__.AnimatableGradientColor();\n tmp.load(s);\n return tmp;\n });\n }\n if (data.type !== undefined) {\n this.type = data.type;\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/gradient/dist/browser/Options/Classes/AnimatableGradient.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ },
|
|
39
|
+
|
|
40
|
+
/***/ "../../updaters/gradient/dist/browser/Options/Classes/AnimatableGradientColor.js"
|
|
41
|
+
/*!***************************************************************************************!*\
|
|
42
|
+
!*** ../../updaters/gradient/dist/browser/Options/Classes/AnimatableGradientColor.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 */ AnimatableGradientColor: () => (/* binding */ AnimatableGradientColor)\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 _GradientColorOpacity_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GradientColorOpacity.js */ \"../../updaters/gradient/dist/browser/Options/Classes/GradientColorOpacity.js\");\n\n\nclass AnimatableGradientColor {\n constructor() {\n this.stop = 0;\n this.value = new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor();\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.stop !== undefined) {\n this.stop = data.stop;\n }\n this.value = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimatableColor.create(this.value, data.value);\n if (data.opacity !== undefined) {\n this.opacity = new _GradientColorOpacity_js__WEBPACK_IMPORTED_MODULE_1__.GradientColorOpacity();\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNumber)(data.opacity)) {\n this.opacity.value = data.opacity;\n } else {\n this.opacity.load(data.opacity);\n }\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/gradient/dist/browser/Options/Classes/AnimatableGradientColor.js?\n}");
|
|
47
|
+
|
|
48
|
+
/***/ },
|
|
49
|
+
|
|
50
|
+
/***/ "../../updaters/gradient/dist/browser/Options/Classes/GradientAngle.js"
|
|
51
|
+
/*!*****************************************************************************!*\
|
|
52
|
+
!*** ../../updaters/gradient/dist/browser/Options/Classes/GradientAngle.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 */ GradientAngle: () => (/* binding */ GradientAngle)\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 _GradientAngleAnimation_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GradientAngleAnimation.js */ \"../../updaters/gradient/dist/browser/Options/Classes/GradientAngleAnimation.js\");\n\n\nclass GradientAngle {\n constructor() {\n this.value = 0;\n this.animation = new _GradientAngleAnimation_js__WEBPACK_IMPORTED_MODULE_1__.GradientAngleAnimation();\n this.direction = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.RotateDirection.clockwise;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n this.animation.load(data.animation);\n if (data.value !== undefined) {\n this.value = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.value);\n }\n if (data.direction !== undefined) {\n this.direction = data.direction;\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/gradient/dist/browser/Options/Classes/GradientAngle.js?\n}");
|
|
57
|
+
|
|
58
|
+
/***/ },
|
|
59
|
+
|
|
60
|
+
/***/ "../../updaters/gradient/dist/browser/Options/Classes/GradientAngleAnimation.js"
|
|
61
|
+
/*!**************************************************************************************!*\
|
|
62
|
+
!*** ../../updaters/gradient/dist/browser/Options/Classes/GradientAngleAnimation.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 */ GradientAngleAnimation: () => (/* binding */ GradientAngleAnimation)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass GradientAngleAnimation {\n constructor() {\n this.count = 0;\n this.enable = false;\n this.speed = 0;\n this.decay = 0;\n this.delay = 0;\n this.sync = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.count !== undefined) {\n this.count = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.count);\n }\n if (data.enable !== undefined) {\n this.enable = data.enable;\n }\n if (data.speed !== undefined) {\n this.speed = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.speed);\n }\n if (data.decay !== undefined) {\n this.decay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.decay);\n }\n if (data.delay !== undefined) {\n this.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.delay);\n }\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/gradient/dist/browser/Options/Classes/GradientAngleAnimation.js?\n}");
|
|
67
|
+
|
|
68
|
+
/***/ },
|
|
69
|
+
|
|
70
|
+
/***/ "../../updaters/gradient/dist/browser/Options/Classes/GradientColorOpacity.js"
|
|
71
|
+
/*!************************************************************************************!*\
|
|
72
|
+
!*** ../../updaters/gradient/dist/browser/Options/Classes/GradientColorOpacity.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 */ GradientColorOpacity: () => (/* binding */ GradientColorOpacity)\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 _GradientColorOpacityAnimation_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GradientColorOpacityAnimation.js */ \"../../updaters/gradient/dist/browser/Options/Classes/GradientColorOpacityAnimation.js\");\n\n\nclass GradientColorOpacity {\n constructor() {\n this.value = 0;\n this.animation = new _GradientColorOpacityAnimation_js__WEBPACK_IMPORTED_MODULE_1__.GradientColorOpacityAnimation();\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n this.animation.load(data.animation);\n if (data.value !== undefined) {\n this.value = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.value);\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/gradient/dist/browser/Options/Classes/GradientColorOpacity.js?\n}");
|
|
77
|
+
|
|
78
|
+
/***/ },
|
|
79
|
+
|
|
80
|
+
/***/ "../../updaters/gradient/dist/browser/Options/Classes/GradientColorOpacityAnimation.js"
|
|
81
|
+
/*!*********************************************************************************************!*\
|
|
82
|
+
!*** ../../updaters/gradient/dist/browser/Options/Classes/GradientColorOpacityAnimation.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 */ GradientColorOpacityAnimation: () => (/* binding */ GradientColorOpacityAnimation)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass GradientColorOpacityAnimation {\n constructor() {\n this.count = 0;\n this.enable = false;\n this.speed = 0;\n this.decay = 0;\n this.delay = 0;\n this.sync = false;\n this.startValue = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.StartValueType.random;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.count !== undefined) {\n this.count = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.count);\n }\n if (data.enable !== undefined) {\n this.enable = data.enable;\n }\n if (data.speed !== undefined) {\n this.speed = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.speed);\n }\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n if (data.startValue !== undefined) {\n this.startValue = data.startValue;\n }\n if (data.decay !== undefined) {\n this.decay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.decay);\n }\n if (data.delay !== undefined) {\n this.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.delay);\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/gradient/dist/browser/Options/Classes/GradientColorOpacityAnimation.js?\n}");
|
|
87
|
+
|
|
88
|
+
/***/ },
|
|
89
|
+
|
|
90
|
+
/***/ "../../updaters/gradient/dist/browser/Utils.js"
|
|
91
|
+
/*!*****************************************************!*\
|
|
92
|
+
!*** ../../updaters/gradient/dist/browser/Utils.js ***!
|
|
93
|
+
\*****************************************************/
|
|
94
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
95
|
+
|
|
96
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ updateGradient: () => (/* binding */ updateGradient)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nfunction updateGradient(particle, delta) {\n const {\n gradient\n } = particle;\n if (!gradient) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, gradient.angle, false, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.none, delta);\n for (const color of gradient.colors) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateColor)(color.value, delta);\n if (color.opacity) {\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, color.opacity, true, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.DestroyType.none, delta);\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/gradient/dist/browser/Utils.js?\n}");
|
|
97
|
+
|
|
98
|
+
/***/ }
|
|
99
|
+
|
|
100
|
+
}]);
|
|
@@ -0,0 +1,30 @@
|
|
|
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-alpha.1
|
|
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([["updaters_gradient_dist_browser_index_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/gradient/dist/browser/index.js"
|
|
21
|
+
/*!*****************************************************!*\
|
|
22
|
+
!*** ../../updaters/gradient/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 */ loadGradientUpdater: () => (/* binding */ loadGradientUpdater)\n/* harmony export */ });\nfunction loadGradientUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.1\");\n engine.register(e => {\n e.addParticleUpdater(\"gradient\", async () => {\n const {\n GradientUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_gradient_dist_browser_GradientUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./GradientUpdater.js */ \"../../updaters/gradient/dist/browser/GradientUpdater.js\"));\n return new GradientUpdater(e);\n });\n });\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/gradient/dist/browser/index.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -0,0 +1,70 @@
|
|
|
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-alpha.1
|
|
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([["updaters_life_dist_browser_LifeUpdater_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/life/dist/browser/LifeUpdater.js"
|
|
21
|
+
/*!*******************************************************!*\
|
|
22
|
+
!*** ../../updaters/life/dist/browser/LifeUpdater.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 */ LifeUpdater: () => (/* binding */ LifeUpdater)\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 _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Life.js */ \"../../updaters/life/dist/browser/Options/Classes/Life.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/life/dist/browser/Utils.js\");\n\n\n\nconst noTime = 0,\n identity = 1,\n infiniteValue = -1;\nclass LifeUpdater {\n constructor(container) {\n this.container = container;\n }\n init(particle) {\n const container = this.container,\n particlesOptions = particle.options,\n lifeOptions = particlesOptions.life;\n if (!lifeOptions) {\n return;\n }\n particle.life = {\n delay: container.retina.reduceFactor ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * (lifeOptions.delay.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)()) / container.retina.reduceFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds : noTime,\n delayTime: noTime,\n duration: container.retina.reduceFactor ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * (lifeOptions.duration.sync ? identity : (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)()) / container.retina.reduceFactor * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds : noTime,\n time: noTime,\n count: lifeOptions.count\n };\n if (particle.life.duration <= noTime) {\n particle.life.duration = infiniteValue;\n }\n if (particle.life.count <= noTime) {\n particle.life.count = infiniteValue;\n }\n particle.spawning = particle.life.delay > noTime;\n }\n isEnabled(particle) {\n return !particle.destroyed;\n }\n loadOptions(options, ...sources) {\n options.life ??= new _Options_Classes_Life_js__WEBPACK_IMPORTED_MODULE_1__.Life();\n for (const source of sources) {\n options.life.load(source?.life);\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.life) {\n return;\n }\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_2__.updateLife)(particle, delta, this.container.canvas.size);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/life/dist/browser/LifeUpdater.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../updaters/life/dist/browser/Options/Classes/Life.js"
|
|
31
|
+
/*!****************************************************************!*\
|
|
32
|
+
!*** ../../updaters/life/dist/browser/Options/Classes/Life.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 */ Life: () => (/* binding */ Life)\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 _LifeDelay_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./LifeDelay.js */ \"../../updaters/life/dist/browser/Options/Classes/LifeDelay.js\");\n/* harmony import */ var _LifeDuration_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LifeDuration.js */ \"../../updaters/life/dist/browser/Options/Classes/LifeDuration.js\");\n\n\n\nclass Life {\n constructor() {\n this.count = 0;\n this.delay = new _LifeDelay_js__WEBPACK_IMPORTED_MODULE_1__.LifeDelay();\n this.duration = new _LifeDuration_js__WEBPACK_IMPORTED_MODULE_2__.LifeDuration();\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n if (data.count !== undefined) {\n this.count = data.count;\n }\n this.delay.load(data.delay);\n this.duration.load(data.duration);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/life/dist/browser/Options/Classes/Life.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ },
|
|
39
|
+
|
|
40
|
+
/***/ "../../updaters/life/dist/browser/Options/Classes/LifeDelay.js"
|
|
41
|
+
/*!*********************************************************************!*\
|
|
42
|
+
!*** ../../updaters/life/dist/browser/Options/Classes/LifeDelay.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 */ LifeDelay: () => (/* binding */ LifeDelay)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass LifeDelay extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.sync = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n super.load(data);\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/life/dist/browser/Options/Classes/LifeDelay.js?\n}");
|
|
47
|
+
|
|
48
|
+
/***/ },
|
|
49
|
+
|
|
50
|
+
/***/ "../../updaters/life/dist/browser/Options/Classes/LifeDuration.js"
|
|
51
|
+
/*!************************************************************************!*\
|
|
52
|
+
!*** ../../updaters/life/dist/browser/Options/Classes/LifeDuration.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 */ LifeDuration: () => (/* binding */ LifeDuration)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass LifeDuration extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.sync = false;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n super.load(data);\n if (data.sync !== undefined) {\n this.sync = data.sync;\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/life/dist/browser/Options/Classes/LifeDuration.js?\n}");
|
|
57
|
+
|
|
58
|
+
/***/ },
|
|
59
|
+
|
|
60
|
+
/***/ "../../updaters/life/dist/browser/Utils.js"
|
|
61
|
+
/*!*************************************************!*\
|
|
62
|
+
!*** ../../updaters/life/dist/browser/Utils.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 */ updateLife: () => (/* binding */ updateLife)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst noTime = 0,\n infiniteValue = -1,\n noLife = 0,\n minCanvasSize = 0;\nfunction updateLife(particle, delta, canvasSize) {\n if (!particle.life) {\n return;\n }\n const life = particle.life;\n let justSpawned = false;\n if (particle.spawning) {\n life.delayTime += delta.value;\n if (life.delayTime >= particle.life.delay) {\n justSpawned = true;\n particle.spawning = false;\n life.delayTime = noTime;\n life.time = noTime;\n } else {\n return;\n }\n }\n if (life.duration === infiniteValue) {\n return;\n }\n if (justSpawned) {\n life.time = noTime;\n } else {\n life.time += delta.value;\n }\n if (life.time < life.duration) {\n return;\n }\n life.time = noTime;\n if (particle.life.count > noLife) {\n particle.life.count--;\n }\n if (particle.life.count === noLife) {\n particle.destroy();\n return;\n }\n const widthRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minCanvasSize, canvasSize.width),\n heightRange = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(minCanvasSize, canvasSize.width);\n particle.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(widthRange);\n particle.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)(heightRange);\n particle.spawning = true;\n life.delayTime = noTime;\n life.time = noTime;\n particle.reset();\n const lifeOptions = particle.options.life;\n if (lifeOptions) {\n life.delay = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.delay.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n life.duration = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(lifeOptions.duration.value) * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.millisecondsToSeconds;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/life/dist/browser/Utils.js?\n}");
|
|
67
|
+
|
|
68
|
+
/***/ }
|
|
69
|
+
|
|
70
|
+
}]);
|
|
@@ -0,0 +1,30 @@
|
|
|
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-alpha.1
|
|
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([["updaters_life_dist_browser_index_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/life/dist/browser/index.js"
|
|
21
|
+
/*!*************************************************!*\
|
|
22
|
+
!*** ../../updaters/life/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 */ loadLifeUpdater: () => (/* binding */ loadLifeUpdater)\n/* harmony export */ });\nfunction loadLifeUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.1\");\n engine.register(e => {\n e.addParticleUpdater(\"life\", async container => {\n const {\n LifeUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_life_dist_browser_LifeUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./LifeUpdater.js */ \"../../updaters/life/dist/browser/LifeUpdater.js\"));\n return new LifeUpdater(container);\n });\n });\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/life/dist/browser/index.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -0,0 +1,30 @@
|
|
|
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-alpha.1
|
|
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([["updaters_opacity_dist_browser_OpacityUpdater_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/opacity/dist/browser/OpacityUpdater.js"
|
|
21
|
+
/*!*************************************************************!*\
|
|
22
|
+
!*** ../../updaters/opacity/dist/browser/OpacityUpdater.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 */ OpacityUpdater: () => (/* binding */ OpacityUpdater)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass OpacityUpdater {\n constructor(container) {\n this.container = container;\n }\n init(particle) {\n const opacityOptions = particle.options.opacity,\n pxRatio = 1;\n particle.opacity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.initParticleNumericAnimationValue)(opacityOptions, pxRatio);\n const opacityAnimation = opacityOptions.animation;\n if (opacityAnimation.enable) {\n particle.opacity.velocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(opacityAnimation.speed) / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.percentDenominator * this.container.retina.reduceFactor;\n if (!opacityAnimation.sync) {\n particle.opacity.velocity *= (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)();\n }\n }\n }\n isEnabled(particle) {\n const none = 0;\n return !particle.destroyed && !particle.spawning && !!particle.opacity && particle.opacity.enable && ((particle.opacity.maxLoops ?? none) <= none || (particle.opacity.maxLoops ?? none) > none && (particle.opacity.loops ?? none) < (particle.opacity.maxLoops ?? none));\n }\n reset(particle) {\n if (particle.opacity) {\n particle.opacity.time = 0;\n particle.opacity.loops = 0;\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle) || !particle.opacity) {\n return;\n }\n (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.updateAnimation)(particle, particle.opacity, true, particle.options.opacity.animation.destroy, delta);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/opacity/dist/browser/OpacityUpdater.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -0,0 +1,30 @@
|
|
|
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-alpha.1
|
|
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([["updaters_opacity_dist_browser_index_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/opacity/dist/browser/index.js"
|
|
21
|
+
/*!****************************************************!*\
|
|
22
|
+
!*** ../../updaters/opacity/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 */ loadOpacityUpdater: () => (/* binding */ loadOpacityUpdater)\n/* harmony export */ });\nfunction loadOpacityUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.1\");\n engine.register(e => {\n e.addParticleUpdater(\"opacity\", async container => {\n const {\n OpacityUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_opacity_dist_browser_OpacityUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./OpacityUpdater.js */ \"../../updaters/opacity/dist/browser/OpacityUpdater.js\"));\n return new OpacityUpdater(container);\n });\n });\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/opacity/dist/browser/index.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -0,0 +1,70 @@
|
|
|
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-alpha.1
|
|
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([["updaters_orbit_dist_browser_OrbitUpdater_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/orbit/dist/browser/Enums.js"
|
|
21
|
+
/*!**************************************************!*\
|
|
22
|
+
!*** ../../updaters/orbit/dist/browser/Enums.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 */ OrbitType: () => (/* binding */ OrbitType)\n/* harmony export */ });\nvar OrbitType;\n(function (OrbitType) {\n OrbitType[\"front\"] = \"front\";\n OrbitType[\"back\"] = \"back\";\n})(OrbitType || (OrbitType = {}));\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/orbit/dist/browser/Enums.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../updaters/orbit/dist/browser/Options/Classes/Orbit.js"
|
|
31
|
+
/*!******************************************************************!*\
|
|
32
|
+
!*** ../../updaters/orbit/dist/browser/Options/Classes/Orbit.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 */ Orbit: () => (/* binding */ Orbit)\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 _OrbitRotation_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OrbitRotation.js */ \"../../updaters/orbit/dist/browser/Options/Classes/OrbitRotation.js\");\n\n\nclass Orbit {\n constructor() {\n this.animation = new _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.AnimationOptions();\n this.enable = false;\n this.opacity = 1;\n this.rotation = new _OrbitRotation_js__WEBPACK_IMPORTED_MODULE_1__.OrbitRotation();\n this.width = 1;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n this.animation.load(data.animation);\n this.rotation.load(data.rotation);\n if (data.enable !== undefined) {\n this.enable = data.enable;\n }\n if (data.opacity !== undefined) {\n this.opacity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.opacity);\n }\n if (data.width !== undefined) {\n this.width = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.width);\n }\n if (data.radius !== undefined) {\n this.radius = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.setRangeValue)(data.radius);\n }\n if (data.color !== undefined) {\n this.color = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OptionsColor.create(this.color, data.color);\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/orbit/dist/browser/Options/Classes/Orbit.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ },
|
|
39
|
+
|
|
40
|
+
/***/ "../../updaters/orbit/dist/browser/Options/Classes/OrbitRotation.js"
|
|
41
|
+
/*!**************************************************************************!*\
|
|
42
|
+
!*** ../../updaters/orbit/dist/browser/Options/Classes/OrbitRotation.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 */ OrbitRotation: () => (/* binding */ OrbitRotation)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nclass OrbitRotation extends _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ValueWithRandom {\n constructor() {\n super();\n this.value = 45;\n }\n load(data) {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isNull)(data)) {\n return;\n }\n super.load(data);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/orbit/dist/browser/Options/Classes/OrbitRotation.js?\n}");
|
|
47
|
+
|
|
48
|
+
/***/ },
|
|
49
|
+
|
|
50
|
+
/***/ "../../updaters/orbit/dist/browser/OrbitUpdater.js"
|
|
51
|
+
/*!*********************************************************!*\
|
|
52
|
+
!*** ../../updaters/orbit/dist/browser/OrbitUpdater.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 */ OrbitUpdater: () => (/* binding */ OrbitUpdater)\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 _Options_Classes_Orbit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Options/Classes/Orbit.js */ \"../../updaters/orbit/dist/browser/Options/Classes/Orbit.js\");\n/* harmony import */ var _Enums_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Enums.js */ \"../../updaters/orbit/dist/browser/Enums.js\");\n/* harmony import */ var _Utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/orbit/dist/browser/Utils.js\");\n\n\n\n\nconst defaultOrbitSpeed = 0,\n halfPI = Math.PI * _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.half,\n piAndAHalf = Math.PI + halfPI,\n startAngle = 0,\n defaultWidth = 1,\n defaultRotation = 0;\nclass OrbitUpdater {\n constructor(engine, container) {\n this._engine = engine;\n this._container = container;\n }\n afterDraw(particle) {\n const orbitOptions = particle.options.orbit;\n if (orbitOptions?.enable) {\n this.drawOrbit(particle, _Enums_js__WEBPACK_IMPORTED_MODULE_2__.OrbitType.front);\n }\n }\n beforeDraw(particle) {\n const orbitOptions = particle.options.orbit;\n if (orbitOptions?.enable) {\n this.drawOrbit(particle, _Enums_js__WEBPACK_IMPORTED_MODULE_2__.OrbitType.back);\n }\n }\n drawOrbit(particle, type) {\n const container = this._container;\n let start, end;\n switch (type) {\n case _Enums_js__WEBPACK_IMPORTED_MODULE_2__.OrbitType.back:\n start = halfPI;\n end = piAndAHalf;\n break;\n case _Enums_js__WEBPACK_IMPORTED_MODULE_2__.OrbitType.front:\n start = piAndAHalf;\n end = halfPI;\n break;\n default:\n start = startAngle;\n end = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.doublePI;\n }\n container.canvas.draw(ctx => {\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_3__.drawEllipse)(ctx, particle, particle.orbitColor ?? particle.getFillColor(), particle.retina.orbitRadius ?? container.retina.orbitRadius ?? particle.getRadius(), particle.orbitOpacity ?? _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.defaultOpacity, particle.orbitWidth ?? defaultWidth, (particle.orbitRotation ?? defaultRotation) * container.retina.pixelRatio, start, end);\n });\n }\n init(particle) {\n const container = this._container,\n particlesOptions = particle.options,\n orbitOptions = particlesOptions.orbit;\n if (!orbitOptions?.enable) {\n return;\n }\n particle.orbitRotation = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(orbitOptions.rotation.value);\n particle.orbitColor = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.rangeColorToHsl)(this._engine, orbitOptions.color);\n particle.retina.orbitRadius = orbitOptions.radius !== undefined ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(orbitOptions.radius) * container.retina.pixelRatio : undefined;\n container.retina.orbitRadius = particle.retina.orbitRadius;\n particle.orbitAnimationSpeed = orbitOptions.animation.enable ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(orbitOptions.animation.speed) : defaultOrbitSpeed;\n particle.orbitWidth = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(orbitOptions.width);\n particle.orbitOpacity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(orbitOptions.opacity);\n }\n isEnabled(particle) {\n const orbitAnimations = particle.options.orbit?.animation;\n return !particle.destroyed && !particle.spawning && !!orbitAnimations?.enable;\n }\n loadOptions(options, ...sources) {\n options.orbit ??= new _Options_Classes_Orbit_js__WEBPACK_IMPORTED_MODULE_1__.Orbit();\n for (const source of sources) {\n options.orbit.load(source?.orbit);\n }\n }\n update(particle, delta) {\n if (!this.isEnabled(particle)) {\n return;\n }\n particle.orbitRotation ??= defaultRotation;\n particle.orbitRotation += (particle.orbitAnimationSpeed ?? defaultOrbitSpeed / _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.doublePI) * delta.factor;\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/orbit/dist/browser/OrbitUpdater.js?\n}");
|
|
57
|
+
|
|
58
|
+
/***/ },
|
|
59
|
+
|
|
60
|
+
/***/ "../../updaters/orbit/dist/browser/Utils.js"
|
|
61
|
+
/*!**************************************************!*\
|
|
62
|
+
!*** ../../updaters/orbit/dist/browser/Utils.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 */ drawEllipse: () => (/* binding */ drawEllipse)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minWidth = 0,\n half = 0.5,\n double = 2;\nfunction drawEllipse(context, particle, fillColorValue, radius, opacity, width, rotation, start, end) {\n if (width <= minWidth) {\n return;\n }\n const pos = particle.getPosition(),\n {\n container\n } = particle;\n if (fillColorValue) {\n context.strokeStyle = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getStyleFromHsl)(fillColorValue, container.hdr, opacity);\n }\n context.lineWidth = width;\n const rotationRadian = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.degToRad)(rotation);\n context.beginPath();\n context.ellipse(pos.x, pos.y, radius * half, radius * double, rotationRadian, start, end);\n context.stroke();\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/orbit/dist/browser/Utils.js?\n}");
|
|
67
|
+
|
|
68
|
+
/***/ }
|
|
69
|
+
|
|
70
|
+
}]);
|
|
@@ -0,0 +1,30 @@
|
|
|
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-alpha.1
|
|
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([["updaters_orbit_dist_browser_index_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/orbit/dist/browser/index.js"
|
|
21
|
+
/*!**************************************************!*\
|
|
22
|
+
!*** ../../updaters/orbit/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 */ loadOrbitUpdater: () => (/* binding */ loadOrbitUpdater)\n/* harmony export */ });\nfunction loadOrbitUpdater(engine) {\n engine.checkVersion(\"4.0.0-alpha.1\");\n engine.register(e => {\n e.addParticleUpdater(\"orbit\", async container => {\n const {\n OrbitUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_orbit_dist_browser_OrbitUpdater_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./OrbitUpdater.js */ \"../../updaters/orbit/dist/browser/OrbitUpdater.js\"));\n return new OrbitUpdater(e, container);\n });\n });\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/orbit/dist/browser/index.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ }
|
|
29
|
+
|
|
30
|
+
}]);
|
|
@@ -0,0 +1,80 @@
|
|
|
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-alpha.1
|
|
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([["updaters_outModes_dist_browser_OutOfCanvasUpdater_js"],{
|
|
19
|
+
|
|
20
|
+
/***/ "../../updaters/outModes/dist/browser/BounceOutMode.js"
|
|
21
|
+
/*!*************************************************************!*\
|
|
22
|
+
!*** ../../updaters/outModes/dist/browser/BounceOutMode.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 */ BounceOutMode: () => (/* binding */ BounceOutMode)\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 _Utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Utils.js */ \"../../updaters/outModes/dist/browser/Utils.js\");\n\n\nclass BounceOutMode {\n constructor(container) {\n this.container = container;\n this.modes = [_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.bounce, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.split];\n }\n update(particle, direction, delta, outMode) {\n if (!this.modes.includes(outMode)) {\n return;\n }\n const container = this.container;\n let handled = false;\n for (const plugin of container.plugins.values()) {\n if (plugin.particleBounce !== undefined) {\n handled = plugin.particleBounce(particle, delta, direction);\n }\n if (handled) {\n break;\n }\n }\n if (handled) {\n return;\n }\n const pos = particle.getPosition(),\n offset = particle.offset,\n size = particle.getRadius(),\n bounds = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.calculateBounds)(pos, size),\n canvasSize = container.canvas.size;\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.bounceHorizontal)({\n particle,\n outMode,\n direction,\n bounds,\n canvasSize,\n offset,\n size\n });\n (0,_Utils_js__WEBPACK_IMPORTED_MODULE_1__.bounceVertical)({\n particle,\n outMode,\n direction,\n bounds,\n canvasSize,\n offset,\n size\n });\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/outModes/dist/browser/BounceOutMode.js?\n}");
|
|
27
|
+
|
|
28
|
+
/***/ },
|
|
29
|
+
|
|
30
|
+
/***/ "../../updaters/outModes/dist/browser/DestroyOutMode.js"
|
|
31
|
+
/*!**************************************************************!*\
|
|
32
|
+
!*** ../../updaters/outModes/dist/browser/DestroyOutMode.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 */ DestroyOutMode: () => (/* binding */ DestroyOutMode)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minVelocity = 0;\nclass DestroyOutMode {\n constructor(container) {\n this.container = container;\n this.modes = [_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy];\n }\n update(particle, direction, _delta, outMode) {\n if (!this.modes.includes(outMode)) {\n return;\n }\n const container = this.container;\n switch (particle.outType) {\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ParticleOutType.normal:\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ParticleOutType.outside:\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isPointInside)(particle.position, container.canvas.size, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin, particle.getRadius(), direction)) {\n return;\n }\n break;\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ParticleOutType.inside:\n {\n const {\n dx,\n dy\n } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(particle.position, particle.moveCenter),\n {\n x: vx,\n y: vy\n } = particle.velocity;\n if (vx < minVelocity && dx > particle.moveCenter.radius || vy < minVelocity && dy > particle.moveCenter.radius || vx >= minVelocity && dx < -particle.moveCenter.radius || vy >= minVelocity && dy < -particle.moveCenter.radius) {\n return;\n }\n break;\n }\n }\n container.particles.remove(particle, particle.group, true);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/outModes/dist/browser/DestroyOutMode.js?\n}");
|
|
37
|
+
|
|
38
|
+
/***/ },
|
|
39
|
+
|
|
40
|
+
/***/ "../../updaters/outModes/dist/browser/NoneOutMode.js"
|
|
41
|
+
/*!***********************************************************!*\
|
|
42
|
+
!*** ../../updaters/outModes/dist/browser/NoneOutMode.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 */ NoneOutMode: () => (/* binding */ NoneOutMode)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minVelocity = 0;\nclass NoneOutMode {\n constructor(container) {\n this.container = container;\n this.modes = [_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.none];\n }\n update(particle, direction, _delta, outMode) {\n if (!this.modes.includes(outMode)) {\n return;\n }\n if ((particle.options.move.distance.horizontal && (direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.left || direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.right)) ?? (particle.options.move.distance.vertical && (direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.top || direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.bottom))) {\n return;\n }\n const gravityOptions = particle.options.move.gravity,\n container = this.container,\n canvasSize = container.canvas.size,\n pRadius = particle.getRadius();\n if (!gravityOptions.enable) {\n if (particle.velocity.y > minVelocity && particle.position.y <= canvasSize.height + pRadius || particle.velocity.y < minVelocity && particle.position.y >= -pRadius || particle.velocity.x > minVelocity && particle.position.x <= canvasSize.width + pRadius || particle.velocity.x < minVelocity && particle.position.x >= -pRadius) {\n return;\n }\n if (!(0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isPointInside)(particle.position, container.canvas.size, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin, pRadius, direction)) {\n container.particles.remove(particle);\n }\n } else {\n const position = particle.position;\n if (!gravityOptions.inverse && position.y > canvasSize.height + pRadius && direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.bottom || gravityOptions.inverse && position.y < -pRadius && direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.top) {\n container.particles.remove(particle);\n }\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/outModes/dist/browser/NoneOutMode.js?\n}");
|
|
47
|
+
|
|
48
|
+
/***/ },
|
|
49
|
+
|
|
50
|
+
/***/ "../../updaters/outModes/dist/browser/OutOfCanvasUpdater.js"
|
|
51
|
+
/*!******************************************************************!*\
|
|
52
|
+
!*** ../../updaters/outModes/dist/browser/OutOfCanvasUpdater.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 */ OutOfCanvasUpdater: () => (/* binding */ OutOfCanvasUpdater)\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 _BounceOutMode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BounceOutMode.js */ \"../../updaters/outModes/dist/browser/BounceOutMode.js\");\n/* harmony import */ var _DestroyOutMode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DestroyOutMode.js */ \"../../updaters/outModes/dist/browser/DestroyOutMode.js\");\n/* harmony import */ var _NoneOutMode_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NoneOutMode.js */ \"../../updaters/outModes/dist/browser/NoneOutMode.js\");\n/* harmony import */ var _OutOutMode_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./OutOutMode.js */ \"../../updaters/outModes/dist/browser/OutOutMode.js\");\n\n\n\n\n\nconst checkOutMode = (outModes, outMode) => {\n return outModes.default === outMode || outModes.bottom === outMode || outModes.left === outMode || outModes.right === outMode || outModes.top === outMode;\n};\nclass OutOfCanvasUpdater {\n constructor(container) {\n this._addUpdaterIfMissing = (particle, outMode, getUpdater) => {\n const outModes = particle.options.move.outModes;\n if (!this.updaters.has(outMode) && checkOutMode(outModes, outMode)) {\n this.updaters.set(outMode, getUpdater(this.container));\n }\n };\n this._updateOutMode = (particle, delta, outMode, direction) => {\n for (const updater of this.updaters.values()) {\n updater.update(particle, direction, delta, outMode);\n }\n };\n this.container = container;\n this.updaters = new Map();\n }\n init(particle) {\n this._addUpdaterIfMissing(particle, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.bounce, container => new _BounceOutMode_js__WEBPACK_IMPORTED_MODULE_1__.BounceOutMode(container));\n this._addUpdaterIfMissing(particle, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.out, container => new _OutOutMode_js__WEBPACK_IMPORTED_MODULE_4__.OutOutMode(container));\n this._addUpdaterIfMissing(particle, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.destroy, container => new _DestroyOutMode_js__WEBPACK_IMPORTED_MODULE_2__.DestroyOutMode(container));\n this._addUpdaterIfMissing(particle, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.none, container => new _NoneOutMode_js__WEBPACK_IMPORTED_MODULE_3__.NoneOutMode(container));\n }\n isEnabled(particle) {\n return !particle.destroyed && !particle.spawning;\n }\n update(particle, delta) {\n const outModes = particle.options.move.outModes;\n this._updateOutMode(particle, delta, outModes.bottom ?? outModes.default, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.bottom);\n this._updateOutMode(particle, delta, outModes.left ?? outModes.default, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.left);\n this._updateOutMode(particle, delta, outModes.right ?? outModes.default, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.right);\n this._updateOutMode(particle, delta, outModes.top ?? outModes.default, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.top);\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/outModes/dist/browser/OutOfCanvasUpdater.js?\n}");
|
|
57
|
+
|
|
58
|
+
/***/ },
|
|
59
|
+
|
|
60
|
+
/***/ "../../updaters/outModes/dist/browser/OutOutMode.js"
|
|
61
|
+
/*!**********************************************************!*\
|
|
62
|
+
!*** ../../updaters/outModes/dist/browser/OutOutMode.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 */ OutOutMode: () => (/* binding */ OutOutMode)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minVelocity = 0,\n minDistance = 0;\nclass OutOutMode {\n constructor(container) {\n this.container = container;\n this.modes = [_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.out];\n }\n update(particle, direction, _delta, outMode) {\n if (!this.modes.includes(outMode)) {\n return;\n }\n const container = this.container;\n switch (particle.outType) {\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ParticleOutType.inside:\n {\n const {\n x: vx,\n y: vy\n } = particle.velocity;\n const circVec = _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin;\n circVec.length = particle.moveCenter.radius;\n circVec.angle = particle.velocity.angle + Math.PI;\n circVec.addTo(_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.create(particle.moveCenter));\n const {\n dx,\n dy\n } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(particle.position, circVec);\n if (vx <= minVelocity && dx >= minDistance || vy <= minVelocity && dy >= minDistance || vx >= minVelocity && dx <= minDistance || vy >= minVelocity && dy <= minDistance) {\n return;\n }\n particle.position.x = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)({\n min: 0,\n max: container.canvas.size.width\n }));\n particle.position.y = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)({\n min: 0,\n max: container.canvas.size.height\n }));\n const {\n dx: newDx,\n dy: newDy\n } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(particle.position, particle.moveCenter);\n particle.direction = Math.atan2(-newDy, -newDx);\n particle.velocity.angle = particle.direction;\n break;\n }\n default:\n {\n if ((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.isPointInside)(particle.position, container.canvas.size, _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.Vector.origin, particle.getRadius(), direction)) {\n return;\n }\n switch (particle.outType) {\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ParticleOutType.outside:\n {\n particle.position.x = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)({\n min: -particle.moveCenter.radius,\n max: particle.moveCenter.radius\n })) + particle.moveCenter.x;\n particle.position.y = Math.floor((0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.randomInRangeValue)({\n min: -particle.moveCenter.radius,\n max: particle.moveCenter.radius\n })) + particle.moveCenter.y;\n const {\n dx,\n dy\n } = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getDistances)(particle.position, particle.moveCenter);\n if (particle.moveCenter.radius) {\n particle.direction = Math.atan2(dy, dx);\n particle.velocity.angle = particle.direction;\n }\n break;\n }\n case _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.ParticleOutType.normal:\n {\n const warp = particle.options.move.warp,\n canvasSize = container.canvas.size,\n newPos = {\n bottom: canvasSize.height + particle.getRadius() + particle.offset.y,\n left: -particle.getRadius() - particle.offset.x,\n right: canvasSize.width + particle.getRadius() + particle.offset.x,\n top: -particle.getRadius() - particle.offset.y\n },\n sizeValue = particle.getRadius(),\n nextBounds = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.calculateBounds)(particle.position, sizeValue);\n if (direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.right && nextBounds.left > canvasSize.width + particle.offset.x) {\n particle.position.x = newPos.left;\n particle.initialPosition.x = particle.position.x;\n if (!warp) {\n particle.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * canvasSize.height;\n particle.initialPosition.y = particle.position.y;\n }\n } else if (direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.left && nextBounds.right < -particle.offset.x) {\n particle.position.x = newPos.right;\n particle.initialPosition.x = particle.position.x;\n if (!warp) {\n particle.position.y = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * canvasSize.height;\n particle.initialPosition.y = particle.position.y;\n }\n }\n if (direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.bottom && nextBounds.top > canvasSize.height + particle.offset.y) {\n if (!warp) {\n particle.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * canvasSize.width;\n particle.initialPosition.x = particle.position.x;\n }\n particle.position.y = newPos.top;\n particle.initialPosition.y = particle.position.y;\n } else if (direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.top && nextBounds.bottom < -particle.offset.y) {\n if (!warp) {\n particle.position.x = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRandom)() * canvasSize.width;\n particle.initialPosition.x = particle.position.x;\n }\n particle.position.y = newPos.bottom;\n particle.initialPosition.y = particle.position.y;\n }\n break;\n }\n }\n break;\n }\n }\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/outModes/dist/browser/OutOutMode.js?\n}");
|
|
67
|
+
|
|
68
|
+
/***/ },
|
|
69
|
+
|
|
70
|
+
/***/ "../../updaters/outModes/dist/browser/Utils.js"
|
|
71
|
+
/*!*****************************************************!*\
|
|
72
|
+
!*** ../../updaters/outModes/dist/browser/Utils.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 */ bounceHorizontal: () => (/* binding */ bounceHorizontal),\n/* harmony export */ bounceVertical: () => (/* binding */ bounceVertical)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst minVelocity = 0,\n boundsMin = 0;\nfunction bounceHorizontal(data) {\n if (data.outMode !== _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.bounce && data.outMode !== _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.split || data.direction !== _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.left && data.direction !== _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.right) {\n return;\n }\n if (data.bounds.right < boundsMin && data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.left) {\n data.particle.position.x = data.size + data.offset.x;\n } else if (data.bounds.left > data.canvasSize.width && data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.right) {\n data.particle.position.x = data.canvasSize.width - data.size - data.offset.x;\n }\n const velocity = data.particle.velocity.x;\n let bounced = false;\n if (data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.right && data.bounds.right >= data.canvasSize.width && velocity > minVelocity || data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.left && data.bounds.left <= boundsMin && velocity < minVelocity) {\n const newVelocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(data.particle.options.bounce.horizontal.value);\n data.particle.velocity.x *= -newVelocity;\n bounced = true;\n }\n if (!bounced) {\n return;\n }\n const minPos = data.offset.x + data.size;\n if (data.bounds.right >= data.canvasSize.width && data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.right) {\n data.particle.position.x = data.canvasSize.width - minPos;\n } else if (data.bounds.left <= boundsMin && data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.left) {\n data.particle.position.x = minPos;\n }\n if (data.outMode === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.split) {\n data.particle.destroy();\n }\n}\nfunction bounceVertical(data) {\n if (data.outMode !== _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.bounce && data.outMode !== _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.split || data.direction !== _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.bottom && data.direction !== _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.top) {\n return;\n }\n if (data.bounds.bottom < boundsMin && data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.top) {\n data.particle.position.y = data.size + data.offset.y;\n } else if (data.bounds.top > data.canvasSize.height && data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.bottom) {\n data.particle.position.y = data.canvasSize.height - data.size - data.offset.y;\n }\n const velocity = data.particle.velocity.y;\n let bounced = false;\n if (data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.bottom && data.bounds.bottom >= data.canvasSize.height && velocity > minVelocity || data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.top && data.bounds.top <= boundsMin && velocity < minVelocity) {\n const newVelocity = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(data.particle.options.bounce.vertical.value);\n data.particle.velocity.y *= -newVelocity;\n bounced = true;\n }\n if (!bounced) {\n return;\n }\n const minPos = data.offset.y + data.size;\n if (data.bounds.bottom >= data.canvasSize.height && data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.bottom) {\n data.particle.position.y = data.canvasSize.height - minPos;\n } else if (data.bounds.top <= boundsMin && data.direction === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutModeDirection.top) {\n data.particle.position.y = minPos;\n }\n if (data.outMode === _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.OutMode.split) {\n data.particle.destroy();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/all/../../updaters/outModes/dist/browser/Utils.js?\n}");
|
|
77
|
+
|
|
78
|
+
/***/ }
|
|
79
|
+
|
|
80
|
+
}]);
|