@leafer/interface
Advanced tools
+1
-1
| { | ||
| "name": "@leafer/interface", | ||
| "version": "1.11.2", | ||
| "version": "1.12.0", | ||
| "description": "@leafer/interface", | ||
@@ -5,0 +5,0 @@ "author": "Chao (Leafer) Wan", |
@@ -15,3 +15,8 @@ import { ILeaferImage, ILeaferImageConfig } from './ILeaferImage' | ||
| recycle(image: ILeaferImage): void | ||
| clearRecycled(): void | ||
| recyclePaint(paint: any): void | ||
| clearRecycled(force?: boolean): void | ||
| clearLevels(): void | ||
| hasAlphaPixel(config: ILeaferImageConfig): boolean // png / svg / webp | ||
@@ -18,0 +23,0 @@ isFormat(format: IExportFileType, config: ILeaferImageConfig): boolean |
@@ -5,3 +5,3 @@ import { ICanvasPattern } from '../canvas/ICanvas' | ||
| import { IExportFileType } from '../file/IFileType' | ||
| import { IMatrixData, IPointData } from '../math/IMath' | ||
| import { IBoundsData, IMatrixData, IPointData } from '../math/IMath' | ||
| import { ILeaferCanvas } from '../canvas/ILeaferCanvas' | ||
@@ -48,2 +48,3 @@ import { IProgressData } from '../event/IProgress' | ||
| view?: any | ||
| bounds?: IBoundsData | ||
| task?: ITaskItem | ||
@@ -58,2 +59,3 @@ } | ||
| slice?: ILeaferImageSliceData | ||
| use?: number // 引用次数 | ||
| } | ||
@@ -86,3 +88,3 @@ | ||
| use: number | ||
| use: number // 引用次数 | ||
| config: ILeaferImageConfig | ||
@@ -95,2 +97,4 @@ | ||
| getPattern(canvas: any, repeat: string | null, transform?: IMatrixData, paint?: IObject): ICanvasPattern | ||
| clearLevels(checkUse?: boolean): void | ||
| destroy(): void | ||
@@ -97,0 +101,0 @@ } |
@@ -31,2 +31,3 @@ import { IBounds } from '../math/IMath' | ||
| export interface ILayouterConfig { | ||
| usePartLayout?: boolean | ||
| partLayout?: IPartLayoutConfig | ||
@@ -33,0 +34,0 @@ } |
@@ -121,3 +121,2 @@ import { IPointData } from '../math/IMath' | ||
| ab?: PathNodeHandleType | ||
| } | ||
@@ -124,0 +123,0 @@ |
@@ -42,2 +42,3 @@ import { IFunction, IStringFunction } from '../function/IFunction' | ||
| createCanvas(width: number, height: number, format?: 'svg' | 'pdf'): any | ||
| createOffscreenCanvas?(width: number, height: number, format?: 'svg' | 'pdf'): any | ||
| canvasToDataURL(canvas: any, type?: IExportImageType, quality?: number): string | Promise<string> | ||
@@ -78,3 +79,6 @@ canvasToBolb(canvas: any, type?: IExportFileType, quality?: number): Promise<any> | ||
| setPatternTransform(pattern: ICanvasPattern, transform?: IMatrixData, paint?: IObject): void | ||
| } | ||
| }, | ||
| canCreateImageBitmap?: boolean // 是否能使用 createImageBitmap | ||
| canClipImageBitmap?: boolean // 是否能使用 createImageBitmap 裁剪图片 | ||
| } | ||
@@ -81,0 +85,0 @@ |
@@ -7,2 +7,3 @@ import { ILeaferCanvas } from '../canvas/ILeaferCanvas' | ||
| import { ILeafList } from '../data/IList' | ||
| import { IObject } from '../data/IData' | ||
@@ -25,2 +26,4 @@ export interface IRenderOptions { | ||
| ignoreStroke?: boolean // 绘制外形时忽略stroke | ||
| cellList?: ILeafList | ||
| } | ||
@@ -30,2 +33,3 @@ | ||
| usePartRender?: boolean | ||
| useCellRender?: boolean | IObject | ||
| maxFPS?: number | ||
@@ -32,0 +36,0 @@ fill?: string |
| import { ILeaf } from '../display/ILeaf' | ||
| import { ILeafList } from '../data/IList' | ||
| import { IControl } from '../control/IControl' | ||
| import { ILayouterConfig } from '../layouter/ILayouter' | ||
@@ -9,3 +10,3 @@ export interface IWatchEventData { | ||
| export interface IWatcherConfig { | ||
| export interface IWatcherConfig extends ILayouterConfig { | ||
@@ -12,0 +13,0 @@ } |
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
216425
0.52%5540
0.44%