github ↗
docs menu

Module Hugin.Drawing

Drawings.

A drawing is a laid-out figure drawn at a density: its marks reduced, read and drawn, painted over the theme's paper with every mark and panel tagged with its id.

#type t

The type for drawings.

#val renderable : t -> Renderable.t

renderable d is the picture of d on a page of the figure's size: the paper, then the panels' marks, the guides and the titles.

#val warnings : t -> warning list

warnings d is the warnings of resolving, laying out and drawing, in the order of the figure.

#val equal : t -> t -> bool

equal d d' is true iff d and d' have equal warnings and Renderable.equal renderables. A drawing drawn again is equal to the first.

#val pp : Stdlib.Format.formatter -> t -> unit

pp ppf d formats d for debugging.