import { isString } from './dnd.utils' ; export class DataTransferEffect { static COPY = new DataTransferEffect ( 'copy' ) ; static LINK = new DataTransferEffect ( 'link' ) ; static MOVE = new DataTransferEffect ( 'move' ) ; static NONE = new DataTransferEffect ( 'none' ) ; constructor ( public name ) { } } export class DragImage { constructor ( public imageElement , public x_offset = 0 , public y_offset = 0 ) { if ( isString ( this . imageElement ) ) { let imgScr = < string > this . imageElement ; this . imageElement = new HTMLImageElement ( ) ; ( < HTMLImageElement > this . imageElement ) . src = imgScr ; } } } export class DragDropConfig { public onDragStartClass : string = "dnd-drag-start" ; public onDragEnterClass : string = "dnd-drag-enter" ; public onDragOverClass : string = "dnd-drag-over" ; public onSortableDragClass : string = "dnd-sortable-drag" ; public dragEffect : DataTransferEffect = DataTransferEffect . MOVE ; public dropEffect : DataTransferEffect = DataTransferEffect . MOVE ; public dragCursor : string = "move" ; public dragImage : DragImage ; public defaultCursor : string = "pointer" ; }