CanvasNode

data class CanvasNode(val id: String, val title: String, val subtitle: String? = null, val position: DpOffset = DpOffset.Zero, val icon: ImageVector? = null, val tone: NodeTone = NodeTone.PRIMARY, val status: StepStatus? = null, val size: DpSize? = null, val data: Any? = null)(source)

A node on a WorkflowCanvas (AI Elements <Node>); position is its top-left in canvas dp. size overrides the canvas' node size for this node; data carries your own payload for a custom nodeContent.

Constructors

Link copied to clipboard
constructor(id: String, title: String, subtitle: String? = null, position: DpOffset = DpOffset.Zero, icon: ImageVector? = null, tone: NodeTone = NodeTone.PRIMARY, status: StepStatus? = null, size: DpSize? = null, data: Any? = null)

Properties

Link copied to clipboard
val data: Any?
Link copied to clipboard
val icon: ImageVector?
Link copied to clipboard
val id: String
Link copied to clipboard
val position: DpOffset
Link copied to clipboard
val size: DpSize?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard