2 type BoundingBox = (Double,Double,Double,Double)
4 importJava "org.simantics.diagram.elements.SVGMeasurementContext" where
5 data SVGMeasurementContext
6 getBoundingBox :: SVGMeasurementContext -> String -> <Proc> Maybe BoundingBox
7 modifyText :: SVGMeasurementContext -> String -> String -> <Proc> ()
9 getBoundingBoxX :: BoundingBox -> Double
10 getBoundingBoxX (x,_,_,_) = x
12 getBoundingBoxY :: BoundingBox -> Double
13 getBoundingBoxY (_,y,_,_) = y
15 getBoundingBoxW :: BoundingBox -> Double
16 getBoundingBoxW (_,_,w,_) = w
18 getBoundingBoxH :: BoundingBox -> Double
19 getBoundingBoxH (_,_,_,h) = h