Kiril Vatev
Kiril Vatev
```javascript function setupCanvas(canvas) { // Get the device pixel ratio, falling back to 1. var dpr = window.devicePixelRatio || 1; // Get the size of the canvas in CSS pixels....
Currently, workers only accept a single canvas, so multiple instances cannot be used along with `useWorker`. **Steps:** 1. update the "custom canvas" demo to use workers 1. start the "school...
https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#class-coverage
Example code (limited to more modern browsers): ```javascript function path(context, x, y, scaleX, scaleY, rotation, path) { context.save(); context.translate(x, y); context.rotate(rotation); context.scale(scaleX, scaleY); context.fill(new Path2D(path)); context.restore(); } ... path(context, fetti.x...
Example code: ```javascript function text(context, x, y, scaleX, scaleY, rotation, char) { context.setTransform(scaleX, 0, 0, scaleY, x, y); context.rotate(rotation); context.textAlign = 'center'; context.font = 'normal normal 16px auto'; context.fillText(char, 0,...
It should look more natural... I think there is an issue with the rotation origin.
Needs to detect: - [ ] files loaded as a URL with a `file://` scheme - [ ] required files if the renderer allows node module requires - [ ]...