coreFunctionsgetOrCreateCanvasgetOrCreateCanvas CallablegetOrCreateCanvas(element: HTMLDivElement): HTMLCanvasElementCreate a canvas or returns the one that already exists for a given element. It first checks if the element has a canvas, if not it creates one and returns it.Parameterselement: HTMLDivElementAn HTML ElementReturns HTMLCanvasElementcanvas a Canvas DOM element
Create a canvas or returns the one that already exists for a given element. It first checks if the element has a canvas, if not it creates one and returns it.