Re: [svg-developers] arc and markers

2006-07-13 Thread ddailey
Try arc.getPointAtLength .. See an example at 
http://srufaculty.sru.edu/david.dailey/svg/curve.svg

It uses beziers instead of arcs, but it oughta be roughly the same stuff. 
This example only works in IE (sorry) -- I'm not sure if there is a deep 
reason for this or just my laziness.

David Dailey

- Original Message - 
From: lpmlabs9 [EMAIL PROTECTED]
To: svg-developers@yahoogroups.com
Sent: Wednesday, July 12, 2006 10:14 PM
Subject: [svg-developers] arc and markers


I need to render multiple lines between the same 2 points.  I have the
 logic to produce arcs to avoid the overlaps.  Now, however, I need to
 add a marker per line showing direction at the midpoint.  I have a
 nice arrow marker defined and it works fine for marker-end.  But for
 the life of me, I can't figure out the right curve/arc syntax that
 will allow marker-mid.  The lines are actually paths.  Which direction
 should I go?  Anyone have an example to share of perhaps 4 lines with
 endpoints 200,300 and 800,500 ?  I don't want to use any
 transformations if possible.  FWIW, all of this logic and line
 rendering is done in script code.
 TIA,
 Larry

 [ sorry if this is a 2nd post - not sure if the post via email worked
 or not]







 -
 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








 




 Yahoo! Groups Sponsor ~-- 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/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] arc and markers

2006-07-13 Thread Erik Dahlström
On Thu, 13 Jul 2006 14:10:03 +0200, ddailey [EMAIL PROTECTED]  
wrote:

 Try arc.getPointAtLength .. See an example at
 http://srufaculty.sru.edu/david.dailey/svg/curve.svg

 It uses beziers instead of arcs, but it oughta be roughly the same stuff.
 This example only works in IE (sorry) -- I'm not sure if there is a deep
 reason for this or just my laziness.

 David Dailey

The deep reason is that is uses evt.getTarget().getOwnerDocument()  
instead of evt.target.ownerDocument. Here's a good reference:  
http://jwatt.org/svg/authoring/#asv-getters-and-setters.

Fixing that makes it work fine in Opera 9 too.
Cheers
/Erik

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/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] arc and markers

2006-07-13 Thread ddailey
It's fixed now, but still not working in FF.

DD
- Original Message - 
From: Erik Dahlström [EMAIL PROTECTED]
To: svg-developers@yahoogroups.com
Sent: Thursday, July 13, 2006 8:23 AM
Subject: Re: [svg-developers] arc and markers


 On Thu, 13 Jul 2006 14:10:03 +0200, ddailey [EMAIL PROTECTED]
 wrote:

 Try arc.getPointAtLength .. See an example at
 http://srufaculty.sru.edu/david.dailey/svg/curve.svg

 It uses beziers instead of arcs, but it oughta be roughly the same stuff.
 This example only works in IE (sorry) -- I'm not sure if there is a deep
 reason for this or just my laziness.

 David Dailey

 The deep reason is that is uses evt.getTarget().getOwnerDocument()
 instead of evt.target.ownerDocument. Here's a good reference:
 http://jwatt.org/svg/authoring/#asv-getters-and-setters.

 Fixing that makes it work fine in Opera 9 too.
 Cheers
 /Erik

 -- 
 Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




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





[svg-developers] arc and markers

2006-07-12 Thread lpmlabs9
I need to render multiple lines between the same 2 points.  I have the 
logic to produce arcs to avoid the overlaps.  Now, however, I need to 
add a marker per line showing direction at the midpoint.  I have a 
nice arrow marker defined and it works fine for marker-end.  But for 
the life of me, I can't figure out the right curve/arc syntax that 
will allow marker-mid.  The lines are actually paths.  Which direction 
should I go?  Anyone have an example to share of perhaps 4 lines with 
endpoints 200,300 and 800,500 ?  I don't want to use any 
transformations if possible.  FWIW, all of this logic and line 
rendering is done in script code.
TIA,
Larry

[ sorry if this is a 2nd post - not sure if the post via email worked 
or not]







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