@moveable/helper
Version:
Helper for demo of Moveable
17 lines (16 loc) • 670 B
TypeScript
import { GroupArrayChild, GroupSingleChild } from "./groups";
export declare type TargetGroupWithId = {
groupId: string;
children: TargetGroupsObject;
};
export declare type TargetRef = {
current: HTMLElement | SVGElement | null;
};
export declare type TargetGroupsObject = Array<HTMLElement | SVGElement | TargetRef | TargetGroupsObject | TargetGroupWithId>;
export declare type TargetGroupsType = Array<HTMLElement | SVGElement | TargetGroupsType>;
export declare type GroupChild = GroupSingleChild | GroupArrayChild;
export interface TargetList {
raw(): GroupChild[];
flatten(): Array<HTMLElement | SVGElement>;
targets(): TargetGroupsType;
}