@tsparticles/cli 2.0.0-beta.9 → 2.0.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.
@@ -1,15 +1,10 @@
1
- import type { IDelta, IShapeDrawer, Particle } from "@tsparticles/engine";
1
+ import type { IShapeDrawData, IShapeDrawer } from "@tsparticles/engine";
2
2
 
3
3
  export class ShapeDrawer implements IShapeDrawer {
4
- draw(_context: CanvasRenderingContext2D,
5
- _particle: Particle,
6
- _radius: number,
7
- _opacity: number,
8
- _delta: IDelta,
9
- _pixelRatio: number): void {
4
+ draw(_data: IShapeDrawData): void {
10
5
  // draw the particle using the context
11
6
  // which is already centered in the particle position
12
- // colors are already handles, just draw the shape
7
+ // colors are already handled, just draw the shape
13
8
  // the bounds are -radius to radius
14
9
  // delta is the frame time difference between the last frame and this one, in ms, use it for animated shapes
15
10
  // pixelRatio is the canvas ratio used by the tsParticles instance, you may need it for density-independent shapes
@@ -82,26 +82,26 @@
82
82
  "types": "dist/types/index.d.ts",
83
83
  "prettier": "@tsparticles/prettier-config",
84
84
  "devDependencies": {
85
- "@babel/core": "^7.23.0",
86
- "@tsparticles/cli": "^2.0.0-beta.9",
87
- "@tsparticles/eslint-config": "^2.0.0-beta.2",
88
- "@tsparticles/prettier-config": "^2.0.0-beta.2",
85
+ "@babel/core": "^7.23.3",
86
+ "@tsparticles/cli": "^2.0.0",
87
+ "@tsparticles/eslint-config": "^2.0.0-beta.7",
88
+ "@tsparticles/prettier-config": "^2.0.0-beta.4",
89
89
  "@tsparticles/tsconfig": "^2.0.0-beta.1",
90
- "@tsparticles/webpack-plugin": "^2.0.0-beta.2",
91
- "@types/webpack-env": "^1.18.2",
92
- "@typescript-eslint/eslint-plugin": "^6.7.4",
93
- "@typescript-eslint/parser": "^6.7.4",
90
+ "@tsparticles/webpack-plugin": "^2.0.0-beta.11",
91
+ "@types/webpack-env": "^1.18.4",
92
+ "@typescript-eslint/eslint-plugin": "^6.11.0",
93
+ "@typescript-eslint/parser": "^6.11.0",
94
94
  "babel-loader": "^9.1.3",
95
95
  "browserslist": "^4.22.1",
96
96
  "copyfiles": "^2.4.1",
97
- "eslint": "^8.51.0",
97
+ "eslint": "^8.53.0",
98
98
  "eslint-config-prettier": "^9.0.0",
99
- "prettier": "^3.0.3",
99
+ "prettier": "^3.1.0",
100
100
  "rimraf": "^5.0.5",
101
101
  "terser-webpack-plugin": "^5.3.9",
102
102
  "typescript": "^5.2.2",
103
- "webpack": "^5.88.2",
104
- "webpack-bundle-analyzer": "^4.9.1",
103
+ "webpack": "^5.89.0",
104
+ "webpack-bundle-analyzer": "^4.10.0",
105
105
  "webpack-cli": "^5.1.4"
106
106
  },
107
107
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/cli",
3
- "version": "2.0.0-beta.9",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "tsparticles-cli": "dist/cli.js"
@@ -10,34 +10,35 @@
10
10
  },
11
11
  "prettier": "@tsparticles/prettier-config",
12
12
  "dependencies": {
13
- "@tsparticles/eslint-config": "^2.0.0-beta.2",
14
- "@tsparticles/prettier-config": "^2.0.0-beta.2",
15
- "@tsparticles/tsconfig": "^2.0.0-beta.1",
16
- "@tsparticles/webpack-plugin": "^2.0.0-beta.2",
17
- "@typescript-eslint/eslint-plugin": "^6.7.4",
18
- "@typescript-eslint/parser": "^6.7.4",
19
- "commander": "^11.0.0",
20
- "eslint": "^8.51.0",
13
+ "@tsparticles/eslint-config": "^2.0.0",
14
+ "@tsparticles/prettier-config": "^2.0.0",
15
+ "@tsparticles/tsconfig": "^2.0.0",
16
+ "@tsparticles/webpack-plugin": "^2.0.0",
17
+ "@typescript-eslint/eslint-plugin": "^6.12.0",
18
+ "@typescript-eslint/parser": "^6.12.0",
19
+ "commander": "^11.1.0",
20
+ "eslint": "^8.54.0",
21
21
  "eslint-config-prettier": "^9.0.0",
22
- "eslint-plugin-jsdoc": "^46.8.2",
22
+ "eslint-plugin-jsdoc": "^46.9.0",
23
23
  "eslint-plugin-tsdoc": "^0.2.17",
24
24
  "fs-extra": "^11.1.1",
25
25
  "klaw": "^4.1.0",
26
26
  "lookpath": "^1.2.2",
27
27
  "path-scurry": "^1.10.1",
28
- "prettier": "^3.0.3",
28
+ "prettier": "^3.1.0",
29
+ "prettier-plugin-multiline-arrays": "^3.0.1",
29
30
  "prompts": "^2.4.2",
30
31
  "rimraf": "^5.0.5",
31
- "typescript": "^5.2.2",
32
- "webpack": "^5.88.2"
32
+ "typescript": "^5.3.2",
33
+ "webpack": "^5.89.0"
33
34
  },
34
35
  "devDependencies": {
35
- "@types/chai": "^4.3.6",
36
- "@types/fs-extra": "^11.0.2",
37
- "@types/klaw": "^3.0.4",
38
- "@types/mocha": "^10.0.2",
39
- "@types/node": "^20.8.3",
40
- "@types/prompts": "^2.4.5",
36
+ "@types/chai": "^4.3.11",
37
+ "@types/fs-extra": "^11.0.4",
38
+ "@types/klaw": "^3.0.6",
39
+ "@types/mocha": "^10.0.5",
40
+ "@types/node": "^20.9.3",
41
+ "@types/prompts": "^2.4.9",
41
42
  "chai": "^4.3.10",
42
43
  "cross-env": "^7.0.3",
43
44
  "mocha": "^10.2.0",