@leafer-in/interface 1.0.0-rc.7 → 1.0.0-rc.8
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/editor/IEditor.ts +4 -0
- package/types/index.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-in/interface",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.8",
|
|
4
4
|
"description": "@leafer-in/interface",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"leaferjs"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@leafer-ui/interface": "1.0.0-rc.
|
|
29
|
-
"@leafer/interface": "1.0.0-rc.
|
|
28
|
+
"@leafer-ui/interface": "1.0.0-rc.8",
|
|
29
|
+
"@leafer/interface": "1.0.0-rc.8"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/editor/IEditor.ts
CHANGED
|
@@ -42,6 +42,10 @@ export enum IDirection8 {
|
|
|
42
42
|
export interface IEditorEvent extends IEvent {
|
|
43
43
|
readonly target?: IUI
|
|
44
44
|
readonly editor?: IEditor
|
|
45
|
+
|
|
46
|
+
readonly value?: IUI | IUI[]
|
|
47
|
+
readonly oldValue?: IUI | IUI[]
|
|
48
|
+
|
|
45
49
|
readonly worldOrigin?: IPointData
|
|
46
50
|
readonly origin?: IPointData
|
|
47
51
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -79,6 +79,8 @@ declare enum IDirection8 {
|
|
|
79
79
|
interface IEditorEvent extends IEvent {
|
|
80
80
|
readonly target?: IUI;
|
|
81
81
|
readonly editor?: IEditor;
|
|
82
|
+
readonly value?: IUI | IUI[];
|
|
83
|
+
readonly oldValue?: IUI | IUI[];
|
|
82
84
|
readonly worldOrigin?: IPointData;
|
|
83
85
|
readonly origin?: IPointData;
|
|
84
86
|
}
|