@leafer/interface
Advanced tools
+1
-1
| { | ||
| "name": "@leafer/interface", | ||
| "version": "1.12.2", | ||
| "version": "1.12.3", | ||
| "description": "@leafer/interface", | ||
@@ -5,0 +5,0 @@ "author": "Chao (Leafer) Wan", |
@@ -71,2 +71,5 @@ import { ILeaf, ICursorType, IAlign } from '../display/ILeaf' | ||
| isPullDown?: boolean | ||
| isReachDottom?: boolean | ||
| __eventIds: IEventListenerId[] | ||
@@ -73,0 +76,0 @@ __nextRenderWait: IFunction[] |
@@ -5,3 +5,3 @@ import { ICanvasPattern } from '../canvas/ICanvas' | ||
| import { IExportFileType } from '../file/IFileType' | ||
| import { IBoundsData, IMatrixData, IPointData } from '../math/IMath' | ||
| import { IBoundsData, IMatrixData, IPointData, ISizeData } from '../math/IMath' | ||
| import { ILeaferCanvas } from '../canvas/ILeaferCanvas' | ||
@@ -15,3 +15,3 @@ import { IProgressData } from '../event/IProgress' | ||
| url: string | ||
| thumb?: string | ||
| lod?: IImageLOD | ||
| format?: IExportFileType | ||
@@ -23,2 +23,17 @@ crossOrigin?: IImageCrossOrigin | ||
| export interface IImageLOD { | ||
| url: string // 'thumb-{level}-{width}-{height}.jpg' | ||
| width: number | ||
| height: number | ||
| thumb?: number | ||
| min?: number | ||
| tile?: IImageTileLOD | ||
| } | ||
| export interface IImageTileLOD { | ||
| url: string // 'tile-{level}-{index}-{x}-{y}-{width}-{height}.jpg' | ||
| size: number | ||
| min?: number | ||
| } | ||
| export interface ILeaferImageOnLoaded { | ||
@@ -66,2 +81,3 @@ (image?: ILeaferImage): any | ||
| readonly url: string | ||
| readonly crossOrigin: IImageCrossOrigin | ||
@@ -83,5 +99,7 @@ view: any | ||
| largeThumb?: ILeaferImageLevel | ||
| thumb?: ILeaferImageLevel | ||
| levels?: ILeaferImageLevel[] | ||
| levelsRange?: IRangeSize | ||
| minLevel?: number | ||
| loadId?: any | ||
@@ -93,3 +111,3 @@ progress?: IProgressData // 加载进度 | ||
| load(onSuccess?: ILeaferImageOnLoaded, onError?: ILeaferImageOnError): number | ||
| load(onSuccess?: ILeaferImageOnLoaded, onError?: ILeaferImageOnError, thumbSize?: ISizeData): number | ||
| unload(index: number, stopEvent?: boolean): void | ||
@@ -100,3 +118,10 @@ getFull(filters?: IObject): any | ||
| getLoadUrl(thumbSize?: ISizeData): string | ||
| setThumbView(view: number): void | ||
| getThumbSize(): ISizeData | ||
| getMinLevel(): number | ||
| getLevelData(_level: number): ILeaferImageLevel | ||
| clearLevels(checkUse?: boolean): void | ||
| destroy(): void | ||
@@ -103,0 +128,0 @@ } |
+1
-1
@@ -43,3 +43,3 @@ export { IAppBase } from './app/IApp' | ||
| export { ILeaferImage, ILeaferImageConfig, ILeaferImageSliceData, ILeaferImageSlice, ILeaferImageLevel, ILeaferImageOnLoaded, ILeaferImageOnError, ILeaferImageCacheCanvas, ILeaferImagePatternPaint } from './image/ILeaferImage' | ||
| export { ILeaferImage, ILeaferImageConfig, IImageLOD, IImageTileLOD, ILeaferImageSliceData, ILeaferImageSlice, ILeaferImageLevel, ILeaferImageOnLoaded, ILeaferImageOnError, ILeaferImageCacheCanvas, ILeaferImagePatternPaint } from './image/ILeaferImage' | ||
| export { IResource } from './file/IResource' | ||
@@ -46,0 +46,0 @@ export { IExportFileType, IExportImageType } from './file/IFileType' |
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
218204
0.62%5596
0.83%