UNPKG

@gamesberry/karmyc-core

Version:

A flexible and powerful layout management system for React applications

14 lines (13 loc) 844 B
import { AreaRowLayout } from "../../types/areaTypes"; import { WritableDraft } from "immer"; import { RootStateType } from "../store"; import { AreasState } from "../slices/areas-slice"; export declare function findParentRowAndIndices(layout: RootStateType['layout'], sourceAreaId: string, targetAreaId: string): { parentRow: AreaRowLayout | null; sourceIndex: number; targetIndex: number; }; export declare function findAllDescendantAreaIds(layout: RootStateType['layout'], itemId: string): Set<string>; export declare function findAllDisconnectedAreas(layout: RootStateType['layout'], rootId: string | null): Set<string>; export declare function simplifyLayoutNodeIfNeeded(state: WritableDraft<AreasState>, rowId: string | null | undefined): void; export declare function findFirstAreaId(layout: any, id: string): string | null;