Shape

sealed interface Shape

Discriminator for ShapeNode. Other geometric shapes (squircles, rounded squares, etc.) can plug in here — the renderer dispatches on this variant when generating path commands.

Inheritors

Types

Link copied to clipboard
data object Circle : Shape

Perfect circle whose diameter equals the smaller of the bounding dims.

Link copied to clipboard
data object Ellipse : Shape

Ellipse that fully fills the supplied ShapeNode.width / ShapeNode.height.