hyper-haskell
hyper-haskell copied to clipboard
Scaling (via diagrams) doesn't work
Apparently there is some kind of autoscale in the rendering process, which sometimes makes for absurd results:
-- Should fit on screen without scrolling, but does not.
dia $ circle 1 # scaleY 100 # scale 0.01
In general, any scale applied to the entire diagram has no effect.
It also makes it so that a diagram does not maintain a constant size after operations that add other diagrams next to it. So:
-- Now it fits on the page! But adding a circle on the
-- right shouldn't change the size of anything on the left.
dia $ circle 1 # scaleY 100 # scale 0.01 ||| circle 1