2015-02-05 19:06 GMT+01:00 Sean P. DeNigris <sean@clipperadams.com>:
Nicolai Hess wrote
> What do you want to achieve?

I've created an infinite desktop a la Self. To make things manageable, I'm
currently writing a RadarView (also just like Self) to show a map of all the
objects on the desktop, and the position of the current viewport. It's
working now thanks to your help!

Looks great. (And it will look even better if it (and Morphic) is working with Athens:) ).
��

There is now only 1 major bug, and 3 little glitches:
1. (BUG): Every once in a while (can't figure out how to reproduce), it
displays the Red X of Death like so:

<http://forum.world.st/file/n4804025/Screenshot_2015-02-05_11.png>

drawRadarViewOn: aCanvas

������ | terrainRect transform scale clipRect viewRect offset |
������ terrainRect := self radarCoverageArea.
������ terrainRect isZero ifTrue: [ ^ self ].������

������ "the viewRect scale must not depend on the clipRect extent"
������ " you want to have the scale based on the radarmorph extent. But now, if something occludes
������ " the radarmorph partially, the clipRect is smaller than your radarmorph and the scaling is wrong"
������ viewRect := terrainRect scaledAndCenteredIn: aCanvas clipRect.

��

2. When the container window is moved, the contents temporarily jump out of
the radar screen

That one is tricky. If you grab the self world morph with the mouse, the morph is
not drawn in the morphic WorldMorph anymore, instead the handmorph creates a
form and a new canvas for drawing on this form. For this canvas the offset (or origin?)
is not the same as for the WorldMorph.


��
3. when the radar is dragged over another morph in the Self World, the
clipping gets very weird


��

There are some artefacts too, related to issue
12330 Rendering artifacts with scaled ImageMorph
(still unresolved)

��
4. One side of the blue highlight rectangle sometimes disappears on resize

#2, #3, and #4 can be seen in this screencast: https://vimeo.com/118826521





-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Canvas-Transform-Goes-Haywire-if-Scaled-tp4803830p4804025.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.