Options
All
  • Public
  • Public/Protected
  • All
Menu

Module ItemImageCache

Index

Variables

cachedImages

cachedImages: object

Type declaration

  • [index: string]: string

canvas

canvas: HTMLCanvasElement = document.createElement("canvas")

context

context: CanvasRenderingContext2D = canvas.getContext("2d") as CanvasRenderingContext2D

imagesToCache

imagesToCache: IImageCacheQueueItem[] = []

itemColors

itemColors: object = []

Type declaration

Functions

cacheAllItemImageOutlines

  • cacheAllItemImageOutlines(): void
  • Returns void

cacheItemImageOutlines

  • cacheItemImageOutlines(image: HTMLImageElement, itemType: ItemType): void
  • Parameters

    • image: HTMLImageElement
    • itemType: ItemType

    Returns void

createImageDataUrlWithOutlines

  • createImageDataUrlWithOutlines(image: HTMLImageElement, outlines: IImageOutline[]): string
  • Parameters

    Returns string

getCacheKey

  • Parameters

    Returns string

getItemImageUrl

  • Parameters

    Returns string

initialize

  • initialize(): void
  • Returns void

queueCreateItemImageOutlines

  • queueCreateItemImageOutlines(image: HTMLImageElement, itemType: ItemType): void
  • Parameters

    • image: HTMLImageElement
    • itemType: ItemType

    Returns void

Generated using TypeDoc