hyper-haskell icon indicating copy to clipboard operation
hyper-haskell copied to clipboard

Scaling (via diagrams) doesn't work

Open afcady opened this issue 6 years ago • 0 comments

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

afcady avatar Oct 16 '19 16:10 afcady