@tsparticles/shape-image 3.0.0-beta.1 → 3.0.0-beta.3
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/README.md +1 -1
- package/browser/ImageDrawer.js +2 -2
- package/cjs/ImageDrawer.js +2 -2
- package/esm/ImageDrawer.js +2 -2
- package/package.json +4 -4
- package/report.html +23 -5
- package/tsparticles.shape.image.js +10 -3
- package/tsparticles.shape.image.min.js +1 -1
- package/tsparticles.shape.image.min.js.LICENSE.txt +1 -1
- package/types/ImageDrawer.d.ts +3 -3
- package/umd/ImageDrawer.js +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@tsparticles/shape-image)
|
|
7
7
|
[](https://www.npmjs.com/package/@tsparticles/shape-image) [](https://github.com/sponsors/matteobruni)
|
|
8
8
|
|
|
9
|
-
[tsParticles](https://github.com/
|
|
9
|
+
[tsParticles](https://github.com/tsparticles/tsparticles) additional image shape.
|
|
10
10
|
|
|
11
11
|
## How to use it
|
|
12
12
|
|
package/browser/ImageDrawer.js
CHANGED
|
@@ -21,8 +21,8 @@ export class ImageDrawer {
|
|
|
21
21
|
}
|
|
22
22
|
this._engine.images.push(image);
|
|
23
23
|
}
|
|
24
|
-
draw(
|
|
25
|
-
const image = particle.image, element = image?.element;
|
|
24
|
+
draw(data) {
|
|
25
|
+
const { context, radius, particle, opacity, delta } = data, image = particle.image, element = image?.element;
|
|
26
26
|
if (!image) {
|
|
27
27
|
return;
|
|
28
28
|
}
|
package/cjs/ImageDrawer.js
CHANGED
|
@@ -24,8 +24,8 @@ class ImageDrawer {
|
|
|
24
24
|
}
|
|
25
25
|
this._engine.images.push(image);
|
|
26
26
|
}
|
|
27
|
-
draw(
|
|
28
|
-
const image = particle.image, element = image?.element;
|
|
27
|
+
draw(data) {
|
|
28
|
+
const { context, radius, particle, opacity, delta } = data, image = particle.image, element = image?.element;
|
|
29
29
|
if (!image) {
|
|
30
30
|
return;
|
|
31
31
|
}
|
package/esm/ImageDrawer.js
CHANGED
|
@@ -21,8 +21,8 @@ export class ImageDrawer {
|
|
|
21
21
|
}
|
|
22
22
|
this._engine.images.push(image);
|
|
23
23
|
}
|
|
24
|
-
draw(
|
|
25
|
-
const image = particle.image, element = image?.element;
|
|
24
|
+
draw(data) {
|
|
25
|
+
const { context, radius, particle, opacity, delta } = data, image = particle.image, element = image?.element;
|
|
26
26
|
if (!image) {
|
|
27
27
|
return;
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/shape-image",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.3",
|
|
4
4
|
"description": "tsParticles image shape",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/tsparticles/tsparticles.git",
|
|
9
9
|
"directory": "shapes/image"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"author": "Matteo Bruni <matteo.bruni@me.com>",
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"bugs": {
|
|
41
|
-
"url": "https://github.com/
|
|
41
|
+
"url": "https://github.com/tsparticles/tsparticles/issues"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"jsdelivr": "tsparticles.shape.image.min.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"./package.json": "./package.json"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@tsparticles/engine": "^3.0.0-beta.
|
|
62
|
+
"@tsparticles/engine": "^3.0.0-beta.3"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|