@leafer/event 1.0.0-rc.8 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/event",
3
- "version": "1.0.0-rc.8",
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-rc.8",
26
- "@leafer/platform": "1.0.0-rc.8"
25
+ "@leafer/decorator": "1.0.0",
26
+ "@leafer/platform": "1.0.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-rc.8"
29
+ "@leafer/interface": "1.0.0"
30
30
  }
31
31
  }
package/src/ChildEvent.ts CHANGED
@@ -7,6 +7,7 @@ export class ChildEvent extends Event implements IChildEvent {
7
7
 
8
8
  static ADD = 'child.add'
9
9
  static REMOVE = 'child.remove'
10
+ static DESTROY = 'child.destroy'
10
11
 
11
12
  readonly parent?: ILeaf
12
13
  readonly child?: ILeaf
@@ -20,5 +20,4 @@ export class LeaferEvent extends Event implements ILeaferEvent {
20
20
 
21
21
  static END = 'leafer.end'
22
22
 
23
-
24
23
  }
@@ -6,6 +6,7 @@ import { Event } from './Event'
6
6
  export class PropertyEvent extends Event implements IPropertyEvent {
7
7
 
8
8
  static CHANGE = 'property.change'
9
+ static LEAFER_CHANGE = 'property.leafer_change'
9
10
 
10
11
  readonly attrName: string
11
12
  readonly oldValue: unknown
@@ -17,6 +17,8 @@ export class RenderEvent extends Event implements IRenderEvent {
17
17
 
18
18
  static END = 'render.end'
19
19
 
20
+ static NEXT = 'render.next'
21
+
20
22
  readonly renderBounds: IBounds
21
23
  readonly renderOptions: IRenderOptions
22
24
  readonly times: number
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;