TapeItem

data class TapeItem(val id: String = Uuid.random().toString(), val bound: Rect, val startPoint: Offset, val paint: Paint, val imagePaint: Paint, val path: Path, val imagePath: Path = Path())

Represents a sticky text item that can be attached to the canvas. This class contains properties related to the text, including its position, scaling, and properties.

Parameters

text

The text content of the sticky item. Defaults to "input".

id

The unique identifier for the sticky text item, generated using Uuid.

type

The type of the sticky item (e.g., text, image, etc.).

isFocus

A boolean indicating whether the sticky item is currently focused.

firstPoint

The initial position of the sticky text item on the canvas.

translate

The offset used for translating the sticky text item on the canvas.

scaleFactor

The scaling factor for the sticky text item.

scaleOffset

The offset used for scaling the sticky text item.

property

The properties related to the sticky text item (e.g., font, size, color).

Constructors

Link copied to clipboard
constructor(id: String = Uuid.random().toString(), bound: Rect, startPoint: Offset, paint: Paint, imagePaint: Paint, path: Path, imagePath: Path = Path())

Properties

Link copied to clipboard
val bound: Rect
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val path: Path
Link copied to clipboard