Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImageResolver

Hierarchy

Index

Constructors

constructor

Properties

cache

cache: object

Type declaration

  • [key: string]: HTMLImageElement

resolvers

resolvers: object

Type declaration

  • [key: string]: Promise<HTMLImageElement>

toAbsolute

toAbsolute: function

Type declaration

    • (relative: string): string
    • Parameters

      • relative: string

      Returns string

Static corsResolvers

corsResolvers: function[] = []

Cors config resolvers. If all of resolvers returns null, defaultCORSConfig will be used.

Static defaultCORSConfig

defaultCORSConfig: string = "anonymous"

Methods

resolve

  • resolve(path: string): Promise<HTMLImageElement>

Static isDataURL

  • isDataURL(dataUrl: string): boolean

Generated using TypeDoc