Package-level declarations
Functions
Link copied to clipboard
fun Path.addRoundRect(left: Float, top: Float, right: Float, bottom: Float, rect: RoundRect, radii: FloatArray)
Adds a rounded rectangle to the receiver Path.
Link copied to clipboard
Converts this androidx.compose.ui.graphics.Shape to an instance of com.patrykandpatrick.vico.core.component.shape.Shape.
Link copied to clipboard
Converts this CorneredShape to an instance of androidx.compose.ui.graphics.Shape.
Link copied to clipboard
Creates a CorneredShape with cut corners of the provided size.
fun Shapes.cutCornerShape(topLeft: Dp = 0.dp, topRight: Dp = 0.dp, bottomRight: Dp = 0.dp, bottomLeft: Dp = 0.dp): CorneredShape
Creates a CorneredShape with cut corners of the provided sizes.
Link copied to clipboard
fun Shapes.dashedShape(shape: Shape, dashLength: Dp, gapLength: Dp, fitStrategy: DashedShape.FitStrategy = DashedShape.FitStrategy.Resize): DashedShape
fun Shapes.dashedShape(shape: ChartShape, dashLength: Dp, gapLength: Dp, fitStrategy: DashedShape.FitStrategy = DashedShape.FitStrategy.Resize): DashedShape
Creates a DashedShape.
Link copied to clipboard
fun lineComponent(color: Color, thickness: Dp, shape: Shape, strokeWidth: Dp = 0.dp, strokeColor: Color = Color.Transparent, dynamicShader: DynamicShader? = null, margins: Dimensions = emptyDimensions()): LineComponent
fun lineComponent(color: Color, thickness: Dp, shape: Shape = Shapes.rectShape, strokeWidth: Dp = 0.dp, strokeColor: Color = Color.Transparent, dynamicShader: DynamicShader? = null, margins: Dimensions = emptyDimensions()): LineComponent
Creates a LineComponent.
Link copied to clipboard
fun Shapes.markerCorneredShape(all: Corner, tickSizeDp: Dp = DEF_MARKER_TICK_SIZE.dp): MarkerCorneredShape
fun Shapes.markerCorneredShape(topLeft: Corner, topRight: Corner, bottomRight: Corner, bottomLeft: Corner, tickSizeDp: Dp = DEF_MARKER_TICK_SIZE.dp): MarkerCorneredShape
Creates a MarkerCorneredShape.
fun Shapes.markerCorneredShape(corneredShape: CorneredShape, tickSizeDp: Dp = DEF_MARKER_TICK_SIZE.dp): MarkerCorneredShape
Creates a MarkerCorneredShape out of a regular CorneredShape.
Link copied to clipboard
Creates a CorneredShape with rounded corners of the provided size.
fun Shapes.roundedCornerShape(topLeft: Dp = 0.dp, topRight: Dp = 0.dp, bottomRight: Dp = 0.dp, bottomLeft: Dp = 0.dp): CorneredShape
Creates a CorneredShape with rounded corners of the provided sizes.
Link copied to clipboard
fun textComponent(color: Color = Color.Black, textSize: TextUnit = DefaultDimens.TEXT_COMPONENT_TEXT_SIZE.sp, background: ShapeComponent? = null, ellipsize: TextUtils.TruncateAt = TextUtils.TruncateAt.END, lineCount: Int = DEF_LABEL_LINE_COUNT, padding: MutableDimensions = emptyDimensions(), margins: MutableDimensions = emptyDimensions(), typeface: Typeface? = null, textAlign: Paint.Align = Paint.Align.LEFT): TextComponent
Creates a TextComponent.