@leafer-ui/interface
Advanced tools
+2
-2
| { | ||
| "name": "@leafer-ui/interface", | ||
| "version": "2.0.3", | ||
| "version": "2.0.4", | ||
| "description": "@leafer-ui/interface", | ||
@@ -25,4 +25,4 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/interface": "2.0.3" | ||
| "@leafer/interface": "2.0.4" | ||
| } | ||
| } |
@@ -42,2 +42,4 @@ import { IGroup, IUI, IBox, IRectInputData, ISelectorProxy, IEditSize, ICursorType, IAlign, IUnitPointData, IDragEvent, IMoveEvent, IRotateEvent, IStroke, IFill, ILeaf, ILeafList, IObject, IBoxInputData, IGroupInputData, IImageCursor, IKeyEvent, IUIInputData, IZoomEvent, IColorString, IDirection4, IPointData, IScaleData, ISkewData, ILayoutBoundsData, ITransition, IFourNumber, IShortcutKeys, IShortcutKeysCheck, IUIEvent, ILeafer } from '@leafer-ui/interface' | ||
| hasDimOthers?: boolean | ||
| readonly targetLeafer: ILeafer | ||
@@ -146,2 +148,4 @@ | ||
| rotateGap?: number | ||
| arrowStep?: number // 方向键移动步长,默认为1 | ||
| arrowFastStep?: number // 按住 shift 键的移动步长,默认为10 | ||
| lockRatio?: boolean | 'corner' | ||
@@ -184,2 +188,4 @@ dragLimitAnimate?: boolean | number // 限制拖动范围的元素,可在拖拽结束时进行动画归位,默认采用 app.config.pointer.dragLimitAnimate 的值 | ||
| onCopy?: IEditorOnCopy | ||
| preventEditInner?: boolean // 仅阻止交互事件触发内部编辑 | ||
@@ -250,3 +256,7 @@ | ||
| export interface IEditorOnCopy { | ||
| (): boolean | void | ||
| } | ||
| export interface IEditPointInputData extends IBoxInputData { | ||
@@ -253,0 +263,0 @@ direction?: number |
+6
-1
@@ -25,2 +25,7 @@ export * from '@leafer/interface' | ||
| IBox, IBoxInputData, IBoxData, | ||
| IEllipseBox, IEllipseBoxInputData, IEllipseBoxData, | ||
| IPolygonBox, IPolygonBoxInputData, IPolygonBoxData, | ||
| IStarBox, IStarBoxInputData, IStarBoxData, | ||
| IPathBox, IPathBoxInputData, IPathBoxData, | ||
| IImageBox, IImageBoxInputData, IImageBoxData, | ||
| IGroup, IGroupInputData, IGroupData, | ||
@@ -56,2 +61,2 @@ ILeaferInputData, ILeaferData, | ||
| export { IEditorBase, IEditorConfig, ITransformTool, IEditBoxBase, IEditPoint, IEditPointInputData, IEditPointType, IEditorDragStartData, IEditToolFunction, IEditorConfigFunction, IEditorBeforeSelect, IEditorBeforeEditOuter, IEditorBeforeEditInner, IEditorBeforeMove, IEditorBeforeScale, IEditorBeforeRotate, IEditorBeforeSkew, IEditorSelectData, IEditorEditOuterData, IEditorEditInnerData, IEditorMoveData, IEditorScaleData, IEditorRotationData, IEditorSkewData } from './editor/IEditor' | ||
| export { IEditorBase, IEditorConfig, ITransformTool, IEditBoxBase, IEditPoint, IEditPointInputData, IEditPointType, IEditorDragStartData, IEditToolFunction, IEditorConfigFunction, IEditorBeforeSelect, IEditorBeforeEditOuter, IEditorBeforeEditInner, IEditorBeforeMove, IEditorBeforeScale, IEditorBeforeRotate, IEditorBeforeSkew, IEditorOnCopy, IEditorSelectData, IEditorEditOuterData, IEditorEditInnerData, IEditorMoveData, IEditorScaleData, IEditorRotationData, IEditorSkewData } from './editor/IEditor' |
+56
-1
@@ -56,3 +56,5 @@ import { ILeaf, ILeafComputedData, ILeafData, ILeafInputData, ILeaferCanvas, IRenderOptions, IExportOptions, IExportResult, IPathDrawer, IPointData, IPathCommandData, IBoundsData, IObject, IPathString, ILeaferImage, IPathCreator, IAnswer, IPickOptions, IPickResult, IValue, ICanvasContext2DSettings, IFourNumber, IFindCondition, IBoolean, ICanvasContext2D, IJSONOptions, IMatrixData, ISizeData, ITransition, IAround, IMultimediaType, IDirection4, IOptionPointData, IDirection } from '@leafer/interface' | ||
| createLinkerPoint(worldPoint: IPointData, node: IUI, options?: ILinkerPointOptions): ILinkerPointData | ||
| createStartPoint(worldPoint: IPointData, node?: IUI, options?: ILinkerPointOptions): ILinkerPointData | ||
| createEndPoint(worldPoint: IPointData, node?: IUI, options?: ILinkerPointOptions): ILinkerPointData | ||
| createLinkerPoint(worldPoint: IPointData, node?: IUI, options?: ILinkerPointOptions): ILinkerPointData | ||
| } | ||
@@ -413,2 +415,47 @@ | ||
| // EllipseBox | ||
| export interface IEllipseBox extends IEllipseAttrData, IBox { | ||
| __: IEllipseBoxData | ||
| } | ||
| export interface IEllipseBoxData extends IEllipseAttrData, IBoxData { } | ||
| export interface IEllipseBoxInputData extends IEllipseAttrData, IBoxInputData { } | ||
| // PolygonBox | ||
| export interface IPolygonBox extends IPolygonAttrData, IBox { | ||
| __: IPolygonBoxData | ||
| } | ||
| export interface IPolygonBoxData extends IPolygonAttrData, IBoxData { } | ||
| export interface IPolygonBoxInputData extends IPolygonAttrData, IBoxInputData { } | ||
| // StarBox | ||
| export interface IStarBox extends IStarAttrData, IBox { | ||
| __: IStarBoxData | ||
| } | ||
| export interface IStarBoxData extends IStarAttrData, IBoxData { } | ||
| export interface IStarBoxInputData extends IStarAttrData, IBoxInputData { } | ||
| // PathBox | ||
| export interface IPathBox extends IBox { | ||
| __: IPathBoxData | ||
| } | ||
| export interface IPathBoxData extends IBoxData { } | ||
| export interface IPathBoxInputData extends IBoxInputData { } | ||
| // ImageBox | ||
| export interface IImageBox extends IImageAttrData, IBox { | ||
| __: IImageBoxData | ||
| readonly ready: boolean | ||
| readonly image?: ILeaferImage | ||
| } | ||
| export interface IImageBoxData extends IImageAttrData, IBoxData { | ||
| readonly __urlType: IMultimediaType | ||
| __setImageFill(value: string): void | ||
| } | ||
| export interface IImageBoxInputData extends IImageAttrData, IBoxInputData { } | ||
| // Group | ||
@@ -432,2 +479,3 @@ export interface IGroup extends IUI { | ||
| // UI | ||
@@ -613,2 +661,9 @@ export interface IUI extends IUIAttrData, IFillAttrData, IStrokeAttrData, ICornerRadiusAttrData, IEffectAttrData, ILeaf { | ||
| | (string & {}) | ||
| | 'EllipseBox' // @leafer-in/box | ||
| | 'PolygonBox' | ||
| | 'StarBox' | ||
| | 'LineBox' | ||
| | 'PathBox' | ||
| | 'ImageBox' | ||
| | 'CanvasBox' | ||
@@ -615,0 +670,0 @@ |
+51
-3
@@ -450,2 +450,3 @@ import { IMultimediaType, IBlendMode, IScaleFixed, IAlign, IUnitPointData, IFilmOptions, IImageLOD, IExportFileType, IFourNumber, IPointData, IOptionSizeData, ISizeData, IGap, IPointGap, IPercentData, IInterlace, IPathCommandData, IAxis, IAxisReverse, IDirection, IWindingRule, IFilter, IFilmPlayOptions, IMatrixData, ILeaferImage, ITaskItem, INumber, IString, IBoolean, IUnitData, IAnimateOptions, IAnimateEasing, IEventer, IObject, IEventParamsMap, IAnimateEasingFunction, IAnimateEnding, ITransition, IBounds, ILeafInputData, ILeaf as ILeaf$1, ILeafComputedData, ILeafData, IBoundsData, IValue, IDirection4 as IDirection4$1, IAround, IOptionPointData, IPathCreator, IJSONOptions, IFindCondition, IAnswer, IPathString, IPathDrawer, ILeaferCanvas, IRenderOptions, IExportOptions, IExportResult, IPickOptions, IPickResult, ICanvasContext2DSettings, ICanvasContext2D, ILeaferAttrData, IControl, ILeaferType, ILeaferConfig, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IScaleData as IScaleData$1, IBooleanMap, IFunction, IMatrixWithBoundsScaleData } from '@leafer/interface'; | ||
| editMask: IUI$1; | ||
| hasDimOthers?: boolean; | ||
| readonly targetLeafer: ILeafer$1; | ||
@@ -527,2 +528,4 @@ select(target: IUI$1 | IUI$1[]): void; | ||
| rotateGap?: number; | ||
| arrowStep?: number; | ||
| arrowFastStep?: number; | ||
| lockRatio?: boolean | 'corner'; | ||
@@ -558,2 +561,3 @@ dragLimitAnimate?: boolean | number; | ||
| beforeSkew?: IEditorBeforeSkew; | ||
| onCopy?: IEditorOnCopy; | ||
| preventEditInner?: boolean; | ||
@@ -608,2 +612,5 @@ textEditor?: IObject$1; | ||
| } | ||
| interface IEditorOnCopy { | ||
| (): boolean | void; | ||
| } | ||
| interface IEditPointInputData extends IBoxInputData$1 { | ||
@@ -729,3 +736,5 @@ direction?: number; | ||
| endData: ILinkerComputedPointData; | ||
| createLinkerPoint(worldPoint: IPointData, node: IUI, options?: ILinkerPointOptions): ILinkerPointData; | ||
| createStartPoint(worldPoint: IPointData, node?: IUI, options?: ILinkerPointOptions): ILinkerPointData; | ||
| createEndPoint(worldPoint: IPointData, node?: IUI, options?: ILinkerPointOptions): ILinkerPointData; | ||
| createLinkerPoint(worldPoint: IPointData, node?: IUI, options?: ILinkerPointOptions): ILinkerPointData; | ||
| } | ||
@@ -1020,2 +1029,41 @@ interface ILinkerPointData { | ||
| } | ||
| interface IEllipseBox extends IEllipseAttrData, IBox { | ||
| __: IEllipseBoxData; | ||
| } | ||
| interface IEllipseBoxData extends IEllipseAttrData, IBoxData { | ||
| } | ||
| interface IEllipseBoxInputData extends IEllipseAttrData, IBoxInputData { | ||
| } | ||
| interface IPolygonBox extends IPolygonAttrData, IBox { | ||
| __: IPolygonBoxData; | ||
| } | ||
| interface IPolygonBoxData extends IPolygonAttrData, IBoxData { | ||
| } | ||
| interface IPolygonBoxInputData extends IPolygonAttrData, IBoxInputData { | ||
| } | ||
| interface IStarBox extends IStarAttrData, IBox { | ||
| __: IStarBoxData; | ||
| } | ||
| interface IStarBoxData extends IStarAttrData, IBoxData { | ||
| } | ||
| interface IStarBoxInputData extends IStarAttrData, IBoxInputData { | ||
| } | ||
| interface IPathBox extends IBox { | ||
| __: IPathBoxData; | ||
| } | ||
| interface IPathBoxData extends IBoxData { | ||
| } | ||
| interface IPathBoxInputData extends IBoxInputData { | ||
| } | ||
| interface IImageBox extends IImageAttrData, IBox { | ||
| __: IImageBoxData; | ||
| readonly ready: boolean; | ||
| readonly image?: ILeaferImage; | ||
| } | ||
| interface IImageBoxData extends IImageAttrData, IBoxData { | ||
| readonly __urlType: IMultimediaType; | ||
| __setImageFill(value: string): void; | ||
| } | ||
| interface IImageBoxInputData extends IImageAttrData, IBoxInputData { | ||
| } | ||
| interface IGroup extends IUI { | ||
@@ -1146,3 +1194,3 @@ __: IGroupData; | ||
| } | ||
| type IUITag = 'App' | 'Leafer' | 'Rect' | 'Ellipse' | 'Polygon' | 'Star' | 'Line' | 'Path' | 'Pen' | 'Text' | 'Image' | 'Canvas' | 'Group' | 'Frame' | 'Box' | 'Arrow' | 'Robot' | 'Film' | 'Video' | (string & {}); | ||
| type IUITag = 'App' | 'Leafer' | 'Rect' | 'Ellipse' | 'Polygon' | 'Star' | 'Line' | 'Path' | 'Pen' | 'Text' | 'Image' | 'Canvas' | 'Group' | 'Frame' | 'Box' | 'Arrow' | 'Robot' | 'Film' | 'Video' | (string & {}) | 'EllipseBox' | 'PolygonBox' | 'StarBox' | 'LineBox' | 'PathBox' | 'ImageBox' | 'CanvasBox'; | ||
| interface IUIInputData extends IRectInputData, IEllipseInputData, IPolygonInputData, IStarInputData, ILineInputData, IPathInputData, ITextInputData, IImageInputData, IGroupInputData, IBoxInputData, IFrameInputData, IFlowInputData, IArrowInputData, IVideoInputData, IRobotInputData, IUIBaseInputData, IObject { | ||
@@ -1349,2 +1397,2 @@ children?: IUIInputData[]; | ||
| export type { IAnimate, IAnimateKeyframe, IAnimateList, IAnimateType, IAnimation, IApp, IAppConfig, IAppData, IAppForEachFunction, IAppInputData, IArrow, IArrowData, IArrowInputData, IArrowStyle, IArrowType, IArrowTypeData, IBackgroundBoxStyle, IBlurEffect, IBox, IBoxData, IBoxInputData, ICachedShape, ICanvas, ICanvasData, ICanvasInputData, IColor, IColorConvertModule, IColorStop, IColorString, IComputedKeyframe, ICornerRadiusString, IDashPatternString, IEditBoxBase, IEditPoint, IEditPointInputData, IEditPointType, IEditToolFunction, IEditorBase, IEditorBeforeEditInner, IEditorBeforeEditOuter, IEditorBeforeMove, IEditorBeforeRotate, IEditorBeforeScale, IEditorBeforeSelect, IEditorBeforeSkew, IEditorConfig, IEditorConfigFunction, IEditorDragStartData, IEditorEditInnerData, IEditorEditOuterData, IEditorMoveData, IEditorRotationData, IEditorScaleData, IEditorSelectData, IEditorSkewData, IEffect, IEffectAttrData, IEffectComputedData, IEffectInputData, IEffectModule, IEllipse, IEllipseData, IEllipseInputData, IExportModule, IFill, IFilm, IFilmData, IFilmInputData, IFilterFunction, IFilterModule, IFilterProcessor, IFindUIMethod, IFlow, IFlowData, IFlowInputData, IFontWeight, IFontWeightNumer, IFontWeightString, IFrame, IFrameData, IFrameInputData, IFrameRenderModule, IGradientPaint, IGradientType, IGrayscaleEffect, IGroup, IGroupData, IGroupInputData, IGroupRenderModule, IImage, IImageData, IImageFilter, IImageFilterType, IImageFilters, IImageInputData, IImagePaint, IImagePaintMode, IImageRenderModule, IKeyframe, IKeyframeId, IKeyframesAnimation, ILeafFill, ILeafPaint, ILeafPaintColor, ILeafPaintPatternData, ILeafShadowEffect, ILeafStrokePaint, ILeafer, ILeaferData, ILeaferInputData, ILine, ILineData, ILineInputData, ILinker, ILinkerComputedPointData, ILinkerData, ILinkerInputData, ILinkerPointData, ILinkerPointOptions, ILinkerPointType, 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 }; | ||
| export type { IAnimate, IAnimateKeyframe, IAnimateList, IAnimateType, IAnimation, IApp, IAppConfig, IAppData, IAppForEachFunction, IAppInputData, IArrow, IArrowData, IArrowInputData, IArrowStyle, IArrowType, IArrowTypeData, IBackgroundBoxStyle, IBlurEffect, IBox, IBoxData, IBoxInputData, ICachedShape, ICanvas, ICanvasData, ICanvasInputData, IColor, IColorConvertModule, IColorStop, IColorString, IComputedKeyframe, ICornerRadiusString, IDashPatternString, IEditBoxBase, IEditPoint, IEditPointInputData, IEditPointType, IEditToolFunction, IEditorBase, IEditorBeforeEditInner, IEditorBeforeEditOuter, IEditorBeforeMove, IEditorBeforeRotate, IEditorBeforeScale, IEditorBeforeSelect, IEditorBeforeSkew, IEditorConfig, IEditorConfigFunction, IEditorDragStartData, IEditorEditInnerData, IEditorEditOuterData, IEditorMoveData, IEditorOnCopy, IEditorRotationData, IEditorScaleData, IEditorSelectData, IEditorSkewData, IEffect, IEffectAttrData, IEffectComputedData, IEffectInputData, IEffectModule, IEllipse, IEllipseBox, IEllipseBoxData, IEllipseBoxInputData, IEllipseData, IEllipseInputData, IExportModule, IFill, IFilm, IFilmData, IFilmInputData, IFilterFunction, IFilterModule, IFilterProcessor, IFindUIMethod, IFlow, IFlowData, IFlowInputData, IFontWeight, IFontWeightNumer, IFontWeightString, IFrame, IFrameData, IFrameInputData, IFrameRenderModule, IGradientPaint, IGradientType, IGrayscaleEffect, IGroup, IGroupData, IGroupInputData, IGroupRenderModule, IImage, IImageBox, IImageBoxData, IImageBoxInputData, IImageData, IImageFilter, IImageFilterType, IImageFilters, IImageInputData, IImagePaint, IImagePaintMode, IImageRenderModule, IKeyframe, IKeyframeId, IKeyframesAnimation, ILeafFill, ILeafPaint, ILeafPaintColor, ILeafPaintPatternData, ILeafShadowEffect, ILeafStrokePaint, ILeafer, ILeaferData, ILeaferInputData, ILine, ILineData, ILineInputData, ILinker, ILinkerComputedPointData, ILinkerData, ILinkerInputData, ILinkerPointData, ILinkerPointOptions, ILinkerPointType, IOverflow, IPaint, IPaintAttr, IPaintBase, IPaintGradientModule, IPaintImageModule, IPaintModule, IPaintString, IPaintType, IPath, IPathArrowModule, IPathBox, IPathBoxData, IPathBoxInputData, IPathData, IPathDataArrow, IPathDataArrowMap, IPathDataArrowOffset, IPathInputData, IPen, IPenData, IPenInputData, IPercent, IPolygon, IPolygonBox, IPolygonBoxData, IPolygonBoxInputData, IPolygonData, IPolygonInputData, IRGB, IRGBA, IRect, IRectData, IRectInputData, IRectRenderModule, IRepeat, IRobot, IRobotActionName, IRobotActions, IRobotAnimation, IRobotComputedKeyframe, IRobotData, IRobotInputData, IRobotKeyframe, IScrollConfig, IScrollTheme, IScroller, IShadowEffect, IShadowString, ISolidPaint, IStar, IStarBox, IStarBoxData, IStarBoxInputData, 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 }; |
116937
3.61%2922
3.73%+ Added
- Removed
Updated