@tsparticles/shape-polygon 3.0.0-alpha.0
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/LICENSE +21 -0
- package/README.md +71 -0
- package/browser/IPolygonShape.js +1 -0
- package/browser/ISide.js +1 -0
- package/browser/ISideCount.js +1 -0
- package/browser/PolygonDrawer.js +19 -0
- package/browser/PolygonDrawerBase.js +22 -0
- package/browser/TriangleDrawer.js +21 -0
- package/browser/index.js +12 -0
- package/cjs/IPolygonShape.js +2 -0
- package/cjs/ISide.js +2 -0
- package/cjs/ISideCount.js +2 -0
- package/cjs/PolygonDrawer.js +23 -0
- package/cjs/PolygonDrawerBase.js +26 -0
- package/cjs/TriangleDrawer.js +25 -0
- package/cjs/index.js +33 -0
- package/esm/IPolygonShape.js +1 -0
- package/esm/ISide.js +1 -0
- package/esm/ISideCount.js +1 -0
- package/esm/PolygonDrawer.js +19 -0
- package/esm/PolygonDrawerBase.js +22 -0
- package/esm/TriangleDrawer.js +21 -0
- package/esm/index.js +12 -0
- package/package.json +54 -0
- package/report.html +39 -0
- package/tsparticles.shape.polygon.js +190 -0
- package/tsparticles.shape.polygon.min.js +2 -0
- package/tsparticles.shape.polygon.min.js.LICENSE.txt +8 -0
- package/types/IPolygonShape.d.ts +4 -0
- package/types/ISide.d.ts +5 -0
- package/types/ISideCount.d.ts +4 -0
- package/types/PolygonDrawer.d.ts +7 -0
- package/types/PolygonDrawerBase.d.ts +8 -0
- package/types/TriangleDrawer.d.ts +8 -0
- package/types/index.d.ts +4 -0
- package/umd/IPolygonShape.js +12 -0
- package/umd/ISide.js +12 -0
- package/umd/ISideCount.js +12 -0
- package/umd/PolygonDrawer.js +33 -0
- package/umd/PolygonDrawerBase.js +36 -0
- package/umd/TriangleDrawer.js +35 -0
- package/umd/index.js +28 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 Matteo Bruni
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[](https://particles.js.org)
|
|
2
|
+
|
|
3
|
+
# tsParticles Polygon Shape
|
|
4
|
+
|
|
5
|
+
[](https://www.jsdelivr.com/package/npm/tsparticles-shape-polygon)
|
|
6
|
+
[](https://www.npmjs.com/package/tsparticles-shape-polygon)
|
|
7
|
+
[](https://www.npmjs.com/package/tsparticles-shape-polygon) [](https://github.com/sponsors/matteobruni)
|
|
8
|
+
|
|
9
|
+
[tsParticles](https://github.com/matteobruni/tsparticles) additional polygon shape.
|
|
10
|
+
|
|
11
|
+
## How to use it
|
|
12
|
+
|
|
13
|
+
### CDN / Vanilla JS / jQuery
|
|
14
|
+
|
|
15
|
+
The CDN/Vanilla version JS has one required file in vanilla configuration:
|
|
16
|
+
|
|
17
|
+
Including the `tsparticles.shape.polygon.min.js` file will export the function to load the shape:
|
|
18
|
+
|
|
19
|
+
```javascript
|
|
20
|
+
loadPolygonShape;
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Usage
|
|
24
|
+
|
|
25
|
+
Once the scripts are loaded you can set up `tsParticles` and the shape like this:
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
(async () => {
|
|
29
|
+
await loadPolygonShape();
|
|
30
|
+
|
|
31
|
+
await tsParticles.load({
|
|
32
|
+
id: "tsparticles",
|
|
33
|
+
options: {
|
|
34
|
+
/* options */
|
|
35
|
+
/* here you can use particles.shape.type: "polygon" */
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
})();
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### ESM / CommonJS
|
|
42
|
+
|
|
43
|
+
This package is compatible also with ES or CommonJS modules, firstly this needs to be installed, like this:
|
|
44
|
+
|
|
45
|
+
```shell
|
|
46
|
+
$ npm install tsparticles-shape-polygon
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
or
|
|
50
|
+
|
|
51
|
+
```shell
|
|
52
|
+
$ yarn add tsparticles-shape-polygon
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Then you need to import it in the app, like this:
|
|
56
|
+
|
|
57
|
+
```javascript
|
|
58
|
+
const { tsParticles } = require("tsparticles-engine");
|
|
59
|
+
const { loadPolygonShape } = require("tsparticles-shape-polygon");
|
|
60
|
+
|
|
61
|
+
loadPolygonShape(tsParticles);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
or
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
import { tsParticles } from "tsparticles-engine";
|
|
68
|
+
import { loadPolygonShape } from "tsparticles-shape-polygon";
|
|
69
|
+
|
|
70
|
+
loadPolygonShape(tsParticles);
|
|
71
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/browser/ISide.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PolygonDrawerBase } from "./PolygonDrawerBase";
|
|
2
|
+
export class PolygonDrawer extends PolygonDrawerBase {
|
|
3
|
+
getCenter(particle, radius) {
|
|
4
|
+
return {
|
|
5
|
+
x: -radius / (particle.sides / 3.5),
|
|
6
|
+
y: -radius / (2.66 / 3.5),
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
getSidesData(particle, radius) {
|
|
10
|
+
const sides = particle.sides;
|
|
11
|
+
return {
|
|
12
|
+
count: {
|
|
13
|
+
denominator: 1,
|
|
14
|
+
numerator: sides,
|
|
15
|
+
},
|
|
16
|
+
length: (radius * 2.66) / (sides / 3),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getRangeValue } from "@tsparticles/engine";
|
|
2
|
+
export class PolygonDrawerBase {
|
|
3
|
+
draw(context, particle, radius) {
|
|
4
|
+
const start = this.getCenter(particle, radius), side = this.getSidesData(particle, radius), sideCount = side.count.numerator * side.count.denominator, decimalSides = side.count.numerator / side.count.denominator, interiorAngleDegrees = (180 * (decimalSides - 2)) / decimalSides, interiorAngle = Math.PI - (Math.PI * interiorAngleDegrees) / 180;
|
|
5
|
+
if (!context) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
context.beginPath();
|
|
9
|
+
context.translate(start.x, start.y);
|
|
10
|
+
context.moveTo(0, 0);
|
|
11
|
+
for (let i = 0; i < sideCount; i++) {
|
|
12
|
+
context.lineTo(side.length, 0);
|
|
13
|
+
context.translate(side.length, 0);
|
|
14
|
+
context.rotate(interiorAngle);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
getSidesCount(particle) {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
const polygon = particle.shapeData, sides = Math.round(getRangeValue((_b = (_a = polygon === null || polygon === void 0 ? void 0 : polygon.sides) !== null && _a !== void 0 ? _a : polygon === null || polygon === void 0 ? void 0 : polygon.nb_sides) !== null && _b !== void 0 ? _b : 5));
|
|
20
|
+
return sides;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PolygonDrawerBase } from "./PolygonDrawerBase";
|
|
2
|
+
export class TriangleDrawer extends PolygonDrawerBase {
|
|
3
|
+
getCenter(particle, radius) {
|
|
4
|
+
return {
|
|
5
|
+
x: -radius,
|
|
6
|
+
y: radius / 1.66,
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
getSidesCount() {
|
|
10
|
+
return 3;
|
|
11
|
+
}
|
|
12
|
+
getSidesData(particle, radius) {
|
|
13
|
+
return {
|
|
14
|
+
count: {
|
|
15
|
+
denominator: 2,
|
|
16
|
+
numerator: 3,
|
|
17
|
+
},
|
|
18
|
+
length: radius * 2,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
package/browser/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PolygonDrawer } from "./PolygonDrawer";
|
|
2
|
+
import { TriangleDrawer } from "./TriangleDrawer";
|
|
3
|
+
export async function loadGenericPolygonShape(engine) {
|
|
4
|
+
await engine.addShape("polygon", new PolygonDrawer());
|
|
5
|
+
}
|
|
6
|
+
export async function loadTriangleShape(engine) {
|
|
7
|
+
await engine.addShape("triangle", new TriangleDrawer());
|
|
8
|
+
}
|
|
9
|
+
export async function loadPolygonShape(engine) {
|
|
10
|
+
await loadGenericPolygonShape(engine);
|
|
11
|
+
await loadTriangleShape(engine);
|
|
12
|
+
}
|
package/cjs/ISide.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PolygonDrawer = void 0;
|
|
4
|
+
const PolygonDrawerBase_1 = require("./PolygonDrawerBase");
|
|
5
|
+
class PolygonDrawer extends PolygonDrawerBase_1.PolygonDrawerBase {
|
|
6
|
+
getCenter(particle, radius) {
|
|
7
|
+
return {
|
|
8
|
+
x: -radius / (particle.sides / 3.5),
|
|
9
|
+
y: -radius / (2.66 / 3.5),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
getSidesData(particle, radius) {
|
|
13
|
+
const sides = particle.sides;
|
|
14
|
+
return {
|
|
15
|
+
count: {
|
|
16
|
+
denominator: 1,
|
|
17
|
+
numerator: sides,
|
|
18
|
+
},
|
|
19
|
+
length: (radius * 2.66) / (sides / 3),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.PolygonDrawer = PolygonDrawer;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PolygonDrawerBase = void 0;
|
|
4
|
+
const engine_1 = require("@tsparticles/engine");
|
|
5
|
+
class PolygonDrawerBase {
|
|
6
|
+
draw(context, particle, radius) {
|
|
7
|
+
const start = this.getCenter(particle, radius), side = this.getSidesData(particle, radius), sideCount = side.count.numerator * side.count.denominator, decimalSides = side.count.numerator / side.count.denominator, interiorAngleDegrees = (180 * (decimalSides - 2)) / decimalSides, interiorAngle = Math.PI - (Math.PI * interiorAngleDegrees) / 180;
|
|
8
|
+
if (!context) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
context.beginPath();
|
|
12
|
+
context.translate(start.x, start.y);
|
|
13
|
+
context.moveTo(0, 0);
|
|
14
|
+
for (let i = 0; i < sideCount; i++) {
|
|
15
|
+
context.lineTo(side.length, 0);
|
|
16
|
+
context.translate(side.length, 0);
|
|
17
|
+
context.rotate(interiorAngle);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
getSidesCount(particle) {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const polygon = particle.shapeData, sides = Math.round((0, engine_1.getRangeValue)((_b = (_a = polygon === null || polygon === void 0 ? void 0 : polygon.sides) !== null && _a !== void 0 ? _a : polygon === null || polygon === void 0 ? void 0 : polygon.nb_sides) !== null && _b !== void 0 ? _b : 5));
|
|
23
|
+
return sides;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.PolygonDrawerBase = PolygonDrawerBase;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TriangleDrawer = void 0;
|
|
4
|
+
const PolygonDrawerBase_1 = require("./PolygonDrawerBase");
|
|
5
|
+
class TriangleDrawer extends PolygonDrawerBase_1.PolygonDrawerBase {
|
|
6
|
+
getCenter(particle, radius) {
|
|
7
|
+
return {
|
|
8
|
+
x: -radius,
|
|
9
|
+
y: radius / 1.66,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
getSidesCount() {
|
|
13
|
+
return 3;
|
|
14
|
+
}
|
|
15
|
+
getSidesData(particle, radius) {
|
|
16
|
+
return {
|
|
17
|
+
count: {
|
|
18
|
+
denominator: 2,
|
|
19
|
+
numerator: 3,
|
|
20
|
+
},
|
|
21
|
+
length: radius * 2,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.TriangleDrawer = TriangleDrawer;
|
package/cjs/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.loadPolygonShape = exports.loadTriangleShape = exports.loadGenericPolygonShape = void 0;
|
|
13
|
+
const PolygonDrawer_1 = require("./PolygonDrawer");
|
|
14
|
+
const TriangleDrawer_1 = require("./TriangleDrawer");
|
|
15
|
+
function loadGenericPolygonShape(engine) {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
yield engine.addShape("polygon", new PolygonDrawer_1.PolygonDrawer());
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
exports.loadGenericPolygonShape = loadGenericPolygonShape;
|
|
21
|
+
function loadTriangleShape(engine) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
yield engine.addShape("triangle", new TriangleDrawer_1.TriangleDrawer());
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
exports.loadTriangleShape = loadTriangleShape;
|
|
27
|
+
function loadPolygonShape(engine) {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
yield loadGenericPolygonShape(engine);
|
|
30
|
+
yield loadTriangleShape(engine);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
exports.loadPolygonShape = loadPolygonShape;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/ISide.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PolygonDrawerBase } from "./PolygonDrawerBase";
|
|
2
|
+
export class PolygonDrawer extends PolygonDrawerBase {
|
|
3
|
+
getCenter(particle, radius) {
|
|
4
|
+
return {
|
|
5
|
+
x: -radius / (particle.sides / 3.5),
|
|
6
|
+
y: -radius / (2.66 / 3.5),
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
getSidesData(particle, radius) {
|
|
10
|
+
const sides = particle.sides;
|
|
11
|
+
return {
|
|
12
|
+
count: {
|
|
13
|
+
denominator: 1,
|
|
14
|
+
numerator: sides,
|
|
15
|
+
},
|
|
16
|
+
length: (radius * 2.66) / (sides / 3),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getRangeValue } from "@tsparticles/engine";
|
|
2
|
+
export class PolygonDrawerBase {
|
|
3
|
+
draw(context, particle, radius) {
|
|
4
|
+
const start = this.getCenter(particle, radius), side = this.getSidesData(particle, radius), sideCount = side.count.numerator * side.count.denominator, decimalSides = side.count.numerator / side.count.denominator, interiorAngleDegrees = (180 * (decimalSides - 2)) / decimalSides, interiorAngle = Math.PI - (Math.PI * interiorAngleDegrees) / 180;
|
|
5
|
+
if (!context) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
context.beginPath();
|
|
9
|
+
context.translate(start.x, start.y);
|
|
10
|
+
context.moveTo(0, 0);
|
|
11
|
+
for (let i = 0; i < sideCount; i++) {
|
|
12
|
+
context.lineTo(side.length, 0);
|
|
13
|
+
context.translate(side.length, 0);
|
|
14
|
+
context.rotate(interiorAngle);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
getSidesCount(particle) {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
const polygon = particle.shapeData, sides = Math.round(getRangeValue((_b = (_a = polygon === null || polygon === void 0 ? void 0 : polygon.sides) !== null && _a !== void 0 ? _a : polygon === null || polygon === void 0 ? void 0 : polygon.nb_sides) !== null && _b !== void 0 ? _b : 5));
|
|
20
|
+
return sides;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PolygonDrawerBase } from "./PolygonDrawerBase";
|
|
2
|
+
export class TriangleDrawer extends PolygonDrawerBase {
|
|
3
|
+
getCenter(particle, radius) {
|
|
4
|
+
return {
|
|
5
|
+
x: -radius,
|
|
6
|
+
y: radius / 1.66,
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
getSidesCount() {
|
|
10
|
+
return 3;
|
|
11
|
+
}
|
|
12
|
+
getSidesData(particle, radius) {
|
|
13
|
+
return {
|
|
14
|
+
count: {
|
|
15
|
+
denominator: 2,
|
|
16
|
+
numerator: 3,
|
|
17
|
+
},
|
|
18
|
+
length: radius * 2,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PolygonDrawer } from "./PolygonDrawer";
|
|
2
|
+
import { TriangleDrawer } from "./TriangleDrawer";
|
|
3
|
+
export async function loadGenericPolygonShape(engine) {
|
|
4
|
+
await engine.addShape("polygon", new PolygonDrawer());
|
|
5
|
+
}
|
|
6
|
+
export async function loadTriangleShape(engine) {
|
|
7
|
+
await engine.addShape("triangle", new TriangleDrawer());
|
|
8
|
+
}
|
|
9
|
+
export async function loadPolygonShape(engine) {
|
|
10
|
+
await loadGenericPolygonShape(engine);
|
|
11
|
+
await loadTriangleShape(engine);
|
|
12
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tsparticles/shape-polygon",
|
|
3
|
+
"version": "3.0.0-alpha.0",
|
|
4
|
+
"description": "tsParticles polygon shape",
|
|
5
|
+
"homepage": "https://particles.js.org",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/matteobruni/tsparticles.git",
|
|
9
|
+
"directory": "shapes/polygon"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"front-end",
|
|
13
|
+
"frontend",
|
|
14
|
+
"tsparticles",
|
|
15
|
+
"particles",
|
|
16
|
+
"particle",
|
|
17
|
+
"canvas",
|
|
18
|
+
"jsparticles",
|
|
19
|
+
"xparticles",
|
|
20
|
+
"particles-js",
|
|
21
|
+
"particles.js",
|
|
22
|
+
"particles-ts",
|
|
23
|
+
"particles.ts",
|
|
24
|
+
"typescript",
|
|
25
|
+
"javascript",
|
|
26
|
+
"animation",
|
|
27
|
+
"web",
|
|
28
|
+
"html5",
|
|
29
|
+
"web-design",
|
|
30
|
+
"webdesign",
|
|
31
|
+
"css",
|
|
32
|
+
"html",
|
|
33
|
+
"css3",
|
|
34
|
+
"animated",
|
|
35
|
+
"background",
|
|
36
|
+
"@tsparticles/shape"
|
|
37
|
+
],
|
|
38
|
+
"author": "Matteo Bruni <matteo.bruni@me.com>",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/matteobruni/tsparticles/issues"
|
|
42
|
+
},
|
|
43
|
+
"main": "cjs/index.js",
|
|
44
|
+
"jsdelivr": "tsparticles.shape.polygon.min.js",
|
|
45
|
+
"unpkg": "tsparticles.shape.polygon.min.js",
|
|
46
|
+
"module": "esm/index.js",
|
|
47
|
+
"types": "types/index.d.ts",
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@tsparticles/engine": "^3.0.0-alpha.0"
|
|
53
|
+
}
|
|
54
|
+
}
|