PainterImageItem

data class PainterImageItem(val id: String = Uuid.random().toString(), val type: StickyType, val isFocus: Boolean = false, val firstPoint: Offset, val translate: Offset = Offset.Zero, val scaleFactor: Float = 1.0f, val scaleOffset: Offset = Offset.Zero, val property: Property) : Attachable

Represents a painter image item that can be attached to a canvas or document. This class manages properties such as position, scaling, and transformations for painter images.

Constructors

Link copied to clipboard
constructor(id: String = Uuid.random().toString(), type: StickyType, isFocus: Boolean = false, firstPoint: Offset, translate: Offset = Offset.Zero, scaleFactor: Float = 1.0f, scaleOffset: Offset = Offset.Zero, property: Property)

Properties

Link copied to clipboard
open override val firstPoint: Offset

The initial position of the item.

Link copied to clipboard
open override val id: String

Unique identifier for the item.

Link copied to clipboard
open override val isFocus: Boolean = false

Indicates whether the item is currently focused.

Link copied to clipboard
open override val property: Property

Additional properties associated with the item.

Link copied to clipboard
open override val scaleFactor: Float = 1.0f

Scaling factor applied to the item.

Link copied to clipboard
open override val scaleOffset: Offset

Additional offset applied during scaling.

Link copied to clipboard
open override val translate: Offset

Offset representing the translation of the item.

Link copied to clipboard
open override val type: StickyType

The type of sticky item.

Functions

Link copied to clipboard
open override fun copySelf(id: String, type: StickyType, isFocus: Boolean, firstPoint: Offset, translate: Offset, scaleOffset: Offset, scaleFactor: Float, property: Property): Attachable

Creates and returns a copy of the attachable object with updated properties. This method allows for creating a new instance with specific modifications, while preserving the original attributes.