Module Simantics/Diagram/SVGNode
This module is undocumented. This is a list of its definitions.
getBoundingBox :: SVGMeasurementContext -> String -> <Proc> Maybe (Double, Double, Double, Double)
The bounding box of the SVG element with the given id, in the coordinates of
the SVG document. Nothing if the document has no element with that id, if
the element is not renderable, or if its bounds cannot be computed.
getBoundingBoxH :: (Double, Double, Double, Double) -> Double
The height of the bounding box.
getBoundingBoxW :: (Double, Double, Double, Double) -> Double
The width of the bounding box.
getBoundingBoxX :: (Double, Double, Double, Double) -> Double
The x coordinate of the left edge of the bounding box.
getBoundingBoxY :: (Double, Double, Double, Double) -> Double
The y coordinate of the top edge of the bounding box.
modifyText :: SVGMeasurementContext -> String -> String -> <Proc> ()
Replaces the text of the SVG text element with the given id by the given new
text and re-renders it. This changes only what is drawn, not the model the
symbol was built from.
|