setCanvasDimensions

open override fun setCanvasDimensions(canvasWidth: Double, canvasHeight: Double)

Sets the dimensions of the canvas and redraws the path if the dimensions have changed.

Parameters

canvasWidth

The new width of the canvas.

canvasHeight

The new height of the canvas.