WhiteboardPainter

class WhiteboardPainter(textMeasurer: TextMeasurer)

WhiteboardPainter - Handles rendering of all shapes on the whiteboard canvas.

This painter handles rendering of all shape types including freehand drawings, geometric shapes, text, and images with support for zoom and pan transformations.

Constructors

Link copied to clipboard
constructor(textMeasurer: TextMeasurer)

Functions

Link copied to clipboard
fun draw(drawScope: DrawScope, shapes: List<WhiteboardShape>, currentShape: WhiteboardShape?, panOffset: Offset, scale: Float, maxWidth: Float, maxHeight: Float, useImageBackground: Boolean, selectedShape: WhiteboardShape?, eraserCursorPosition: Offset?, eraserThickness: Float, transparentBackground: Boolean)

Draws all whiteboard content on the canvas.