Module Vz.Mark

Marks.

This module provides a few convenience combinators to create paths.

Mark alignement

type halign = [
  1. | `Center
  2. | `Left
  3. | `Right
]

The type for horizontal alignements.

type valign = [
  1. | `Center
  2. | `Bottom
  3. | `Top
]

The type for vertical alignements.

Marks

Mark constructors share the following optional parameters.

val htick : ?path:Vg.path -> ?halign:halign -> ?valign:valign -> ?pos:Gg.v2 -> float -> Vg.path

htick l is a horizontal tick of length l.

val vtick : ?path:Vg.path -> ?halign:halign -> ?valign:valign -> ?pos:Gg.v2 -> float -> Vg.path

vtick l is a vertical tick of length l.

val dot : ?path:Vg.path -> ?halign:halign -> ?valign:valign -> ?pos:Gg.v2 -> float -> Vg.path

dot w is a dot of diameter w.

val square : ?path:Vg.path -> ?halign:halign -> ?valign:valign -> ?pos:Gg.v2 -> float -> Vg.path

square w is a square of side w.