Quartz.Sketch.Protocol protocol (Quartz v0.8.1)
View SourceA protocol that must be implemented by anything you want to draw on a figure.
Quartz defines a number of sketches, but nothing forbids you to add more as long as you implement this protocol on your struct.
Summary
Functions
Return lengths that are part of the sketch. These will usually be anything that can be measured in units of length.
Transform lengths inside an object, given a length-transformation function.
Types
@type length() :: Dantzig.Polynomial.t() | number()
@type t() :: term()
All the types that implement this protocol.
Functions
@spec bbox_bounds(t()) :: Quartz.Sketch.BBoxBounds.t()
Return lengths that are part of the sketch. These will usually be anything that can be measured in units of length.
Transform lengths inside an object, given a length-transformation function.
This will be used to solve the constraints on your object, when needed.