@leafer/interface 1.4.1 → 1.4.2
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 +1 -1
- package/src/image/IImageManager.ts +3 -1
- package/types/index.d.ts +2 -1
package/package.json
CHANGED
|
@@ -4,9 +4,11 @@ import { IExportFileType } from '../file/IFileType'
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
export interface IImageManager {
|
|
7
|
+
maxRecycled: number
|
|
8
|
+
recycledList: ILeaferImage[]
|
|
9
|
+
|
|
7
10
|
patternTasker: ITaskProcessor
|
|
8
11
|
patternLocked?: boolean // 锁定pattern不更新, 一般用于创建碰撞位图 UIHit.ts
|
|
9
|
-
recycledList: ILeaferImage[]
|
|
10
12
|
|
|
11
13
|
get(config: ILeaferImageConfig): ILeaferImage
|
|
12
14
|
recycle(image: ILeaferImage): void
|
package/types/index.d.ts
CHANGED
|
@@ -2133,9 +2133,10 @@ interface ITaskOptions {
|
|
|
2133
2133
|
}
|
|
2134
2134
|
|
|
2135
2135
|
interface IImageManager {
|
|
2136
|
+
maxRecycled: number;
|
|
2137
|
+
recycledList: ILeaferImage[];
|
|
2136
2138
|
patternTasker: ITaskProcessor;
|
|
2137
2139
|
patternLocked?: boolean;
|
|
2138
|
-
recycledList: ILeaferImage[];
|
|
2139
2140
|
get(config: ILeaferImageConfig): ILeaferImage;
|
|
2140
2141
|
recycle(image: ILeaferImage): void;
|
|
2141
2142
|
clearRecycled(): void;
|