How can I create a page which has the minimum size to contain the one FLOWchart defined in it?
I'm looking for something identical to \startMPpage but for FLOWchart
\startMPpage produces a page a containing MetaPost graphic. The page is just large enough to contain the graphic.
A minimum document using \startMPage:
\starttext
\startMPpage
fill fullcircle scaled 5cm withcolor red ;
\stopMPpage
\stoptext
this produces a cropped page containing only the circle.
The following document will produce a full A4 page with a flow-chart in it:
\usemodule[chart]
\starttext
\startFLOWchart [cells]
\startFLOWcell
\name {first}
\location {1,1}
\shape {singledocument}
\text {not realy a document}
\stopFLOWcell
\stopFLOWchart
\placefigure
[here][]
{}{\FLOWchart[cells]}
\stoptext