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] About REX, AJAX and SVG

2006-07-13 Thread G. Wade Johnson
On Wed, 12 Jul 2006 22:13:03 +0200
Jean-Claude Moissinac [EMAIL PROTECTED] wrote:

 Hello
 
 I've published a note about using REX, AJAX and SVG on:
 http://svgmpeg4.blogspot.com/2006/06/taste-of-rex-ajax-and-svg.html
 
 Here is the abstract:
 The purpose of this note is to present my implementation of REX to
 dynamically modify SVG documents with the help of XMLHttpRequest,
 popularized by AJAX. REX is a simple XML grammar - proposed by the W3C in
 February 2006 - which allows us to describe modifications that we want to
 bring to an XML document: insertion, replacement or deletion of a
 sub-document, and attribute's change. Thanks to this implementation, with a
 little bit of JavaScript code, we can make any kind of manipulation of a
 graphic SVG page by commands stemming from a server.

Interesting article, but I have one little nit to pick. Why do you show the
namespace attribute in the end tags for the rex element?

The definition of an end tag does not allow any attributes as far as I know.
(http://www.w3.org/TR/2004/REC-xml-20040204/#NT-ETag).

Other than that, the article does provide food for thought.

G. Wade
-- 
Bugs lurk in corners and congregate at boundaries.   -- Boris Bezier


 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/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/
 




[svg-developers] Re: arc and markers

2006-07-13 Thread lpmlabs9
This is EXACTLY what I needed !  Thanks very much for the 
assistance; bonus points for the nice working example.
Larry


 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 - 
 Sent: Wednesday, July 12, 2006 10:14 PM 
 
 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






-
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] Re: arc and markers

2006-07-13 Thread Andreas Neumann
the reason is that FF does not yet implement .getPointAtLength()  - at least 
not in version 1.5.

I am eagerly waiting for this method as well, since I use it often.

Andreas

--- In svg-developers@yahoogroups.com, ddailey [EMAIL PROTECTED] wrote:

 It's fixed now, but still not working in FF.
 
 DD






-
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] Re: Passing values/string between two svg files

2006-07-13 Thread Darryl Watson
What I do is put all my javascript into the containing HTML page, not in 
the SVG documents.  This makes it much easier to debug!

The only code you should put in your SVG document is the minimum 
javascipt necessary to parse your Ajaxed code.  Thus:

(In main document:)
script type=text/javascript
var ParseFunc = null;  // global variable which will hold reference 
to svgdoc parse function
/script
html

!-- somewhere here you make an ajax call to get your new SVG content --
script type=text/javascript
ParseFunc('targetNode', newContent);  // this inserts new content as 
a child of targetNode node
/script
...
/html

(in svg code:)
svg id=SVGDoc onload=initmap(evt) ...
script type=text/javascript
![CDATA[
function initmap(evt)
{
   top.ParseFunc = parseFunc;  // define a hook to following 
function
}

function ParseFunc(where, what)
{
   var node = parseXML(what, document);
   document.getElementById(where).appendChild(node);
   return node;  // not necessary to do this, but might want to 
manipulate tree afterwards
}
/script
g id='targetNode'/g
...
/svg

When the svg document loads, it calls initmap(), which sets a reference 
in the parent HTML that is callable later.

achio_84 wrote:

 Thanks for your reply...
 I'd get what you mean.. But, where should I write my javascript to
 get the 2nd svg file's content? Is that in the 2nd file or 1st svg
 file?
 And, if I write my javascript in the 2nd file, how can I pass the
 content to the 1st file? I mean how can my javascript know that my
 destination is the 1st file? Is that using function getURL() and
 postURL()? Can you give me some example of coding?

 Thanks...

 Regards,
 achio.

 --- In svg-developers@yahoogroups.com 
 mailto:svg-developers%40yahoogroups.com, Darryl Watson [EMAIL PROTECTED]
 wrote:
 
  Well, you need to write some javascript to retrieve the 2nd SVG
 file and
  then call parseXML() on that content, which will give you back a
  document element, which you can then insert into your first SVG
 document
  wherever you need it
 
  achio_84 wrote:
 
   Hi all
   Can anyone please help me with this problem?
   I have 2 svg files and I want to pass the content in 1 svg file to
   another svg file during runtime. How can I do that?
  
   I search the web for the solution and I found that it can be done
 by
   using nested svg file, which mean to include svg file within
 another
   svg file. But this is not what I want. I do not want to embed svg
 file
   inside the other svg file. I wonder if there is another solution
 to
   pass the content to other svg files?
  
   Hope to receive reply soon
   Thanks.
  
   New Message Search
  
   Find the message you want faster. Visit your group to try out the
   improved message search.
  
   Share feedback on the new changes to Groups
  
 http://us.lrd.yahoo.com/_ylc=X3oDMTJtZmFsZjZhBF9TAzk3MzU5NzE0BF9wAzIE 
 http://us.lrd.yahoo.com/_ylc=X3oDMTJtZmFsZjZhBF9TAzk3MzU5NzE0BF9wAzIE
 Z3JwSWQDMTI5ODQyMQRncnBzcElkAzE2MDEwMzAzODkEc2VjA25jbW9kBHNsawNmZGJjaw
 RzdGltZQMxMTUyNjc3MzE2;_ylg=1/SIG=11im36rmb/**http%
 3a//surveylink.yahoo.com/wix/p1412899.aspx
  
   Recent Activity
  
   *
   13
   New Members
   http://groups.yahoo.com/group/svg- 
 http://groups.yahoo.com/group/svg-
 developers/members;_ylc=X3oDMTJma3JlZ2VlBF9TAzk3MzU5NzE0BGdycElkAzEyOT
 g0MjEEZ3Jwc3BJZAMxNjAxMDMwMzg5BHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzExNTI2
 NzczMTY-
  
   Visit Your Group
   http://groups.yahoo.com/group/svg- 
 http://groups.yahoo.com/group/svg-
 developers;_ylc=X3oDMTJlaDQyZDBsBF9TAzk3MzU5NzE0BGdycElkAzEyOTg0MjEEZ3
 Jwc3BJZAMxNjAxMDMwMzg5BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTE1MjY3NzMxNg--
 
  
   .
  
  
 

  




 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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] Re: arc and markers

2006-07-13 Thread T Rowley
On 7/13/06 9:22 AM, Andreas Neumann wrote:
 the reason is that FF does not yet implement .getPointAtLength()  - at least 
 not in version 1.5.

Will be in Firefox 3:

   https://bugzilla.mozilla.org/show_bug.cgi?id=344378

-tor


-
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] news tidbits

2006-07-13 Thread ddailey
Unlike some of you I don't exactly have my ear to the ground in terms of 
news about SVG, but occasionally I surface from what I'm doing long enough 
to do a Google search. Herewith a couple of things I thought to be 
interesting:

http://www.prweb.com/releases/2006/6/prweb398659.htm  tells us that eFox 
[is now] the most stable Internet Web Browser available to date on the 
Internet, more stable than even Internet Explorer 6 or a plain vanilla 
install of Mozilla Firefox. Adobe SVG is now the default SVG viewer in eFox, 
making it the ideal browser for web developers working on multimedia 
applications.

http://www.macworld.co.uk/news/index.cfm?NewsID=15234Page=1pagePos=2 tells 
us, about Firefox 2.0 beta, that ...The management of third-party software 
plug-ins have also been improved. The release also supports JavaScript 1.7, 
search engine plug-ins and SVG text. 

DD





 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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/