@zsviczian/excalidraw 0.17.6-7 → 0.17.6-8
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/package.json
CHANGED
|
@@ -25,5 +25,6 @@ export declare const exportToSvg: (elements: readonly NonDeletedExcalidrawElemen
|
|
|
25
25
|
renderEmbeddables?: boolean;
|
|
26
26
|
exportingFrame?: ExcalidrawFrameLikeElement | null;
|
|
27
27
|
skipInliningFonts?: true;
|
|
28
|
+
reuseImages?: boolean;
|
|
28
29
|
}) => Promise<SVGSVGElement>;
|
|
29
30
|
export declare const getExportSize: (elements: readonly NonDeletedExcalidrawElement[], exportPadding: number, scale: number) => [number, number];
|
|
@@ -26,6 +26,13 @@ export type SVGRenderConfig = {
|
|
|
26
26
|
canvasBackgroundColor: AppState["viewBackgroundColor"];
|
|
27
27
|
frameColor?: AppState["frameColor"];
|
|
28
28
|
embedsValidationStatus: EmbedsValidationStatus;
|
|
29
|
+
/**
|
|
30
|
+
* whether to attempt to reuse images as much as possible through symbols
|
|
31
|
+
* (reduces SVG size, but may be incompoatible with some SVG renderers)
|
|
32
|
+
*
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
reuseImages: boolean;
|
|
29
36
|
};
|
|
30
37
|
export type InteractiveCanvasRenderConfig = {
|
|
31
38
|
remoteSelectedElementIds: Map<ExcalidrawElement["id"], SocketId[]>;
|
package/types/utils/export.d.ts
CHANGED
|
@@ -22,10 +22,11 @@ export declare const exportToBlob: (opts: ExportOpts & {
|
|
|
22
22
|
quality?: number;
|
|
23
23
|
exportPadding?: number;
|
|
24
24
|
}) => Promise<Blob>;
|
|
25
|
-
export declare const exportToSvg: ({ elements, appState, files, exportPadding, renderEmbeddables, exportingFrame, skipInliningFonts, }: Omit<ExportOpts, "getDimensions"> & {
|
|
25
|
+
export declare const exportToSvg: ({ elements, appState, files, exportPadding, renderEmbeddables, exportingFrame, skipInliningFonts, reuseImages, }: Omit<ExportOpts, "getDimensions"> & {
|
|
26
26
|
exportPadding?: number | undefined;
|
|
27
27
|
renderEmbeddables?: boolean | undefined;
|
|
28
28
|
skipInliningFonts?: true | undefined;
|
|
29
|
+
reuseImages?: boolean | undefined;
|
|
29
30
|
}) => Promise<SVGSVGElement>;
|
|
30
31
|
export declare const exportToClipboard: (opts: ExportOpts & {
|
|
31
32
|
mimeType?: string;
|