import { Point } from '../../utils/point' ; internal export const ON_POINTER_MOVE = 'ON_POINTER_MOVE' ; internal export const ON_MOUSE_DOWN = 'ON_MOUSE_DOWN' ; internal export const ON_MOUSE_UP = 'ON_MOUSE_UP' ; interface MouseDownAction { type : typeof ON_MOUSE_DOWN ; position : Point ; time : number ; } interface MouseUpAction { type : typeof ON_MOUSE_UP ; position : Point ; time : number ; } interface PointerMoveAction { type : typeof ON_POINTER_MOVE ; position : Point ; time : number ; } param position param time internal export function onMouseDown ( position , time ) { return { type : ON_MOUSE_DOWN , position , time } ; } param position param time internal export function onMouseUp ( position , time ) { return { type : ON_MOUSE_UP , position , time } ; } param position param time internal export function onPointerMove ( position , time ) { return { type : ON_POINTER_MOVE , position , time } ; } internal export type MouseActions = MouseDownAction | MouseUpAction | PointerMoveAction ;