Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@leafer/interface

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/interface - npm Package Compare versions

Comparing version
1.12.2
to
1.12.3
+1
-1
package.json
{
"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 @@ }

@@ -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