mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
14 lines
640 B
TypeScript
14 lines
640 B
TypeScript
import "obsidian";
|
|
//import { ExcalidrawAutomate } from "./ExcalidrawAutomate";
|
|
//export ExcalidrawAutomate from "./ExcalidrawAutomate";
|
|
//export {ExcalidrawAutomate} from "./ExcaildrawAutomate";
|
|
export type { ExcalidrawBindableElement, ExcalidrawElement, FileId, FillStyle, StrokeRoundness, StrokeStyle } from "@zsviczian/excalidraw/types/element/types";
|
|
export type { Point } from "@zsviczian/excalidraw/types/types";
|
|
export const getEA = (view?:any): any => {
|
|
try {
|
|
return window.ExcalidrawAutomate.getAPI(view);
|
|
} catch(e) {
|
|
console.log({message: "Excalidraw not available", fn: getEA});
|
|
return null;
|
|
}
|
|
} |