MCPcopy Create free account
hub / github.com/chartjs/Chart.js / getMaximumSize

Method getMaximumSize

src/platform/platform.dom.js:378–380  ·  view source on GitHub ↗

* @param {HTMLCanvasElement} canvas * @param {number} [width] - content width of parent element * @param {number} [height] - content height of parent element * @param {number} [aspectRatio] - aspect ratio to maintain

(canvas, width, height, aspectRatio)

Source from the content-addressed store, hash-verified

376 * @param {number} [aspectRatio] - aspect ratio to maintain
377 */
378 getMaximumSize(canvas, width, height, aspectRatio) {
379 return getMaximumSize(canvas, width, height, aspectRatio);
380 }
381
382 /**
383 * @param {HTMLCanvasElement} canvas

Callers 2

_resizeMethod · 0.45

Calls 1

getMaximumSizeFunction · 0.85

Tested by

no test coverage detected