@univerjscoreclassesImagecachemap

@univerjs/core v0.5.1Docs


Class: ImageCacheMap

Constructors

new ImageCacheMap()

new ImageCacheMap(_injector, maxSize): ImageCacheMap

Parameters

ParameterTypeDefault value
_injectorInjectorundefined
maxSizenumber100

Returns

ImageCacheMap

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

ParameterType
imageSourceTypeImageSourceType
sourcestring
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