beautiful-backgrounds 2.0.0 → 2.1.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 +2 -1
- package/build/bb.es.js +9 -9
- package/build/bb.es.js.map +1 -1
- package/build/bb.js +6 -6
- package/build/bb.js.map +1 -1
- package/build/index.d.ts +21 -0
- package/package.json +17 -16
package/build/index.d.ts
CHANGED
|
@@ -158,6 +158,27 @@ declare global {
|
|
|
158
158
|
"bb-digital-rain": BbDigitalRain;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
+
export declare class BbGradientSlats extends BeautifulBackground {
|
|
162
|
+
washColors: string[];
|
|
163
|
+
/** How many slats lie across the background, at least 2. */
|
|
164
|
+
slatAmount: number;
|
|
165
|
+
/** How far the slats lean, in degrees clockwise: 0 stands upright. */
|
|
166
|
+
slatAngle: number;
|
|
167
|
+
/** How fast the wash wanders: 2 is twice as fast, 0 stands still. */
|
|
168
|
+
speed: number;
|
|
169
|
+
trailOpacity: number;
|
|
170
|
+
cleanTrail: boolean;
|
|
171
|
+
/** How far the wash has wandered, in seconds at speed 1. */
|
|
172
|
+
private time;
|
|
173
|
+
protected loop(deltaTime: number): void;
|
|
174
|
+
private drawWash;
|
|
175
|
+
private drawSlats;
|
|
176
|
+
}
|
|
177
|
+
declare global {
|
|
178
|
+
interface HTMLElementTagNameMap {
|
|
179
|
+
"bb-gradient-slats": BbGradientSlats;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
161
182
|
export declare class BbHexagonWave extends BeautifulBackground {
|
|
162
183
|
hexSize: number;
|
|
163
184
|
waveAmplitude: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beautiful-backgrounds",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A collection of customizable web components for creating dynamic, animated backgrounds, featuring a variety of effects including a star field and a digital rain. ",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ambient",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"lint:code": "vp lint && vp fmt --check",
|
|
58
58
|
"lint:fallow": "fallow dead-code --ci --format ${FALLOW_FORMAT:-human} && fallow health --ci --coverage-gaps --min-score 100 --format ${FALLOW_FORMAT:-human} && fallow dupes --ci --format ${FALLOW_FORMAT:-human}",
|
|
59
59
|
"lint": "npm run lint:code && npm run lint:fallow",
|
|
60
|
+
"verify": "npm run lint && npm run typecheck && npm run coverage",
|
|
60
61
|
"hooks:install": "fallow hooks install --target git && fallow hooks install --target agent --agent claude",
|
|
61
62
|
"storybook": "storybook dev -p 6006",
|
|
62
63
|
"build-storybook": "storybook build",
|
|
@@ -66,22 +67,22 @@
|
|
|
66
67
|
},
|
|
67
68
|
"dependencies": {},
|
|
68
69
|
"devDependencies": {
|
|
69
|
-
"@storybook/addon-a11y": "^10.6.
|
|
70
|
-
"@storybook/addon-docs": "^10.6.
|
|
71
|
-
"@storybook/addon-vitest": "^10.6.
|
|
72
|
-
"@storybook/web-components-vite": "^10.6.
|
|
73
|
-
"@types/node": "^26.6.
|
|
74
|
-
"@vitest/browser-playwright": "5.0
|
|
75
|
-
"@vitest/coverage-v8": "5.0
|
|
76
|
-
"fallow": "3.
|
|
70
|
+
"@storybook/addon-a11y": "^10.6.8",
|
|
71
|
+
"@storybook/addon-docs": "^10.6.8",
|
|
72
|
+
"@storybook/addon-vitest": "^10.6.8",
|
|
73
|
+
"@storybook/web-components-vite": "^10.6.8",
|
|
74
|
+
"@types/node": "^26.6.6",
|
|
75
|
+
"@vitest/browser-playwright": "5.1.0",
|
|
76
|
+
"@vitest/coverage-v8": "5.1.0",
|
|
77
|
+
"fallow": "3.46.0",
|
|
77
78
|
"gifenc": "^1.0.3",
|
|
78
79
|
"lit": "^3.3.3",
|
|
79
|
-
"playwright": "^1.
|
|
80
|
-
"storybook": "^10.6.
|
|
80
|
+
"playwright": "^1.65.1",
|
|
81
|
+
"storybook": "^10.6.8",
|
|
81
82
|
"typescript": "~7.0.2",
|
|
82
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@
|
|
83
|
-
"vite-plus": "1.
|
|
84
|
-
"vitest": "5.0
|
|
83
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@8.3.8000",
|
|
84
|
+
"vite-plus": "1.7.0",
|
|
85
|
+
"vitest": "5.1.0"
|
|
85
86
|
},
|
|
86
87
|
"peerDependencies": {
|
|
87
88
|
"lit": "^3.0.0"
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"storybook": {
|
|
91
92
|
"vite-plus": "$vite-plus"
|
|
92
93
|
},
|
|
93
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@
|
|
94
|
-
"vitest": "5.0
|
|
94
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@8.3.8000",
|
|
95
|
+
"vitest": "5.1.0"
|
|
95
96
|
}
|
|
96
97
|
}
|