Skip to main content

Interface: ImageLike

Defined in: packages/sdvplot/src/chartjs.ts:61

An image a loadImage option resolves: anything the chart's 2D context can drawImage, such as @napi-rs/canvas's Image in Node or an HTMLImageElement in the browser. loadImage is called once per URL and drawn size, and the image's width and height are then set to that size (Chart.js draws an image point style at its own size), so resolve a new image on every call, as @napi-rs/canvas's loadImage does.

Properties​

height​

readonly height: number

Defined in: packages/sdvplot/src/chartjs.ts:63


width​

readonly width: number

Defined in: packages/sdvplot/src/chartjs.ts:62