Skip to content

Commit

Permalink
feat: adding new path plugin, using svg paths as a source
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobruni committed Apr 25, 2023
1 parent a27400c commit 72316ec
Show file tree
Hide file tree
Showing 102 changed files with 3,772 additions and 3,193 deletions.
22 changes: 11 additions & 11 deletions bundles/confetti/package.json
Expand Up @@ -82,26 +82,26 @@
"prettier": "@tsparticles/prettier-config",
"devDependencies": {
"@babel/core": "^7.21.4",
"@tsparticles/cli": "^1.1.1",
"@tsparticles/eslint-config": "^1.10.0",
"@tsparticles/prettier-config": "^1.8.0",
"@tsparticles/tsconfig": "^1.11.0",
"@tsparticles/webpack-plugin": "^1.12.0",
"@tsparticles/cli": "^1.2.0",
"@tsparticles/eslint-config": "^1.11.0",
"@tsparticles/prettier-config": "^1.9.0",
"@tsparticles/tsconfig": "^1.12.0",
"@tsparticles/webpack-plugin": "^1.13.0",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"babel-loader": "^9.1.2",
"browserslist": "^4.21.5",
"copyfiles": "^2.4.1",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"terser-webpack-plugin": "^5.3.7",
"typescript": "^5.0.4",
"webpack": "^5.79.0",
"webpack": "^5.80.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1"
"webpack-cli": "^5.0.2"
},
"dependencies": {
"tsparticles-engine": "^2.9.3",
Expand Down
22 changes: 11 additions & 11 deletions bundles/fireworks/package.json
Expand Up @@ -82,26 +82,26 @@
"prettier": "@tsparticles/prettier-config",
"devDependencies": {
"@babel/core": "^7.21.4",
"@tsparticles/cli": "^1.1.1",
"@tsparticles/eslint-config": "^1.10.0",
"@tsparticles/prettier-config": "^1.8.0",
"@tsparticles/tsconfig": "^1.11.0",
"@tsparticles/webpack-plugin": "^1.12.0",
"@tsparticles/cli": "^1.2.0",
"@tsparticles/eslint-config": "^1.11.0",
"@tsparticles/prettier-config": "^1.9.0",
"@tsparticles/tsconfig": "^1.12.0",
"@tsparticles/webpack-plugin": "^1.13.0",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"babel-loader": "^9.1.2",
"browserslist": "^4.21.5",
"copyfiles": "^2.4.1",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"rimraf": "5.0.0",
"terser-webpack-plugin": "^5.3.7",
"typescript": "^5.0.4",
"webpack": "^5.79.0",
"webpack": "^5.80.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1"
"webpack-cli": "^5.0.2"
},
"dependencies": {
"tsparticles-engine": "^2.9.3",
Expand Down
22 changes: 11 additions & 11 deletions bundles/full/package.json
Expand Up @@ -82,26 +82,26 @@
"prettier": "@tsparticles/prettier-config",
"devDependencies": {
"@babel/core": "^7.21.4",
"@tsparticles/cli": "^1.1.1",
"@tsparticles/eslint-config": "^1.10.0",
"@tsparticles/prettier-config": "^1.8.0",
"@tsparticles/tsconfig": "^1.11.0",
"@tsparticles/webpack-plugin": "^1.12.0",
"@tsparticles/cli": "^1.2.0",
"@tsparticles/eslint-config": "^1.11.0",
"@tsparticles/prettier-config": "^1.9.0",
"@tsparticles/tsconfig": "^1.12.0",
"@tsparticles/webpack-plugin": "^1.13.0",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"babel-loader": "^9.1.2",
"browserslist": "^4.21.5",
"copyfiles": "^2.4.1",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"rimraf": "5.0.0",
"terser-webpack-plugin": "^5.3.7",
"typescript": "^5.0.4",
"webpack": "^5.79.0",
"webpack": "^5.80.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1"
"webpack-cli": "^5.0.2"
},
"dependencies": {
"tsparticles-engine": "^2.9.3",
Expand Down
22 changes: 11 additions & 11 deletions bundles/pjs/package.json
Expand Up @@ -82,26 +82,26 @@
"prettier": "@tsparticles/prettier-config",
"devDependencies": {
"@babel/core": "^7.21.4",
"@tsparticles/cli": "^1.1.1",
"@tsparticles/eslint-config": "^1.10.0",
"@tsparticles/prettier-config": "^1.8.0",
"@tsparticles/tsconfig": "^1.11.0",
"@tsparticles/webpack-plugin": "^1.12.0",
"@tsparticles/cli": "^1.2.0",
"@tsparticles/eslint-config": "^1.11.0",
"@tsparticles/prettier-config": "^1.9.0",
"@tsparticles/tsconfig": "^1.12.0",
"@tsparticles/webpack-plugin": "^1.13.0",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"babel-loader": "^9.1.2",
"browserslist": "^4.21.5",
"copyfiles": "^2.4.1",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"rimraf": "5.0.0",
"terser-webpack-plugin": "^5.3.7",
"typescript": "^5.0.4",
"webpack": "^5.79.0",
"webpack": "^5.80.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1"
"webpack-cli": "^5.0.2"
},
"dependencies": {
"tsparticles-engine": "^2.9.3"
Expand Down
22 changes: 11 additions & 11 deletions bundles/slim/package.json
Expand Up @@ -82,26 +82,26 @@
"prettier": "@tsparticles/prettier-config",
"devDependencies": {
"@babel/core": "^7.21.4",
"@tsparticles/cli": "^1.1.1",
"@tsparticles/eslint-config": "^1.10.0",
"@tsparticles/prettier-config": "^1.8.0",
"@tsparticles/tsconfig": "^1.11.0",
"@tsparticles/webpack-plugin": "^1.12.0",
"@tsparticles/cli": "^1.2.0",
"@tsparticles/eslint-config": "^1.11.0",
"@tsparticles/prettier-config": "^1.9.0",
"@tsparticles/tsconfig": "^1.12.0",
"@tsparticles/webpack-plugin": "^1.13.0",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"babel-loader": "^9.1.2",
"browserslist": "^4.21.5",
"copyfiles": "^2.4.1",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"rimraf": "5.0.0",
"terser-webpack-plugin": "^5.3.7",
"typescript": "^5.0.4",
"webpack": "^5.79.0",
"webpack": "^5.80.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1"
"webpack-cli": "^5.0.2"
},
"dependencies": {
"tsparticles-engine": "^2.9.3",
Expand Down
2 changes: 1 addition & 1 deletion demo/electron/package.json
Expand Up @@ -20,6 +20,6 @@
},
"devDependencies": {
"electron": "^24.1.2",
"webpack": "^5.79.0"
"webpack": "^5.80.0"
}
}
10 changes: 5 additions & 5 deletions demo/vanilla/package.json
Expand Up @@ -23,12 +23,12 @@
},
"devDependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"ace-builds": "^1.17.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"ace-builds": "^1.18.0",
"bootstrap": "^5.2.3",
"connect-livereload": "^0.6.1",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"express": "^4.18.2",
"express-rate-limit": "^6.7.0",
Expand All @@ -39,7 +39,7 @@
"lodash": "^4.17.21",
"nodemon": "^2.0.22",
"popper.js": "^1.16.1",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"pug": "^3.0.2",
"pug-cli": "1.0.0-alpha6",
"stats.ts": "^1.1.0",
Expand Down
26 changes: 13 additions & 13 deletions engine/package.json
Expand Up @@ -103,35 +103,35 @@
"devDependencies": {
"@babel/core": "^7.21.4",
"@skypack/package-check": "^0.2.2",
"@tsparticles/cli": "^1.1.1",
"@tsparticles/eslint-config": "^1.10.0",
"@tsparticles/prettier-config": "^1.8.0",
"@tsparticles/tsconfig": "^1.11.0",
"@tsparticles/webpack-plugin": "^1.12.0",
"@tsparticles/cli": "^1.2.0",
"@tsparticles/eslint-config": "^1.11.0",
"@tsparticles/prettier-config": "^1.9.0",
"@tsparticles/tsconfig": "^1.12.0",
"@tsparticles/webpack-plugin": "^1.13.0",
"@types/chai": "^4.3.4",
"@types/jsdom": "^21.1.1",
"@types/mocha": "^10.0.1",
"@types/node": "^18.15.11",
"@types/node": "^18.16.0",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"babel-loader": "^9.1.2",
"browserslist": "^4.21.5",
"canvas": "^2.11.2",
"chai": "^4.3.7",
"compare-versions": "^5.0.3",
"copyfiles": "^2.4.1",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-jsdoc": "^43.0.0",
"eslint-plugin-jsdoc": "^43.0.7",
"eslint-plugin-tsdoc": "^0.2.17",
"fs-extra": "^11.1.1",
"install": "^0.13.0",
"jsdom": "^21.1.1",
"jsdom-global": "^3.0.2",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"reflect-metadata": "^0.1.13",
"rimraf": "5.0.0",
"source-map-support": "^0.5.21",
Expand All @@ -140,9 +140,9 @@
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"typescript-json-schema": "^0.56.0",
"webpack": "^5.79.0",
"webpack": "^5.80.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1"
"webpack-cli": "^5.0.2"
},
"publishConfig": {
"directory": "dist",
Expand Down
1 change: 1 addition & 0 deletions engine/src/Core/Container.ts
Expand Up @@ -624,6 +624,7 @@ export class Container {

/**
* Restarts the container, just a {@link stop}/{@link start} alias
* @returns the Promise of the start method
*/
async refresh(): Promise<void> {
if (!guardCheck(this)) {
Expand Down
3 changes: 3 additions & 0 deletions engine/src/Core/Loader.ts
Expand Up @@ -107,6 +107,7 @@ export class Loader {
/**
* Starts an animation in a container, starting from the given options
* @param params - all the parameters required for loading options in the current animation
* @returns A Promise with the {@link Container} object created
*/
async loadOptions(params: LoaderParams): Promise<Container | undefined> {
const tagId = params.tagId ?? `tsparticles${Math.floor(getRandom() * 10000)}`,
Expand Down Expand Up @@ -190,6 +191,7 @@ export class Loader {
/**
* Starts an animation in a container, starting from the given remote options
* @param params - all the parameters required for loading a remote url into options in the current animation
* @returns A Promise with the {@link Container} object created
*/
async loadRemoteOptions(params: LoaderParams): Promise<Container | undefined> {
return this.loadOptions(params);
Expand All @@ -201,6 +203,7 @@ export class Loader {
* @param domContainer - the dom container
* @param options - the options object to initialize the {@link Container}
* @param index - if an options array is provided, this will retrieve the exact index of that array
* @returns A Promise with the {@link Container} object created
*/
async set(
id: string | HTMLElement,
Expand Down
1 change: 1 addition & 0 deletions engine/src/engine.ts
Expand Up @@ -316,6 +316,7 @@ export class Engine {
* @param id - The particles container id
* @param element - The dom element used to contain the particles
* @param options - The options object to initialize the {@link Container}
* @returns A Promise with the {@link Container} object created
*/
async set(
id: string | HTMLElement,
Expand Down
22 changes: 11 additions & 11 deletions interactions/external/attract/package.json
Expand Up @@ -84,26 +84,26 @@
"prettier": "@tsparticles/prettier-config",
"devDependencies": {
"@babel/core": "^7.21.4",
"@tsparticles/cli": "^1.1.1",
"@tsparticles/eslint-config": "^1.10.0",
"@tsparticles/prettier-config": "^1.8.0",
"@tsparticles/tsconfig": "^1.11.0",
"@tsparticles/webpack-plugin": "^1.12.0",
"@tsparticles/cli": "^1.2.0",
"@tsparticles/eslint-config": "^1.11.0",
"@tsparticles/prettier-config": "^1.9.0",
"@tsparticles/tsconfig": "^1.12.0",
"@tsparticles/webpack-plugin": "^1.13.0",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"babel-loader": "^9.1.2",
"browserslist": "^4.21.5",
"copyfiles": "^2.4.1",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"rimraf": "5.0.0",
"terser-webpack-plugin": "^5.3.7",
"typescript": "^5.0.4",
"webpack": "^5.79.0",
"webpack": "^5.80.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1"
"webpack-cli": "^5.0.2"
},
"dependencies": {
"tsparticles-engine": "^2.9.3"
Expand Down
22 changes: 11 additions & 11 deletions interactions/external/bounce/package.json
Expand Up @@ -84,26 +84,26 @@
"prettier": "@tsparticles/prettier-config",
"devDependencies": {
"@babel/core": "^7.21.4",
"@tsparticles/cli": "^1.1.1",
"@tsparticles/eslint-config": "^1.10.0",
"@tsparticles/prettier-config": "^1.8.0",
"@tsparticles/tsconfig": "^1.11.0",
"@tsparticles/webpack-plugin": "^1.12.0",
"@tsparticles/cli": "^1.2.0",
"@tsparticles/eslint-config": "^1.11.0",
"@tsparticles/prettier-config": "^1.9.0",
"@tsparticles/tsconfig": "^1.12.0",
"@tsparticles/webpack-plugin": "^1.13.0",
"@types/webpack-env": "^1.18.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"babel-loader": "^9.1.2",
"browserslist": "^4.21.5",
"copyfiles": "^2.4.1",
"eslint": "^8.38.0",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"rimraf": "5.0.0",
"terser-webpack-plugin": "^5.3.7",
"typescript": "^5.0.4",
"webpack": "^5.79.0",
"webpack": "^5.80.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1"
"webpack-cli": "^5.0.2"
},
"dependencies": {
"tsparticles-engine": "^2.9.3"
Expand Down

0 comments on commit 72316ec

Please sign in to comment.