@zsviczian/excalidraw 0.18.0-64 → 0.18.0-66
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
|
@@ -23,7 +23,7 @@ export { getLineHeight } from "@excalidraw/common";
|
|
|
23
23
|
export { getFontString, getFontFamilyString } from "@excalidraw/common";
|
|
24
24
|
export { getBoundTextMaxWidth } from "@excalidraw/element/textElement";
|
|
25
25
|
export { mermaidToExcalidraw } from "./components/TTDDialog/MermaidToExcalidrawLib";
|
|
26
|
-
export { registerLocalFont, getFontMetrics, getFontFamilies, registerFontsInCSS, getCSSFontDefinition, loadSceneFonts, getSharedMermaidInstance, loadMermaid, intersectElementWithLine, } from "../excalidraw/obsidianUtils";
|
|
26
|
+
export { registerLocalFont, getFontMetrics, getFontFamilies, registerFontsInCSS, getCSSFontDefinition, loadSceneFonts, getDefaultColorPalette, getSharedMermaidInstance, loadMermaid, intersectElementWithLine, } from "../excalidraw/obsidianUtils";
|
|
27
27
|
export { refreshTextDimensions } from "@excalidraw/element/newElement";
|
|
28
28
|
export { syncMovedIndices, syncInvalidIndices } from "@excalidraw/element";
|
|
29
29
|
export { getContainerElement } from "@excalidraw/element/textElement";
|
|
@@ -23,6 +23,7 @@ export declare function registerLocalFont(fontMetrics: FontMetadata & {
|
|
|
23
23
|
name: string;
|
|
24
24
|
}, uri: string): void;
|
|
25
25
|
export declare function getFontFamilies(): string[];
|
|
26
|
+
export declare const getDefaultColorPalette: () => [string, string, string, string, string][];
|
|
26
27
|
export declare function registerFontsInCSS(): Promise<void>;
|
|
27
28
|
export declare function getCSSFontDefinition(fontFamily: number): Promise<string>;
|
|
28
29
|
export declare function loadSceneFonts(elements: NonDeletedExcalidrawElement[]): Promise<FontFace[]>;
|
|
@@ -546,6 +546,7 @@ export interface ExcalidrawProps {
|
|
|
546
546
|
onContextMenu?: (element: readonly NonDeletedExcalidrawElement[], appState: AppState, onClose: (callback?: () => void) => void) => JSX.Element | null;
|
|
547
547
|
aiEnabled?: boolean;
|
|
548
548
|
showDeprecatedFonts?: boolean;
|
|
549
|
+
insertLinkAction?: (linkVal: string) => void;
|
|
549
550
|
renderScrollbars?: boolean;
|
|
550
551
|
}
|
|
551
552
|
export type SceneData = {
|