@leafer/interface 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -79,6 +79,7 @@ export interface IInteraction extends IControl {
|
|
|
79
79
|
cancelHover(): void
|
|
80
80
|
stopDragAnimate(): void
|
|
81
81
|
|
|
82
|
+
replaceDownTarget(target: ILeaf): void
|
|
82
83
|
updateDownData(data?: IPointerEvent, options?: IPickOptions, merge?: boolean): void
|
|
83
84
|
updateHoverData(data: IPointerEvent): void
|
|
84
85
|
|
|
@@ -104,6 +105,7 @@ export interface IInteractionConfig {
|
|
|
104
105
|
eventer?: IObject
|
|
105
106
|
cursor?: boolean
|
|
106
107
|
keyEvent?: boolean
|
|
108
|
+
shadowDOM?: boolean
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
export interface IZoomConfig {
|
|
@@ -81,6 +81,7 @@ export interface IPlatform {
|
|
|
81
81
|
resize(image: any, width: number, height: number, xGap?: number, yGap?: number, clip?: IBoundsData, smooth?: boolean, opacity?: number, filters?: IObject, interlace?: IInterlace): any
|
|
82
82
|
canUse(image: any): boolean
|
|
83
83
|
setPatternTransform(pattern: ICanvasPattern, transform?: IMatrixData, paint?: IObject): void
|
|
84
|
+
applyFilter?(canvas: any, image: any, filter: any[]): void
|
|
84
85
|
},
|
|
85
86
|
|
|
86
87
|
canCreateImageBitmap?: boolean // 是否能使用 createImageBitmap
|
package/types/index.d.ts
CHANGED
|
@@ -340,6 +340,7 @@ interface ILayouter extends IControl {
|
|
|
340
340
|
layouting: boolean;
|
|
341
341
|
waitAgain: boolean;
|
|
342
342
|
config: ILayouterConfig;
|
|
343
|
+
__updatedList: ILeafList;
|
|
343
344
|
disable(): void;
|
|
344
345
|
layout(): void;
|
|
345
346
|
layoutAgain(): void;
|
|
@@ -2096,6 +2097,7 @@ interface IPlatform {
|
|
|
2096
2097
|
resize(image: any, width: number, height: number, xGap?: number, yGap?: number, clip?: IBoundsData, smooth?: boolean, opacity?: number, filters?: IObject, interlace?: IInterlace): any;
|
|
2097
2098
|
canUse(image: any): boolean;
|
|
2098
2099
|
setPatternTransform(pattern: ICanvasPattern, transform?: IMatrixData, paint?: IObject): void;
|
|
2100
|
+
applyFilter?(canvas: any, image: any, filter: any[]): void;
|
|
2099
2101
|
};
|
|
2100
2102
|
canCreateImageBitmap?: boolean;
|
|
2101
2103
|
canClipImageBitmap?: boolean;
|
|
@@ -2191,6 +2193,7 @@ interface ILeaferImage {
|
|
|
2191
2193
|
isPlacehold?: boolean;
|
|
2192
2194
|
parent?: ILeaferImage;
|
|
2193
2195
|
childrenMap?: ILeaferImageMap;
|
|
2196
|
+
filter?: any[];
|
|
2194
2197
|
filterKey?: string;
|
|
2195
2198
|
largeThumb?: ILeaferImageLevel;
|
|
2196
2199
|
thumb?: ILeaferImageLevel;
|
|
@@ -2363,6 +2366,7 @@ interface IInteraction extends IControl {
|
|
|
2363
2366
|
isFocus(leaf: ILeaf): boolean;
|
|
2364
2367
|
cancelHover(): void;
|
|
2365
2368
|
stopDragAnimate(): void;
|
|
2369
|
+
replaceDownTarget(target: ILeaf): void;
|
|
2366
2370
|
updateDownData(data?: IPointerEvent, options?: IPickOptions, merge?: boolean): void;
|
|
2367
2371
|
updateHoverData(data: IPointerEvent): void;
|
|
2368
2372
|
updateCursor(hoverData?: IPointerEvent): void;
|
|
@@ -2382,6 +2386,7 @@ interface IInteractionConfig {
|
|
|
2382
2386
|
eventer?: IObject;
|
|
2383
2387
|
cursor?: boolean;
|
|
2384
2388
|
keyEvent?: boolean;
|
|
2389
|
+
shadowDOM?: boolean;
|
|
2385
2390
|
}
|
|
2386
2391
|
interface IZoomConfig {
|
|
2387
2392
|
disabled?: boolean;
|