Package-level declarations
Types
Link copied to clipboard
Facilitates adding elements to a collection.
Link copied to clipboard
class DashedShape(val shape: Shape = RectangleShape, val dashLength: Dp = Defaults.DASHED_SHAPE_DASH_LENGTH.dp, val gapLength: Dp = Defaults.DASHED_SHAPE_GAP_LENGTH.dp, val fitStrategy: DashedShape.FitStrategy = FitStrategy.Resize) : Shape
DashedShape draws a dashed line by interchangeably drawing the provided shape and leaving a gap.
Link copied to clipboard
A MeasuringContext extension with a Canvas reference.
Link copied to clipboard
open class HorizontalLegend<M : MeasuringContext, D : DrawingContext>(items: AdditionScope<LegendItem>.(ExtraStore) -> Unit, iconSize: Dp = Defaults.LEGEND_ICON_SIZE.dp, iconLabelSpacing: Dp = Defaults.LEGEND_ICON_LABEL_SPACING.dp, rowSpacing: Dp = Defaults.LEGEND_ROW_SPACING.dp, columnSpacing: Dp = Defaults.LEGEND_COLUMN_SPACING.dp, padding: Insets = Insets.Zero) : Legend<M, D>
HorizontalLegend displays legend items beside one another in lines.
Link copied to clipboard
Link copied to clipboard
Defines the functions required by the library to draw a chart legend.
Link copied to clipboard
open class LegendItem(val icon: Component, val labelComponent: TextComponent, val label: CharSequence)
Defines the appearance of an item of a Legend.
Link copied to clipboard
open class MarkerCornerBasedShape(val base: CornerBasedShape, val tickSize: Dp = MARKER_TICK_SIZE.dp) : Shape
A CornerBasedShape wrapper that additionally draws a triangular tick.
Link copied to clipboard
interface MeasuringContext
Holds data used for measuring and drawing.
Link copied to clipboard
Link copied to clipboard
open class VerticalLegend<M : MeasuringContext, D : DrawingContext>(items: AdditionScope<LegendItem>.(ExtraStore) -> Unit, iconSize: Dp = Defaults.LEGEND_ICON_SIZE.dp, iconLabelSpacing: Dp = Defaults.LEGEND_ICON_LABEL_SPACING.dp, rowSpacing: Dp = Defaults.LEGEND_ROW_SPACING.dp, padding: Insets = Insets.Zero) : Legend<M, D>
VerticalLegend displays legend items in a vertical list.
Link copied to clipboard
Properties
Link copied to clipboard
The current VicoTheme.
Functions
Link copied to clipboard
Provides a VicoTheme.
Link copied to clipboard
fun <M : MeasuringContext, D : DrawingContext> rememberHorizontalLegend(items: AdditionScope<LegendItem>.(ExtraStore) -> Unit, iconSize: Dp = Defaults.LEGEND_ICON_SIZE.dp, iconLabelSpacing: Dp = Defaults.LEGEND_ICON_LABEL_SPACING.dp, rowSpacing: Dp = Defaults.LEGEND_ROW_SPACING.dp, columnSpacing: Dp = Defaults.LEGEND_COLUMN_SPACING.dp, padding: Insets = Insets.Zero): HorizontalLegend<M, D>
Creates and remembers a HorizontalLegend.
Link copied to clipboard
fun <M : MeasuringContext, D : DrawingContext> rememberVerticalLegend(items: AdditionScope<LegendItem>.(ExtraStore) -> Unit, iconSize: Dp = Defaults.LEGEND_ICON_SIZE.dp, iconLabelSpacing: Dp = Defaults.LEGEND_ICON_LABEL_SPACING.dp, rowSpacing: Dp = Defaults.LEGEND_ROW_SPACING.dp, padding: Insets = Insets.Zero): VerticalLegend<M, D>
Creates and remembers a VerticalLegend.