Wrapper: @tsparticles/stencil
tsParticles 的官方 Stencil wrapper。
安装
bash
pnpm add @tsparticles/stencil @tsparticles/engine @tsparticles/slim快速配置流程
- 安装 wrapper + engine + loader 包。
- 使用
@tsparticles/stencil/loader一次性注册 Stencil custom elements。 - 渲染
<stencil-particles />,并传入init+options(或url)。
Monorepo 参考
- 包目录: https://github.com/tsparticles/tsparticles/tree/main/wrappers/stencil
- Demo 应用: https://github.com/tsparticles/tsparticles/tree/main/demo/stencil
