UNPKG

@paperbits/common

Version:
45 lines (36 loc) 953 B
import { IWidgetBinding } from "../../editing"; import { WidgetModel } from "../../widgets"; export interface DragSession { /** * Source element the dagging has started from. */ sourceElement?: Element; /** * Model attached to dragged (source) element. */ sourceModel: WidgetModel; /** * Widget binding attached to source element. */ sourceBinding?: IWidgetBinding<any, any>; /** * Model attached to parent of dragged element. */ sourceParentModel?: WidgetModel; /** * A binding of parent widget. */ sourceParentBinding?: IWidgetBinding<any, any>; /** * Where to insert element in parent? */ insertIndex?: number; /** * Accepting element. */ targetElement?: Element; /** * Widget binding of accepting element. */ targetBinding?: IWidgetBinding<any, any>; }