definition:
|
nodeSvg :: DNode -> Point -> XmlExp
nodeSvg node p = let
sColour = strokeColour node
fColour = fillColour node
nlabel = cutLabel (label node)
nid = nodeID node
width = calcNodeWidth nlabel
in case (nodeType node) of
FuncNode -> funcNodeSvg nlabel sColour fColour nid p width
ConsNode -> constNodeSvg nlabel sColour fColour nid p width
ChoiceNode -> funcNodeSvg nlabel sColour fColour nid p width
FreeNode -> funcNodeSvg nlabel sColour fColour nid p width
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
-- draw a single node in svg-format
|
failfree:
|
(_, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_) |-> {XElem}}
|
name:
|
nodeSvg
|
precedence:
|
no precedence defined
|
result-values:
|
{XElem}
|
signature:
|
DNode -> (Prelude.Float, Prelude.Float) -> XML.XmlExp
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|