@leafer-in/interface 1.0.0-rc.19 → 1.0.0-rc.20
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 +3 -1
- package/src/scroll/IScrollBar.ts +2 -1
- package/types/index.d.ts +5 -2
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.20",
|
|
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.20",
|
|
29
|
+
"@leafer/interface": "1.0.0-rc.20"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/editor/IEditor.ts
CHANGED
|
@@ -45,6 +45,8 @@ export interface IEditorEvent extends IEvent {
|
|
|
45
45
|
|
|
46
46
|
readonly value?: IUI | IUI[]
|
|
47
47
|
readonly oldValue?: IUI | IUI[]
|
|
48
|
+
readonly list?: IUI[]
|
|
49
|
+
readonly oldList?: IUI[]
|
|
48
50
|
|
|
49
51
|
readonly worldOrigin?: IPointData
|
|
50
52
|
readonly origin?: IPointData
|
|
@@ -61,7 +63,7 @@ export interface IEditorScaleEvent extends IEditorEvent {
|
|
|
61
63
|
transform?: IMatrixData
|
|
62
64
|
|
|
63
65
|
readonly direction?: IDirection8
|
|
64
|
-
readonly lockRatio?: boolean
|
|
66
|
+
readonly lockRatio?: boolean | 'corner'
|
|
65
67
|
readonly around?: IAround
|
|
66
68
|
|
|
67
69
|
drag?: IDragEvent
|
package/src/scroll/IScrollBar.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IBoxInputData, IFourNumber, IGroup } from '@leafer-ui/interface'
|
|
2
2
|
|
|
3
3
|
export interface IScrollBarConfig {
|
|
4
|
-
padding?: IFourNumber
|
|
5
4
|
theme?: IScrollBarTheme
|
|
5
|
+
padding?: IFourNumber
|
|
6
|
+
minSize?: number
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export type IScrollBarTheme = 'light' | 'dark' | IBoxInputData
|
package/types/index.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ interface IEditorEvent extends IEvent {
|
|
|
81
81
|
readonly editor?: IEditor;
|
|
82
82
|
readonly value?: IUI | IUI[];
|
|
83
83
|
readonly oldValue?: IUI | IUI[];
|
|
84
|
+
readonly list?: IUI[];
|
|
85
|
+
readonly oldList?: IUI[];
|
|
84
86
|
readonly worldOrigin?: IPointData;
|
|
85
87
|
readonly origin?: IPointData;
|
|
86
88
|
}
|
|
@@ -93,7 +95,7 @@ interface IEditorScaleEvent extends IEditorEvent {
|
|
|
93
95
|
readonly scaleY?: number;
|
|
94
96
|
transform?: IMatrixData;
|
|
95
97
|
readonly direction?: IDirection8;
|
|
96
|
-
readonly lockRatio?: boolean;
|
|
98
|
+
readonly lockRatio?: boolean | 'corner';
|
|
97
99
|
readonly around?: IAround;
|
|
98
100
|
drag?: IDragEvent;
|
|
99
101
|
}
|
|
@@ -117,8 +119,9 @@ interface IHTMLTextInputData extends IHTMLTextAttrData, IImageInputData {
|
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
interface IScrollBarConfig {
|
|
120
|
-
padding?: IFourNumber;
|
|
121
122
|
theme?: IScrollBarTheme;
|
|
123
|
+
padding?: IFourNumber;
|
|
124
|
+
minSize?: number;
|
|
122
125
|
}
|
|
123
126
|
type IScrollBarTheme = 'light' | 'dark' | IBoxInputData;
|
|
124
127
|
interface IScrollBar extends IGroup {
|