@ajainvivek/mind
Version:
Implementation of the core logic of the mind map plugin.
11 lines (10 loc) • 544 B
TypeScript
import { PlaitBoard } from '@plait/core';
import { ParagraphElement } from '@plait/common';
export declare const MIND_CENTRAL_TEXT = "Central Topic";
export declare const ABSTRACT_NODE_TEXT = "Summary";
export declare const getDefaultMindNameText: (board: PlaitBoard) => string;
export declare const getAbstractNodeText: (board: PlaitBoard) => string;
export declare const getTopicSize: (board: PlaitBoard | null, isRoot: boolean, isBranch: boolean, topic: ParagraphElement, manualWidth?: number) => {
width: number;
height: number;
};