canvasparticles-js 4.3.4 → 4.4.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.
- package/README.md +11 -0
- package/dist/index.cjs +325 -169
- package/dist/index.d.ts +11 -11
- package/dist/index.mjs +325 -169
- package/dist/index.umd.js +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/options.d.ts +4 -0
- package/package.json +1 -1
- package/src/index.ts +325 -175
- package/src/types/index.ts +2 -0
- package/src/types/options.ts +5 -0
package/README.md
CHANGED
|
@@ -240,6 +240,17 @@ Enabling gravity (`repulsive` or `pulling` > 0) performs an extra **O(n²)** gra
|
|
|
240
240
|
|
|
241
241
|
---
|
|
242
242
|
|
|
243
|
+
### `debug`
|
|
244
|
+
|
|
245
|
+
Intended for development and debugging. Can be useful to understand internal behavior.
|
|
246
|
+
|
|
247
|
+
| Option | Type | Default | Description |
|
|
248
|
+
| ------------------- | --------- | ------- | ----------------------------------------------- |
|
|
249
|
+
| `debug.drawGrid` | `boolean` | `false` | Renders the spatial grid used for partitioning. |
|
|
250
|
+
| `debug.drawIndexes` | `boolean` | `false` | Displays particle indices on the canvas. |
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
243
254
|
### Update options on the fly
|
|
244
255
|
|
|
245
256
|
You can update every option while an instance is animating and it works great; but some options require an extra step.
|