@ajainvivek/mind
Version:
Implementation of the core logic of the mind map plugin.
13 lines (12 loc) • 1.11 kB
TypeScript
import { LayoutDirection, MindElement } from '../interfaces';
import { MindLayoutType } from '@plait/layouts';
export declare const getBranchDirectionsByLayouts: (branchLayouts: MindLayoutType[]) => LayoutDirection[];
export declare const isCorrectLayout: (root: MindElement, layout: MindLayoutType) => boolean;
export declare const isMixedLayout: (parentLayout: MindLayoutType, layout: MindLayoutType) => boolean;
export declare const getInCorrectLayoutDirection: (rootLayout: MindLayoutType, layout: MindLayoutType) => LayoutDirection | undefined;
export declare const correctLayoutByDirection: (layout: MindLayoutType, direction: LayoutDirection) => MindLayoutType;
export declare const getLayoutDirection: (root: MindElement) => LayoutDirection[];
export declare const getDefaultLayout: () => MindLayoutType;
export declare const getAvailableSubLayoutsByLayoutDirections: (directions: LayoutDirection[]) => MindLayoutType[];
export declare const getLayoutReverseDirection: (layoutDirection: LayoutDirection) => LayoutDirection;
export declare const getRootLayout: (root: MindElement) => MindLayoutType;