Dmitriy
Dmitriy
``` ctx.dpi = function(num){ this.canvas.style.width = this.canvas.width * num; this.canvas.style.height = this.canvas.height * num; this.context.scale(1 / num); } ``` smth like this
For example, a gradient using Lab: ```js var grad = ctx.gradient('linear:lab', ['red', 'green'], 'top', 'bottom'); ```
Something like ```js ctx.on('mousemove:window', e => {}); ctx.on('mouseup:window', e => {}); ctx.on('keydown:window', e => {}); ``` in More i think
1. Text bounds: https://html.spec.whatwg.org/multipage/scripting.html#dom-textmetrics-actualboundingboxleft 2. Will hit regions (with hash functions?) work faster than getObjectInPoint in events?
1. For transformed obs whether to use context.isPointInPath or transform the coords and then compare? 2. Maybe implement isPointIn for paths without context (it is already there in Intersections module...
http://css-live.ru/articles/rukovodstvo-po-web-animations-api-chast-1-sozdanie-bazovoj-animacii.html
Rough are fast and used for rendering. Precise are precise.