@univerjs/core v0.5.1 • Docs
Class: ImageCacheMap
Constructors
new ImageCacheMap()
new ImageCacheMap(_injector, maxSize): ImageCacheMap
Parameters
Parameter | Type | Default value |
---|---|---|
_injector | Injector | undefined |
maxSize | number | 100 |
Returns
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/cache/image-cache.ts:24
Methods
getImage()
getImage(
imageSourceType,
source,
onLoad?,
onError?): null | HTMLImageElement
Parameters
Parameter | Type |
---|---|
imageSourceType | ImageSourceType |
source | string |
onLoad ? | () => void |
onError ? | () => void |
Returns
null
| HTMLImageElement
Defined in
packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/cache/image-cache.ts:35