Hello folks , I've been watching this group for 2 weeks or so. I am
curently developing a svg application ( i'm new on svg). I want to
resize an object by placing handlers top-left , bottom-left ,
middle-left etc. I send the delta of the mouse movements to all the
handlers but I can't manage to have it work as it should.
|
x x x
_x_3|4_x_
x x x
2|1
|
x represents a handler.
I have managed to move all the handlers together , but when I work
with the handler placed in zone 2 it acts weird.
What I do :
Whenever I move a handler I calculat delta x and delta y based on the
original handler location. I convert to values to how they should be
in zone 1 ( positive values) and send the delta to all handler. Each
handler converts the delta based on the region is located (for example
in zone 3 delta.x and delta.y would be negative). I have no ideea
why, based on this logic, it doesn't work for zone 2 (when i move the
handler , when it receives the delta it works). Is there a simpler
solution for this?
Also , I want to calculate this based on the zones , the hanlder
objects must not be aware of the other handle objects , they must be
aware only of their internal state.
Thanks , hope my explications are good enough.
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/