PathFeature

@Stable
data class PathFeature<T : Any>(val space: CoordinateSpace<T>, val rectangle: Rectangle<T>, val path: Path, val brush: Brush, val style: DrawStyle = Fill, val targetRect: Rect = path.getBounds(), val attributes: Attributes = Attributes.EMPTY) : DraggableFeature<T>

Constructors

Link copied to clipboard
constructor(space: CoordinateSpace<T>, rectangle: Rectangle<T>, path: Path, brush: Brush, style: DrawStyle = Fill, targetRect: Rect = path.getBounds(), attributes: Attributes = Attributes.EMPTY)

Properties

Link copied to clipboard
open override val attributes: Attributes
Link copied to clipboard
val brush: Brush
Link copied to clipboard
val Feature<*>.color: Color?
Link copied to clipboard
Link copied to clipboard
val path: Path
Link copied to clipboard
Link copied to clipboard
open override val space: CoordinateSpace<T>
Link copied to clipboard
val style: DrawStyle
Link copied to clipboard
val targetRect: Rect
Link copied to clipboard
val Feature<*>.z: Float
Link copied to clipboard

Functions

Link copied to clipboard
open operator fun contains(viewPoint: ViewPoint<T>): Boolean
Link copied to clipboard
open override fun getBoundingBox(zoom: Float): Rectangle<T>
Link copied to clipboard
open override fun withAttributes(modify: Attributes.() -> Attributes): Feature<T>
Link copied to clipboard
open override fun withCoordinates(newCoordinates: T): Feature<T>