@tsparticles/shape-spiral 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/SpiralDrawer.js +2 -1
- package/cjs/SpiralDrawer.js +2 -1
- package/esm/SpiralDrawer.js +2 -1
- package/package.json +4 -4
- package/report.html +23 -5
- package/tsparticles.shape.spiral.js +7 -2
- package/tsparticles.shape.spiral.min.js +1 -1
- package/tsparticles.shape.spiral.min.js.LICENSE.txt +1 -1
- package/types/SpiralDrawer.d.ts +3 -3
- package/umd/SpiralDrawer.js +2 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@tsparticles/shape-spiral)
|
|
7
7
|
[](https://www.npmjs.com/package/@tsparticles/shape-spiral) [](https://github.com/sponsors/matteobruni)
|
|
8
8
|
|
|
9
|
-
[tsParticles](https://github.com/
|
|
9
|
+
[tsParticles](https://github.com/tsparticles/tsparticles) additional spiral shape.
|
|
10
10
|
|
|
11
11
|
## How to use it
|
|
12
12
|
|
package/browser/SpiralDrawer.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getRangeValue } from "@tsparticles/engine";
|
|
2
2
|
export class SpiralDrawer {
|
|
3
|
-
draw(
|
|
3
|
+
draw(data) {
|
|
4
|
+
const { context, particle, radius } = data;
|
|
4
5
|
if (particle.spiralInnerRadius === undefined ||
|
|
5
6
|
particle.spiralLineSpacing === undefined ||
|
|
6
7
|
particle.spiralWidthFactor === undefined) {
|
package/cjs/SpiralDrawer.js
CHANGED
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SpiralDrawer = void 0;
|
|
4
4
|
const engine_1 = require("@tsparticles/engine");
|
|
5
5
|
class SpiralDrawer {
|
|
6
|
-
draw(
|
|
6
|
+
draw(data) {
|
|
7
|
+
const { context, particle, radius } = data;
|
|
7
8
|
if (particle.spiralInnerRadius === undefined ||
|
|
8
9
|
particle.spiralLineSpacing === undefined ||
|
|
9
10
|
particle.spiralWidthFactor === undefined) {
|
package/esm/SpiralDrawer.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getRangeValue } from "@tsparticles/engine";
|
|
2
2
|
export class SpiralDrawer {
|
|
3
|
-
draw(
|
|
3
|
+
draw(data) {
|
|
4
|
+
const { context, particle, radius } = data;
|
|
4
5
|
if (particle.spiralInnerRadius === undefined ||
|
|
5
6
|
particle.spiralLineSpacing === undefined ||
|
|
6
7
|
particle.spiralWidthFactor === undefined) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/shape-spiral",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.3",
|
|
4
4
|
"description": "tsParticles spiral 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/spiral"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"author": "Matteo Bruni <matteo.bruni@me.com>",
|
|
66
66
|
"license": "MIT",
|
|
67
67
|
"bugs": {
|
|
68
|
-
"url": "https://github.com/
|
|
68
|
+
"url": "https://github.com/tsparticles/tsparticles/issues"
|
|
69
69
|
},
|
|
70
70
|
"funding": [
|
|
71
71
|
{
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"./package.json": "./package.json"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@tsparticles/engine": "^3.0.0-beta.
|
|
103
|
+
"@tsparticles/engine": "^3.0.0-beta.3"
|
|
104
104
|
},
|
|
105
105
|
"publishConfig": {
|
|
106
106
|
"access": "public"
|