|
definition: |
dashedBezierSvg :: String -> String -> Point -> Point -> Int -> XmlExp
dashedBezierSvg dashes colour from to sWidth = let bOffset = ((snd to) - (snd from)) * 0.2
in XElem "path"
[ ( "d", unwords ["M", (svgCoord from),
"C", (svgCoord (movePoint from (0, bOffset))),
(svgCoord (movePoint to (0, -bOffset))),
(svgCoord to)] ),
( "stroke", colour ),
( "stroke-width", (show sWidth) ),
( "fill", "none" ),
( "stroke-dasharray", dashes ) ]
[]
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
failfree: |
(_, _, _, _, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_,_,_,_) |-> {XElem}}
|
|
name: |
dashedBezierSvg |
|
precedence: |
no precedence defined |
|
result-values: |
{XElem}
|
|
signature: |
String -> String -> (Prelude.Float, Prelude.Float) -> (Prelude.Float, Prelude.Float) -> Prelude.Int -> XML.XmlExp |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |