@leafer-ui/interface 1.9.0 → 1.9.2
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 +2 -2
- package/src/ICommonAttr.ts +4 -4
- package/src/IScroller.ts +44 -0
- package/src/IUI.ts +7 -3
- package/src/editor/IEditor.ts +3 -1
- package/src/index.ts +2 -1
- package/src/type/IType.ts +3 -1
- package/types/index.d.ts +43 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/interface",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "@leafer-ui/interface",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/interface": "1.9.
|
|
25
|
+
"@leafer/interface": "1.9.2"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/src/ICommonAttr.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INumber, IBoolean, IString, IFourNumber, IUnitData, IScaleFixed } from '@leafer/interface'
|
|
2
|
-
import { IStrokeAlign, IStrokeCap, IStrokeJoin, IBlurEffect, IFontWeight, ITextCase, ITextDecoration, IShadowEffect, IGrayscaleEffect, ITextAlign, IVerticalAlign,
|
|
2
|
+
import { IStrokeAlign, IStrokeCap, IStrokeJoin, IBlurEffect, IFontWeight, ITextCase, ITextDecoration, IShadowEffect, IGrayscaleEffect, ITextAlign, IVerticalAlign, ITextWrap, IStroke, IFill, IArrowType, IWritingMode, ITextOverflow } from './type/IType'
|
|
3
3
|
import { ILeafStrokePaint, ILeafShadowEffect, ILeafPaint } from './type/IComputedType'
|
|
4
4
|
import { IDashPatternString, IShadowString, IColorString, IStrokeWidthString, ICornerRadiusString } from './type/IStringType'
|
|
5
5
|
|
|
@@ -100,7 +100,7 @@ export interface ITextStyleAttrData {
|
|
|
100
100
|
autoSizeAlign?: IBoolean
|
|
101
101
|
|
|
102
102
|
textWrap?: ITextWrap
|
|
103
|
-
textOverflow?:
|
|
103
|
+
textOverflow?: ITextOverflow
|
|
104
104
|
}
|
|
105
105
|
export interface ITextStyleInputData {
|
|
106
106
|
fontFamily?: IString
|
|
@@ -121,7 +121,7 @@ export interface ITextStyleInputData {
|
|
|
121
121
|
autoSizeAlign?: IBoolean
|
|
122
122
|
|
|
123
123
|
textWrap?: ITextWrap
|
|
124
|
-
textOverflow?:
|
|
124
|
+
textOverflow?: ITextOverflow
|
|
125
125
|
}
|
|
126
126
|
export interface ITextStyleComputedData {
|
|
127
127
|
fontFamily?: string
|
|
@@ -142,7 +142,7 @@ export interface ITextStyleComputedData {
|
|
|
142
142
|
autoSizeAlign?: boolean // 自动宽高的文本,是否仍进行整体对齐操作
|
|
143
143
|
|
|
144
144
|
textWrap?: ITextWrap
|
|
145
|
-
textOverflow?:
|
|
145
|
+
textOverflow?: ITextOverflow
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
// effect---
|
package/src/IScroller.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IScaleFixed, IBounds } from '@leafer/interface'
|
|
2
|
+
|
|
3
|
+
import { IBoxInputData, IGroup, IBox } from './IUI'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export interface IScrollConfig {
|
|
7
|
+
theme?: IScrollTheme // 主题
|
|
8
|
+
style?: IBoxInputData // 滚动条样式
|
|
9
|
+
size?: number // 滚动条的size
|
|
10
|
+
endsMargin?: number // 滚动条两端的间距
|
|
11
|
+
sideMargin?: number // 滚动条两侧的间距
|
|
12
|
+
minSize?: number // 最小显示size
|
|
13
|
+
scaleFixed?: IScaleFixed
|
|
14
|
+
scrollType?: 'drag' | 'move' | 'both' // 滚动类型
|
|
15
|
+
hideOnActionEnd?: boolean | 'hover' | 'scroll' // 操作结束时自动隐藏
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type IScrollTheme = 'light' | 'dark' | (string & {})
|
|
19
|
+
|
|
20
|
+
export interface IScroller extends IGroup {
|
|
21
|
+
config: IScrollConfig
|
|
22
|
+
mergedConfig: IScrollConfig
|
|
23
|
+
|
|
24
|
+
// 滚动条
|
|
25
|
+
scrollXBar: IBox
|
|
26
|
+
scrollYBar: IBox
|
|
27
|
+
|
|
28
|
+
// 滚动范围
|
|
29
|
+
scrollXBounds: IBounds
|
|
30
|
+
scrollYBounds: IBounds
|
|
31
|
+
|
|
32
|
+
// 滚动区域 / 内容区域
|
|
33
|
+
scrollRatioX: number
|
|
34
|
+
scrollRatioY: number
|
|
35
|
+
|
|
36
|
+
// viewport 区域 / 内容区域
|
|
37
|
+
ratioX: number
|
|
38
|
+
ratioY: number
|
|
39
|
+
|
|
40
|
+
dragScrolling: boolean
|
|
41
|
+
|
|
42
|
+
updateConfig(): void
|
|
43
|
+
update(check: boolean): void
|
|
44
|
+
}
|
package/src/IUI.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { IAnimation, IAnimate, IKeyframe, IKeyframeId, IAnimateType } from './IA
|
|
|
14
14
|
import { ILeafer } from './app/ILeafer'
|
|
15
15
|
import { IEditorConfig } from './editor/IEditor'
|
|
16
16
|
import { IColorString } from './type/IStringType'
|
|
17
|
+
import { IScroller, IScrollConfig } from './IScroller'
|
|
17
18
|
|
|
18
19
|
// Line
|
|
19
20
|
export interface ILine extends ILineAttrData, IUI {
|
|
@@ -340,14 +341,17 @@ export interface IFrameInputData extends IBoxInputData {
|
|
|
340
341
|
// Box
|
|
341
342
|
export interface IBox extends IBoxAttrData, IGroup {
|
|
342
343
|
__: IBoxData
|
|
343
|
-
|
|
344
|
-
|
|
344
|
+
scroller?: IScroller
|
|
345
|
+
hasScroller?: boolean
|
|
346
|
+
__checkScroll(): void
|
|
347
|
+
__updateScroll(): void
|
|
345
348
|
__updateRectRenderBounds(): void
|
|
346
349
|
__renderGroup(canvas: ILeaferCanvas, options: IRenderOptions): void
|
|
347
350
|
}
|
|
348
351
|
|
|
349
352
|
interface IBoxAttrData {
|
|
350
353
|
overflow?: IOverflow
|
|
354
|
+
scrollConfig?: IScrollConfig
|
|
351
355
|
resizeChildren?: IBoolean
|
|
352
356
|
textBox?: IBoolean // 编辑器中,textBox双击会直接进入编辑文本状态,如便利贴文本
|
|
353
357
|
}
|
|
@@ -547,7 +551,7 @@ export type IUITag =
|
|
|
547
551
|
| 'Video'
|
|
548
552
|
|
|
549
553
|
|
|
550
|
-
export interface IUIInputData extends IRectInputData, IEllipseInputData, IPolygonInputData, IStarInputData, ILineInputData, IPathInputData, ITextInputData, IImageInputData, IGroupInputData, IFrameInputData, IArrowInputData, IGIFInputData, IVideoInputData, IRobotInputData, IUIBaseInputData, IObject {
|
|
554
|
+
export interface IUIInputData extends IRectInputData, IEllipseInputData, IPolygonInputData, IStarInputData, ILineInputData, IPathInputData, ITextInputData, IImageInputData, IGroupInputData, IBoxInputData, IFrameInputData, IFlowInputData, IArrowInputData, IGIFInputData, IVideoInputData, IRobotInputData, IUIBaseInputData, IObject {
|
|
551
555
|
children?: IUIInputData[]
|
|
552
556
|
}
|
|
553
557
|
|
package/src/editor/IEditor.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IGroup, IUI, IBox, IRectInputData, ISelectorProxy, IEditSize, ICursorType, IAlign, IUnitPointData, IDragEvent, IMoveEvent, IRotateEvent, IStroke, IFill, ILeaf, ILeafList, IObject, IBoxInputData, IGroupInputData, IImageCursor, IRect, IKeyEvent, IUIInputData, IZoomEvent, IColorString, IDirection4, IPointData, IScaleData, ISkewData, ILayoutBoundsData, ITransition, IFourNumber, IShortcutKeys, IShortcutKeysCheck, IUIEvent } from '@leafer-ui/interface'
|
|
1
|
+
import { IGroup, IUI, IBox, IRectInputData, ISelectorProxy, IEditSize, ICursorType, IAlign, IUnitPointData, IDragEvent, IMoveEvent, IRotateEvent, IStroke, IFill, ILeaf, ILeafList, IObject, IBoxInputData, IGroupInputData, IImageCursor, IRect, IKeyEvent, IUIInputData, IZoomEvent, IColorString, IDirection4, IPointData, IScaleData, ISkewData, ILayoutBoundsData, ITransition, IFourNumber, IShortcutKeys, IShortcutKeysCheck, IUIEvent, ILeafer } from '@leafer-ui/interface'
|
|
2
2
|
|
|
3
3
|
export interface IEditorBase extends IGroup, ISelectorProxy, ITransformTool {
|
|
4
4
|
config: IEditorConfig
|
|
@@ -38,6 +38,8 @@ export interface IEditorBase extends IGroup, ISelectorProxy, ITransformTool {
|
|
|
38
38
|
innerEditor?: IObject
|
|
39
39
|
editMask: IUI
|
|
40
40
|
|
|
41
|
+
readonly targetLeafer: ILeafer
|
|
42
|
+
|
|
41
43
|
select(target: IUI | IUI[]): void
|
|
42
44
|
cancel(): void
|
|
43
45
|
|
package/src/index.ts
CHANGED
|
@@ -28,12 +28,13 @@ export {
|
|
|
28
28
|
IUITag, IUIInputData, IUIJSONData, IStateStyle, IStates, IStateName
|
|
29
29
|
} from './IUI'
|
|
30
30
|
|
|
31
|
-
export { IVectorPath, IShadowEffect, IBlurEffect, IGrayscaleEffect, IEffect, IFill, IStroke, IPaintAttr, IStrokeAlign, IStrokeJoin, IStrokeCap, IArrowType, IPathDataArrow, IPathDataArrowMap, IRGB, IRGBA, IColor, IColorStop, IPaint, IStrokePaint, IStrokeSolidPaint, IGradientPaint, IStrokeGradientPaint, IImagePaint, IStrokeImagePaint, IImagePaintMode, IFontWeight, IFontWeightNumer, IFontWeightString, ITextCase, ITextDecoration, ITextDecorationType, ITextDecorationData, IWritingMode, ITextAlign, IVerticalAlign, IOverflow, ITextWrap, IRepeat, IGradientType, IPaintType, IImageFilters, IPathDataArrowOffset, ISolidPaint, IPaintBase } from './type/IType'
|
|
31
|
+
export { IVectorPath, IShadowEffect, IBlurEffect, IGrayscaleEffect, IEffect, IFill, IStroke, IPaintAttr, IStrokeAlign, IStrokeJoin, IStrokeCap, IArrowType, IPathDataArrow, IPathDataArrowMap, IRGB, IRGBA, IColor, IColorStop, IPaint, IStrokePaint, IStrokeSolidPaint, IGradientPaint, IStrokeGradientPaint, IImagePaint, IStrokeImagePaint, IImagePaintMode, IFontWeight, IFontWeightNumer, IFontWeightString, ITextCase, ITextDecoration, ITextDecorationType, ITextDecorationData, IWritingMode, ITextAlign, IVerticalAlign, IOverflow, ITextOverflow, ITextWrap, IRepeat, IGradientType, IPaintType, IImageFilters, IPathDataArrowOffset, ISolidPaint, IPaintBase } from './type/IType'
|
|
32
32
|
export { ICornerRadiusString, IStrokeWidthString, IPaintString, IShadowString, IPercent, IDashPatternString, IColorString } from './type/IStringType'
|
|
33
33
|
export { ILeafFill, ILeafPaint, ILeafPaintPatternData, ILeafPaintColor, ILeafStrokePaint, ILeafShadowEffect } from './type/IComputedType'
|
|
34
34
|
export { IStrokeAttrData, IStrokeInputData, IStrokeComputedData, IStrokeComputedStyle, IStrokeStyle, ITextStyleAttrData, ITextStyleInputData, ITextStyleComputedData, IEffectAttrData, IEffectInputData, IEffectComputedData } from './ICommonAttr'
|
|
35
35
|
|
|
36
36
|
export { IAnimation, IAnimate, IAnimateList, IAnimateType, IKeyframe, IKeyframeId, IAnimateKeyframe, IComputedKeyframe, IStyleAnimation, IKeyframesAnimation } from './IAnimation'
|
|
37
|
+
export { IScroller, IScrollConfig, IScrollTheme } from './IScroller'
|
|
37
38
|
|
|
38
39
|
export { IUIRenderModule, IRectRenderModule, IImageRenderModule, ITextRenderModule, IGroupRenderModule, IFrameRenderModule } from './module/IUIRender'
|
|
39
40
|
export { IUIBoundsModule } from './module/IUIBounds'
|
package/src/type/IType.ts
CHANGED
|
@@ -199,4 +199,6 @@ export interface IEffect extends IFilter {
|
|
|
199
199
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
export type IOverflow = 'show' | 'hide' | 'scroll'
|
|
202
|
+
export type IOverflow = 'show' | 'hide' | 'scroll' | 'scroll-x' | 'scroll-y'
|
|
203
|
+
|
|
204
|
+
export type ITextOverflow = 'show' | 'hide' | 'ellipsis' | (string & {})
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IBlendMode, IAlign, IUnitPointData, IExportFileType, IFourNumber, IPointData, IOptionSizeData, ISizeData, IGap, IPointGap, IScaleFixed, IPathCommandData, IAxis, IAxisReverse, IWindingRule, IFilter, IMatrixData, ILeaferImage, ITaskItem, INumber, IString, IBoolean, IUnitData, IAnimateOptions, IAnimateEasing, IEventer, IObject, IEventParamsMap, IAnimateEasingFunction, IAnimateEnding, ITransition, IPercentData, ILeafInputData, ILeaf as ILeaf$1, ILeafComputedData, ILeafData, IBoundsData, IValue, IPathCreator, IJSONOptions, IFindCondition, IAnswer, IPathString, IPathDrawer, ILeaferCanvas, IRenderOptions, IExportOptions, IExportResult, IPickOptions, IPickResult, ICanvasContext2DSettings, ICanvasContext2D, ILeaferAttrData, IControl, ILeaferType, ILeaferConfig, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IBooleanMap, IMatrixWithBoundsScaleData } from '@leafer/interface';
|
|
1
|
+
import { IBlendMode, IAlign, IUnitPointData, IExportFileType, IFourNumber, IPointData, IOptionSizeData, ISizeData, IGap, IPointGap, IScaleFixed, IPathCommandData, IAxis, IAxisReverse, IWindingRule, IFilter, IMatrixData, ILeaferImage, ITaskItem, INumber, IString, IBoolean, IUnitData, IAnimateOptions, IAnimateEasing, IEventer, IObject, IEventParamsMap, IAnimateEasingFunction, IAnimateEnding, ITransition, IPercentData, IBounds, ILeafInputData, ILeaf as ILeaf$1, ILeafComputedData, ILeafData, IBoundsData, IValue, IPathCreator, IJSONOptions, IFindCondition, IAnswer, IPathString, IPathDrawer, ILeaferCanvas, IRenderOptions, IExportOptions, IExportResult, IPickOptions, IPickResult, ICanvasContext2DSettings, ICanvasContext2D, ILeaferAttrData, IControl, ILeaferType, ILeaferConfig, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IBooleanMap, IMatrixWithBoundsScaleData } from '@leafer/interface';
|
|
2
2
|
export * from '@leafer/interface';
|
|
3
|
-
import { IObject as IObject$1, IEditSize, IStroke as IStroke$1, IFourNumber as IFourNumber$1, IFill as IFill$1, IBoxInputData as IBoxInputData$1, IRectInputData as IRectInputData$1, IColorString as IColorString$1, IDirection4, ICursorType, IImageCursor, IAlign as IAlign$1, IUnitPointData as IUnitPointData$1, IUIInputData as IUIInputData$1, IShortcutKeysCheck, IShortcutKeys, IUI as IUI$1, IPointData as IPointData$1, IScaleData, ISkewData, IGroup as IGroup$1, ISelectorProxy, IBox as IBox$1, IRect as IRect$1, ILayoutBoundsData, IKeyEvent, IUIEvent, IDragEvent, IMoveEvent, IZoomEvent, IRotateEvent, ITransition as ITransition$1, ILeafList, ILeaf, IGroupInputData as IGroupInputData$1, IStateName as IStateName$1, IString as IString$1, IBoolean as IBoolean$1, IStateStyle as IStateStyle$1 } from '@leafer-ui/interface';
|
|
3
|
+
import { IObject as IObject$1, IEditSize, IStroke as IStroke$1, IFourNumber as IFourNumber$1, IFill as IFill$1, IBoxInputData as IBoxInputData$1, IRectInputData as IRectInputData$1, IColorString as IColorString$1, IDirection4, ICursorType, IImageCursor, IAlign as IAlign$1, IUnitPointData as IUnitPointData$1, IUIInputData as IUIInputData$1, IShortcutKeysCheck, IShortcutKeys, IUI as IUI$1, IPointData as IPointData$1, IScaleData, ISkewData, IGroup as IGroup$1, ISelectorProxy, IBox as IBox$1, IRect as IRect$1, ILayoutBoundsData, IKeyEvent, IUIEvent, IDragEvent, IMoveEvent, IZoomEvent, IRotateEvent, ITransition as ITransition$1, ILeafList, ILeafer as ILeafer$1, ILeaf, IGroupInputData as IGroupInputData$1, IStateName as IStateName$1, IString as IString$1, IBoolean as IBoolean$1, IStateStyle as IStateStyle$1 } from '@leafer-ui/interface';
|
|
4
4
|
|
|
5
5
|
type IPercent = string;
|
|
6
6
|
type IColorString = string;
|
|
@@ -149,7 +149,8 @@ interface IGrayscaleEffect {
|
|
|
149
149
|
}
|
|
150
150
|
interface IEffect extends IFilter {
|
|
151
151
|
}
|
|
152
|
-
type IOverflow = 'show' | 'hide' | 'scroll';
|
|
152
|
+
type IOverflow = 'show' | 'hide' | 'scroll' | 'scroll-x' | 'scroll-y';
|
|
153
|
+
type ITextOverflow = 'show' | 'hide' | 'ellipsis' | (string & {});
|
|
153
154
|
|
|
154
155
|
type ILeafPaintColor = IColorString | CanvasGradient | CanvasPattern;
|
|
155
156
|
interface ILeafPaint {
|
|
@@ -278,7 +279,7 @@ interface ITextStyleAttrData {
|
|
|
278
279
|
verticalAlign?: IVerticalAlign;
|
|
279
280
|
autoSizeAlign?: IBoolean;
|
|
280
281
|
textWrap?: ITextWrap;
|
|
281
|
-
textOverflow?:
|
|
282
|
+
textOverflow?: ITextOverflow;
|
|
282
283
|
}
|
|
283
284
|
interface ITextStyleInputData {
|
|
284
285
|
fontFamily?: IString;
|
|
@@ -296,7 +297,7 @@ interface ITextStyleInputData {
|
|
|
296
297
|
verticalAlign?: IVerticalAlign;
|
|
297
298
|
autoSizeAlign?: IBoolean;
|
|
298
299
|
textWrap?: ITextWrap;
|
|
299
|
-
textOverflow?:
|
|
300
|
+
textOverflow?: ITextOverflow;
|
|
300
301
|
}
|
|
301
302
|
interface ITextStyleComputedData {
|
|
302
303
|
fontFamily?: string;
|
|
@@ -314,7 +315,7 @@ interface ITextStyleComputedData {
|
|
|
314
315
|
verticalAlign?: IVerticalAlign;
|
|
315
316
|
autoSizeAlign?: boolean;
|
|
316
317
|
textWrap?: ITextWrap;
|
|
317
|
-
textOverflow?:
|
|
318
|
+
textOverflow?: ITextOverflow;
|
|
318
319
|
}
|
|
319
320
|
interface IEffectAttrData {
|
|
320
321
|
shadow?: IShadowEffect | IShadowEffect[] | IShadowString;
|
|
@@ -431,6 +432,7 @@ interface IEditorBase extends IGroup$1, ISelectorProxy, ITransformTool {
|
|
|
431
432
|
editTool?: IObject$1;
|
|
432
433
|
innerEditor?: IObject$1;
|
|
433
434
|
editMask: IUI$1;
|
|
435
|
+
readonly targetLeafer: ILeafer$1;
|
|
434
436
|
select(target: IUI$1 | IUI$1[]): void;
|
|
435
437
|
cancel(): void;
|
|
436
438
|
hasItem(item: IUI$1): boolean;
|
|
@@ -621,6 +623,34 @@ interface IEditToolFunction {
|
|
|
621
623
|
(ui: any): string;
|
|
622
624
|
}
|
|
623
625
|
|
|
626
|
+
interface IScrollConfig {
|
|
627
|
+
theme?: IScrollTheme;
|
|
628
|
+
style?: IBoxInputData;
|
|
629
|
+
size?: number;
|
|
630
|
+
endsMargin?: number;
|
|
631
|
+
sideMargin?: number;
|
|
632
|
+
minSize?: number;
|
|
633
|
+
scaleFixed?: IScaleFixed;
|
|
634
|
+
scrollType?: 'drag' | 'move' | 'both';
|
|
635
|
+
hideOnActionEnd?: boolean | 'hover' | 'scroll';
|
|
636
|
+
}
|
|
637
|
+
type IScrollTheme = 'light' | 'dark' | (string & {});
|
|
638
|
+
interface IScroller extends IGroup {
|
|
639
|
+
config: IScrollConfig;
|
|
640
|
+
mergedConfig: IScrollConfig;
|
|
641
|
+
scrollXBar: IBox;
|
|
642
|
+
scrollYBar: IBox;
|
|
643
|
+
scrollXBounds: IBounds;
|
|
644
|
+
scrollYBounds: IBounds;
|
|
645
|
+
scrollRatioX: number;
|
|
646
|
+
scrollRatioY: number;
|
|
647
|
+
ratioX: number;
|
|
648
|
+
ratioY: number;
|
|
649
|
+
dragScrolling: boolean;
|
|
650
|
+
updateConfig(): void;
|
|
651
|
+
update(check: boolean): void;
|
|
652
|
+
}
|
|
653
|
+
|
|
624
654
|
interface ILine extends ILineAttrData, IUI {
|
|
625
655
|
__: ILineData;
|
|
626
656
|
}
|
|
@@ -885,13 +915,16 @@ interface IFrameInputData extends IBoxInputData {
|
|
|
885
915
|
}
|
|
886
916
|
interface IBox extends IBoxAttrData, IGroup {
|
|
887
917
|
__: IBoxData;
|
|
888
|
-
|
|
889
|
-
|
|
918
|
+
scroller?: IScroller;
|
|
919
|
+
hasScroller?: boolean;
|
|
920
|
+
__checkScroll(): void;
|
|
921
|
+
__updateScroll(): void;
|
|
890
922
|
__updateRectRenderBounds(): void;
|
|
891
923
|
__renderGroup(canvas: ILeaferCanvas, options: IRenderOptions): void;
|
|
892
924
|
}
|
|
893
925
|
interface IBoxAttrData {
|
|
894
926
|
overflow?: IOverflow;
|
|
927
|
+
scrollConfig?: IScrollConfig;
|
|
895
928
|
resizeChildren?: IBoolean;
|
|
896
929
|
textBox?: IBoolean;
|
|
897
930
|
}
|
|
@@ -1020,7 +1053,7 @@ interface IUIBaseInputData extends IUIAttrData, IFillInputData, IStrokeInputData
|
|
|
1020
1053
|
children?: IUIInputData[];
|
|
1021
1054
|
}
|
|
1022
1055
|
type IUITag = 'App' | 'Leafer' | 'Rect' | 'Ellipse' | 'Polygon' | 'Star' | 'Line' | 'Path' | 'Pen' | 'Text' | 'Image' | 'Canvas' | 'Group' | 'Frame' | 'Box' | 'Arrow' | 'Robot' | 'GIF' | 'Video';
|
|
1023
|
-
interface IUIInputData extends IRectInputData, IEllipseInputData, IPolygonInputData, IStarInputData, ILineInputData, IPathInputData, ITextInputData, IImageInputData, IGroupInputData, IFrameInputData, IArrowInputData, IGIFInputData, IVideoInputData, IRobotInputData, IUIBaseInputData, IObject {
|
|
1056
|
+
interface IUIInputData extends IRectInputData, IEllipseInputData, IPolygonInputData, IStarInputData, ILineInputData, IPathInputData, ITextInputData, IImageInputData, IGroupInputData, IBoxInputData, IFrameInputData, IFlowInputData, IArrowInputData, IGIFInputData, IVideoInputData, IRobotInputData, IUIBaseInputData, IObject {
|
|
1024
1057
|
children?: IUIInputData[];
|
|
1025
1058
|
}
|
|
1026
1059
|
interface IUIJSONData extends IUIInputData {
|
|
@@ -1202,4 +1235,4 @@ interface IFilterFunction {
|
|
|
1202
1235
|
(filter: IFilter, ui: IUI, bounds: IMatrixWithBoundsScaleData, currentCanvas: ILeaferCanvas, originCanvas: ILeaferCanvas, shape: ICachedShape): void;
|
|
1203
1236
|
}
|
|
1204
1237
|
|
|
1205
|
-
export type { IAnimate, IAnimateKeyframe, IAnimateList, IAnimateType, IAnimation, IApp, IAppConfig, IAppData, IAppForEachFunction, IAppInputData, IArrow, IArrowData, IArrowInputData, IArrowType, IBackgroundBoxStyle, IBlurEffect, IBox, IBoxData, IBoxInputData, ICachedShape, ICanvas, ICanvasData, ICanvasInputData, IColor, IColorConvertModule, IColorStop, IColorString, IComputedKeyframe, ICornerRadiusString, IDashPatternString, IEditBoxBase, IEditPoint, IEditPointInputData, IEditPointType, IEditToolFunction, IEditorBase, IEditorBeforeMove, IEditorBeforeRotate, IEditorBeforeScale, IEditorBeforeSelect, IEditorBeforeSkew, IEditorConfig, IEditorConfigFunction, IEditorDragStartData, IEditorMoveData, IEditorRotationData, IEditorScaleData, IEditorSelectData, IEditorSkewData, IEffect, IEffectAttrData, IEffectComputedData, IEffectInputData, IEffectModule, IEllipse, IEllipseData, IEllipseInputData, IExportModule, IFill, IFilterFunction, IFilterModule, IFilterProcessor, IFindUIMethod, IFlow, IFlowData, IFlowInputData, IFontWeight, IFontWeightNumer, IFontWeightString, IFrame, IFrameData, IFrameInputData, IFrameRenderModule, IGIF, IGIFData, IGIFInputData, IGradientPaint, IGradientType, IGrayscaleEffect, IGroup, IGroupData, IGroupInputData, IGroupRenderModule, IImage, IImageData, IImageFilters, IImageInputData, IImagePaint, IImagePaintMode, IImageRenderModule, IKeyframe, IKeyframeId, IKeyframesAnimation, ILeafFill, ILeafPaint, ILeafPaintColor, ILeafPaintPatternData, ILeafShadowEffect, ILeafStrokePaint, ILeafer, ILeaferData, ILeaferInputData, ILine, ILineData, ILineInputData, IOverflow, IPaint, IPaintAttr, IPaintBase, IPaintGradientModule, IPaintImageModule, IPaintModule, IPaintString, IPaintType, IPath, IPathArrowModule, IPathData, IPathDataArrow, IPathDataArrowMap, IPathDataArrowOffset, IPathInputData, IPen, IPenData, IPenInputData, IPercent, IPolygon, IPolygonData, IPolygonInputData, IRGB, IRGBA, IRect, IRectData, IRectInputData, IRectRenderModule, IRepeat, IRobot, IRobotActionName, IRobotActions, IRobotAnimation, IRobotComputedKeyframe, IRobotData, IRobotInputData, IRobotKeyframe, IShadowEffect, IShadowString, ISolidPaint, IStar, IStarData, IStarInputData, IStateModule, IStateName, IStateStyle, IStates, IStroke, IStrokeAlign, IStrokeAttrData, IStrokeCap, IStrokeComputedData, IStrokeComputedStyle, IStrokeGradientPaint, IStrokeImagePaint, IStrokeInputData, IStrokeJoin, IStrokePaint, IStrokeSolidPaint, IStrokeStyle, IStrokeWidthString, IStyleAnimation, IText, ITextAlign, ITextCase, ITextCharData, ITextConvertModule, ITextData, ITextDecoration, ITextDecorationData, ITextDecorationType, ITextDrawData, ITextInputData, ITextRenderModule, ITextRowData, ITextStyleAttrData, ITextStyleComputedData, ITextStyleInputData, ITextWordData, ITextWrap, ITransformTool, ITransitionFunction, ITransitionMap, ITransitionModule, IUI, IUIBaseInputData, IUIBoundsModule, IUIData, IUIHitModule, IUIInputData, IUIJSONData, IUIRenderModule, IUITag, IVectorPath, IVerticalAlign, IVideo, IVideoData, IVideoInputData, IWritingMode };
|
|
1238
|
+
export type { IAnimate, IAnimateKeyframe, IAnimateList, IAnimateType, IAnimation, IApp, IAppConfig, IAppData, IAppForEachFunction, IAppInputData, IArrow, IArrowData, IArrowInputData, IArrowType, IBackgroundBoxStyle, IBlurEffect, IBox, IBoxData, IBoxInputData, ICachedShape, ICanvas, ICanvasData, ICanvasInputData, IColor, IColorConvertModule, IColorStop, IColorString, IComputedKeyframe, ICornerRadiusString, IDashPatternString, IEditBoxBase, IEditPoint, IEditPointInputData, IEditPointType, IEditToolFunction, IEditorBase, IEditorBeforeMove, IEditorBeforeRotate, IEditorBeforeScale, IEditorBeforeSelect, IEditorBeforeSkew, IEditorConfig, IEditorConfigFunction, IEditorDragStartData, IEditorMoveData, IEditorRotationData, IEditorScaleData, IEditorSelectData, IEditorSkewData, IEffect, IEffectAttrData, IEffectComputedData, IEffectInputData, IEffectModule, IEllipse, IEllipseData, IEllipseInputData, IExportModule, IFill, IFilterFunction, IFilterModule, IFilterProcessor, IFindUIMethod, IFlow, IFlowData, IFlowInputData, IFontWeight, IFontWeightNumer, IFontWeightString, IFrame, IFrameData, IFrameInputData, IFrameRenderModule, IGIF, IGIFData, IGIFInputData, IGradientPaint, IGradientType, IGrayscaleEffect, IGroup, IGroupData, IGroupInputData, IGroupRenderModule, IImage, IImageData, IImageFilters, IImageInputData, IImagePaint, IImagePaintMode, IImageRenderModule, IKeyframe, IKeyframeId, IKeyframesAnimation, ILeafFill, ILeafPaint, ILeafPaintColor, ILeafPaintPatternData, ILeafShadowEffect, ILeafStrokePaint, ILeafer, ILeaferData, ILeaferInputData, ILine, ILineData, ILineInputData, IOverflow, IPaint, IPaintAttr, IPaintBase, IPaintGradientModule, IPaintImageModule, IPaintModule, IPaintString, IPaintType, IPath, IPathArrowModule, IPathData, IPathDataArrow, IPathDataArrowMap, IPathDataArrowOffset, IPathInputData, IPen, IPenData, IPenInputData, IPercent, IPolygon, IPolygonData, IPolygonInputData, IRGB, IRGBA, IRect, IRectData, IRectInputData, IRectRenderModule, IRepeat, IRobot, IRobotActionName, IRobotActions, IRobotAnimation, IRobotComputedKeyframe, IRobotData, IRobotInputData, IRobotKeyframe, IScrollConfig, IScrollTheme, IScroller, IShadowEffect, IShadowString, ISolidPaint, IStar, IStarData, IStarInputData, IStateModule, IStateName, IStateStyle, IStates, IStroke, IStrokeAlign, IStrokeAttrData, IStrokeCap, IStrokeComputedData, IStrokeComputedStyle, IStrokeGradientPaint, IStrokeImagePaint, IStrokeInputData, IStrokeJoin, IStrokePaint, IStrokeSolidPaint, IStrokeStyle, IStrokeWidthString, IStyleAnimation, IText, ITextAlign, ITextCase, ITextCharData, ITextConvertModule, ITextData, ITextDecoration, ITextDecorationData, ITextDecorationType, ITextDrawData, ITextInputData, ITextOverflow, ITextRenderModule, ITextRowData, ITextStyleAttrData, ITextStyleComputedData, ITextStyleInputData, ITextWordData, ITextWrap, ITransformTool, ITransitionFunction, ITransitionMap, ITransitionModule, IUI, IUIBaseInputData, IUIBoundsModule, IUIData, IUIHitModule, IUIInputData, IUIJSONData, IUIRenderModule, IUITag, IVectorPath, IVerticalAlign, IVideo, IVideoData, IVideoInputData, IWritingMode };
|