Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val firstPoint: Offset

The initial position of the attachable object on the canvas. This represents the point where the object was first placed before any transformations (such as move or scale).

Link copied to clipboard
abstract val id: String

The unique identifier for the attachable object.

Link copied to clipboard
abstract val isFocus: Boolean

A boolean indicating whether the attachable object is currently focused. This property is used to manage the selection state of the object (e.g., for editing).

Link copied to clipboard
abstract val property: Property

The properties related to the attachable object (e.g., text formatting, color, font size). This property contains various settings that define the appearance and behavior of the object.

Link copied to clipboard
abstract val scaleFactor: Float

The scaling factor for the attachable object. This value defines how much the object should be scaled in size.

Link copied to clipboard
abstract val scaleOffset: Offset

The scaling offset applied to the attachable object. This offset determines how much the object is scaled from its original size.

Link copied to clipboard
abstract val translate: Offset

The translation offset applied to the attachable object. This value is used to move the object from its original position.

Link copied to clipboard
abstract val type: StickyType

The type of the attachable object (e.g., sticky note, image, or text box).

Functions

Link copied to clipboard
abstract fun copySelf(id: String = this.id, type: StickyType = this.type, isFocus: Boolean = this.isFocus, firstPoint: Offset = this.firstPoint, translate: Offset = this.translate, scaleOffset: Offset = this.scaleOffset, scaleFactor: Float = this.scaleFactor, property: Property = this.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.