You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@leafer/event-ui

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/event-ui - npm Package Compare versions

Comparing version
1.0.0-rc.9
to
1.0.0-rc.10
+10
-16
package.json
{
"name": "@leafer/event-ui",
"version": "1.0.0-rc.9",
"description": "@leafer/event-ui",
"version": "1.0.0-rc.10",
"description": "@leafer-ui/event",
"author": "Chao (Leafer) Wan",

@@ -9,25 +9,19 @@ "license": "MIT",

"types": "types/index.d.ts",
"files": [
"src",
"types",
"dist"
],
"files": ["src","types","dist"],
"repository": {
"type": "git",
"url": "https://github.com/leaferjs/leafer.git"
"url": "https://github.com/leaferjs/ui.git"
},
"homepage": "https://github.com/leaferjs/leafer/tree/main/packages/event-ui",
"bugs": "https://github.com/leaferjs/leafer/issues",
"homepage": "https://github.com/leaferjs/ui/tree/main/packages/event",
"bugs": "https://github.com/leaferjs/ui/issues",
"keywords": [
"leafer",
"leafer-ui",
"leaferjs"
],
"dependencies": {
"@leafer/event": "1.0.0-rc.9",
"@leafer/decorator": "1.0.0-rc.9",
"@leafer/list": "1.0.0-rc.9"
"@leafer/core": "1.0.0-rc.10"
},
"devDependencies": {
"@leafer/interface": "1.0.0-rc.9"
"@leafer/interface": "1.0.0-rc.10"
}
}
}

@@ -1,1 +0,1 @@

# @leafer/event-ui
# @leafer-ui/event
import { IDragEvent, IPointData, ILeaf, ILeafList, IObject } from '@leafer/interface'
import { registerUIEvent } from '@leafer/decorator'
import { LeafList } from '@leafer/list'
import { registerUIEvent, LeafList } from '@leafer/core'

@@ -40,2 +39,6 @@ import { PointerEvent } from './PointerEvent'

}
public getPageMove(total?: boolean): IPointData {
this.assignMove(total)
return this.current.getPagePoint(move, null, true)
}

@@ -54,2 +57,6 @@ public getInnerMove(relative?: ILeaf, total?: boolean): IPointData {

public getPageTotal(): IPointData {
return this.getPageMove(true)
}
public getInnerTotal(relative?: ILeaf): IPointData {

@@ -56,0 +63,0 @@ return this.getInnerMove(relative, true)

import { IDropEvent, ILeaf, ILeafList, IObject } from '@leafer/interface'
import { registerUIEvent } from '@leafer/decorator'
import { registerUIEvent } from '@leafer/core'

@@ -4,0 +4,0 @@ import { PointerEvent } from './PointerEvent'

import { IKeyEvent } from '@leafer/interface'
import { registerUIEvent } from '@leafer/decorator'
import { registerUIEvent } from '@leafer/core'

@@ -4,0 +4,0 @@ import { UIEvent } from './UIEvent'

import { IMoveEvent } from '@leafer/interface'
import { registerUIEvent } from '@leafer/decorator'
import { registerUIEvent } from '@leafer/core'

@@ -4,0 +4,0 @@ import { DragEvent } from './DragEvent'

import { IPointerEvent, PointerType } from '@leafer/interface'
import { registerUIEvent } from '@leafer/decorator'
import { registerUIEvent } from '@leafer/core'

@@ -36,2 +36,3 @@ import { UIEvent } from './UIEvent'

static MENU = 'pointer.menu'
static MENU_TAP = 'pointer.menu_tap'

@@ -38,0 +39,0 @@ public readonly width: number

import { IRotateEvent } from '@leafer/interface'
import { registerUIEvent } from '@leafer/decorator'
import { registerUIEvent } from '@leafer/core'

@@ -4,0 +4,0 @@ import { UIEvent } from './UIEvent'

import { ISwipeEvent } from '@leafer/interface'
import { registerUIEvent } from '@leafer/decorator'
import { registerUIEvent } from '@leafer/core'

@@ -4,0 +4,0 @@ import { DragEvent } from './DragEvent'

import { ILeaf, ILeafList, IPointData, IUIEvent } from '@leafer/interface'
import { Event } from '@leafer/event'
import { EventCreator } from '@leafer/platform'
import { Event, EventCreator } from '@leafer/core'

@@ -37,2 +36,6 @@ import { Keyboard } from './Keyboard'

public getPage(): IPointData {
return this.current.getPagePoint(this)
}
public getInner(relative?: ILeaf): IPointData {

@@ -39,0 +42,0 @@ if (!relative) relative = this.current

import { IZoomEvent } from '@leafer/interface'
import { registerUIEvent } from '@leafer/decorator'
import { registerUIEvent } from '@leafer/core'

@@ -4,0 +4,0 @@ import { UIEvent } from './UIEvent'

import { IUIEvent, ILeafList, ILeaf, IPointData, IPointerEvent, PointerType, IDragEvent, IObject, IDropEvent, IMoveEvent, IRotateEvent, ISwipeEvent, IZoomEvent, IKeyEvent } from '@leafer/interface';
import { Event } from '@leafer/event';
import { Event } from '@leafer/core';

@@ -22,2 +22,3 @@ declare class UIEvent extends Event implements IUIEvent {

constructor(params: IUIEvent);
getPage(): IPointData;
getInner(relative?: ILeaf): IPointData;

@@ -47,2 +48,3 @@ getLocal(relative?: ILeaf): IPointData;

static MENU: string;
static MENU_TAP: string;
readonly width: number;

@@ -75,4 +77,6 @@ readonly height: number;

static setData(data: IObject): void;
getPageMove(total?: boolean): IPointData;
getInnerMove(relative?: ILeaf, total?: boolean): IPointData;
getLocalMove(relative?: ILeaf, total?: boolean): IPointData;
getPageTotal(): IPointData;
getInnerTotal(relative?: ILeaf): IPointData;

@@ -79,0 +83,0 @@ getLocalTotal(relative?: ILeaf): IPointData;