View Source Terrestrial.Attributes (terrestrial v0.2.0)
This module defines ways for editing elements.
How it works
All the functions return an anonymous function that takes and returns a config map. This function is later applied by the library.
Summary
Functions
Add arbitrary attributes to an element using a Keyword list.
Set a custom color.
Like lowest/2 but for upper bound.
Change the lower bound of an axis.
v is percentage of bin width, e.g. 0.4
Given an axis, find a value in the middle
Given an axis, find a value at the given percentage
v is percentage expressed as float (0.0 to 1.0)
v is percentage (0.0 to 1.0)
Given an axis, find the value closer to zero.
Functions
Add arbitrary attributes to an element using a Keyword list.
Set a custom color.
Like lowest/2 but for upper bound.
Change the lower bound of an axis.
v is percentage of bin width, e.g. 0.4
@spec middle(Terrestrial.Coordinates.axis()) :: float()
Given an axis, find a value in the middle
Given an axis, find a value at the given percentage
v is percentage expressed as float (0.0 to 1.0)
v is percentage (0.0 to 1.0)
@spec zero(Terrestrial.Coordinates.axis()) :: float()
Given an axis, find the value closer to zero.