Skip to content

Commit f8f701f

Browse files
committed
remove fps property
1 parent f6b6972 commit f8f701f

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

README.md

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

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

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

207206
```js
208207
const fireworks = new Fireworks(container, {
209-
fps: 60,
210208
autoresize: true,
211209
opacity: 0.5,
212210
acceleration: 1.05,

packages/fireworks-js/src/options.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import type {
1010
} from './types.js'
1111

1212
class Options implements FireworksOptions {
13-
public fps: number
1413
public hue: MinMax
1514
public rocketsPoint: MinMax
1615
public opacity: number
@@ -34,7 +33,6 @@ class Options implements FireworksOptions {
3433
public autoresize: boolean
3534

3635
constructor() {
37-
this.fps = 60
3836
this.autoresize = true
3937
this.lineStyle = 'round'
4038
this.flickering = 50

packages/fireworks-js/src/raf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export class RequestAnimationFrame {
44
public tick = 0
55

66
private rafId = 0
7-
private fps = opts.fps
7+
private fps = 60
88
private tolerance = 0.1
99
private now: number
1010

packages/fireworks-js/src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export type LineStyle = 'round' | 'square'
22

33
export interface IFireworksOptions {
4-
fps: number
54
hue: MinMax
65
rocketsPoint: MinMax
76
opacity: number

0 commit comments

Comments
 (0)