@zsviczian/excalidraw 0.17.6-21 → 0.17.6-22
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/excalidraw.development.js +7 -7
- package/dist/excalidraw.production.min.js +1 -1
- package/package.json +1 -1
- package/types/excalidraw/components/TTDDialog/MermaidToExcalidrawLib.d.ts +1 -0
- package/types/excalidraw/index.d.ts +2 -1
- package/types/excalidraw/obsidianUtils.d.ts +3 -0
- package/types/utils/export.d.ts +1 -1
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { MermaidConfig } from "@zsviczian/mermaid-to-excalidraw";
|
|
|
2
2
|
import { ExcalidrawElement } from "../../element/types";
|
|
3
3
|
import { MermaidToExcalidrawLibProps } from "./common";
|
|
4
4
|
export declare const loadMermaidToExcalidrawLib: () => Promise<MermaidToExcalidrawLibProps>;
|
|
5
|
+
export declare const loadMermaidLib: () => Promise<MermaidToExcalidrawLibProps>;
|
|
5
6
|
export declare const mermaidToExcalidraw: (mermaidDefinition: string, opts: MermaidConfig, forceSVG?: boolean) => Promise<{
|
|
6
7
|
elements?: ExcalidrawElement[];
|
|
7
8
|
files?: any;
|
|
@@ -28,7 +28,8 @@ getFontFamilies, //zsviczian
|
|
|
28
28
|
getFontFamilyString, //zsviczian
|
|
29
29
|
registerFontsInCSS, //zsviczian
|
|
30
30
|
getCSSFontDefinition, //zsviczian
|
|
31
|
-
loadSceneFonts,
|
|
31
|
+
loadSceneFonts, //zsviczian
|
|
32
|
+
loadMermaid, } from "../utils/export";
|
|
32
33
|
export { refreshTextDimensions } from "./element/newElement";
|
|
33
34
|
export { getContainerElement } from "./element/textElement";
|
|
34
35
|
export { serializeAsJSON, serializeLibraryAsJSON } from "./data/json";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MermaidToExcalidrawLibProps } from "./components/TTDDialog/common";
|
|
1
2
|
import { NonDeletedExcalidrawElement } from "./element/types";
|
|
2
3
|
import type { FontMetadata } from "./fonts/FontMetadata";
|
|
3
4
|
import { AppState } from "./types";
|
|
@@ -21,3 +22,5 @@ export declare function getCSSFontDefinition(fontFamily: number): Promise<string
|
|
|
21
22
|
export declare function loadSceneFonts(elements: NonDeletedExcalidrawElement[]): Promise<FontFace[]>;
|
|
22
23
|
export declare function fetchFontFromVault(url: string | URL): Promise<ArrayBuffer | undefined>;
|
|
23
24
|
export declare function isTouchInPenMode(appState: AppState, event: React.PointerEvent<HTMLElement> | MouseEvent): boolean;
|
|
25
|
+
export declare function getSharedMermaidInstance(): Promise<MermaidToExcalidrawLibProps>;
|
|
26
|
+
export declare function loadMermaid(): Promise<MermaidToExcalidrawLibProps>;
|
package/types/utils/export.d.ts
CHANGED
|
@@ -43,4 +43,4 @@ export { getLineHeight } from "../excalidraw/fonts/index";
|
|
|
43
43
|
export { getFontString, getFontFamilyString } from "../excalidraw/utils";
|
|
44
44
|
export { getBoundTextMaxWidth } from "../excalidraw/element/textElement";
|
|
45
45
|
export { mermaidToExcalidraw } from "../excalidraw/components/TTDDialog/MermaidToExcalidrawLib";
|
|
46
|
-
export { destroyObsidianUtils, registerLocalFont, getFontFamilies, registerFontsInCSS, getCSSFontDefinition, loadSceneFonts, } from "../excalidraw/obsidianUtils";
|
|
46
|
+
export { destroyObsidianUtils, registerLocalFont, getFontFamilies, registerFontsInCSS, getCSSFontDefinition, loadSceneFonts, getSharedMermaidInstance, loadMermaid, } from "../excalidraw/obsidianUtils";
|