@tsparticles/plugin-trail 4.5.0 → 4.5.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/browser/index.js +1 -1
- package/browser/index.lazy.js +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.lazy.js +1 -1
- package/esm/index.js +1 -1
- package/esm/index.lazy.js +1 -1
- package/package.json +2 -2
- package/report.html +1 -1
- package/tsparticles.plugin.trail.js +2 -2
- package/tsparticles.plugin.trail.min.js +1 -1
package/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TrailPlugin } from "./TrailPlugin.js";
|
|
2
2
|
export async function loadTrailPlugin(engine) {
|
|
3
|
-
engine.checkVersion("4.5.
|
|
3
|
+
engine.checkVersion("4.5.1");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
|
|
6
6
|
});
|
package/browser/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadTrailPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.5.
|
|
2
|
+
engine.checkVersion("4.5.1");
|
|
3
3
|
await engine.pluginManager.register(async (e) => {
|
|
4
4
|
const { TrailPlugin } = await import("./TrailPlugin.js");
|
|
5
5
|
e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TrailPlugin } from "./TrailPlugin.js";
|
|
2
2
|
export async function loadTrailPlugin(engine) {
|
|
3
|
-
engine.checkVersion("4.5.
|
|
3
|
+
engine.checkVersion("4.5.1");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
|
|
6
6
|
});
|
package/cjs/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadTrailPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.5.
|
|
2
|
+
engine.checkVersion("4.5.1");
|
|
3
3
|
await engine.pluginManager.register(async (e) => {
|
|
4
4
|
const { TrailPlugin } = await import("./TrailPlugin.js");
|
|
5
5
|
e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TrailPlugin } from "./TrailPlugin.js";
|
|
2
2
|
export async function loadTrailPlugin(engine) {
|
|
3
|
-
engine.checkVersion("4.5.
|
|
3
|
+
engine.checkVersion("4.5.1");
|
|
4
4
|
await engine.pluginManager.register(e => {
|
|
5
5
|
e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
|
|
6
6
|
});
|
package/esm/index.lazy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function loadTrailPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.5.
|
|
2
|
+
engine.checkVersion("4.5.1");
|
|
3
3
|
await engine.pluginManager.register(async (e) => {
|
|
4
4
|
const { TrailPlugin } = await import("./TrailPlugin.js");
|
|
5
5
|
e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/plugin-trail",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"description": "tsParticles trail plugin",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"./package.json": "./package.json"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@tsparticles/engine": "4.5.
|
|
95
|
+
"@tsparticles/engine": "4.5.1"
|
|
96
96
|
},
|
|
97
97
|
"publishConfig": {
|
|
98
98
|
"access": "public"
|
package/report.html
CHANGED
|
@@ -5285,7 +5285,7 @@ var drawChart = (function (exports) {
|
|
|
5285
5285
|
</script>
|
|
5286
5286
|
<script>
|
|
5287
5287
|
/*<!--*/
|
|
5288
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.plugin.trail.js","children":[{"name":"dist/browser","children":[{"name":"Options/Classes","children":[{"uid":"
|
|
5288
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"tsparticles.plugin.trail.js","children":[{"name":"dist/browser","children":[{"name":"Options/Classes","children":[{"uid":"98586d84-1","name":"TrailFill.js"},{"uid":"98586d84-3","name":"Trail.js"}]},{"uid":"98586d84-5","name":"TrailPlugin.js"},{"uid":"98586d84-7","name":"index.js"},{"uid":"98586d84-9","name":"browser.js"},{"uid":"98586d84-11","name":"TrailPluginInstance.js"}]}]}],"isRoot":true},"nodeParts":{"98586d84-1":{"renderedLength":364,"gzipLength":0,"brotliLength":0,"metaUid":"98586d84-0"},"98586d84-3":{"renderedLength":432,"gzipLength":0,"brotliLength":0,"metaUid":"98586d84-2"},"98586d84-5":{"renderedLength":817,"gzipLength":0,"brotliLength":0,"metaUid":"98586d84-4"},"98586d84-7":{"renderedLength":224,"gzipLength":0,"brotliLength":0,"metaUid":"98586d84-6"},"98586d84-9":{"renderedLength":173,"gzipLength":0,"brotliLength":0,"metaUid":"98586d84-8"},"98586d84-11":{"renderedLength":2784,"gzipLength":0,"brotliLength":0,"metaUid":"98586d84-10"}},"nodeMetas":{"98586d84-0":{"id":"/dist/browser/Options/Classes/TrailFill.js","moduleParts":{"tsparticles.plugin.trail.js":"98586d84-1"},"imported":[{"uid":"98586d84-12"}],"importedBy":[{"uid":"98586d84-2"}]},"98586d84-2":{"id":"/dist/browser/Options/Classes/Trail.js","moduleParts":{"tsparticles.plugin.trail.js":"98586d84-3"},"imported":[{"uid":"98586d84-12"},{"uid":"98586d84-0"}],"importedBy":[{"uid":"98586d84-4"}]},"98586d84-4":{"id":"/dist/browser/TrailPlugin.js","moduleParts":{"tsparticles.plugin.trail.js":"98586d84-5"},"imported":[{"uid":"98586d84-2"},{"uid":"98586d84-10","dynamic":true}],"importedBy":[{"uid":"98586d84-6"}]},"98586d84-6":{"id":"/dist/browser/index.js","moduleParts":{"tsparticles.plugin.trail.js":"98586d84-7"},"imported":[{"uid":"98586d84-4"}],"importedBy":[{"uid":"98586d84-8"}]},"98586d84-8":{"id":"/dist/browser/browser.js","moduleParts":{"tsparticles.plugin.trail.js":"98586d84-9"},"imported":[{"uid":"98586d84-6"}],"importedBy":[],"isEntry":true},"98586d84-10":{"id":"/dist/browser/TrailPluginInstance.js","moduleParts":{"tsparticles.plugin.trail.js":"98586d84-11"},"imported":[{"uid":"98586d84-12"}],"importedBy":[{"uid":"98586d84-4"}]},"98586d84-12":{"id":"@tsparticles/engine","moduleParts":{},"imported":[],"importedBy":[{"uid":"98586d84-2"},{"uid":"98586d84-10"},{"uid":"98586d84-0"}],"isExternal":true}},"env":{"rollup":"4.66.0"},"options":{"gzip":false,"brotli":false,"sourcemap":false}};
|
|
5289
5289
|
|
|
5290
5290
|
const run = () => {
|
|
5291
5291
|
const width = window.innerWidth;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this);
|
|
2
2
|
(function (g) {
|
|
3
|
-
/* Plugin v4.5.
|
|
3
|
+
/* Plugin v4.5.1 */
|
|
4
4
|
g.__tsParticlesInternals = g.__tsParticlesInternals || {};
|
|
5
5
|
g.__tsParticlesInternals.plugins = g.__tsParticlesInternals.plugins || {};
|
|
6
6
|
(function (exports, engine) {
|
|
@@ -62,7 +62,7 @@ g.__tsParticlesInternals.plugins = g.__tsParticlesInternals.plugins || {};
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
async function loadTrailPlugin(engine) {
|
|
65
|
-
engine.checkVersion("4.5.
|
|
65
|
+
engine.checkVersion("4.5.1");
|
|
66
66
|
await engine.pluginManager.register(e => {
|
|
67
67
|
e.pluginManager.addPlugin(new TrailPlugin(e.pluginManager));
|
|
68
68
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var s="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,s){return s in t||(t[s]={}),t[s]}})}:function(t){return t};t.__tsParticlesInternals.bundles=s(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=s(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=s(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=s(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=s(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=s(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=s(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=s(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=s(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=s(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=s(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=s(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=s(t.__tsParticlesInternals.path)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},function(t,s){"use strict";class e{color;image;load(t){s.isNull(t)||(void 0!==t.color&&(this.color=s.OptionsColor.create(this.color,t.color)),s.loadProperty(this,"image",t.image))}}class n{enable=!1;fill=new e;length=10;load(t){s.isNull(t)||(s.loadProperty(this,"enable",t.enable),void 0!==t.fill&&this.fill.load(t.fill),s.loadProperty(this,"length",t.length))}}class a{id="trail";#t;constructor(t){this.#t=t}async getPlugin(t){const{TrailPluginInstance:s}=await Promise.resolve().then(function(){return i});return new s(this.#t,t)}loadOptions(t,s,e){if(!this.needsPlugin())return;let a=s.trail;a?.load||(s.trail=a=new n),a.load(e?.trail)}needsPlugin(){return!0}}async function l(t){t.checkVersion("4.5.
|
|
1
|
+
!function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var s="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,s){return s in t||(t[s]={}),t[s]}})}:function(t){return t};t.__tsParticlesInternals.bundles=s(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=s(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=s(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=s(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=s(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=s(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=s(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=s(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=s(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=s(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=s(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=s(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=s(t.__tsParticlesInternals.path)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},function(t,s){"use strict";class e{color;image;load(t){s.isNull(t)||(void 0!==t.color&&(this.color=s.OptionsColor.create(this.color,t.color)),s.loadProperty(this,"image",t.image))}}class n{enable=!1;fill=new e;length=10;load(t){s.isNull(t)||(s.loadProperty(this,"enable",t.enable),void 0!==t.fill&&this.fill.load(t.fill),s.loadProperty(this,"length",t.length))}}class a{id="trail";#t;constructor(t){this.#t=t}async getPlugin(t){const{TrailPluginInstance:s}=await Promise.resolve().then(function(){return i});return new s(this.#t,t)}loadOptions(t,s,e){if(!this.needsPlugin())return;let a=s.trail;a?.load||(s.trail=a=new n),a.load(e?.trail)}needsPlugin(){return!0}}async function l(t){t.checkVersion("4.5.1"),await t.pluginManager.register(t=>{t.pluginManager.addPlugin(new a(t.pluginManager))})}const r=globalThis;r.__tsParticlesInternals=r.__tsParticlesInternals??{},r.loadTrailPlugin=l;var i=Object.freeze({__proto__:null,TrailPluginInstance:class{layer=s.DrawLayer.PluginContent;#s;#t;#e;constructor(t,s){this.#s=s,this.#t=t}canvasClear(){const t=this.#s,e=t.actualOptions.trail,n=this.#e;if(!e?.enable||!n||e.length<=0)return!1;let a=!1;const l=t.canvas;return n.color?(l.render.paintBase(s.getStyleFromRgb(n.color,t.hdr,n.opacity,t.peakNits,t.hdrMode)),a=!0):n.image&&(l.render.paintImage(n.image,n.opacity),a=!0),a}async init(){try{await this.#n()}catch(t){s.getLogger().error(t)}}async#n(){const t=this.#s.actualOptions.trail;if(!t?.enable)return;const e=t.fill,n=s.inverseFactorNumerator/t.length;if(e.color){const t=s.rangeColorToRgb(this.#t,e.color);if(!t)return;this.#e={color:{...t},opacity:n}}else await new Promise((t,a)=>{if(!e.image)return;const l=s.safeDocument().createElement("img");l.addEventListener("load",()=>{this.#e={image:l,opacity:n},t()}),l.addEventListener("error",t=>{s.getLogger().error(t),a(new Error("Error loading image"))}),l.src=e.image})}}});t.loadTrailPlugin=l}(t.__tsParticlesInternals.plugins.trail=t.__tsParticlesInternals.plugins.trail||{},t.__tsParticlesInternals.engine)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:self),Object.assign(globalThis.window||globalThis,{loadTrailPlugin:(globalThis.__tsParticlesInternals.plugins.trail||{}).loadTrailPlugin});
|