drag-event-service
Advanced tools
Comparing version 1.1.0 to 1.1.1
/*! | ||
* drag-event-service v1.1.0 | ||
* drag-event-service v1.1.1 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -4,0 +4,0 @@ * Homepage: undefined |
/*! | ||
* drag-event-service v1.1.0 | ||
* drag-event-service v1.1.1 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -4,0 +4,0 @@ * Homepage: undefined |
/*! | ||
* drag-event-service v1.1.0 | ||
* drag-event-service v1.1.1 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -4,0 +4,0 @@ * Homepage: undefined |
/*! | ||
* drag-event-service v1.1.0 | ||
* drag-event-service v1.1.1 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -4,0 +4,0 @@ * Homepage: undefined |
{ | ||
"name": "drag-event-service", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/drag-event-service.cjs.js", |
@@ -1,2 +0,11 @@ | ||
export default interface DragEventService{ | ||
export const DragEventService:Type_DragEventService | ||
export function trackMouseOrTouchPosition(options: Options_trackMouseOrTouchPosition): { | ||
info: TrackedInfo | ||
start: () => void | ||
stop: () => void | ||
} | ||
// types | ||
export interface Type_DragEventService{ | ||
isTouch: (e: MouseOrTouchEvent) => Boolean | ||
@@ -6,12 +15,2 @@ on: (el: HTMLElement, name: EventType, handler: Handler, options: Options) => void | ||
} | ||
export interface trackMouseOrTouchPosition{ | ||
(options: Options_trackMouseOrTouchPosition): { | ||
info: TrackedInfo | ||
start: () => void | ||
stop: () => void | ||
} | ||
} | ||
// types | ||
export type EventType = 'start'|'move'|'end' | ||
@@ -18,0 +17,0 @@ export type MouseOrTouchEvent = MouseEvent|TouchEvent |
65823
1420