Module Clpr.SvgWriter

type t

Construction

val make : ?precision:int -> unit -> t

Methods

val fill_rule : t -> fill_rule
val set_coords_style : ?font_name:string -> ?font_color:int -> ?font_size:int -> t -> unit
val add_text : ?font_color:int -> ?font_size:int -> x:int -> y:int -> t -> string -> unit
val add_path64 : ?closed:bool -> ?fill_rule:fill_rule -> ?show_coords:bool -> ?brush_color:int -> ?pen_color:int -> ?pen_width:float -> t -> Path64.t -> unit
val add_pathd : ?closed:bool -> ?fill_rule:fill_rule -> ?show_coords:bool -> ?brush_color:int -> ?pen_color:int -> ?pen_width:float -> t -> PathD.t -> unit
val add_paths64 : ?closed:bool -> ?fill_rule:fill_rule -> ?show_coords:bool -> ?brush_color:int -> ?pen_color:int -> ?pen_width:float -> t -> Paths64.t -> unit
val add_pathsd : ?closed:bool -> ?fill_rule:fill_rule -> ?show_coords:bool -> ?brush_color:int -> ?pen_color:int -> ?pen_width:float -> t -> PathsD.t -> unit
val save : ?max_width:int -> ?max_height:int -> ?margin:int -> t -> string -> (unit, string) Stdlib.result
val clear : t -> unit