Implement proxied cross-origin iframe rendering

This commit is contained in:
Niklas von Hertzen
2017-09-25 22:53:09 +08:00
parent 57dc7137b2
commit 929b9de6e0
6 changed files with 139 additions and 76 deletions

View File

@ -38,7 +38,10 @@ export default class CanvasRenderer implements RenderTarget<HTMLCanvasElement> {
this.ctx.scale(this.options.scale, this.options.scale);
this.ctx.textBaseline = 'bottom';
options.logger.log(`Canvas renderer initialized with scale ${this.options.scale}`);
options.logger.log(
`Canvas renderer initialized (${options.width}x${options.height}) with scale ${this
.options.scale}`
);
}
clip(clipPaths: Array<Path>, callback: () => void) {