segment
class segment(val x: Number? = null, val y: Number? = null, val xend: Number? = null, val yend: Number? = null, val alpha: Number? = null, val color: Any? = null, val linetype: Any? = null, val size: Number? = null, val sizeStart: Number? = null, val sizeEnd: Number? = null, val strokeStart: Number? = null, val strokeEnd: Number? = null, val colorBy: String? = null, val mapping: SegmentMapping.() -> Unit = {}) : GeomOptions, SegmentAesthetics, WithColorOption
Constructors
Link copied to clipboard
constructor(x: Number? = null, y: Number? = null, xend: Number? = null, yend: Number? = null, alpha: Number? = null, color: Any? = null, linetype: Any? = null, size: Number? = null, sizeStart: Number? = null, sizeEnd: Number? = null, strokeStart: Number? = null, strokeEnd: Number? = null, colorBy: String? = null, mapping: SegmentMapping.() -> Unit = {})
Properties
Link copied to clipboard
Color of the geometry. For more info see: aesthetics.html#color-and-fill.
Link copied to clipboard
Type of the line. Accept codes or names (0 = "blank", 1 = "solid", 2 = "dashed", 3 = "dotted", 4 = "dotdash", 5 = "longdash", 6 = "twodash"), a hex string (up to 8 digits for dash-gap lengths), or a pattern offset to listOf(dash, gap, ...)
/ listOf(dash, gap, ...)
. For more info see: aesthetics.html#line-types.
Link copied to clipboard
Link copied to clipboard
Offset from the segment start coordinate. Usually equal to the stroke of the point object from which the segment starts to avoid overlapping with it.