@antv/g-plugin-image-loader
Version:
A G plugin for loading image
14 lines • 572 B
TypeScript
import { DisplayObject } from '@antv/g-lite';
export declare class RefCountCache<CacheValue> {
private cacheStore;
onRefAdded(ref: DisplayObject): void;
has(key: string): boolean;
put(key: string, item: CacheValue, ref: DisplayObject): boolean;
get(key: string, ref: DisplayObject): CacheValue;
update(key: string, value: CacheValue, ref: DisplayObject): boolean;
release(key: string, ref: DisplayObject): boolean;
releaseRef(ref: DisplayObject): void;
getSize(): number;
clear(): void;
}
//# sourceMappingURL=RefCountCache.d.ts.map