@tsparticles/effect-trail 4.0.0-alpha.4 → 4.0.0-alpha.8
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/593.min.js.LICENSE.txt +1 -1
- package/browser/TrailDrawer.js +1 -3
- package/browser/index.js +3 -3
- package/cjs/TrailDrawer.js +1 -3
- package/cjs/index.js +3 -3
- package/dist_browser_TrailDrawer_js.js +1 -1
- package/esm/TrailDrawer.js +1 -3
- package/esm/index.js +3 -3
- package/package.json +2 -2
- package/report.html +3 -3
- package/tsparticles.effect.trail.js +2 -2
- package/tsparticles.effect.trail.min.js +1 -1
- package/tsparticles.effect.trail.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/umd/TrailDrawer.js +1 -3
- package/umd/index.js +3 -3
package/593.min.js.LICENSE.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Trail Shape v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Trail Shape v4.0.0-alpha.8 by Matteo Bruni */
|
package/browser/TrailDrawer.js
CHANGED
|
@@ -41,9 +41,7 @@ export class TrailDrawer {
|
|
|
41
41
|
if (!step) {
|
|
42
42
|
continue;
|
|
43
43
|
}
|
|
44
|
-
const position = step.position, stepTransformData = particle.trailTransform
|
|
45
|
-
? (step.transformData ?? defaultTransform)
|
|
46
|
-
: defaultTransform;
|
|
44
|
+
const position = step.position, stepTransformData = particle.trailTransform ? (step.transformData ?? defaultTransform) : defaultTransform;
|
|
47
45
|
context.setTransform(stepTransformData.a, stepTransformData.b, stepTransformData.c, stepTransformData.d, position.x, position.y);
|
|
48
46
|
context.beginPath();
|
|
49
47
|
context.moveTo(lastPos.x - position.x, lastPos.y - position.y);
|
package/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadTrailEffect(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadTrailEffect(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { TrailDrawer } = await import("./TrailDrawer.js");
|
|
5
5
|
e.addEffect("trail", new TrailDrawer());
|
|
6
6
|
});
|
package/cjs/TrailDrawer.js
CHANGED
|
@@ -41,9 +41,7 @@ export class TrailDrawer {
|
|
|
41
41
|
if (!step) {
|
|
42
42
|
continue;
|
|
43
43
|
}
|
|
44
|
-
const position = step.position, stepTransformData = particle.trailTransform
|
|
45
|
-
? (step.transformData ?? defaultTransform)
|
|
46
|
-
: defaultTransform;
|
|
44
|
+
const position = step.position, stepTransformData = particle.trailTransform ? (step.transformData ?? defaultTransform) : defaultTransform;
|
|
47
45
|
context.setTransform(stepTransformData.a, stepTransformData.b, stepTransformData.c, stepTransformData.d, position.x, position.y);
|
|
48
46
|
context.beginPath();
|
|
49
47
|
context.moveTo(lastPos.x - position.x, lastPos.y - position.y);
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadTrailEffect(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadTrailEffect(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { TrailDrawer } = await import("./TrailDrawer.js");
|
|
5
5
|
e.addEffect("trail", new TrailDrawer());
|
|
6
6
|
});
|
package/esm/TrailDrawer.js
CHANGED
|
@@ -41,9 +41,7 @@ export class TrailDrawer {
|
|
|
41
41
|
if (!step) {
|
|
42
42
|
continue;
|
|
43
43
|
}
|
|
44
|
-
const position = step.position, stepTransformData = particle.trailTransform
|
|
45
|
-
? (step.transformData ?? defaultTransform)
|
|
46
|
-
: defaultTransform;
|
|
44
|
+
const position = step.position, stepTransformData = particle.trailTransform ? (step.transformData ?? defaultTransform) : defaultTransform;
|
|
47
45
|
context.setTransform(stepTransformData.a, stepTransformData.b, stepTransformData.c, stepTransformData.d, position.x, position.y);
|
|
48
46
|
context.beginPath();
|
|
49
47
|
context.moveTo(lastPos.x - position.x, lastPos.y - position.y);
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadTrailEffect(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadTrailEffect(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { TrailDrawer } = await import("./TrailDrawer.js");
|
|
5
5
|
e.addEffect("trail", new TrailDrawer());
|
|
6
6
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/effect-trail",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.8",
|
|
4
4
|
"description": "tsParticles trail effect",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"./package.json": "./package.json"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@tsparticles/engine": "4.0.0-alpha.
|
|
103
|
+
"@tsparticles/engine": "4.0.0-alpha.8"
|
|
104
104
|
},
|
|
105
105
|
"publishConfig": {
|
|
106
106
|
"access": "public"
|