valaxy-theme-yun 0.14.20 → 0.14.21

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.
@@ -40,10 +40,7 @@ export interface Particle extends Point {
40
40
  * @param config
41
41
  */
42
42
  export function createFireworks(config: Partial<FireworksConfig>) {
43
- const defaultColors = ['#66A7DD', '#3E83E1', '#214EC2']
44
-
45
43
  const {
46
- colors = defaultColors,
47
44
  selector = 'canvas.fireworks',
48
45
  // sky blue
49
46
  numberOfParticles = 20,
@@ -65,6 +62,10 @@ export function createFireworks(config: Partial<FireworksConfig>) {
65
62
  },
66
63
  } = config
67
64
 
65
+ const colors = (config.colors && config.colors.length > 0)
66
+ ? config.colors
67
+ : ['#66A7DD', '#3E83E1', '#214EC2']
68
+
68
69
  let pointerX = 0
69
70
  let pointerY = 0
70
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valaxy-theme-yun",
3
- "version": "0.14.20",
3
+ "version": "0.14.21",
4
4
  "author": {
5
5
  "email": "me@yunyoujun.cn",
6
6
  "name": "YunYouJun",
@@ -24,6 +24,6 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/animejs": "^3.1.7",
27
- "valaxy": "0.14.20"
27
+ "valaxy": "0.14.21"
28
28
  }
29
29
  }