Function: loadImages()
ts
function loadImages(urls, load?): Promise<Map<string, CanvasImage>>;Load images for drawing (in the browser, with crossOrigin = "anonymous" so the canvas can still be exported; the server must allow it). Images that fail are left out. Pass your own load elsewhere, e.g. loadImage from a Node canvas package.
Parameters
| Parameter | Type | Default value |
|---|---|---|
urls | readonly string[] | undefined |
load | (url) => Promise<CanvasImage> | browserImage |
Returns
Promise<Map<string, CanvasImage>>