@dineug/erd-editor
Version:
Entity-Relationship Diagram Editor
16 lines (15 loc) • 1.01 kB
TypeScript
import { ActionMap, ActionType } from '../actions';
import { FocusType } from '../state';
import { RootState } from '../../../state';
type Payload = ActionMap[typeof ActionType.focusMoveTable];
export declare function isColumns({ collections, editor: { focusTable } }: RootState): boolean;
export declare function isLastColumn(state: RootState): boolean;
export declare function isLastRowColumn({ collections, editor: { focusTable }, }: RootState): boolean;
export declare function getRemoveFirstColumnId(state: RootState, columnIds: string[]): string | null;
export declare function isLastTable(state: RootState): boolean;
export declare const isTableFocusType: (value: FocusType) => boolean;
export declare function arrowUp(state: RootState, payload: Payload): void;
export declare function arrowDown(state: RootState, payload: Payload): void;
export declare function arrowLeft(state: RootState, payload: Payload): void;
export declare function arrowRight(state: RootState, payload: Payload): void;
export {};