プリセットカタログ
これらは、メインの tsParticles README にリストされている公式プリセットであり、プリセット ワークスペースで利用できます。
ソースフォルダー: https://github.com/tsparticles/tsparticles/tree/main/presets
プリセット
ambient- https://www.npmjs.com/package/@tsparticles/preset-ambient - /demos/recipes/ambientbig-circles- https://www.npmjs.com/package/@tsparticles/preset-big-circles - /demos/recipes/big-circlesbubbles- https://www.npmjs.com/package/@tsparticles/preset-bubbles - /demos/recipes/bubblesconfetti- https://www.npmjs.com/package/@tsparticles/preset-confetti - /demos/recipes/confetticonfetti-cannon- https://www.npmjs.com/package/@tsparticles/preset-confetti-cannon - /demos/recipes/confetti-cannonconfetti-explosions- https://www.npmjs.com/package/@tsparticles/preset-confetti-explosions - /demos/recipes/confetti-explosionsconfetti-falling- https://www.npmjs.com/package/@tsparticles/preset-confetti-falling - /demos/recipes/confetti-fallingconfetti-parade- https://www.npmjs.com/package/@tsparticles/preset-confetti-parade - /demos/recipes/confetti-paradeparty- https://www.npmjs.com/package/@tsparticles/preset-party - /demos/recipes/partyfire- https://www.npmjs.com/package/@tsparticles/preset-fire - /demos/recipes/firefirefly- https://www.npmjs.com/package/@tsparticles/preset-firefly - /demos/recipes/fireflyfireworks- https://www.npmjs.com/package/@tsparticles/preset-fireworks - /demos/recipes/fireworksfountain- https://www.npmjs.com/package/@tsparticles/preset-fountain - /demos/recipes/fountainhyperspace- https://www.npmjs.com/package/@tsparticles/preset-hyperspace - /demos/recipes/hyperspacelinks- https://www.npmjs.com/package/@tsparticles/preset-links - /demos/recipes/linksmatrix- ローカル Web サイトのデモ レシピは/demos/recipes/matrixで利用可能ですmeteors- https://www.npmjs.com/package/@tsparticles/preset-meteors - /demos/recipes/meteorsseaAnemone- https://www.npmjs.com/package/@tsparticles/preset-sea-anemone - /demos/recipes/sea-anemonesnow- https://www.npmjs.com/package/@tsparticles/preset-snow - /demos/recipes/snowsquares- https://www.npmjs.com/package/@tsparticles/preset-squares - /demos/recipes/squaresstars- https://www.npmjs.com/package/@tsparticles/preset-stars - /demos/recipes/starstriangles- https://www.npmjs.com/package/@tsparticles/preset-triangles - /demos/recipes/triangles
各プリセット フォルダーには、monorepo 内のドキュメントも含まれています。次に例を示します。
簡単な使い方
ts
await tsParticles.load({
id: "tsparticles",
options: {
preset: "links",
fullScreen: {
enable: false,
},
},
});運用セットアップの場合は、/demos/ のレシピに示されているように、手動の開始/停止/再開/破棄を使用します。
/playground/presets を使用して、明示的な開始/一時停止コントロールを使用して各プリセットをテストします。
