'Real' zooming&panning

Andreas Raab andreas.raab at gmx.de
Wed Oct 29 16:52:19 UTC 2003


Disclaimer: I haven't tried this and I know some things won't work but ...

As a matter of fact, the BalloonCanvas should be able to help you with that.
I used to be able to draw pretty much everything with a (rotated, scaled
whatever) balloon canvas. Some things were not complete though; most notably
dealing with text. So you might want to give it a try by simply converting
your regular canvas into a balloon canvas and see what you get.

Cheers,
  - Andreas

> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org 
> [mailto:squeak-dev-bounces at lists.squeakfoundation.org] On 
> Behalf Of cg at cdegroot.com
> Sent: Wednesday, October 29, 2003 4:52 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: 'Real' zooming&panning
> 
> 
> Hi All,
> 
> Long time no speak. I'm delurking because I have a problem in
> Morphic that some of you hopefully can easily answer: still working on
> the supersecret design package with Chris Alexander, we want 
> to have our
> designs zoom, pan, and make coffee. Well, mostly the first 
> two, the last
> one is a feature for the next release ;-)
> 
> Anyway, TwoWayScrollPane does almost exactly what we want, but in a
> completely ugly way - I never realized that the transformations in
> Morphic first draw and then scale, instead of just telling 
> the affected
> morphs that they are living in an altered coordinate space 
> (like, IIRC,
> Postscript). The result is that if you zoom a polygon, you suddenly
> get twice as thick borders, ugly handles, etcetera.
> 
> Given that we want to be able to zoom from the neighbourhood level all
> the way down to the individual holes in your kitchensink, this ain't
> going to cut it.
> 
> Is there a way to do 'real', vector-oriented, scaling in Morphic? If
> not, what would be the easiest solution to get something workable?
> 
> TIA,
> 
> Cees
> -- 
> Cees de Groot               http://www.cdegroot.com     
> <cg at cdegroot.com>
> GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD  1986 F303 937F 
> E098 9E8B
> Cogito ergo evigilo
> 
> 




More information about the Squeak-dev mailing list