drag-event-service
Advanced tools
Comparing version 1.1.1 to 1.1.2
/*! | ||
* drag-event-service v1.1.1 | ||
* drag-event-service v1.1.2 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -4,0 +4,0 @@ * Homepage: undefined |
/*! | ||
* drag-event-service v1.1.1 | ||
* drag-event-service v1.1.2 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -4,0 +4,0 @@ * Homepage: undefined |
/*! | ||
* drag-event-service v1.1.1 | ||
* drag-event-service v1.1.2 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -4,0 +4,0 @@ * Homepage: undefined |
/*! | ||
* drag-event-service v1.1.1 | ||
* drag-event-service v1.1.2 | ||
* (c) phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -4,0 +4,0 @@ * Homepage: undefined |
{ | ||
"name": "drag-event-service", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/drag-event-service.cjs.js", |
@@ -1,2 +0,7 @@ | ||
export const DragEventService:Type_DragEventService | ||
const DragEventService: { | ||
isTouch: (e: MouseOrTouchEvent) => Boolean | ||
on: (el: HTMLElement, name: EventType, handler: Handler, options: Options) => void | ||
off: (el: HTMLElement, name: EventType, handler: Handler, options: Options) => void | ||
} | ||
export default DragEventService | ||
@@ -10,7 +15,2 @@ export function trackMouseOrTouchPosition(options: Options_trackMouseOrTouchPosition): { | ||
// types | ||
export interface Type_DragEventService{ | ||
isTouch: (e: MouseOrTouchEvent) => Boolean | ||
on: (el: HTMLElement, name: EventType, handler: Handler, options: Options) => void | ||
off: (el: HTMLElement, name: EventType, handler: Handler, options: Options) => void | ||
} | ||
export type EventType = 'start'|'move'|'end' | ||
@@ -17,0 +17,0 @@ export type MouseOrTouchEvent = MouseEvent|TouchEvent |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65789