package opam-graph

  1. Overview
  2. Docs

Module Render.SvgSource

Sourcetype 'a elt = 'a Tyxml_svg.elt
Sourcetype 'a attr = 'a Tyxml_svg.attrib
Sourcetype ('a, 'b) output = {
  1. svg_content : 'a elt list;
  2. svg_attr : 'b attr list;
  3. css : string;
}
Sourcemodule Svg = Tyxml_svg
Sourceval scoped_class : string -> string
Sourceval initial_css : string
Sourceval merge_css : string list -> string
Sourcetype position = {
  1. x : float;
  2. y : float;
}
Sourceval center : position
Sourceval root_radius : float
Sourcemodule Unit : sig ... end
Sourceval make_title : text:string -> [> Svg_types.title ] Svg.elt
Sourceval make_circle : pos:position -> radius:float -> [> Svg_types.circle ] Svg.elt list
Sourceval make_square : center_pos:position -> width:float -> [> Svg_types.rect ] Svg.elt list
Sourceval make_node : ?with_node_class:bool -> pos:position -> radius:float -> text:string -> classes:Svg_types.spacestrings Svg.wrap -> unit -> [> Svg_types.g ] Svg.elt
Sourceval make_line : pos0:position -> pos1:position -> [> Svg_types.line ] Svg.elt
Sourceval make_edge : pos0:position -> pos1:position -> text:string -> classes:string list -> [> Svg_types.g ] Svg.elt
Sourceval make_direct_dep_text : assoc_node -> layer2_deps:'a list -> sharing_stats:assoc_stats -> string
Sourceval make_layer2_dep_text : SMap.key -> sharing_stats:assoc_stats -> string
Sourceval make_direct_deps_nodes : deps_w_positions:((assoc_node * position) * 'a list) list -> sharing_stats:assoc_stats -> [> Svg_types.g ] Svg.elt list
Sourceval make_direct_dep_edge_css : string -> string
Sourceval make_triangle : top:position -> left:position -> right:position -> [> Svg_types.polygon ] Svg.elt
Sourceval make_hitbox_direct_dep_edge : pos0:position -> pos1:position -> n_edges:int -> text:string -> classes:string list -> [> Svg_types.g ] Svg.elt
Sourceval make_direct_deps_edges : deps_w_positions:((assoc_node * position) * 'a list) list -> sharing_stats:assoc_stats -> [> Svg_types.g ] Svg.elt list * string
Sourceval make_layer2_nodes_spiral : layer2_deps:assoc_node list -> layer2_deps_center:Gg.v2 -> sharing_stats:assoc_stats -> [> Svg_types.g ] Svg.elt list
Sourceval grid_pos : cell_width:float -> int -> Gg.v2
Sourceval make_hitbox_square : center_pos:position -> width:float -> text:string -> classes:string list -> [> Svg_types.g ] Svg.elt
Sourceval make_layer2_nodes_grid : layer2_deps:assoc_node list -> layer2_deps_center:Gg.v2 -> sharing_stats:assoc_stats -> [> Svg_types.g ] Svg.elt list
Sourceval make_layer2_deps : deps_w_positions:(('a * position) * assoc_node list) list -> sharing_stats:assoc_stats -> [> Svg_types.g ] Svg.elt list
Sourceval make_shared_deps_css_aux : dep:assoc_node -> shared_deps:string Seq.t -> string
Sourceval make_shared_deps_css : deps_w_positions:((assoc_node * 'a) * assoc_node list) list -> string
Sourceval make_deps : sharing_stats:assoc_stats -> assoc_graph -> [> Svg_types.g ] Svg.elt list * string
Sourceval svg_defs : [> Svg_types.defs ] Svg.elt list
Sourceval make_deps_sharing_css : assoc_stats -> string
Sourceval of_assoc : sharing_stats:assoc_stats -> assoc_graph -> ([> `Defs | `G ], [> `Class | `ViewBox ]) output