fix: using existing canvas option (#2017)

* refactor: document cleanup to DocumentCloner

* fix: using existing canvas option

* fix: lint errors

* fix: preview transform origin
This commit is contained in:
Niklas von Hertzen
2019-09-25 23:34:18 -07:00
committed by GitHub
parent 34b06d6365
commit 076492042a
9 changed files with 147 additions and 14 deletions

View File

@@ -0,0 +1,16 @@
export class DocumentCloner {
clonedReferenceElement?: HTMLElement;
constructor() {
// eslint-disable-next-line @typescript-eslint/no-object-literal-type-assertion
this.clonedReferenceElement = {} as HTMLElement;
}
toIFrame() {
return Promise.resolve({});
}
static destroy() {
return true;
}
}