Function: createViewportElement()
createViewportElement(
element
):HTMLDivElement
Creates an internal div that will contain canvas and SVG layer as children
Parameters
• element: HTMLDivElement
An HTML Element
Returns
HTMLDivElement
div Cornerstone internal div that will include the canvas and SVG as its children
Defined in
packages/core/src/RenderingEngine/helpers/getOrCreateCanvas.ts:46