@leafer/event 1.0.0-rc.9 → 1.0.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 +4 -4
- package/src/ChildEvent.ts +1 -0
- package/src/LeaferEvent.ts +0 -1
- package/src/PropertyEvent.ts +1 -0
- package/src/RenderEvent.ts +2 -0
- package/types/index.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/event",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "@leafer/event",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/decorator": "1.0.0
|
|
26
|
-
"@leafer/platform": "1.0.0
|
|
25
|
+
"@leafer/decorator": "1.0.0",
|
|
26
|
+
"@leafer/platform": "1.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@leafer/interface": "1.0.0
|
|
29
|
+
"@leafer/interface": "1.0.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/ChildEvent.ts
CHANGED
package/src/LeaferEvent.ts
CHANGED
package/src/PropertyEvent.ts
CHANGED
package/src/RenderEvent.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ declare class Event implements IEvent {
|
|
|
19
19
|
declare class ChildEvent extends Event implements IChildEvent {
|
|
20
20
|
static ADD: string;
|
|
21
21
|
static REMOVE: string;
|
|
22
|
+
static DESTROY: string;
|
|
22
23
|
readonly parent?: ILeaf;
|
|
23
24
|
readonly child?: ILeaf;
|
|
24
25
|
constructor(type: string, child?: ILeaf, parent?: ILeaf);
|
|
@@ -26,6 +27,7 @@ declare class ChildEvent extends Event implements IChildEvent {
|
|
|
26
27
|
|
|
27
28
|
declare class PropertyEvent extends Event implements IPropertyEvent {
|
|
28
29
|
static CHANGE: string;
|
|
30
|
+
static LEAFER_CHANGE: string;
|
|
29
31
|
readonly attrName: string;
|
|
30
32
|
readonly oldValue: unknown;
|
|
31
33
|
readonly newValue: unknown;
|
|
@@ -88,6 +90,7 @@ declare class RenderEvent extends Event implements IRenderEvent {
|
|
|
88
90
|
static AFTER: string;
|
|
89
91
|
static AGAIN: string;
|
|
90
92
|
static END: string;
|
|
93
|
+
static NEXT: string;
|
|
91
94
|
readonly renderBounds: IBounds;
|
|
92
95
|
readonly renderOptions: IRenderOptions;
|
|
93
96
|
readonly times: number;
|