@splatrac/vue-snowfall 1.2.0 → 1.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splatrac/vue-snowfall",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "A Vue 3 composable for creating snowfall effects",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -51,6 +51,8 @@ export function useSnowfall() {
51
51
  return template.content.firstChild
52
52
  }
53
53
 
54
+ const currentFlakeCount = () => document.querySelectorAll('.flake').length;
55
+
54
56
  const createSnowflake = ({
55
57
  timeRange,
56
58
  posRange,
@@ -93,6 +95,7 @@ export function useSnowfall() {
93
95
  timeRange = DEFAULT_OPTIONS.timeRange,
94
96
  posRange = DEFAULT_OPTIONS.posRange,
95
97
  sizeRange = DEFAULT_OPTIONS.sizeRange,
98
+ maxFlakes = DEFAULT_OPTIONS.maxFlakes,
96
99
  interval = 500
97
100
  } = userOptions;
98
101
  const finalOptions = { timeRange, posRange, sizeRange };