SvgDrawScope

class SvgDrawScope(state: CanvasState<XY>, graphics: SVGGraphics2D, painterCache: Map<PainterFeature<XY>, Painter>, defaultStrokeWidth: Float = 1.0f) : FeatureDrawScope<XY>

Constructors

Link copied to clipboard
constructor(state: CanvasState<XY>, graphics: SVGGraphics2D, painterCache: Map<PainterFeature<XY>, Painter>, defaultStrokeWidth: Float = 1.0f)

Properties

Link copied to clipboard
open val center: Offset
Link copied to clipboard
open override val density: Float
Link copied to clipboard
open override val drawContext: DrawContext
Link copied to clipboard
open override val fontScale: Float
Link copied to clipboard
open override val layoutDirection: LayoutDirection
Link copied to clipboard
open val size: Size
Link copied to clipboard

Functions

Link copied to clipboard
open override fun drawArc(brush: Brush, startAngle: Float, sweepAngle: Float, useCenter: Boolean, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawArc(color: Color, startAngle: Float, sweepAngle: Float, useCenter: Boolean, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawCircle(brush: Brush, radius: Float, center: Offset, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawCircle(color: Color, radius: Float, center: Offset, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawImage(image: ImageBitmap, topLeft: Offset, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawImage(image: ImageBitmap, srcOffset: IntOffset, srcSize: IntSize, dstOffset: IntOffset, dstSize: IntSize, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawImage(image: ImageBitmap, srcOffset: IntOffset, srcSize: IntSize, dstOffset: IntOffset, dstSize: IntSize, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode, filterQuality: FilterQuality)
Link copied to clipboard
open override fun drawLine(brush: Brush, start: Offset, end: Offset, strokeWidth: Float, cap: StrokeCap, pathEffect: PathEffect?, alpha: Float, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawLine(color: Color, start: Offset, end: Offset, strokeWidth: Float, cap: StrokeCap, pathEffect: PathEffect?, alpha: Float, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawOval(brush: Brush, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawOval(color: Color, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawPath(path: Path, brush: Brush, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawPath(path: Path, color: Color, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawPoints(points: List<Offset>, pointMode: PointMode, brush: Brush, strokeWidth: Float, cap: StrokeCap, pathEffect: PathEffect?, alpha: Float, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawPoints(points: List<Offset>, pointMode: PointMode, color: Color, strokeWidth: Float, cap: StrokeCap, pathEffect: PathEffect?, alpha: Float, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawRect(brush: Brush, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawRect(color: Color, topLeft: Offset, size: Size, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawRoundRect(brush: Brush, topLeft: Offset, size: Size, cornerRadius: CornerRadius, alpha: Float, style: DrawStyle, colorFilter: ColorFilter?, blendMode: BlendMode)
open override fun drawRoundRect(color: Color, topLeft: Offset, size: Size, cornerRadius: CornerRadius, style: DrawStyle, alpha: Float, colorFilter: ColorFilter?, blendMode: BlendMode)
Link copied to clipboard
open override fun drawText(text: String, position: Offset, attributes: Attributes)
Link copied to clipboard
open override fun painterFor(feature: PainterFeature<XY>): Painter
Link copied to clipboard
fun renderText(textFeature: TextFeature<XY>)
Link copied to clipboard
open fun Dp.roundToPx(): Int
open fun TextUnit.roundToPx(): Int
Link copied to clipboard
fun Offset.toCoordinates(): XY
Link copied to clipboard
open fun Float.toDp(): Dp
open fun Int.toDp(): Dp
open fun TextUnit.toDp(): Dp
Link copied to clipboard
fun Rectangle<XY>.toDpRect(): DpRect
Link copied to clipboard
open fun Size.toDpSize(): DpSize
Link copied to clipboard
open fun XY.toOffset(): Offset
Link copied to clipboard
open fun Dp.toPx(): Float
open fun TextUnit.toPx(): Float
Link copied to clipboard
open fun DpRect.toRect(): Rect
Link copied to clipboard
open fun DpSize.toSize(): Size
Link copied to clipboard
open fun Float.toSp(): TextUnit
open fun Int.toSp(): TextUnit
open fun Dp.toSp(): TextUnit