simple-mind-map
Version:
一个简单的web在线思维导图
33 lines (32 loc) • 835 B
TypeScript
export default Formula;
declare class Formula {
constructor(opt: any);
opt: any;
mindMap: any;
config: {
throwOnError: boolean;
errorColor: string;
output: string;
};
cssEl: HTMLStyleElement;
onDestroy(): void;
init(): void;
getKatexConfig(): {
throwOnError: boolean;
errorColor: string;
output: string;
};
extendQuill(): void;
getStyleText(): string;
addStyle(): void;
removeStyle(): void;
insertFormulaToNode(node: any, formula: any): void;
latexRichToText(nodeText: any): any;
formatLatex(richText: any): void;
checkFormulaIsLegal(str: any): boolean;
beforePluginRemove(): void;
beforePluginDestroy(): void;
}
declare namespace Formula {
const instanceName: string;
}