src/internal/getCanvas.js
function createCanvas (element) {
  const canvas = document.createElement('canvas');

  canvas.style.display = 'block';
  canvas.classList.add(CANVAS_CSS_CLASS);
  element.appendChild(canvas);

  return canvas;
}
function createCanvas (element) {
  const canvas = document.createElement('canvas');

  canvas.style.display = 'block';
  canvas.classList.add(CANVAS_CSS_CLASS);
  element.appendChild(canvas);

  return canvas;
}
function createCanvas ( element ) { const canvas = document . createElement ( 'canvas' ) ; canvas . style . display = 'block' ; canvas . classList . add ( CANVAS_CSS_CLASS ) ; element . appendChild ( canvas ) ; return canvas ; }
Create a canvas and append it to the element

@param {HTMLElement} element An HTML Element
@return {HTMLElement} canvas A Canvas DOM element
Create a canvas and append it to the element