@leafer-ui/interface
Advanced tools
+2
-2
| { | ||
| "name": "@leafer-ui/interface", | ||
| "version": "1.0.0-rc.25", | ||
| "version": "1.0.0-rc.26", | ||
| "description": "@leafer-ui/interface", | ||
@@ -25,4 +25,4 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/interface": "1.0.0-rc.25" | ||
| "@leafer/interface": "1.0.0-rc.26" | ||
| } | ||
| } |
@@ -1,2 +0,2 @@ | ||
| import { IGroup, IUI, IBox, IRectInputData, ISelectorProxy, IEditSize, ICursorType, IAlign, IUnitPointData, IDragEvent, IRotateEvent, IStroke, IFill, ILeaf, ILeafList, IObject, IBoxInputData, IGroupInputData, IImageCursor, IRect, IBoundsData, IKeyEvent, IUIInputData } from '@leafer-ui/interface' | ||
| import { IGroup, IUI, IBox, IRectInputData, ISelectorProxy, IEditSize, ICursorType, IAlign, IUnitPointData, IDragEvent, IRotateEvent, IStroke, IFill, ILeaf, ILeafList, IObject, IBoxInputData, IGroupInputData, IImageCursor, IRect, IBoundsData, IKeyEvent, IUIInputData, IZoomEvent } from '@leafer-ui/interface' | ||
@@ -45,3 +45,3 @@ export interface IEditorBase extends IGroup, ISelectorProxy { | ||
| onMove(e: IDragEvent): void | ||
| onScale(e: IDragEvent): void | ||
| onScale(e: IDragEvent | IZoomEvent): void | ||
| onRotate(e: IDragEvent | IRotateEvent): void | ||
@@ -55,3 +55,3 @@ onSkew(e: IDragEvent): void | ||
| openInnerEditor(): void | ||
| openInnerEditor(target?: IUI): void | ||
| closeInnerEditor(): void | ||
@@ -110,4 +110,4 @@ | ||
| moveable?: boolean | ||
| rotateable?: boolean | ||
| resizeable?: boolean | ||
| rotateable?: boolean | 'rotate' | ||
| resizeable?: boolean | 'zoom' | ||
| skewable?: boolean | ||
@@ -114,0 +114,0 @@ } |
+1
-0
@@ -31,2 +31,3 @@ export * from '@leafer/interface' | ||
| export { ILeafFill, ILeafPaint, ILeafPaintPatternData, ILeafPaintColor, ILeafStrokePaint, ILeafShadowEffect } from './type/IComputedType' | ||
| export { IStrokeAttrData, IStrokeInputData, IStrokeComputedData, ITextStyleAttrData, ITextStyleInputData, ITextStyleComputedData, IEffectAttrData, IEffectInputData, IEffectComputedData } from './ICommonAttr' | ||
@@ -33,0 +34,0 @@ export { IUIRenderModule, IRectRenderModule, IImageRenderModule, ITextRenderModule, IGroupRenderModule, IFrameRenderModule } from './module/IUIRender' |
+8
-3
@@ -1,2 +0,2 @@ | ||
| import { ILeaf, ILeafComputedData, ILeafData, ILeafInputData, ILeaferCanvas, IRenderOptions, IExportOptions, IExportResult, IPathDrawer, IPointData, IPathCommandData, ILeaferImageConfig, IBoundsData, IObject, IPathString, ILeaferImage, IPathCreator, IAnswer, IPickOptions, IPickResult, IValue, ICanvasContext2DSettings, IFourNumber, IFindCondition } from '@leafer/interface' | ||
| import { ILeaf, ILeafComputedData, ILeafData, ILeafInputData, ILeaferCanvas, IRenderOptions, IExportOptions, IExportResult, IPathDrawer, IPointData, IPathCommandData, ILeaferImageConfig, IBoundsData, IObject, IPathString, ILeaferImage, IPathCreator, IAnswer, IPickOptions, IPickResult, IValue, ICanvasContext2DSettings, IFourNumber, IFindCondition, IBoolean } from '@leafer/interface' | ||
@@ -137,2 +137,3 @@ import { | ||
| padding: IFourNumber | ||
| resizeFontSize: IBoolean | ||
| } | ||
@@ -142,2 +143,3 @@ interface ITextAttrData { | ||
| padding?: IFourNumber | ||
| resizeFontSize?: boolean | ||
| } | ||
@@ -262,2 +264,3 @@ | ||
| __: IBoxData | ||
| resizeChildren: IBoolean | ||
| overflow: IOverflow | ||
@@ -268,5 +271,7 @@ __updateRectRenderBounds(): void | ||
| export interface IBoxData extends IGroupData { | ||
| resizeChildren?: boolean | ||
| overflow?: IOverflow | ||
| } | ||
| export interface IBoxInputData extends IGroupInputData { | ||
| resizeChildren?: boolean | ||
| overflow?: IOverflow | ||
@@ -331,4 +336,4 @@ } | ||
| findTag(tag: string | string[]): IUI[] | ||
| findOne(condition: number | string | IFindCondition | IFindUIMethod, options?: any): IUI | ||
| findId(id: number | string): IUI | ||
| findOne(condition: number | string | IFindCondition | IFindUIMethod, options?: any): IUI | undefined | ||
| findId(id: number | string): IUI | undefined | ||
@@ -335,0 +340,0 @@ getPath(curve?: boolean, pathForRender?: boolean): IPathCommandData |
@@ -1,2 +0,2 @@ | ||
| import { ILeaferCanvas, IRenderOptions, IBooleanMap, IBoundsData, ILeaferImage, IAround } from '@leafer/interface' | ||
| import { ILeaferCanvas, IRenderOptions, IBooleanMap, IBoundsData, ILeaferImage, IAround, IPointData, IMatrixData } from '@leafer/interface' | ||
@@ -8,2 +8,3 @@ import { ILeafPaint, ILeafPaintPatternData } from '../type/IComputedType' | ||
| export interface IPaintModule { | ||
@@ -34,2 +35,3 @@ compute(attrName: IPaintAttr, ui: IUI): void | ||
| createData(leafPaint: ILeafPaint, image: ILeaferImage, paint: IImagePaint, box: IBoundsData): void | ||
| getPatternData(paint: IImagePaint, box: IBoundsData, image: ILeaferImage): ILeafPaintPatternData | ||
| fillOrFitMode(data: ILeafPaintPatternData, box: IBoundsData, x: number, y: number, scaleX: number, scaleY: number, rotation: number): void | ||
@@ -44,2 +46,3 @@ clipMode(data: ILeafPaintPatternData, box: IBoundsData, x: number, y: number, scaleX: number, scaleY: number, rotation: number): void | ||
| conicGradient(paint: IGradientPaint, box: IBoundsData): ILeafPaint | ||
| getTransform(box: IBoundsData, from: IPointData, to: IPointData, stretch: number, rotate90: boolean): IMatrixData | ||
| } |
+16
-9
@@ -1,4 +0,4 @@ | ||
| import { IAlign, IUnitPointData, IExportFileType, IFourNumber, IPointData, ISizeData, IPathCommandData, IWindingRule, IBlendMode, IMatrixData, ILeaferImage, ITaskItem, INumber, IBoolean, IString, IUnitData, IPathCreator, IBoundsData as IBoundsData$1, ILeaferImageConfig, ICanvasContext2DSettings, ILeaferCanvas, IRenderOptions, IPickOptions, IPickResult, ILeaf as ILeaf$1, IValue, IFindCondition, IPathString, IPathDrawer, IExportOptions, IExportResult, IAnswer, ILeafData, ILeafComputedData, ILeafInputData, IObject as IObject$1, ILeaferAttrData, IControl, ILeaferConfig, ILeaferType, ILeafRender, ILeafBounds, ILeafHit, IStateStyleType, ICachedLeaf, IBooleanMap, IAround } from '@leafer/interface'; | ||
| import { IAlign, IUnitPointData, IExportFileType, IFourNumber, IPointData, ISizeData, IPathCommandData, IWindingRule, IBlendMode, IMatrixData, ILeaferImage, ITaskItem, IBoolean, INumber, IString, IUnitData, IPathCreator, IBoundsData as IBoundsData$1, ILeaferImageConfig, ICanvasContext2DSettings, ILeaferCanvas, IRenderOptions, IPickOptions, IPickResult, ILeaf as ILeaf$1, IValue, IFindCondition, IPathString, IPathDrawer, IExportOptions, IExportResult, IAnswer, ILeafData, ILeafComputedData, ILeafInputData, IObject as IObject$1, ILeaferAttrData, IControl, ILeaferConfig, ILeaferType, ILeafRender, ILeafBounds, ILeafHit, IStateStyleType, ICachedLeaf, IBooleanMap, IAround } from '@leafer/interface'; | ||
| export * from '@leafer/interface'; | ||
| import { IGroup as IGroup$1, ISelectorProxy, IUI as IUI$1, ILeafList, IObject, ILeaf, IEditSize, IDragEvent, IRotateEvent, IGroupInputData as IGroupInputData$1, IStroke as IStroke$1, IFill as IFill$1, IBoxInputData as IBoxInputData$1, IRectInputData as IRectInputData$1, ICursorType, IImageCursor, IAlign as IAlign$1, IUnitPointData as IUnitPointData$1, IUIInputData as IUIInputData$1, IBox as IBox$1, IRect as IRect$1, IBoundsData, IKeyEvent } from '@leafer-ui/interface'; | ||
| import { IGroup as IGroup$1, ISelectorProxy, IUI as IUI$1, ILeafList, IObject, ILeaf, IEditSize, IDragEvent, IZoomEvent, IRotateEvent, IGroupInputData as IGroupInputData$1, IStroke as IStroke$1, IFill as IFill$1, IBoxInputData as IBoxInputData$1, IRectInputData as IRectInputData$1, ICursorType, IImageCursor, IAlign as IAlign$1, IUnitPointData as IUnitPointData$1, IUIInputData as IUIInputData$1, IBox as IBox$1, IRect as IRect$1, IBoundsData, IKeyEvent } from '@leafer-ui/interface'; | ||
@@ -334,3 +334,3 @@ type IPercent = string; | ||
| onMove(e: IDragEvent): void; | ||
| onScale(e: IDragEvent): void; | ||
| onScale(e: IDragEvent | IZoomEvent): void; | ||
| onRotate(e: IDragEvent | IRotateEvent): void; | ||
@@ -342,3 +342,3 @@ onSkew(e: IDragEvent): void; | ||
| closeGroup(group: IGroup$1): void; | ||
| openInnerEditor(): void; | ||
| openInnerEditor(target?: IUI$1): void; | ||
| closeInnerEditor(): void; | ||
@@ -384,4 +384,4 @@ lock(): void; | ||
| moveable?: boolean; | ||
| rotateable?: boolean; | ||
| resizeable?: boolean; | ||
| rotateable?: boolean | 'rotate'; | ||
| resizeable?: boolean | 'zoom'; | ||
| skewable?: boolean; | ||
@@ -530,2 +530,3 @@ } | ||
| padding: IFourNumber; | ||
| resizeFontSize: IBoolean; | ||
| } | ||
@@ -535,2 +536,3 @@ interface ITextAttrData { | ||
| padding?: IFourNumber; | ||
| resizeFontSize?: boolean; | ||
| } | ||
@@ -631,2 +633,3 @@ interface ITextData extends ITextAttrData, ITextStyleComputedData, IUIData { | ||
| __: IBoxData; | ||
| resizeChildren: IBoolean; | ||
| overflow: IOverflow; | ||
@@ -637,5 +640,7 @@ __updateRectRenderBounds(): void; | ||
| interface IBoxData extends IGroupData { | ||
| resizeChildren?: boolean; | ||
| overflow?: IOverflow; | ||
| } | ||
| interface IBoxInputData extends IGroupInputData { | ||
| resizeChildren?: boolean; | ||
| overflow?: IOverflow; | ||
@@ -687,4 +692,4 @@ } | ||
| findTag(tag: string | string[]): IUI[]; | ||
| findOne(condition: number | string | IFindCondition | IFindUIMethod, options?: any): IUI; | ||
| findId(id: number | string): IUI; | ||
| findOne(condition: number | string | IFindCondition | IFindUIMethod, options?: any): IUI | undefined; | ||
| findId(id: number | string): IUI | undefined; | ||
| getPath(curve?: boolean, pathForRender?: boolean): IPathCommandData; | ||
@@ -848,2 +853,3 @@ getPathString(curve?: boolean, pathForRender?: boolean): IPathString; | ||
| createData(leafPaint: ILeafPaint, image: ILeaferImage, paint: IImagePaint, box: IBoundsData$1): void; | ||
| getPatternData(paint: IImagePaint, box: IBoundsData$1, image: ILeaferImage): ILeafPaintPatternData; | ||
| fillOrFitMode(data: ILeafPaintPatternData, box: IBoundsData$1, x: number, y: number, scaleX: number, scaleY: number, rotation: number): void; | ||
@@ -857,2 +863,3 @@ clipMode(data: ILeafPaintPatternData, box: IBoundsData$1, x: number, y: number, scaleX: number, scaleY: number, rotation: number): void; | ||
| conicGradient(paint: IGradientPaint, box: IBoundsData$1): ILeafPaint; | ||
| getTransform(box: IBoundsData$1, from: IPointData, to: IPointData, stretch: number, rotate90: boolean): IMatrixData; | ||
| } | ||
@@ -867,2 +874,2 @@ | ||
| export type { IApp, IAppConfig, IAppData, IAppInputData, IArrow, IArrowData, IArrowInputData, IArrowType, IBlurEffect, IBox, IBoxData, IBoxInputData, ICachedShape, ICanvas, ICanvasData, ICanvasInputData, IColor, IColorConvertModule, IColorStop, IColorString, ICornerRadiusString, IDashPatternString, IEditBoxBase, IEditPoint, IEditPointType, IEditToolFunction, IEditorBase, IEditorConfig, IEditorConfigFunction, IEffectModule, IEllipse, IEllipseData, IEllipseInputData, IExportModule, IFill, IFindUIMethod, IFlow, IFlowData, IFlowInputData, IFontWeight, IFrame, IFrameData, IFrameInputData, IFrameRenderModule, IGradientPaint, IGrayscaleEffect, IGroup, IGroupData, IGroupInputData, IGroupRenderModule, IImage, IImageData, IImageInputData, IImagePaint, IImagePaintMode, IImageRenderModule, ILeafFill, ILeafPaint, ILeafPaintColor, ILeafPaintPatternData, ILeafShadowEffect, ILeafStrokePaint, ILeafer, ILeaferData, ILeaferInputData, ILine, ILineData, ILineInputData, IOverflow, IPaint, IPaintAttr, IPaintGradientModule, IPaintImageModule, IPaintModule, IPaintString, IPath, IPathArrowModule, IPathData, IPathDataArrow, IPathDataArrowMap, IPathInputData, IPen, IPenData, IPenInputData, IPercent, IPolygon, IPolygonData, IPolygonInputData, IRGB, IRGBA, IRect, IRectData, IRectInputData, IRectRenderModule, IRepeat, IShadowEffect, IShadowString, IStar, IStarData, IStarInputData, IStateModule, IStroke, IStrokeAlign, IStrokeCap, IStrokeJoin, IStrokeWidthString, IText, ITextAlign, ITextCase, ITextCharData, ITextConvertModule, ITextData, ITextDecoration, ITextDrawData, ITextInputData, ITextRenderModule, ITextRowData, ITextWordData, ITextWrap, IUI, IUIBaseInputData, IUIBoundsModule, IUIData, IUIHitModule, IUIInputData, IUIRenderModule, IUITag, IVectorPath, IVerticalAlign }; | ||
| export type { IApp, IAppConfig, IAppData, IAppInputData, IArrow, IArrowData, IArrowInputData, IArrowType, IBlurEffect, IBox, IBoxData, IBoxInputData, ICachedShape, ICanvas, ICanvasData, ICanvasInputData, IColor, IColorConvertModule, IColorStop, IColorString, ICornerRadiusString, IDashPatternString, IEditBoxBase, IEditPoint, IEditPointType, IEditToolFunction, IEditorBase, IEditorConfig, IEditorConfigFunction, IEffectAttrData, IEffectComputedData, IEffectInputData, IEffectModule, IEllipse, IEllipseData, IEllipseInputData, IExportModule, IFill, IFindUIMethod, IFlow, IFlowData, IFlowInputData, IFontWeight, IFrame, IFrameData, IFrameInputData, IFrameRenderModule, IGradientPaint, IGrayscaleEffect, IGroup, IGroupData, IGroupInputData, IGroupRenderModule, IImage, IImageData, IImageInputData, IImagePaint, IImagePaintMode, IImageRenderModule, ILeafFill, ILeafPaint, ILeafPaintColor, ILeafPaintPatternData, ILeafShadowEffect, ILeafStrokePaint, ILeafer, ILeaferData, ILeaferInputData, ILine, ILineData, ILineInputData, IOverflow, IPaint, IPaintAttr, IPaintGradientModule, IPaintImageModule, IPaintModule, IPaintString, IPath, IPathArrowModule, IPathData, IPathDataArrow, IPathDataArrowMap, IPathInputData, IPen, IPenData, IPenInputData, IPercent, IPolygon, IPolygonData, IPolygonInputData, IRGB, IRGBA, IRect, IRectData, IRectInputData, IRectRenderModule, IRepeat, IShadowEffect, IShadowString, IStar, IStarData, IStarInputData, IStateModule, IStroke, IStrokeAlign, IStrokeAttrData, IStrokeCap, IStrokeComputedData, IStrokeInputData, IStrokeJoin, IStrokeWidthString, IText, ITextAlign, ITextCase, ITextCharData, ITextConvertModule, ITextData, ITextDecoration, ITextDrawData, ITextInputData, ITextRenderModule, ITextRowData, ITextStyleAttrData, ITextStyleComputedData, ITextStyleInputData, ITextWordData, ITextWrap, IUI, IUIBaseInputData, IUIBoundsModule, IUIData, IUIHitModule, IUIInputData, IUIRenderModule, IUITag, IVectorPath, IVerticalAlign }; |
65108
2.08%1814
0.89%+ Added
- Removed