@vvfx/sdk 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/html-overlay/html-capture-runtime.d.ts +12 -0
- package/dist/index.cjs +473 -208
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +473 -208
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type HTMLCaptureViewportSize = {
|
|
2
|
+
width: number;
|
|
3
|
+
height: number;
|
|
4
|
+
};
|
|
5
|
+
export type HTMLCaptureTarget = {
|
|
6
|
+
cleanup: () => void;
|
|
7
|
+
target: HTMLElement;
|
|
8
|
+
};
|
|
9
|
+
export declare function captureViewportSize(logicalSize: HTMLCaptureViewportSize, _displayedBounds?: Pick<DOMRectReadOnly, 'width' | 'height'>): HTMLCaptureViewportSize;
|
|
10
|
+
export declare function serializeComputedCaptureStyle(style: CSSStyleDeclaration): string;
|
|
11
|
+
export declare function createHTMLCaptureReplica(ownerDocument: Document, html: string, logicalSize: HTMLCaptureViewportSize): Promise<HTMLCaptureTarget | undefined>;
|
|
12
|
+
export declare function createHTMLCaptureReplicaFromDocument(ownerDocument: Document, sourceDocument: Document, logicalSize: HTMLCaptureViewportSize): Promise<HTMLCaptureTarget | undefined>;
|