Implement proxied cross-origin iframe rendering

This commit is contained in:
MoyuScript
2017-09-25 22:53:09 +08:00
parent f84cdb80b3
commit f20dbe8c8e
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) {