@leafer/event-ui
Advanced tools
+5
-5
| { | ||
| "name": "@leafer/event-ui", | ||
| "version": "1.0.0-rc.4", | ||
| "version": "1.0.0-rc.5", | ||
| "description": "@leafer/event-ui", | ||
@@ -25,9 +25,9 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/event": "1.0.0-rc.4", | ||
| "@leafer/decorator": "1.0.0-rc.4", | ||
| "@leafer/list": "1.0.0-rc.4" | ||
| "@leafer/event": "1.0.0-rc.5", | ||
| "@leafer/decorator": "1.0.0-rc.5", | ||
| "@leafer/list": "1.0.0-rc.5" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-rc.4" | ||
| "@leafer/interface": "1.0.0-rc.5" | ||
| } | ||
| } |
+23
-11
@@ -1,3 +0,4 @@ | ||
| import { IDragEvent, IPointData, ILeaf } from '@leafer/interface' | ||
| import { IDragEvent, IPointData, ILeaf, ILeafList, IObject } from '@leafer/interface' | ||
| import { registerUIEvent } from '@leafer/decorator' | ||
| import { LeafList } from '@leafer/list' | ||
@@ -29,20 +30,31 @@ import { PointerEvent } from './PointerEvent' | ||
| public getInnerMove(target?: ILeaf, total?: boolean): IPointData { | ||
| if (!target) target = this.current | ||
| static list: ILeafList | ||
| static data: IObject | ||
| static setList(data: ILeaf | ILeaf[] | ILeafList): void { | ||
| this.list = data instanceof LeafList ? data : new LeafList(data as ILeaf[]) | ||
| } | ||
| static setData(data: IObject): void { | ||
| this.data = data | ||
| } | ||
| public getInnerMove(relative?: ILeaf, total?: boolean): IPointData { | ||
| if (!relative) relative = this.current | ||
| this.assignMove(total) | ||
| return target.getInnerPoint(move, null, true) | ||
| return relative.getInnerPoint(move, null, true) | ||
| } | ||
| public getLocalMove(target?: ILeaf, total?: boolean): IPointData { | ||
| if (!target) target = this.current | ||
| public getLocalMove(relative?: ILeaf, total?: boolean): IPointData { | ||
| if (!relative) relative = this.current | ||
| this.assignMove(total) | ||
| return target.getLocalPoint(move, null, true) | ||
| return relative.getLocalPoint(move, null, true) | ||
| } | ||
| public getInnerTotal(target?: ILeaf): IPointData { | ||
| return this.getInnerMove(target, true) | ||
| public getInnerTotal(relative?: ILeaf): IPointData { | ||
| return this.getInnerMove(relative, true) | ||
| } | ||
| public getLocalTotal(target?: ILeaf): IPointData { | ||
| return this.getLocalMove(target, true) | ||
| public getLocalTotal(relative?: ILeaf): IPointData { | ||
| return this.getLocalMove(relative, true) | ||
| } | ||
@@ -49,0 +61,0 @@ |
+3
-6
| import { IDropEvent, ILeaf, ILeafList, IObject } from '@leafer/interface' | ||
| import { LeafList } from '@leafer/list' | ||
| import { registerUIEvent } from '@leafer/decorator' | ||
| import { PointerEvent } from './PointerEvent' | ||
| import { DragEvent } from './DragEvent' | ||
@@ -16,13 +16,10 @@ | ||
| static dragList: ILeafList | ||
| static dragData: IObject | ||
| static setList(data: ILeaf | ILeaf[] | ILeafList): void { | ||
| DropEvent.dragList = data instanceof LeafList ? data : new LeafList(data as ILeaf[]) | ||
| DragEvent.setList(data) | ||
| } | ||
| static setData(data: IObject): void { | ||
| this.dragData = data | ||
| DragEvent.setData(data) | ||
| } | ||
| } |
@@ -35,2 +35,4 @@ import { IPointerEvent, PointerType } from '@leafer/interface' | ||
| static MENU = 'pointer.menu' | ||
| public readonly width: number | ||
@@ -37,0 +39,0 @@ public readonly height: number |
+7
-9
@@ -1,2 +0,2 @@ | ||
| import { ILeaf, ILeafList, IObject, IPointData, IUIEvent } from '@leafer/interface' | ||
| import { ILeaf, ILeafList, IPointData, IUIEvent } from '@leafer/interface' | ||
| import { Event } from '@leafer/event' | ||
@@ -32,4 +32,2 @@ import { EventCreator } from '@leafer/platform' | ||
| readonly origin: IObject | ||
| constructor(params: IUIEvent) { | ||
@@ -40,10 +38,10 @@ super(params.type) | ||
| public getInner(target?: ILeaf): IPointData { | ||
| if (!target) target = this.current | ||
| return target.getInnerPoint(this) | ||
| public getInner(relative?: ILeaf): IPointData { | ||
| if (!relative) relative = this.current | ||
| return relative.getInnerPoint(this) | ||
| } | ||
| public getLocal(target?: ILeaf): IPointData { | ||
| if (!target) target = this.current | ||
| return target.getLocalPoint(this) | ||
| public getLocal(relative?: ILeaf): IPointData { | ||
| if (!relative) relative = this.current | ||
| return relative.getLocalPoint(this) | ||
| } | ||
@@ -50,0 +48,0 @@ |
+12
-10
@@ -1,2 +0,2 @@ | ||
| import { IUIEvent, ILeafList, ILeaf, IObject, IPointData, IPointerEvent, PointerType, IDragEvent, IDropEvent, IMoveEvent, IRotateEvent, ISwipeEvent, IZoomEvent, IKeyEvent } from '@leafer/interface'; | ||
| import { IUIEvent, ILeafList, ILeaf, IPointData, IPointerEvent, PointerType, IDragEvent, IObject, IDropEvent, IMoveEvent, IRotateEvent, ISwipeEvent, IZoomEvent, IKeyEvent } from '@leafer/interface'; | ||
| import { Event } from '@leafer/event'; | ||
@@ -21,6 +21,5 @@ | ||
| readonly bubbles: boolean; | ||
| readonly origin: IObject; | ||
| constructor(params: IUIEvent); | ||
| getInner(target?: ILeaf): IPointData; | ||
| getLocal(target?: ILeaf): IPointData; | ||
| getInner(relative?: ILeaf): IPointData; | ||
| getLocal(relative?: ILeaf): IPointData; | ||
| static changeName(oldName: string, newName: string): void; | ||
@@ -47,2 +46,3 @@ } | ||
| static LONG_TAP: string; | ||
| static MENU: string; | ||
| readonly width: number; | ||
@@ -71,6 +71,10 @@ readonly height: number; | ||
| readonly totalY: number; | ||
| getInnerMove(target?: ILeaf, total?: boolean): IPointData; | ||
| getLocalMove(target?: ILeaf, total?: boolean): IPointData; | ||
| getInnerTotal(target?: ILeaf): IPointData; | ||
| getLocalTotal(target?: ILeaf): IPointData; | ||
| static list: ILeafList; | ||
| static data: IObject; | ||
| static setList(data: ILeaf | ILeaf[] | ILeafList): void; | ||
| static setData(data: IObject): void; | ||
| getInnerMove(relative?: ILeaf, total?: boolean): IPointData; | ||
| getLocalMove(relative?: ILeaf, total?: boolean): IPointData; | ||
| getInnerTotal(relative?: ILeaf): IPointData; | ||
| getLocalTotal(relative?: ILeaf): IPointData; | ||
| protected assignMove(total: boolean): void; | ||
@@ -83,4 +87,2 @@ } | ||
| readonly data: IObject; | ||
| static dragList: ILeafList; | ||
| static dragData: IObject; | ||
| static setList(data: ILeaf | ILeaf[] | ILeafList): void; | ||
@@ -87,0 +89,0 @@ static setData(data: IObject): void; |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
14574
2.51%349
2.65%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated