@leafer/interface
Advanced tools
+1
-1
| { | ||
| "name": "@leafer/interface", | ||
| "version": "1.12.4", | ||
| "version": "2.0.0", | ||
| "description": "@leafer/interface", | ||
@@ -5,0 +5,0 @@ "author": "Chao (Leafer) Wan", |
@@ -61,2 +61,7 @@ import { ILeaferBase } from '../app/ILeafer' | ||
| export interface IInterlace { | ||
| type: IAxis | ||
| offset: number | IPercentData | ||
| } | ||
| export interface IUnitData { | ||
@@ -63,0 +68,0 @@ type: 'percent' | 'px' |
@@ -5,3 +5,3 @@ import { IBlob, ILeaferCanvas } from '../canvas/ILeaferCanvas' | ||
| import { ILocationType } from '../layout/ILeafLayout' | ||
| import { IBoundsData, IOptionSizeData, IPointData } from '../math/IMath' | ||
| import { IBoundsData, IBoundsDataWithOptionRotation, IOptionSizeData, IPointData } from '../math/IMath' | ||
| import { IFourNumber } from '../data/IData' | ||
@@ -16,5 +16,3 @@ | ||
| clip?: IBoundsData | ||
| rotation?: number | ||
| skew?: IPointData | ||
| clip?: IBoundsDataWithOptionRotation | ||
@@ -21,0 +19,0 @@ padding?: IFourNumber |
@@ -10,3 +10,3 @@ import { ICanvasPattern } from '../canvas/ICanvas' | ||
| import { ITaskItem } from '../task/ITaskProcessor' | ||
| import { IRangeSize } from '../display/ILeaf' | ||
| import { IRangeSize, IInterlace } from '../display/ILeaf' | ||
| import { IFunction } from '../function/IFunction' | ||
@@ -33,3 +33,3 @@ | ||
| export interface IImageTileLOD { | ||
| url: string // 'tile-{level}-{index}-{x}-{y}-{width}-{height}.jpg' | ||
| url: string // 'tile-{level}-{index}-{scale}-{x}-{y}-{width}-{height}.jpg' | ||
| size: number | ||
@@ -57,5 +57,10 @@ min?: number | ||
| export interface ILeaferImageSliceData { | ||
| width: number | ||
| height: number | ||
| total: number | ||
| columns: number | ||
| size: number | ||
| columns: number, | ||
| total: number, | ||
| addSize: number | ||
| list?: ILeaferImageSlice[] | ||
@@ -68,2 +73,3 @@ } | ||
| task?: ITaskItem | ||
| destroyed?: boolean | ||
| } | ||
@@ -80,2 +86,3 @@ | ||
| use?: number // 引用次数 | ||
| destroyed?: boolean | ||
| } | ||
@@ -108,3 +115,3 @@ | ||
| minLevel?: number | ||
| loadId?: any | ||
| loadId?: ITaskItem | ||
@@ -119,3 +126,3 @@ progress?: IProgressData // 加载进度 | ||
| getFull(filters?: IObject): any | ||
| getCanvas(width: number, height: number, opacity?: number, filters?: IObject, xGap?: number, yGap?: number, smooth?: boolean): any | ||
| getCanvas(width: number, height: number, opacity?: number, filters?: IObject, xGap?: number, yGap?: number, smooth?: boolean, interlace?: IInterlace): any | ||
| getPattern(canvas: any, repeat: string | null, transform?: IMatrixData, paint?: IObject): ICanvasPattern | ||
@@ -122,0 +129,0 @@ |
+2
-2
| export { IAppBase } from './app/IApp' | ||
| export { ILeaferBase, ILeaferAttrData, ILeaferType, ILeaferMode, ILeaferTypeCreator, ILeaferTypeFunction, ILeaferTypeList, ILeaferConfig, ICreator, IUICreator, IZoomType, IZoomOptions } 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, IScaleFixed, IHitType, IMaskType, IEraserType, IBlendMode, IEditSize, IDragBoundsType, IImageCursor, ICursorType, IStateStyleType, IDirection, IDirection4, IAround, IFilter, 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, IInterlace, IPercentData, IUnitData, IConstraint, IConstraintType, IScaleFixed, IHitType, IMaskType, IEraserType, IBlendMode, IEditSize, IDragBoundsType, IImageCursor, ICursorType, IStateStyleType, IDirection, IDirection4, IAround, IFilter, ILeafAttrDescriptor, ILeafAttrDescriptorFn } from './display/ILeaf' | ||
| export { IBranch } from './display/IBranch' | ||
@@ -59,5 +59,5 @@ export { IZoomView } from './display/IView' | ||
| export { ILeafList, ILeafArrayMap, ILeafMap, ILeafLevelList, ILeafListItemCallback } from './data/IList' | ||
| export { IPoint, IPointData, IFromToData, IUnitPointData, IRotationPointData, IScrollPointData, IClientPointData, IRadiusPointData, ISize, ISizeData, IOptionSizeData, IScreenSizeData, IBounds, IBoundsData, IBoundsDataFn, IOffsetBoundsData, ITwoPointBoundsData, IAutoBounds, IAutoBoxData, IAutoBoundsData, IMatrix, IMatrixData, IMatrixWithBoundsData, IMatrixWithScaleData, IMatrixWithOptionScaleData, IMatrixWithOptionHalfData, IMatrixWithBoundsScaleData, IMatrixWithLayoutData, IScaleRotationData, IScaleData, ISkewData, ILayoutBoundsData, ILayoutData, ILayoutAttr } from './math/IMath' | ||
| export { IPoint, IPointData, IFromToData, IUnitPointData, IRotationPointData, IScrollPointData, IClientPointData, IRadiusPointData, ISize, ISizeData, IOptionSizeData, IScreenSizeData, IBounds, IBoundsData, IBoundsDataFn, IOffsetBoundsData, IBoundsDataWithOptionRotation, ITwoPointBoundsData, IAutoBounds, IAutoBoxData, IAutoBoundsData, IMatrix, IMatrixData, IMatrixWithBoundsData, IMatrixWithScaleData, IMatrixWithOptionScaleData, IMatrixWithOptionHalfData, IMatrixWithBoundsScaleData, IMatrixWithLayoutData, IScaleRotationData, IScaleData, ISkewData, ILayoutBoundsData, ILayoutData, ILayoutAttr } from './math/IMath' | ||
| export { IFunction, IStringFunction, INumberFunction, IObjectFunction, IValueFunction, IPointDataFunction, IAttrDecorator } from './function/IFunction' | ||
| export { ITransition, IAnimateEasing, ICubicBezierEasing, IStepsEasing, IAnimateEasingFunction, IAnimateEasingName, IAnimateEnding, IAnimateEvents, IAnimateEventFunction, ICustomEasingFunction, IAnimateOptions } from './animate/ITransition' |
@@ -11,3 +11,3 @@ import { INumberFunction, IPointDataFunction } from '../function/IFunction' | ||
| import { ILeaferCanvas } from '../canvas/ILeaferCanvas' | ||
| import { IObject } from '../data/IData' | ||
| import { IFourNumber, IObject } from '../data/IData' | ||
@@ -122,2 +122,3 @@ | ||
| scroll?: boolean | 'x' | 'y' | 'limit' | 'x-limit' | 'y-limit' | ||
| scrollSpread?: IFourNumber | ||
| drag?: boolean | 'auto' | ||
@@ -124,0 +125,0 @@ dragAnimate?: boolean | number |
@@ -87,2 +87,6 @@ import { IFourNumber, IObject } from '../data/IData' | ||
| export interface IBoundsDataWithOptionRotation extends IBoundsData { | ||
| rotation?: number | ||
| } | ||
| export interface IBoundsDataFn { | ||
@@ -89,0 +93,0 @@ (target: any, index?: number): IBoundsData |
| import { IFunction, IStringFunction } from '../function/IFunction' | ||
| import { ILeaferCanvas } from '../canvas/ILeaferCanvas' | ||
| import { ILeaf } from '../display/ILeaf' | ||
| import { IInterlace, ILeaf } from '../display/ILeaf' | ||
| import { IExportFileType, IExportImageType } from '../file/IFileType' | ||
@@ -76,3 +76,4 @@ import { IBoundsData, ISizeData, IMatrixData } from '../math/IMath' | ||
| getRealURL: IStringFunction // 处理前缀、后缀 | ||
| resize(image: any, width: number, height: number, xGap?: number, yGap?: number, clip?: IBoundsData, smooth?: boolean, opacity?: number, filters?: IObject): any | ||
| resize(image: any, width: number, height: number, xGap?: number, yGap?: number, clip?: IBoundsData, smooth?: boolean, opacity?: number, filters?: IObject, interlace?: IInterlace): any | ||
| canUse(image: any): boolean | ||
| setPatternTransform(pattern: ICanvasPattern, transform?: IMatrixData, paint?: IObject): void | ||
@@ -79,0 +80,0 @@ }, |
@@ -15,3 +15,5 @@ import { ILeaferCanvas } from '../canvas/ILeaferCanvas' | ||
| inCamera?: boolean | ||
| exporting?: boolean // 是否通过 export() 导出渲染 | ||
| snapshot?: boolean // 是否用于生成快照,如碰撞检测图 | ||
@@ -33,2 +35,3 @@ dimOpacity?: number // 淡化 | ||
| useCellRender?: boolean | IObject | ||
| ceilPartPixel?: boolean // 取整局部渲染的像素 | ||
| maxFPS?: number | ||
@@ -35,0 +38,0 @@ fill?: string |
@@ -34,2 +34,3 @@ import { IFunction } from '../function/IFunction' | ||
| time: number | ||
| task?: IFunction | ||
| canUse?: IFunction | ||
@@ -36,0 +37,0 @@ run(): Promise<void> |
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
219674
0.52%5635
0.54%