MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / imageCache

Method imageCache

src/monogatari.ts:1030–1032  ·  view source on GitHub ↗
(key?: string, image?: HTMLImageElement)

Source from the content-addressed store, hash-verified

1028 static imageCache(key: string): HTMLImageElement | undefined;
1029 static imageCache(key: string, image: HTMLImageElement): void;
1030 static imageCache(key?: string, image?: HTMLImageElement): HTMLImageElement | undefined | void {
1031 return _imageCache(this.asEngine(), key as string, image as HTMLImageElement);
1032 }
1033
1034 /**
1035 * Remove an HTMLImageElement from the cache

Callers 6

preloadMethod · 0.95
setupMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
preload.spec.jsFile · 0.80
unload.spec.jsFile · 0.80

Calls 1

asEngineMethod · 0.95

Tested by

no test coverage detected