//#region src/preview/previewSettings.d.ts /** * Preview settings module with localStorage persistence. * Manages configuration for the preview rendering system. */ /** * Render mode for HTML-to-canvas capture operations. * - "foreignObject": SVG foreignObject serialization (fallback, works everywhere) * - "native": Chrome's experimental drawElementImage API (fastest when available) */ type RenderMode = "foreignObject" | "native"; /** * Preview resolution scale factor. * Controls how much to reduce the preview render resolution for better performance. * - 1: Full resolution (default) * - 0.75: 3/4 resolution * - 0.5: Half resolution * - 0.25: Quarter resolution * - "auto": Adaptive resolution that scales down during motion to prevent dropped frames, * and renders at full resolution when at rest */ type PreviewResolutionScale = 1 | 0.75 | 0.5 | 0.25 | "auto"; /** * Preview presentation mode determines how content is rendered in the workbench. * - "clone": Show a clone with computed styles applied (alias for "computed") * - "dom": Show the original DOM content directly (alias for "original") * - "original": Show the original DOM content directly * - "computed": Show a clone with computed styles applied * - "canvas": Render to canvas using the active rendering path */ type PreviewPresentationMode = "dom" | "canvas"; //#endregion export { PreviewPresentationMode, PreviewResolutionScale, RenderMode }; //# sourceMappingURL=previewSettings.d.ts.map