@tsparticles/shape-path 3.0.0-beta.0 → 3.0.0-beta.2
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/PathDrawer.js +1 -1
- package/browser/index.js +1 -1
- package/browser/package.json +1 -0
- package/cjs/PathDrawer.js +2 -2
- package/cjs/index.js +2 -2
- package/cjs/package.json +1 -0
- package/esm/PathDrawer.js +1 -1
- package/esm/index.js +1 -1
- package/esm/package.json +1 -0
- package/package.json +18 -6
- package/report.html +23 -5
- package/tsparticles.shape.path.js +1 -1
- package/tsparticles.shape.path.min.js.LICENSE.txt +1 -1
- package/types/IPathData.d.ts +1 -1
- package/types/PathDrawer.d.ts +1 -1
- package/types/PathParticle.d.ts +1 -1
- package/types/Utils.d.ts +1 -1
- package/umd/PathDrawer.js +3 -3
- package/umd/index.js +3 -3
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@tsparticles/shape-path)
|
|
7
7
|
[](https://www.npmjs.com/package/@tsparticles/shape-path) [](https://github.com/sponsors/matteobruni)
|
|
8
8
|
|
|
9
|
-
[tsParticles](https://github.com/
|
|
9
|
+
[tsParticles](https://github.com/tsparticles/tsparticles) additional path shape.
|
|
10
10
|
|
|
11
11
|
## How to use it
|
|
12
12
|
|
package/browser/PathDrawer.js
CHANGED
package/browser/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
package/cjs/PathDrawer.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PathDrawer = void 0;
|
|
4
4
|
const engine_1 = require("@tsparticles/engine");
|
|
5
|
-
const
|
|
5
|
+
const Utils_js_1 = require("./Utils.js");
|
|
6
6
|
class PathDrawer {
|
|
7
7
|
draw(context, particle, radius) {
|
|
8
8
|
if (!particle.pathData) {
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
(0,
|
|
11
|
+
(0, Utils_js_1.drawPath)(context, radius, particle.pathData);
|
|
12
12
|
}
|
|
13
13
|
particleInit(container, particle) {
|
|
14
14
|
const shape = particle.shapeData;
|
package/cjs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loadPathShape = void 0;
|
|
4
|
-
const
|
|
4
|
+
const PathDrawer_js_1 = require("./PathDrawer.js");
|
|
5
5
|
async function loadPathShape(engine, refresh = true) {
|
|
6
|
-
await engine.addShape("path", new
|
|
6
|
+
await engine.addShape("path", new PathDrawer_js_1.PathDrawer(), refresh);
|
|
7
7
|
}
|
|
8
8
|
exports.loadPathShape = loadPathShape;
|
package/cjs/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "commonjs" }
|
package/esm/PathDrawer.js
CHANGED
package/esm/index.js
CHANGED
package/esm/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "type": "module" }
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/shape-path",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.2",
|
|
4
4
|
"description": "tsParticles path 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/path"
|
|
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
|
{
|
|
@@ -81,14 +81,26 @@
|
|
|
81
81
|
"url": "https://www.buymeacoffee.com/matteobruni"
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
|
-
"
|
|
84
|
+
"sideEffects": false,
|
|
85
85
|
"jsdelivr": "tsparticles.shape.path.min.js",
|
|
86
86
|
"unpkg": "tsparticles.shape.path.min.js",
|
|
87
|
+
"browser": "browser/index.js",
|
|
88
|
+
"main": "cjs/index.js",
|
|
87
89
|
"module": "esm/index.js",
|
|
88
90
|
"types": "types/index.d.ts",
|
|
89
|
-
"
|
|
91
|
+
"exports": {
|
|
92
|
+
".": {
|
|
93
|
+
"types": "./types/index.d.ts",
|
|
94
|
+
"browser": "./browser/index.js",
|
|
95
|
+
"import": "./esm/index.js",
|
|
96
|
+
"require": "./cjs/index.js",
|
|
97
|
+
"umd": "./umd/index.js",
|
|
98
|
+
"default": "./cjs/index.js"
|
|
99
|
+
},
|
|
100
|
+
"./package.json": "./package.json"
|
|
101
|
+
},
|
|
90
102
|
"dependencies": {
|
|
91
|
-
"@tsparticles/engine": "^3.0.0-beta.
|
|
103
|
+
"@tsparticles/engine": "^3.0.0-beta.2"
|
|
92
104
|
},
|
|
93
105
|
"publishConfig": {
|
|
94
106
|
"access": "public"
|