Skip to content

Commit d468646

Browse files
committed
docs: update readme
1 parent 0e534c6 commit d468646

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ npm install @fireworks-js/web
173173
| `traceSpeed` | number | 10 |
174174
| `intensity` | number | 30 |
175175
| `autoresize` | boolean | true |
176+
| `fps` | number | 60 |
176177

177178
The `hue`, `delay`, `decay`, `brightness`, `lineWidth.explosion`, `lineWidth.trace`, `sound.volume` and `rocketsPoint` options accept an object:
178179

@@ -205,6 +206,7 @@ The `sound` options accept an object:
205206

206207
```js
207208
const fireworks = new Fireworks(container, {
209+
fps: 60,
208210
autoresize: true,
209211
opacity: 0.5,
210212
acceleration: 1.05,
@@ -222,8 +224,8 @@ const fireworks = new Fireworks(container, {
222224
max: 360
223225
},
224226
delay: {
225-
min: 15,
226-
max: 30
227+
min: 30,
228+
max: 60
227229
},
228230
rocketsPoint: {
229231
min: 50,

website/src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ import {
99
mainContainer
1010
} from './config.js'
1111

12+
declare global {
13+
interface Window {
14+
fireworks: Fireworks
15+
}
16+
}
17+
1218
const fireworks = new Fireworks(fireworksContainer, fireworksOptions)
19+
window.fireworks = fireworks
1320
fireworks.start()
1421

1522
const fireworksGetters = {

0 commit comments

Comments
 (0)