InsertNewShape

data class InsertNewShape(val shapeType: ShapeType, val offset: Offset) : Intent

Start a new shape at the specified offset.

This intent is dispatched when the user begins drawing in a shape mode (RECTANGLE, CIRCLE, TRIANGLE, ARROW, or LINE). It creates a new Element.Shape with the shape type and starting point.

Parameters

shapeType

The type of shape being drawn

offset

The starting point (usually where user began the drag)

Constructors

Link copied to clipboard
constructor(shapeType: ShapeType, offset: Offset)

Properties

Link copied to clipboard
Link copied to clipboard