Giggly.Geom.Segment (giggly v0.2.0)

Copy Markdown View Source

Segments: a straight line from each row's x and y to its xend and yend, in its color, alpha, linewidth and linetype, in row order; where straight lines bend in the panel, each is drawn as a two-point path.

Its options are arrow:, lineend: and linejoin:. Build one with Giggly.Geom.new(Giggly.Geom.Segment, options), so each option left out takes its default. A geom drawing by delegation sets its rows up through it and draws them through it (Giggly.Geom).

Summary

Functions

Segments from options validated against options/0.

The options segments are built from, as a NimbleOptions schema: their arrowheads, line ends and corners.

Types

t()

@opaque t()

Functions

new(options)

@spec new(keyword()) :: t()

Segments from options validated against options/0.

options()

@spec options() :: keyword()

The options segments are built from, as a NimbleOptions schema: their arrowheads, line ends and corners.