@leafer-in/interface 1.0.0-rc.28 → 1.0.0-rc.30
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 +2 -2
- package/src/flow/index.ts +36 -0
- package/src/index.ts +5 -1
- package/types/index.d.ts +33 -4
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.30",
|
|
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.30",
|
|
29
|
+
"@leafer/interface": "1.0.0-rc.30"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/editor/IEditor.ts
CHANGED
|
@@ -9,8 +9,8 @@ export interface IEditor extends IEditorBase {
|
|
|
9
9
|
|
|
10
10
|
selector: IEditSelect
|
|
11
11
|
editBox: IEditBox
|
|
12
|
-
editTool
|
|
13
|
-
innerEditor
|
|
12
|
+
editTool?: IEditTool
|
|
13
|
+
innerEditor?: IInnerEditor
|
|
14
14
|
|
|
15
15
|
dragStartPoint: IPointData
|
|
16
16
|
targetEventIds: IEventListenerId[]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IBoundsData, IGap, IFlowAlign, IAxisAlign, IFlowWrap } from '@leafer-ui/interface'
|
|
2
|
+
|
|
3
|
+
export interface IFlowWrapDrawData extends IGapBoundsData {
|
|
4
|
+
list: IFlowDrawData[]
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface IFlowDrawData extends IGapBoundsData {
|
|
8
|
+
start: number
|
|
9
|
+
grow: number
|
|
10
|
+
hasRangeSize?: boolean
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IGapBoundsData extends IBoundsData {
|
|
14
|
+
count: number
|
|
15
|
+
gap: number
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface IFlowAlignToAxisAlignMap {
|
|
19
|
+
[name: string]: IAxisAlign
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface IFlowParseData {
|
|
23
|
+
complex: boolean
|
|
24
|
+
wrap: IFlowWrap
|
|
25
|
+
|
|
26
|
+
xGap: IGap
|
|
27
|
+
yGap: IGap
|
|
28
|
+
isAutoXGap: boolean
|
|
29
|
+
isAutoYGap: boolean
|
|
30
|
+
isFitXGap: boolean
|
|
31
|
+
isFitYGap: boolean
|
|
32
|
+
|
|
33
|
+
contentAlign: IFlowAlign
|
|
34
|
+
rowXAlign: IAxisAlign
|
|
35
|
+
rowYAlign: IAxisAlign
|
|
36
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -13,4 +13,8 @@ export { IHTMLTextData, IHTMLTextInputData } from './html/IHTMLTextData'
|
|
|
13
13
|
|
|
14
14
|
// scroll
|
|
15
15
|
|
|
16
|
-
export { IScrollBar, IScrollBarConfig, IScrollBarTheme } from './scroll/IScrollBar'
|
|
16
|
+
export { IScrollBar, IScrollBarConfig, IScrollBarTheme } from './scroll/IScrollBar'
|
|
17
|
+
|
|
18
|
+
// flow
|
|
19
|
+
|
|
20
|
+
export { IFlowWrapDrawData, IFlowDrawData, IGapBoundsData, IFlowAlignToAxisAlignMap, IFlowParseData } from './flow'
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEditBoxBase, IUI, IRectInputData, IGroup, IBoundsData, IBounds, IPointerEvent, IEditorBase, IPointData, IEventListenerId, IObject, IEvent, IMatrixData, IAround, IDragEvent, IImageData, IImageInputData, IFourNumber, IBoxInputData } from '@leafer-ui/interface';
|
|
1
|
+
import { IEditBoxBase, IUI, IRectInputData, IGroup, IBoundsData, IBounds, IPointerEvent, IEditorBase, IPointData, IEventListenerId, IObject, IEvent, IMatrixData, IAround, IDragEvent, IImageData, IImageInputData, IFourNumber, IBoxInputData, IAxisAlign, IFlowWrap, IGap, IFlowAlign } from '@leafer-ui/interface';
|
|
2
2
|
export * from '@leafer-ui/interface';
|
|
3
3
|
|
|
4
4
|
interface IEditBox extends IEditBoxBase {
|
|
@@ -32,8 +32,8 @@ interface IEditor extends IEditorBase {
|
|
|
32
32
|
simulateTarget: IUI;
|
|
33
33
|
selector: IEditSelect;
|
|
34
34
|
editBox: IEditBox;
|
|
35
|
-
editTool
|
|
36
|
-
innerEditor
|
|
35
|
+
editTool?: IEditTool;
|
|
36
|
+
innerEditor?: IInnerEditor;
|
|
37
37
|
dragStartPoint: IPointData;
|
|
38
38
|
targetEventIds: IEventListenerId[];
|
|
39
39
|
checkOpenedGroups(): void;
|
|
@@ -127,4 +127,33 @@ interface IScrollBar extends IGroup {
|
|
|
127
127
|
update(check: boolean): void;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
interface IFlowWrapDrawData extends IGapBoundsData {
|
|
131
|
+
list: IFlowDrawData[];
|
|
132
|
+
}
|
|
133
|
+
interface IFlowDrawData extends IGapBoundsData {
|
|
134
|
+
start: number;
|
|
135
|
+
grow: number;
|
|
136
|
+
hasRangeSize?: boolean;
|
|
137
|
+
}
|
|
138
|
+
interface IGapBoundsData extends IBoundsData {
|
|
139
|
+
count: number;
|
|
140
|
+
gap: number;
|
|
141
|
+
}
|
|
142
|
+
interface IFlowAlignToAxisAlignMap {
|
|
143
|
+
[name: string]: IAxisAlign;
|
|
144
|
+
}
|
|
145
|
+
interface IFlowParseData {
|
|
146
|
+
complex: boolean;
|
|
147
|
+
wrap: IFlowWrap;
|
|
148
|
+
xGap: IGap;
|
|
149
|
+
yGap: IGap;
|
|
150
|
+
isAutoXGap: boolean;
|
|
151
|
+
isAutoYGap: boolean;
|
|
152
|
+
isFitXGap: boolean;
|
|
153
|
+
isFitYGap: boolean;
|
|
154
|
+
contentAlign: IFlowAlign;
|
|
155
|
+
rowXAlign: IAxisAlign;
|
|
156
|
+
rowYAlign: IAxisAlign;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export type { IEditBox, IEditSelect, IEditTool, IEditor, IEditorEvent, IEditorGroupEvent, IEditorMoveEvent, IEditorRotateEvent, IEditorScaleEvent, IEditorSkewEvent, IFlowAlignToAxisAlignMap, IFlowDrawData, IFlowParseData, IFlowWrapDrawData, IGapBoundsData, IHTMLTextData, IHTMLTextInputData, IInnerEditor, IInnerEditorEvent, IScrollBar, IScrollBarConfig, IScrollBarTheme, ISelectArea, IStroker };
|