- SVG to canvas with css
We need to convert an svg element to a canvas (to eventually be part of a larger png). This svg element has a lot of css on it. The current best option looks like canvg, but this library does not respect css from files. Has anyone found a workaround for this?
Solutions: wkhtmltopdf can take screenshots of your webpage programmatically.
- Mousetrap – JS keyboard shortcuts
This went around on twitter last week, but mousetrap looks quite nice for keyboard shortcuts.
- Cocktail: DRY up your backbone with mixins
Cocktail adds a simple one-liner to Backbone’s extend method to help you break out reusable code into mixins. The repo also includes an example for testing mixins in Jasmine with shared behaviors.