josephernest/bigpicture.js — pull request #13 by konsumer (2014-12-13 06:19:08+00:00)
Title: events

I am working on a websocket version, and I needed events. This adds some minimal events to track what is happening.You can use them like this:

```javascript
$('#bigpicture')
.on('bpupdate', function(e, el){
console.log('update', el);
})
.on('bpnew', function(e, x, y, size, text){
console.log('new', x, y, size, text);
})
.on('bpzoom', function(e, zoom, wx, wy, sx, sy){
console.log('zoom', zoom, wx, wy, sx, sy)
});
```