Skip to content

Commit

Permalink
feat: added new cards shape, containing all 4 suits
Browse files Browse the repository at this point in the history
build: added cards demo config
  • Loading branch information
matteobruni committed Dec 7, 2022
1 parent f59ddd7 commit 79c625e
Show file tree
Hide file tree
Showing 26 changed files with 773 additions and 31 deletions.
1 change: 1 addition & 0 deletions demo/vanilla/app.js
Expand Up @@ -114,6 +114,7 @@ app.use("/preset-snow", express.static("./node_modules/tsparticles-preset-snow")
app.use("/preset-stars", express.static("./node_modules/tsparticles-preset-stars"));
app.use("/preset-triangles", express.static("./node_modules/tsparticles-preset-triangles"));
app.use("/shape-bubble", express.static("./node_modules/tsparticles-shape-bubble"));
app.use("/shape-cards", express.static("./node_modules/tsparticles-shape-cards"));
app.use("/shape-heart", express.static("./node_modules/tsparticles-shape-heart"));
app.use("/shape-multiline-text", express.static("./node_modules/tsparticles-shape-multiline-text"));
app.use("/shape-rounded-rect", express.static("./node_modules/tsparticles-shape-rounded-rect"));
Expand Down
1 change: 1 addition & 0 deletions demo/vanilla/package.json
Expand Up @@ -97,6 +97,7 @@
"tsparticles-preset-stars": "^2.6.0",
"tsparticles-preset-triangles": "^2.6.0",
"tsparticles-shape-bubble": "^2.6.0",
"tsparticles-shape-cards": "^2.6.0",
"tsparticles-shape-circle": "^2.6.0",
"tsparticles-shape-heart": "^2.6.0",
"tsparticles-shape-image": "^2.6.0",
Expand Down
1 change: 1 addition & 0 deletions demo/vanilla/public/javascripts/demo.js
Expand Up @@ -159,6 +159,7 @@
await loadPerlinNoisePath(tsParticles);
await loadSimplexNoisePath(tsParticles);
await loadBubbleShape(tsParticles);
await loadCardsShape(tsParticles);
await loadHeartShape(tsParticles);
await loadMultilineTextShape(tsParticles);
await loadRoundedRectShape(tsParticles);
Expand Down
2 changes: 2 additions & 0 deletions demo/vanilla/views/index.pug
Expand Up @@ -36,6 +36,7 @@ html(lang="en")
option(value="big") Big Particles
option(value="blackHole") Black Hole
option(value="bubble") Bubble
option(value="cards") Cards
option(value="chars") Chars
option(value="clickPause") Click Pause
option(value="collisionsAbsorb") Collisions Absorb
Expand Down Expand Up @@ -268,6 +269,7 @@ html(lang="en")
script(src="/plugin-infection/tsparticles.plugin.infection.js")
script(src="/plugin-motion/tsparticles.plugin.motion.js")
script(src="/shape-bubble/tsparticles.shape.bubble.js")
script(src="/shape-cards/tsparticles.shape.cards.js")
script(src="/shape-heart/tsparticles.shape.heart.js")
script(src="/shape-multiline-text/tsparticles.shape.multiline-text.js")
script(src="/shape-rounded-rect/tsparticles.shape.rounded-rect.js")
Expand Down
114 changes: 83 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions shapes/cards/.browserslistrc
@@ -0,0 +1,2 @@
since 2019
not dead
2 changes: 2 additions & 0 deletions shapes/cards/.eslintignore
@@ -0,0 +1,2 @@
dist
node_modules
5 changes: 5 additions & 0 deletions shapes/cards/.eslintrc.js
@@ -0,0 +1,5 @@
module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};

0 comments on commit 79c625e

Please sign in to comment.