Make your own extensions

Note

This section is WIP.

Miter.Coordinates.bounds_xy — Function
bounds_xy(_)

Return two intervals for the coordinate bounds of the arguments.

For the default behavior, types should define bounds_xy. For something different (eg overriding bounds), define combine_bounds_xy.

source
bounds_xy(itr)

Combine XY bounds of the argument, from left to right.

source
Miter.Coordinates.coordinate_bounds_xy — Function
coordinate_bounds_xy(xy)

Coordinate bounds for a coordinate xy. Used only in all_coordinate_bounds_xy.

Scalar-like quantities should define a method for Base.extrema, which has the right fallback for reals by default.

Note

Future extensions with coordinate types (:x 1 :y 2 :size 3) etc can go through this function.

source

Sinks

Miter.Draw.move_to — Function
move_to(sink, point)

Move to a new point. If there is an existing path, it will not be connected.

source