@leafer-ui/event 2.1.5 → 2.1.7
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/UIEvent.ts +3 -3
- package/types/index.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/event",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
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": "2.1.
|
|
25
|
+
"@leafer/core": "2.1.7"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@leafer/interface": "2.1.
|
|
28
|
+
"@leafer/interface": "2.1.7"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/UIEvent.ts
CHANGED
|
@@ -57,9 +57,9 @@ export class UIEvent extends Event implements IUIEvent {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
// 兼容代码,未来可移除
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
protected getInner(relative?: ILeaf): IPointData { return this.getInnerPoint(relative) }
|
|
61
|
+
protected getLocal(relative?: ILeaf): IPointData { return this.getLocalPoint(relative) }
|
|
62
|
+
protected getPage(): IPointData { return this.getPagePoint() }
|
|
63
63
|
// ---
|
|
64
64
|
|
|
65
65
|
static changeName(oldName: string, newName: string): void {
|
package/types/index.d.ts
CHANGED
|
@@ -25,9 +25,9 @@ declare class UIEvent extends Event implements IUIEvent {
|
|
|
25
25
|
getInnerPoint(relative?: ILeaf): IPointData;
|
|
26
26
|
getLocalPoint(relative?: ILeaf): IPointData;
|
|
27
27
|
getPagePoint(): IPointData;
|
|
28
|
-
getInner(relative?: ILeaf): IPointData;
|
|
29
|
-
getLocal(relative?: ILeaf): IPointData;
|
|
30
|
-
getPage(): IPointData;
|
|
28
|
+
protected getInner(relative?: ILeaf): IPointData;
|
|
29
|
+
protected getLocal(relative?: ILeaf): IPointData;
|
|
30
|
+
protected getPage(): IPointData;
|
|
31
31
|
static changeName(oldName: string, newName: string): void;
|
|
32
32
|
}
|
|
33
33
|
|