canvasparticles-js 3.2.16 → 3.2.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Canvas Particles JS
2
2
 
3
3
  <span class="badge-npmversion"><a href="https://npmjs.org/package/canvasparticles-js" title="View this project on NPM"><img src="https://img.shields.io/npm/v/canvasparticles-js.svg" alt="NPM version" /></a></span>
4
- <span class="badge-npmdownloads"><a href="https://npmjs.org/package/canvasparticles-js" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/canvasparticles-js.svg" alt="NPM downloads" /></a></span>
4
+ <span class="badge-npmversion"><a href="https://npmjs.org/package/canvasparticles-js" title="View this project on NPM"><img src="https://img.shields.io/npm/d18m/canvasparticles-js.svg" alt="NPM downloads" /></a></span>
5
5
  <span><a href="https://www.jsdelivr.com/package/npm/canvasparticles-js" title="View this project on jsDelivr"><img src="https://data.jsdelivr.com/v1/package/npm/canvasparticles-js/badge?style=rounded" alt="jsDelivr hits" /></a></span>
6
6
 
7
7
  ## Description
@@ -131,7 +131,6 @@ particles.stop()
131
131
 
132
132
  ```js
133
133
  const particles = new CanvasParticles(selector, options)
134
- particles.options.particles.color = 'blue'
135
134
 
136
135
  // Required usage of setter for options.background and options.particles.color
137
136
  particles.setBackground('red')
@@ -1,14 +1,8 @@
1
1
  // Copyright (c) 2022–2024 Kyle Hoeckman, MIT License
2
2
  // https://github.com/Khoeckman/canvasParticles/blob/main/LICENSE
3
3
 
4
- /**
5
- * Canvas Particles JS
6
- *
7
- * @class CanvasParticles
8
- * @version 3.2.16
9
- */
10
4
  class CanvasParticles {
11
- static version = '3.2.16'
5
+ static version = '3.2.18'
12
6
 
13
7
  /**
14
8
  * Creates a new CanvasParticles instance.
@@ -125,7 +119,7 @@ class CanvasParticles {
125
119
  }
126
120
 
127
121
  /**
128
- * Remove all particles and generates new ones.
122
+ * Remove all particles and generate new ones.
129
123
  * The amount of new particles will match 'options.particles.ppm'
130
124
  * */
131
125
  newParticles = () => {
@@ -1,14 +1,8 @@
1
1
  // Copyright (c) 2022–2024 Kyle Hoeckman, MIT License
2
2
  // https://github.com/Khoeckman/canvasParticles/blob/main/LICENSE
3
3
 
4
- /**
5
- * Canvas Particles JS
6
- *
7
- * @module CanvasParticles
8
- * @version 3.2.16
9
- */
10
4
  export default class CanvasParticles {
11
- static version = '3.2.16'
5
+ static version = '3.2.18'
12
6
 
13
7
  /**
14
8
  * Creates a new CanvasParticles instance.
@@ -125,7 +119,7 @@ export default class CanvasParticles {
125
119
  }
126
120
 
127
121
  /**
128
- * Remove all particles and generates new ones.
122
+ * Remove all particles and generate new ones.
129
123
  * The amount of new particles will match 'options.particles.ppm'
130
124
  * */
131
125
  newParticles = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvasparticles-js",
3
- "version": "3.2.16",
3
+ "version": "3.2.18",
4
4
  "description": "In an HTML canvas, a bunch of floating particles connected with lines when they approach eachother. Creating a fun and interactive background.",
5
5
  "main": "canvasParticles.js",
6
6
  "type": "module",