Center layout better
This commit is contained in:
@@ -148,7 +148,7 @@ update e = do
|
|||||||
Nothing -> "Not found"
|
Nothing -> "Not found"
|
||||||
Just { widthPx: width, heightPx: height} -> (toString width) <> ", " <> (toString height)
|
Just { widthPx: width, heightPx: height} -> (toString width) <> ", " <> (toString height)
|
||||||
|
|
||||||
let mySVGErr = ternaryGraph 100.0 50.0 50.0 graphDef textDimensions
|
let mySVGErr = ternaryGraph 100.0 50.0 70.0 graphDef textDimensions
|
||||||
mySVG <- case mySVGErr of
|
mySVG <- case mySVGErr of
|
||||||
Left error -> throw error
|
Left error -> throw error
|
||||||
Right svg -> pure svg
|
Right svg -> pure svg
|
||||||
@@ -207,9 +207,7 @@ main = do
|
|||||||
|
|
||||||
log $ Foldable.foldr (\dim str -> str <> "\n" <> (toString dim.widthPx) <> ", " <> (toString dim.heightPx)) "" $ Map.values textDimensions
|
log $ Foldable.foldr (\dim str -> str <> "\n" <> (toString dim.widthPx) <> ", " <> (toString dim.heightPx)) "" $ Map.values textDimensions
|
||||||
|
|
||||||
let textDimensions2 = Map.mapMaybe (\dim -> Just {widthPx: 0.0, heightPx: 0.0}) textDimensions
|
let mySVGErr = ternaryGraph 100.0 50.0 70.0 graphDef textDimensions
|
||||||
|
|
||||||
let mySVGErr = ternaryGraph 100.0 50.0 50.0 graphDef textDimensions2
|
|
||||||
mySVG <- case mySVGErr of
|
mySVG <- case mySVGErr of
|
||||||
Left error -> throw error
|
Left error -> throw error
|
||||||
Right svg -> pure svg
|
Right svg -> pure svg
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ ternaryGraphSvg fragments = """<?xml version="1.0" encoding="UTF-8"?>
|
|||||||
<svg
|
<svg
|
||||||
width="150mm"
|
width="150mm"
|
||||||
height="120mm"
|
height="120mm"
|
||||||
viewBox="-50 -50 200 200"
|
viewBox="-50 -50 200 250"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
|||||||
Reference in New Issue
Block a user