actualBoundingBoxAscent : TextMetrics -> DoubleactualBoundingBoxDescent : TextMetrics -> DoubleactualBoundingBoxLeft : TextMetrics -> DoubleactualBoundingBoxRight : TextMetrics -> DoublealphabeticBaseline : TextMetrics -> DoubleemHeightAscent : TextMetrics -> DoubleemHeightDescent : TextMetrics -> DoublefontBoundingBoxAscent : TextMetrics -> DoublefontBoundingBoxDescent : TextMetrics -> DoublehangingBaseline : TextMetrics -> DoubleideographicBaseline : TextMetrics -> Doublewidth : TextMetrics -> Doubledata Scene : Type- Totality: total
Visibility: public export
Constructors:
S1 : List Style -> Transformation -> Shape -> Scene SM : List Style -> Transformation -> List Scene -> Scene
applyAll : CanvasRenderingContext2D -> List Scene -> JSIO ()- Totality: total
Visibility: export apply : CanvasRenderingContext2D -> Scene -> JSIO ()- Totality: total
Visibility: export record TextMeasure : Type Utility for computing `TextMetrics`.
Totality: total
Visibility: export
Constructor: TM : (String -> String -> String -> String -> String -> TextMetrics) -> TextMeasure
Projection: .measure_ : TextMeasure -> String -> String -> String -> String -> String -> TextMetrics
measureText : TextMeasure => CanvasDirection -> CanvasTextAlign -> CanvasTextBaseline -> String -> String -> TextMetrics Compute the `TextMetrics` for the given text in the given font.
Totality: total
Visibility: exportwithMetrics : CanvasRenderingContext2D -> (TextMeasure => a) -> a Supplies the given function with a `TextMeasure` implicit, derived
from the given rendering context.
Totality: total
Visibility: exportapplyWithMetrics : CanvasRenderingContext2D -> (TextMeasure => Scene) -> JSIO () Alternative version of `apply` for those cases where we need to
work with text metrics.
Totality: total
Visibility: export