import { IPortableDragEvent , IPortableMouseEvent } from "@survey/creator" ; export class ReactMouseEvent implements IPortableMouseEvent { constructor ( public event ) { } stopPropagation ( ) { this . event . stopPropagation ( ) ; } preventDefault ( ) { this . event . preventDefault ( ) ; } get cancelBubble ( ) : boolean { return false ; } set cancelBubble ( value ) { } get target ( ) : EventTarget | null { return this . event . target ; } get currentTarget ( ) : EventTarget | null { return this . event . currentTarget ; } get clientX ( ) : number { return this . event . clientX ; } get clientY ( ) : number { return this . event . clientY ; } get offsetX ( ) : number { return this . event . nativeEvent . offsetX ; } get offsetY ( ) : number { return this . event . nativeEvent . offsetY ; } } export class ReactDragEvent extends ReactMouseEvent implements IPortableDragEvent { constructor ( public event ) { super ( event ) ; } get dataTransfer ( ) : DataTransfer { return this . event . dataTransfer ; } }