1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Drawing Commands
Draw a path
val externalimage :
string ->
[ `None
| `Width of Num.t
| `Height of Num.t
| `Inside of Num.t * Num.t
| `Exact of Num.t * Num.t ] ->
t
insert an image given its filename - *EXPERIMENTAL*
Manipulating Commands
val nop : t
A command that has no effect
iter m n f
builds a command that corresponds to the sequence of commands f m; f (m+1); ... ; f(n)
iterl f l
builds a command that corresponds to the sequence of commands f x1; f x2; ... ; f xn
for l = [x1;x2;...;xn]
Labels
type position = [
| hposition |
| vposition |
| `Northwest |
| `Northeast |
| `Southwest |
| `Southeast |
| `Upperleft |
| `Upperright |
| `Lowerleft |
| `Lowerright |
| `Topleft |
| `Topright |
| `Bottomleft |
| `Bottomright |
| `Upleft |
| `Upright |
| `Lowleft |
| `Lowright |
]
Positions - they are used at many places in Mlpost to indicate a direction or position.
label ~pos:`West pic p
puts picture pic
at the left of the point p