@leafer/interface
Advanced tools
+1
-1
| { | ||
| "name": "@leafer/interface", | ||
| "version": "1.0.0-rc.21", | ||
| "version": "1.0.0-rc.22", | ||
| "description": "@leafer/interface", | ||
@@ -5,0 +5,0 @@ "author": "Chao (Leafer) Wan", |
@@ -0,1 +1,3 @@ | ||
| import { IPointData } from '../math/IMath' | ||
| export type INumber = number // number | string will convert to number | ||
@@ -27,4 +29,8 @@ export type IBoolean = boolean // boolean | string will convert to boolean | ||
| export interface IPointDataMap { | ||
| [name: string]: IPointData | ||
| } | ||
| export interface IDataTypeHandle { | ||
| (target: any): void | ||
| } |
+14
-9
@@ -65,3 +65,4 @@ import { ILeaferBase } from '../app/ILeafer' | ||
| draggable: IBoolean | ||
| draggable: IBoolean | 'x' | 'y' | ||
| dragBounds?: IBoundsData | 'parent' | ||
@@ -74,3 +75,2 @@ path: IPathCommandData | IPathString | ||
| editSize: IEditSize | ||
| editorStyle: IObject | ||
@@ -142,3 +142,3 @@ hittable: IBoolean | ||
| export type IAround = | ||
| export type IDirection = | ||
| | 'topLeft' | ||
@@ -153,2 +153,5 @@ | 'top' | ||
| | 'center' | ||
| export type IAround = | ||
| | IDirection | ||
| | IPointData | ||
@@ -240,3 +243,4 @@ | ||
| draggable?: IBoolean | ||
| draggable?: IBoolean | 'x' | 'y' | ||
| dragBounds?: IBoundsData | 'parent' | ||
@@ -249,3 +253,2 @@ path?: IPathCommandData | IPathString | ||
| editSize?: IEditSize | ||
| editorStyle?: IObject | ||
@@ -312,7 +315,7 @@ hittable?: IBoolean | ||
| draggable?: boolean | ||
| draggable?: boolean | 'x' | 'y' | ||
| dragBounds?: IBoundsData | 'parent' | ||
| editable?: boolean | ||
| editSize?: IEditSize | ||
| editorStyle?: IObject | ||
@@ -375,2 +378,4 @@ hittable?: boolean | ||
| syncEventer?: ILeaf // 同步触发一样事件的元素 | ||
| __layout: ILeafLayout | ||
@@ -511,3 +516,3 @@ | ||
| move(x: number, y?: number): void | ||
| move(x: number | IPointData, y?: number): void | ||
| scaleOf(origin: IPointData, scaleX: number, scaleY?: number, resize?: boolean): void | ||
@@ -518,3 +523,3 @@ rotateOf(origin: IPointData, rotation: number): void | ||
| transformWorld(worldTransform?: IMatrixData, resize?: boolean): void | ||
| moveWorld(x: number, y?: number): void | ||
| moveWorld(x: number | IPointData, y?: number): void | ||
| scaleOfWorld(worldOrigin: IPointData, scaleX: number, scaleY?: number, resize?: boolean): void | ||
@@ -521,0 +526,0 @@ rotateOfWorld(worldOrigin: IPointData, rotation: number): void |
@@ -0,1 +1,2 @@ | ||
| import { IObject } from '../data/IData' | ||
| import { IPointData } from '../math/IMath' | ||
@@ -11,2 +12,10 @@ | ||
| export interface IStringFunction { | ||
| (...arg: any): string | ||
| } | ||
| export interface IObjectFunction { | ||
| (...arg: any): IObject | ||
| } | ||
| export interface IPointDataFunction { | ||
@@ -13,0 +22,0 @@ (...arg: any): IPointData |
+4
-4
| export { IAppBase } from './app/IApp' | ||
| export { ILeaferBase, ILeaferAttrData, ILeaferType, ILeaferTypeCreator, ILeaferTypeFunction, ILeaferTypeList, ILeaferConfig, ICreator, IUICreator, IZoomType } from './app/ILeafer' | ||
| export { ILeaf, ILeafAttrData, ILeafComputedData, ILeafInputData, ICachedLeaf, IHitType, IMaskType, IBlendMode, IEditSize, IImageCursor, ICursorType, IStateStyleType, IAround, ILeafAttrDescriptor, ILeafAttrDescriptorFn } from './display/ILeaf' | ||
| export { ILeaf, ILeafAttrData, ILeafComputedData, ILeafInputData, ICachedLeaf, IHitType, IMaskType, IBlendMode, IEditSize, IImageCursor, ICursorType, IStateStyleType, IDirection, IAround, ILeafAttrDescriptor, ILeafAttrDescriptorFn } from './display/ILeaf' | ||
| export { IBranch } from './display/IBranch' | ||
@@ -22,3 +22,3 @@ export { IZoomView } from './display/IView' | ||
| export { ILayouter, ILayoutChangedData, ILayoutBlockData, ILayouterConfig, IPartLayoutConfig } from './layouter/ILayouter' | ||
| export { ISelector, ISelectorConfig, ISelectorProxy, IFindMethod, IPickResult, IPickOptions, IAnswer } from './selector/ISelector' | ||
| export { ISelector, ISelectorConfig, ISelectorProxy, IFindMethod, IPickResult, IPickOptions, IPickBottom, IAnswer } from './selector/ISelector' | ||
@@ -54,5 +54,5 @@ export { ICanvasManager } from './canvas/ICanvasManager' | ||
| export { INumber, IBoolean, IString, IValue, IFourNumber, IPathString, ITimer, IObject, INumberMap, IStringMap, IBooleanMap, IDataTypeHandle } from './data/IData' | ||
| export { INumber, IBoolean, IString, IValue, IFourNumber, IPathString, ITimer, IObject, INumberMap, IStringMap, IBooleanMap, IPointDataMap, IDataTypeHandle } from './data/IData' | ||
| export { ILeafList, ILeafArrayMap, ILeafMap, ILeafLevelList, ILeafListItemCallback } from './data/IList' | ||
| export { IPoint, IPointData, IRadiusPointData, ISize, ISizeData, IScreenSizeData, IBounds, IBoundsData, IBoundsDataFn, IOffsetBoundsData, ITwoPointBoundsData, IAutoBounds, IAutoBoundsData, IMatrix, IMatrixData, IMatrixWithBoundsData, IMatrixWithScaleData, IMatrixWithOptionScaleData, IMatrixWithBoundsScaleData, IMatrixWithLayoutData, IScaleRotationData, IScaleData, ISkewData, ILayoutBoundsData, ILayoutData, ILayoutAttr } from './math/IMath' | ||
| export { IFunction, IAttrDecorator } from './function/IFunction' | ||
| export { IFunction, IStringFunction, INumberFunction, IObjectFunction, IPointDataFunction, IAttrDecorator } from './function/IFunction' |
@@ -6,3 +6,3 @@ import { INumberFunction, IPointDataFunction } from '../function/IFunction' | ||
| import { IPointData } from '../math/IMath' | ||
| import { ISelector, IPickOptions } from '../selector/ISelector' | ||
| import { ISelector, IPickOptions, IPickBottom } from '../selector/ISelector' | ||
| import { IBounds } from '../math/IMath' | ||
@@ -30,2 +30,4 @@ import { IControl } from '../control/IControl' | ||
| bottomList?: IPickBottom[] // 底部可拾取的虚拟元素 | ||
| shrinkCanvasBounds: IBounds | ||
@@ -32,0 +34,0 @@ |
@@ -18,2 +18,3 @@ import { ILeaf } from '../display/ILeaf' | ||
| findList?: ILeaf[] | ||
| bottomList?: IPickBottom[] // 底部可拾取的虚拟元素 | ||
| exclude?: ILeafList | ||
@@ -23,2 +24,7 @@ ignoreHittable?: boolean | ||
| export interface IPickBottom { | ||
| target: ILeaf | ||
| proxy?: ILeaf | ||
| } | ||
| export interface ISelectorConfig { | ||
@@ -25,0 +31,0 @@ |
Sorry, the diff of this file is too big to display
162454
0.86%4217
0.91%