@markdy/renderer-dom 1.0.8 → 1.0.10
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/README.md +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +815 -272
- package/package.json +3 -3
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,17 @@ interface GifDiagramExportOptions extends SvgExportOptions {
|
|
|
97
97
|
}
|
|
98
98
|
declare function exportDiagramAsGif(container: HTMLElement, timeline: TimelineController, options?: GifDiagramExportOptions): Promise<Blob>;
|
|
99
99
|
|
|
100
|
+
/**
|
|
101
|
+
* packages/renderer-dom/src/export/png-exporter.ts
|
|
102
|
+
* High-DPI raster PNG export with 2x retina scaling.
|
|
103
|
+
* Zero external dependencies.
|
|
104
|
+
*
|
|
105
|
+
* Fix: Inline all external resources (images, fonts) as base64 data URIs
|
|
106
|
+
* before drawing the SVG to canvas. A foreignObject-wrapped SVG taints the
|
|
107
|
+
* canvas whenever it references any external URL, so every resource must be
|
|
108
|
+
* inlined first.
|
|
109
|
+
*/
|
|
110
|
+
|
|
100
111
|
interface PngExportOptions extends SvgExportOptions {
|
|
101
112
|
pixelRatio?: number;
|
|
102
113
|
}
|