mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
52 lines
1.0 KiB
TypeScript
52 lines
1.0 KiB
TypeScript
import { ExcalidrawAutomate } from "./ExcalidrawAutomate";
|
|
|
|
export type ConnectionPoint = "top" | "bottom" | "left" | "right" | null;
|
|
|
|
export type Packages = {
|
|
react: any,
|
|
reactDOM: any,
|
|
excalidrawLib: any,
|
|
}
|
|
|
|
export type ValueOf<T> = T[keyof T];
|
|
|
|
export type DynamicStyle = "none" | "gray" | "colorful";
|
|
|
|
export type DeviceType = {
|
|
isDesktop: boolean,
|
|
isPhone: boolean,
|
|
isTablet: boolean,
|
|
isMobile: boolean,
|
|
isLinux: boolean,
|
|
isMacOS: boolean,
|
|
isWindows: boolean,
|
|
isIOS: boolean,
|
|
isAndroid: boolean
|
|
};
|
|
|
|
declare global {
|
|
interface Window {
|
|
ExcalidrawAutomate: ExcalidrawAutomate;
|
|
}
|
|
}
|
|
|
|
declare module "obsidian" {
|
|
interface App {
|
|
internalPlugins: any;
|
|
isMobile(): boolean;
|
|
getObsidianUrl(file:TFile): string;
|
|
}
|
|
interface Keymap {
|
|
getRootScope(): Scope;
|
|
}
|
|
interface Scope {
|
|
keys: any[];
|
|
}
|
|
interface Workspace {
|
|
on(
|
|
name: "hover-link",
|
|
callback: (e: MouseEvent) => any,
|
|
ctx?: any,
|
|
): EventRef;
|
|
}
|
|
} |