mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
34 lines
795 B
TypeScript
34 lines
795 B
TypeScript
import { DataURL } from "@zsviczian/excalidraw/types/excalidraw/types";
|
|
import { TFile } from "obsidian";
|
|
import { FileId } from "src/core";
|
|
import { ColorMap, MimeType, PDFPageViewProps, Size } from "src/shared/EmbeddedFileLoader";
|
|
|
|
export type SVGColorInfo = Map<string, {
|
|
mappedTo: string;
|
|
fill: boolean;
|
|
stroke: boolean;
|
|
}>;
|
|
|
|
export type ImageInfo = {
|
|
mimeType: MimeType,
|
|
id: FileId,
|
|
dataURL: DataURL,
|
|
created: number,
|
|
isHyperLink?: boolean,
|
|
hyperlink?: string,
|
|
file?:string | TFile,
|
|
hasSVGwithBitmap: boolean,
|
|
latex?: string,
|
|
size?: Size,
|
|
colorMap?: ColorMap,
|
|
pdfPageViewProps?: PDFPageViewProps,
|
|
}
|
|
|
|
export interface AddImageOptions {
|
|
topX: number;
|
|
topY: number;
|
|
imageFile: TFile | string;
|
|
scale?: boolean;
|
|
anchor?: boolean;
|
|
colorMap?: ColorMap;
|
|
} |