code: function createEnabledElementStub (canvas, image, options, viewport) {
    return {
      element: canvas,
      canvas,
      image,
      invalid: true, // True if image needs to be drawn, false if not
      needsRedraw: true,
      options,
      layers: [],
      data: {},
      renderingTools: {},
      viewport
    };
  }
docs: @typedef {Object} EnabledElementStub
  @property {HTMLElement} element  The enabled element
  @property {HTMLCanvasElement} canvas The current canvas
  @property {Object} image Currently displayed image
  @property {Boolean} invalid Whether or not the image pixel data has been changed
  @property {Boolean} needsRedraw  A flag for triggering a redraw of the canvas without re-retrieving the pixel data, since it remains valid
  @property {Object} options Layer drawing options
  @property {Object[]} layers Layers added to the EnabledElement
  @property {Object} data
  @property {Object} renderingTools
  @property {Object} viewport The current viewport
  @memberof rendering
   
  creates a dummy enabled element
  
  @param {HTMLCanvasElement} canvas the canvas that will be assigned to the enabled element.
  @param {any} image An Image loaded by a Cornerstone Image Loader
  @param { any } options Options for rendering the image (e.g.enable webgl by {renderer: 'webgl' })
  @param { any } viewport A set of Cornerstone viewport parameters
  @returns {EnabledElementStub} a dummy enabled element
  @memberof rendering