svelte-asciiart 0.0.3 → 0.0.4
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/utils.js +1 -1
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -103,7 +103,7 @@ export function exportSvg(svgEl, options = {}) {
|
|
|
103
103
|
return new XMLSerializer().serializeToString(clone);
|
|
104
104
|
}
|
|
105
105
|
export async function exportSvgToPng(svgEl, options = {}) {
|
|
106
|
-
const { scale =
|
|
106
|
+
const { scale = 1, output = 'dataUrl', ...svgOptions } = options;
|
|
107
107
|
// Get the exported SVG with embedded styles
|
|
108
108
|
const svgString = exportSvg(svgEl, svgOptions);
|
|
109
109
|
// Parse viewBox to get dimensions
|