[svg-developers] My shape doesn't want to follow....

2006-06-14 Thread Bruno Marquiÿffffe9
Hi all,

I have a weird behavior, that I will try to explain you, first, I'am using IE6 
and ASV3 : 
I have severals elements in my svg document those look like this : 


   //a complex icon //no evt listener
 //no evt listener
   //no evt listener



Ok what I'm trying to do is to change the position of a displayed *g* element 
to follow the mouse pointer (by changing the translate transformation).
When the mouse pointer is over the text element it works perfectly : in fact, 
the text is displayed inside the rect. So I should say that it works perfectly 
when the mouse pointer is over the text or the rect element (with a special 
style attribute).
When the mouse pointer is over the use element (a complex icon), if I move too 
fast the mouse, the g element doesn't have time to follow and so the mouse 
pointer goes out of the displayed shape... and so the mouse pointer and the 
shape are disconnected. I dont't know if I'm clear here
I beleive that there is too much event raised and so that the CPU is 
overloaded... These event are not raised when the mouse is over the text 
element because it's a text element ?...(that's where I need someone to explain 
me...) I beleive that because the mouse pointer is changing when I'm over the 
text element and not over the use element... So I suppose that "something" is 
happening when I am over a text element.. may be he is capturing or blocking 
all the events...(there is many onclick onmouseup , onmousemove inside my 
document..) and so the CPU is not overloaded and so the ASV plugin has enough 
time to refresh the g element...
If someone wants more informations or have an idea, don't hesitate!!
Thx

Bruno




[Non-text portions of this message have been removed]



 Yahoo! Groups Sponsor ~--> 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/1U_rlB/TM
~-> 

-
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/
 





Re: [svg-developers] My shape doesn't want to follow....

2006-06-14 Thread Peter Thompson
Bruno,

I couldn't quite follow what you posted. If nobody
provides an answer, post again with either a URL to
the page with the problem or include the smallest
complete sample of the SVG with the problem and
description in your email.

Peter

--- Bruno Marquiÿe9 <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> I have a weird behavior, that I will try to explain
> you, first, I'am using IE6 and ASV3 : 



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 Yahoo! Groups Sponsor ~--> 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/1U_rlB/TM
~-> 

-
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/
 




RE: [svg-developers] My shape doesn't want to follow....

2006-06-14 Thread Doug Schepers
Hi, Bruno-

Bruno Marquiÿe9 wrote:
| 
| When the mouse pointer is over the use element (a complex 
| icon), if I move too fast the mouse, the g element doesn't 
| have time to follow and so the mouse pointer goes out of the 
| displayed shape... and so the mouse pointer and the shape are 
| disconnected. I dont't know if I'm clear here
| I beleive that there is too much event raised and so that the 
| CPU is overloaded... 

Your problem is common, though your diagnosis is probably not quite right.
If you are putting the mousemove event on the target element itself, then
you are losing the mousemove event when you exit the target element's area.
Instead, put it on the document root, and have a background rectangle that
covers the whole viewport. That way, the mousemove events will still
register even if you move too fast for the target element to follow, and the
element will catch up when you slow down.

Regards-
Doug

[EMAIL PROTECTED]
www.vectoreal.com ...for scalable solutions.



 Yahoo! Groups Sponsor ~--> 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/1U_rlB/TM
~-> 

-
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/
 





Re : [svg-developers] My shape doesn't want to follow....

2006-06-14 Thread Bruno Marquiÿffffe9
Thanks for your answer.

 Your problem is common, though your diagnosis is probably not quite right.
 If you are putting the mousemove event on the target element itself, then
 you are losing the mousemove event when you exit the target element's area.
***Yes you're right, the g is sometimes not redrawn before my mouse pointer 
exits it.
But as you have understood my g element is composed of two parts : a graphical 
one (use element) and a textual one (text element). When my mouse pointer is on 
the textual one it's working (I can't drag my g element as fast as I want)  but 
on the graphical one , not... why?






 Instead, put it on the document root, and have a background rectangle that
 covers the whole viewport. That way, the mousemove events will still
 register even if you move too fast for the target element to follow, and the
 element will catch up when you slow down.
***
I'm not sure :  If I remove the mousemove from the target element, how can I 
know after on which g element was my mousepointer when the mousemove event was 
triggered... ?
*

Bruno


.
 
  




[Non-text portions of this message have been removed]



 Yahoo! Groups Sponsor ~--> 
You can search right from your browser? It's easy and it's free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/1U_rlB/TM
~-> 

-
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/
 





RE: [svg-developers] My shape doesn't want to follow....

2006-06-14 Thread Doug Schepers
Hi, Bruno-

You may want to look at my little drag-and-drop example for inspiration. It
works according to the principle I suggested before:

http://svg-whiz.com/svg/DragAndDrop.svg

Regards-
Doug

[EMAIL PROTECTED]
www.vectoreal.com ...for scalable solutions.

Bruno wrote:
| 
| Thanks for your answer.
| 
|  Your problem is common, though your diagnosis is probably 
| not quite right.
|  If you are putting the mousemove event on the target element 
| itself, then
|  you are losing the mousemove event when you exit the target 
| element's area.
| ***Yes you're right, the g is sometimes not redrawn before my 
| mouse pointer exits it.
| But as you have understood my g element is composed of two 
| parts : a graphical one (use element) and a textual one (text 
| element). When my mouse pointer is on the textual one it's 
| working (I can't drag my g element as fast as I want)  but on 
| the graphical one , not... why?
| 
| 
| 
| 
| 
| 
|  Instead, put it on the document root, and have a background 
| rectangle that
|  covers the whole viewport. That way, the mousemove events will still
|  register even if you move too fast for the target element to 
| follow, and the
|  element will catch up when you slow down.
| ***
| I'm not sure :  If I remove the mousemove from the target 
| element, how can I know after on which g element was my 
| mousepointer when the mousemove event was triggered... ?
| *
| 
| Bruno



 Yahoo! Groups Sponsor ~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/1U_rlB/TM
~-> 

-
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/
 




Re: Re : [svg-developers] My shape doesn't want to follow....

2006-06-14 Thread Phi Tran
On 6/14/06, Bruno Marquiÿe9 <[EMAIL PROTECTED]> wrote:
>
>   Thanks for your answer.
>
>
> Your problem is common, though your diagnosis is probably not quite right.
> If you are putting the mousemove event on the target element itself, then
> you are losing the mousemove event when you exit the target element's
> area.
> ***Yes you're right, the g is sometimes not redrawn before my mouse
> pointer exits it.
> But as you have understood my g element is composed of two parts : a
> graphical one (use element) and a textual one (text element). When my mouse
> pointer is on the textual one it's working (I can't drag my g element as
> fast as I want) but on the graphical one , not... why?
> 
>

I Can't answer you on the  "SVG" 's why" but I can answer from the rendering
developer  point of view.

a- Text =easy and fast "I Work on the rectangle" if the mouse position is
inside the rectangle  then fire an event.

b- Image/Graphic It needs time: first it exam to see if a mouse position is
inside the rectangle. If this is true the I will exam to see if if that part
of a rect is indeed painted then I will fire an event (That the way I do-
Others may be different but it should be on the same "evil" principle-
IsPositionPainted?).

Hope it help.

Phi.

Instead, put it on the document root, and have a background rectangle that
> covers the whole viewport. That way, the mousemove events will still
> register even if you move too fast for the target element to follow, and
> the
> element will catch up when you slow down.
> ***
> I'm not sure : If I remove the mousemove from the target element, how can
> I know after on which g element was my mousepointer when the mousemove event
> was triggered... ?
> *
>
> Bruno
>
> .
>
>
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]



 Yahoo! Groups Sponsor ~--> 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/1U_rlB/TM
~-> 

-
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/