@leafer/interface
Advanced tools
| import { ITaskProcessor } from '../task/ITaskProcessor' | ||
| import { ILeaferImage } from '../image/ILeaferImage' | ||
| import { IExportFileType } from './IFileType' | ||
| import { IObject } from '../data/IData' | ||
| import { ILeaferCanvas } from '../canvas/ILeaferCanvas' | ||
| export interface IResource { | ||
| map: any, | ||
| tasker: ITaskProcessor | ||
| readonly isComplete: boolean | ||
| set(key: string, value: any): void | ||
| get(key: string): any | ||
| remove(key: string): void | ||
| setImage(key: string, value: string | IObject | ILeaferImage | ILeaferCanvas, format?: IExportFileType): ILeaferImage | ||
| loadImage(key: string, format?: IExportFileType): Promise<ILeaferImage> | ||
| destroy(): void | ||
| } |
+1
-1
| { | ||
| "name": "@leafer/interface", | ||
| "version": "1.4.0", | ||
| "version": "1.4.1", | ||
| "description": "@leafer/interface", | ||
@@ -5,0 +5,0 @@ "author": "Chao (Leafer) Wan", |
@@ -18,2 +18,3 @@ import { ILeaf, ICursorType } from '../display/ILeaf' | ||
| import { IFunction } from '../function/IFunction' | ||
| import { ITransition } from '../animate/ITransition' | ||
@@ -28,4 +29,2 @@ | ||
| grow?: boolean | 'box' | 'render' | ||
| growWidth?: boolean | ||
| growHeight?: boolean | ||
| lazySpeard?: IFourNumber | ||
@@ -89,3 +88,3 @@ } | ||
| zoom(zoomType: IZoomType, padding?: IFourNumber, fixedScale?: boolean): IBoundsData | ||
| zoom(zoomType: IZoomType, padding?: IFourNumber, fixedScale?: boolean, transition?: ITransition): IBoundsData | ||
| getValidMove(moveX: number, moveY: number): IPointData | ||
@@ -92,0 +91,0 @@ getValidScale(changeScale: number): number |
@@ -209,4 +209,7 @@ import { ILeaferBase } from '../app/ILeafer' | ||
| export interface IFilter extends IObject { | ||
| type: string | ||
| visible?: boolean | ||
| } | ||
| export interface ILeafAttrData { | ||
@@ -228,2 +231,3 @@ // layer data | ||
| eraser?: IBoolean | IEraserType | ||
| filter?: IFilter | IFilter[] | ||
@@ -331,2 +335,3 @@ // layout data | ||
| eraser?: boolean | IEraserType | ||
| filter?: IFilter[] | ||
@@ -626,3 +631,3 @@ // layout data | ||
| scaleOf(origin: IPointData | IAlign, scaleX: number, scaleY?: number | ITransition, resize?: boolean, transition?: ITransition): void | ||
| rotateOf(origin: IPointData | IAlign, rotation: number): void | ||
| rotateOf(origin: IPointData | IAlign, rotation: number, transition?: ITransition): void | ||
| skewOf(origin: IPointData | IAlign, skewX: number, skewY?: number, resize?: boolean, transition?: ITransition): void | ||
@@ -656,3 +661,3 @@ | ||
| __drawFast(canvas: ILeaferCanvas, options: IRenderOptions): void | ||
| __draw(canvas: ILeaferCanvas, options: IRenderOptions): void | ||
| __draw(canvas: ILeaferCanvas, options: IRenderOptions, originCanvas?: ILeaferCanvas): void | ||
@@ -659,0 +664,0 @@ __clip(canvas: ILeaferCanvas, options: IRenderOptions): void |
@@ -9,3 +9,3 @@ import { ILeaferCanvas } from '../../canvas/ILeaferCanvas' | ||
| __render?(canvas: ILeaferCanvas, options: IRenderOptions): void | ||
| __draw?(canvas: ILeaferCanvas, options: IRenderOptions): void | ||
| __draw?(canvas: ILeaferCanvas, options: IRenderOptions, originCanvas?: ILeaferCanvas): void | ||
| __drawFast?(canvas: ILeaferCanvas, options: IRenderOptions): void | ||
@@ -12,0 +12,0 @@ |
@@ -5,13 +5,8 @@ import { ILeaferImage, ILeaferImageConfig } from './ILeaferImage' | ||
| interface ILeaferImageMap { | ||
| [name: string]: ILeaferImage | ||
| } | ||
| export interface IImageManager { | ||
| map: ILeaferImageMap | ||
| recycledList: ILeaferImage[] | ||
| tasker: ITaskProcessor | ||
| patternTasker: ITaskProcessor | ||
| patternLocked?: boolean // 锁定pattern不更新, 一般用于创建碰撞位图 UIHit.ts | ||
| readonly isComplete: boolean | ||
| recycledList: ILeaferImage[] | ||
| get(config: ILeaferImageConfig): ILeaferImage | ||
@@ -22,3 +17,4 @@ recycle(image: ILeaferImage): void | ||
| isFormat(format: IExportFileType, config: ILeaferImageConfig): boolean | ||
| destroy(): void | ||
| } |
@@ -6,2 +6,3 @@ import { ICanvasPattern } from '../canvas/ICanvas' | ||
| import { IMatrixData } from '../math/IMath' | ||
| import { ILeaferCanvas } from '../canvas/ILeaferCanvas' | ||
@@ -12,2 +13,3 @@ export interface ILeaferImageConfig { | ||
| format?: IExportFileType | ||
| view?: IObject | ILeaferImage | ILeaferCanvas | ||
| } | ||
@@ -36,3 +38,3 @@ | ||
| view: unknown | ||
| view: any | ||
| width: number | ||
@@ -54,3 +56,4 @@ height: number | ||
| unload(index: number, stopEvent?: boolean): void | ||
| getCanvas(width: number, height: number, opacity?: number, _filters?: IObject): unknown | ||
| getFull(filters?: IObject): any | ||
| getCanvas(width: number, height: number, opacity?: number, filters?: IObject): any | ||
| getPattern(canvas: any, repeat: string | null, transform?: IMatrixData, paint?: IObject): ICanvasPattern | ||
@@ -57,0 +60,0 @@ destroy(): void |
+2
-1
| 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, IFlowType, IFlowBoxType, IAlign, IAxisAlign, IFlowAlign, IFlowAxisAlign, ISide, IAxis, IGap, IPointGap, IAxisReverse, IBaseLineAlign, IFlowWrap, IAutoSize, IRangeSize, IPercentData, IUnitData, IConstraint, IConstraintType, IHitType, IMaskType, IEraserType, IBlendMode, IEditSize, IImageCursor, ICursorType, IStateStyleType, IDirection, IDirection4, IAround, ILeafAttrDescriptor, ILeafAttrDescriptorFn } from './display/ILeaf' | ||
| export { ILeaf, ILeafAttrData, ILeafComputedData, ILeafInputData, ICachedLeaf, IFlowType, IFlowBoxType, IAlign, IAxisAlign, IFlowAlign, IFlowAxisAlign, ISide, IAxis, IGap, IPointGap, IAxisReverse, IBaseLineAlign, IFlowWrap, IAutoSize, IRangeSize, IPercentData, IUnitData, IConstraint, IConstraintType, IHitType, IMaskType, IEraserType, IBlendMode, IEditSize, IImageCursor, ICursorType, IStateStyleType, IDirection, IDirection4, IAround, IFilter, ILeafAttrDescriptor, ILeafAttrDescriptorFn } from './display/ILeaf' | ||
| export { IBranch } from './display/IBranch' | ||
@@ -44,2 +44,3 @@ export { IZoomView } from './display/IView' | ||
| export { ILeaferImage, ILeaferImageConfig, ILeaferImageOnLoaded, ILeaferImageOnError, ILeaferImageCacheCanvas, ILeaferImagePatternPaint } from './image/ILeaferImage' | ||
| export { IResource } from './file/IResource' | ||
| export { IExportFileType, IExportImageType } from './file/IFileType' | ||
@@ -46,0 +47,0 @@ export { IExportOptions, IJSONOptions, IExportResult, IExportResultFunction, IExportOnCanvasFunction } from './file/IExport' |
Sorry, the diff of this file is too big to display
188691
0.82%51
2%4857
0.62%