@nextcloud/excalidraw-common 0.18.0-nc.1 → 0.18.0-nc.2
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.
|
@@ -18,5 +18,11 @@ export declare const updateImageCache: ({ fileIds, files, imageCache, }: {
|
|
|
18
18
|
erroredFiles: Map<FileId, true>;
|
|
19
19
|
}>;
|
|
20
20
|
export declare const getInitializedImageElements: (elements: readonly ExcalidrawElement[]) => InitializedExcalidrawImageElement[];
|
|
21
|
+
/**
|
|
22
|
+
* Dark mode inverts SVG images so that black line art stays visible. An app
|
|
23
|
+
* can keep the colors of an image, such as an emoji, with
|
|
24
|
+
* `customData.keepColorsInDarkMode`.
|
|
25
|
+
*/
|
|
26
|
+
export declare const isInvertedInDarkMode: (element: ExcalidrawElement, mimeType: string | undefined) => boolean;
|
|
21
27
|
export declare const isHTMLSVGElement: (node: Node | null) => node is SVGElement;
|
|
22
28
|
export declare const normalizeSVG: (SVGString: string) => string;
|
|
@@ -27,6 +27,7 @@ export interface ExcalidrawElementWithCanvas {
|
|
|
27
27
|
canvasOffsetY: number;
|
|
28
28
|
imageCrop: ExcalidrawImageElement["crop"] | null;
|
|
29
29
|
containingFrameOpacity: number;
|
|
30
|
+
keepColorsInDarkMode: boolean;
|
|
30
31
|
}
|
|
31
32
|
export declare const DEFAULT_LINK_SIZE = 14;
|
|
32
33
|
export declare const elementWithCanvasCache: WeakMap<ExcalidrawElement, ExcalidrawElementWithCanvas>;
|