copySelf

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.

Return

A new instance of the object with updated properties.

Parameters

id

The new unique identifier for the object. Defaults to the current ID.

type

The new type of the object. Defaults to the current type.

isFocus

A boolean indicating whether the new object should be in focus. Defaults to the current focus state.

firstPoint

The new initial position for the object. Defaults to the current first point.

translate

The new translation offset for the object. Defaults to the current translation.

scaleOffset

The new scaling offset. Defaults to the current scaling offset.

scaleFactor

The new scaling factor. Defaults to the current scaling factor.

property

The new properties for the object. Defaults to the current properties.