https://github.com/gadicc/fview-lagometer
IjzerenHein's lagometer packaged for famous-views
https://github.com/gadicc/fview-lagometer
Last synced: about 1 year ago
JSON representation
IjzerenHein's lagometer packaged for famous-views
- Host: GitHub
- URL: https://github.com/gadicc/fview-lagometer
- Owner: gadicc
- Created: 2014-11-12T11:42:37.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-22T07:29:40.000Z (over 11 years ago)
- Last Synced: 2025-02-17T21:18:49.989Z (over 1 year ago)
- Language: JavaScript
- Size: 127 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
Awesome Lists containing this project
README
# famous-lagometer
This is [IjzerenHein's Lagometer](https://github.com/IjzerenHein/famous-lagometer)
packaged for Meteor to work with famous-views and either raix:famono or mjn:famous.
You can enable/disable the lagometer with ALT-L. Starts disabled by default -
there when you need it, not in your way otherwise.
This is a `debugOnly` package; it will never be bundled/deployed.
Default options:
```js
FView.lagometer = {
modifierOptions: {
size: [100, 100],
align: [1.0, 0.0],
origin: [1.0, 0.0],
translate: [-20, 10, 1000]
},
lagometerOptions: {
}
}
```
You can tweak any of these BEFORE famous.ready() callbacks are run. Afterwards,
`fview.lagometer` becomes the lagometer instance.
`lagometerOptions` are passed to the constructor, and is by default empty,
to use the follow defaults from the lagometer package:
```
{
drawFrequency: 2, // by default 2 times per second
min: 0, // minimum scale
max: 34, // max scale
backgroundColor: 'rgba(200, 0, 0, 0.8)',
borderColor: 'rgba(255, 0, 0, 0.8)',
textColor: 'rgba(255, 255, 255, 0.8)',
font: '28px Arial',
frameColor: '#00FF00',
scriptColor: '#BBBBFF'
};
```