@leafer-ui/event 1.9.12 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/TouchEvent.ts +12 -0
- package/src/index.ts +1 -0
- package/types/index.d.ts +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/event",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "@leafer-ui/event",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/core": "1.
|
|
25
|
+
"@leafer/core": "1.10.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@leafer/interface": "1.
|
|
28
|
+
"@leafer/interface": "1.10.0"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ITouchEvent } from '@leafer/interface'
|
|
2
|
+
import { registerUIEvent } from '@leafer/core'
|
|
3
|
+
|
|
4
|
+
import { UIEvent } from './UIEvent'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@registerUIEvent()
|
|
8
|
+
export class TouchEvent extends UIEvent implements ITouchEvent {
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const MyTouchEvent = TouchEvent
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { DragEvent, MyDragEvent } from './DragEvent'
|
|
|
3
3
|
export { DropEvent } from './DropEvent'
|
|
4
4
|
export { MoveEvent } from './MoveEvent'
|
|
5
5
|
export { PointerEvent, MyPointerEvent } from './PointerEvent'
|
|
6
|
+
export { TouchEvent, MyTouchEvent } from './TouchEvent'
|
|
6
7
|
export { RotateEvent } from './RotateEvent'
|
|
7
8
|
export { SwipeEvent } from './SwipeEvent'
|
|
8
9
|
export { ZoomEvent } from './ZoomEvent'
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IUIEvent, ILeafList, ILeaf, IShortcutKeysCheck, IShortcutKeys, IPointData, IPointerEvent, PointerType, IDragEvent, IObject, IBoundsData, IDropEvent, IMoveEvent, IRotateEvent, ISwipeEvent, IZoomEvent, IKeyEvent, IKeyCodes, IShortcutKeyCodes, IDragBoundsType, ISide } from '@leafer/interface';
|
|
1
|
+
import { IUIEvent, ILeafList, ILeaf, IShortcutKeysCheck, IShortcutKeys, IPointData, IPointerEvent, PointerType, IDragEvent, IObject, IBoundsData, IDropEvent, IMoveEvent, ITouchEvent, IRotateEvent, ISwipeEvent, IZoomEvent, IKeyEvent, IKeyCodes, IShortcutKeyCodes, IDragBoundsType, ISide } from '@leafer/interface';
|
|
2
2
|
import { Event } from '@leafer/core';
|
|
3
3
|
|
|
4
4
|
declare class UIEvent extends Event implements IUIEvent {
|
|
@@ -108,6 +108,10 @@ declare class MoveEvent extends DragEvent implements IMoveEvent {
|
|
|
108
108
|
readonly moveType: 'drag' | 'move';
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
declare class TouchEvent extends UIEvent implements ITouchEvent {
|
|
112
|
+
}
|
|
113
|
+
declare const MyTouchEvent: typeof TouchEvent;
|
|
114
|
+
|
|
111
115
|
declare class RotateEvent extends PointerEvent implements IRotateEvent {
|
|
112
116
|
static BEFORE_ROTATE: string;
|
|
113
117
|
static START: string;
|
|
@@ -174,4 +178,4 @@ declare const DragBoundsHelper: {
|
|
|
174
178
|
getValidScaleOf(content: IBoundsData, dragBounds: IBoundsData, dragBoundsType: IDragBoundsType, origin: IPointData, scale: IPointData, lockRatio?: boolean, change?: boolean): IPointData;
|
|
175
179
|
};
|
|
176
180
|
|
|
177
|
-
export { DragBoundsHelper, DragEvent, DropEvent, KeyEvent, Keyboard, MoveEvent, MyDragEvent, MyPointerEvent, PointerButton, PointerEvent, RotateEvent, SwipeEvent, UIEvent, ZoomEvent };
|
|
181
|
+
export { DragBoundsHelper, DragEvent, DropEvent, KeyEvent, Keyboard, MoveEvent, MyDragEvent, MyPointerEvent, MyTouchEvent, PointerButton, PointerEvent, RotateEvent, SwipeEvent, TouchEvent, UIEvent, ZoomEvent };
|