Re: [svg-developers] Re: resize and draggable the group of the SVG element.....

2010-11-10 Thread Peter Thompson
Here is a simple example that shows the drag/drop and resize of a rectangle: 
http://fastsvg.com/notes/drag1.svg

It doesn't show a selector box or put drag handles on the rectangle when it is 
selected. You resize the rectangles by grabbing'near' the edges.

Peter

--- On Thu, 11/4/10, jeff_schiller jeff_schil...@hotmail.com wrote:

From: jeff_schiller jeff_schil...@hotmail.com
Subject: [svg-developers] Re: resize and draggable the group of the SVG 
element.
To: svg-developers@yahoogroups.com
Date: Thursday, November 4, 2010, 3:34 PM







 



  



  
  
  

--- In svg-developers@yahoogroups.com, Mr Rauf cute_rauf_...@... wrote:



 I am working on a SVG and now want to let a user resize an object

 using draggable corners, very much like in SVG-edit (http://svg-

 edit.googlecode.com/svn/trunk/editor/svg-editor.html). The

 functionality should work as follows: The user selects the SVG objects,

 drags it to the main `canvas' and once on the `canvas', four corners

 on the outside of the object appear, the user can drag on each of the

 corner points  drag to enlarge the object. The objects will be

 rectangular in shape and created using paths, not using the SVG `rect'

 function. Would anyone have any suggestions as to how this should be

 implemented?

 Thanks in Advance..





Here's how SVG-edit did it:



- have listeners for mousedown, mouseup, mousemove

- if an element is clicked on (in mouseup), then that is your currently 
selected element

- put a 'selector box' element on top of the selected element (that has the 
visible handles you can drag)

- in your mousemove, detect if a handle is being dragged, while it's being 
dragged, determine what the element's new size should be and either:  a) 
recompute the element's geometry to fit into that box or b) put a transform on 
that element



See SVG-edit's code involving Selector, SelectorManager and 
recalculateDimensions() and the mouse event handler functions.



Note that these are not trivial pieces of code and they took awhile to get into 
a working state.



Best of luck,

Jeff






 





 



  






  

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





-
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
svg-developers-dig...@yahoogroups.com 
svg-developers-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
svg-developers-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[svg-developers] napkin LF using SVG

2008-11-14 Thread Peter Thompson
Can anybody point me to something like the Napkin LF 
(http://napkinlaf.sourceforge.net/) done with SVG? I found a site that 
generates UML sequence diagrams in various formats (not SVG) that does a type 
of napkin LF (http://www.websequencediagrams.com/).

Thanks.




  



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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] IE woes: reload does not work

2008-10-03 Thread Peter Thompson
Using your link, I get JScript runtime error: 'this.mapSVG' is null or not an 
object line:73, column 1 on reload.

That is on Windows XP, IE 6, with ASVG 3.03.

Not that I know what's causing it. Just thought I'd report it since others 
cannot reproduce it.

FWIW, it looks pretty good with Google Chrome.



  



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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] Non-scalable text labels in scalable graphics?

2008-09-08 Thread Peter Thompson
Does this do what you want?

?xml version=1.0?
svg xmlns=http://www.w3.org/2000/svg; width=100% height=100%
circle cx=50 cy=200 r=2 stroke=green stroke-width=1 
fill=green/
g id=Labels transform=translate(50,200)  font-size=20pt fill=red
textText scales, but doesn't change font size./text
/g
script
![CDATA[
function SyncUI()
{
var root = document.rootElement;
var scaleUI = 1/parseFloat(root.currentScale);
var obj = document.getElementById(Labels);
obj.setAttribute(font-size, (20 * scaleUI) + pt);
}
document.rootElement.addEventListener( SVGScroll, SyncUI, false );
document.rootElement.addEventListener( SVGResize, SyncUI, false );
document.rootElement.addEventListener( SVGZoom, SyncUI, false );
SyncUI();
// ]]
/script
/svg

--- On Sun, 9/7/08, gfc22 [EMAIL PROTECTED] wrote:
From: gfc22 [EMAIL PROTECTED]
Subject: [svg-developers] Non-scalable text labels in scalable graphics?
To: svg-developers@yahoogroups.com
Date: Sunday, September 7, 2008, 8:48 AM

I expect this is a FAQ, but Google doesn't offer anything relevant:

 I have text labels in scalable SVG groups. I want the positions of the labels 
to scale with the 
 other elements but not their text size. This must be a common requirement. 
Suggestions 
 welcome.

 George

  


  

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




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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: How to detect SVG target on mouse over event properly?

2008-07-21 Thread Peter Thompson
peychevi,
 
What is the problem with the sample code?

 














  

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




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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] relative positioning of objects

2008-07-14 Thread Peter Thompson
Set a timer in the onload() function to run a little bit later. The objects 
will have dimension by then. Like this:

function init(evt)
{
  svgDoc=evt.target.ownerDocument;
  setTimeout(initTimer(), 10);
}
function initTimer()
{
...
}

--- On Mon, 7/14/08, barna.dani [EMAIL PROTECTED] wrote:

From: barna.dani [EMAIL PROTECTED]
Subject: [svg-developers] relative positioning of objects
To: svg-developers@yahoogroups.com
Date: Monday, July 14, 2008, 7:59 AM






Hi,
I would like to position objects with respect to each other. For
example, put a text somewhere, and put another object (1cm,1cm) from
the upper right corner of this text. I can not know in advance, what
are the dimensions of the displayed text, so I would like to obtain ot
somehow on-the-fly. 
The simplest idea is to use ECMAScript, to obtain geometrical
parameters of objects. This could work for the above simplified case,
but in my case a computer program creates the SVG output, where all
the objects should have the possibility to such alignments. I was
thinking of creating a script in the header, which obtains all
dimensions of the objects, then calculates the dependencies, sets
variables and positions the objects, but if I specify this script as
the 'onload' parameter of the document, it will run before the objects
are displayed, so I got 0 as the width of a text, for example.
Does anybody have a suggestion, how to do this?
Thanks

 














  

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




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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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: transform question

2008-02-22 Thread Peter Thompson
Thanks. Exactly what I wanted.

--- Frank Bruder [EMAIL PROTECTED] wrote:

 I also had that problem. In mathematical graphics
 the positive y axis 
 usually points upwards. Using a different coordinate
 system for 
 positioning the text is not quite elegant. My
 solution is, when 
 you've got a text which is inside a group with
 transform=scale(1,-
 1) then instead of
 
 text x=1 y=20x/text
 
 write
 
 text transform=translate(1 20) scale(1
 -1)x/text
 
 
 Regards
Frank



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] transform question

2008-02-20 Thread Peter Thompson
Everyone knows that by default, the y-axis increases
as you move down the screen. I know that I can get the
y-axis to increase as you move upward if I use
transform=scale(1,-1). Using that transform, the
text displays upside down. When using that transform,
is there an easy/elegant way to get text to display
right-side up in the proper position on the screen?



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


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

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* 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] How to make SVGZ from a SVG file?

2006-06-12 Thread Peter Thompson
 Is there any
 Borland C++ libraries and/or Java libraries to
 implement Gzip algorithms?

In Java, look at GZIPOutputStream.


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


 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/
 




Re: [svg-developers] Another question

2006-06-02 Thread Peter Thompson
--- Sayed Arian Kooshesh [EMAIL PROTECTED] wrote:

 how would I represent a table in svg?
 

Is something like this sufficient?
text x=100 y=50item 1.1/text
text x=200 y=50item 1.2/text
text x=300 y=50item 1.3/text
text x=400 y=50item 1.4/text
text x=500 y=50item 1.5/text
text x=100 y=100item 2.1/text
text x=200 y=100item 2.2/text
text x=300 y=100item 2.3/text
text x=400 y=100item 2.4/text
text x=500 y=100item 2.5/text
text x=100 y=150item 3.1/text
text x=200 y=150item 3.2/text
text x=300 y=150item 3.3/text
text x=400 y=150item 3.4/text
text x=500 y=150item 3.5/text




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


 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/
 





Re: [svg-developers] Another question

2006-06-02 Thread Peter Thompson
--- Sayed Arian Kooshesh [EMAIL PROTECTED] wrote:

 no, I'm looking for something with several columns.
 Thanks for the advice ,
 however.
 

The SVG that I provided displays a 3 row by 5 column
table.




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


 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/
 





Re: [svg-developers] SVG world maps

2006-05-11 Thread Peter Thompson
Thanks for the feedback. Use Display-Set Viewport
function to get part of the displayed map centered if
you get disoriented.  You should have better luck from
there.

Perhaps I made poor decisions setting up the initial
display state.  I wanted the user to be able to see
any map data initially selected for display, which is
why it is at a high scale and Lambert projection.  I
considered having an initial state of something like
North America or Europe displayed.  Perhaps that would
be better.

The map data in the zip file is in the original form
that I found at http://www.evl.uic.edu/pape/data/WDB/.
The original readme file is in the zip file, which
explains the format of the data and the original
source of the data.

Peter

--- Alex Amies [EMAIL PROTECTED] wrote:

 Peter,
 
 That is an incredibly valuable tool.  However, I had
 a little trouble
 getting the map to display the way I wanted.  The
 projection was not from
 the angle I expected and I had trouble centering in
 the position I wanted.
 I expect that the functions are all there but I had
 trouble finding them.
 
 Where did you get the world map?
 
 Alex
 
 On 5/10/06, Peter Thompson
 [EMAIL PROTECTED] wrote:
 
  I created http://fastsvg.com to provide SVG maps. 
 The
  site has a downloadable tool for generating your
 own
  SVG maps (you specify continents, projection,
 scale,
  center point, level of detail, etc.) and a sample
 of
  SVG maps generated using the tool.
 
  The Mercator projection maps have formulas in the
 SVG
  files that you can use to generate screen X/Y from
  lat/long.  The Lambert projection maps don't have
 the
  formulas in the SVG files yet.  In either case,
 the
  tool has a lat/long to X/Y converter that you can
 use
  to generate screen points for a specific SVG file
  (based on projection, center lat/long, screen
  width/height, and scale -- all of which are
 written
  into the SVG file).
 
  Send me any questions or comments.
 
  Peter
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 
   -
  To unsubscribe send a message to:
  [EMAIL PROTECTED]
  -or-
  visit http://groups.yahoo.com/group/svg-developers
 and click edit my
  membership
  
 
 
 
   SPONSORED LINKS
Xml

formathttp://groups.yahoo.com/gads?t=msk=Xml+formatw1=Xml+formatw2=Svgw3=Formatw4=Datac=4s=47.sig=VBa7nBOoFldLj1xsnDMzkQ
 

Svghttp://groups.yahoo.com/gads?t=msk=Svgw1=Xml+formatw2=Svgw3=Formatw4=Datac=4s=47.sig=a1u0zJydFxGsmrBvlURQ4w
 

Formathttp://groups.yahoo.com/gads?t=msk=Formatw1=Xml+formatw2=Svgw3=Formatw4=Datac=4s=47.sig=sfOdgu_KzJjmF4YOGYLFuw
 

Datahttp://groups.yahoo.com/gads?t=msk=Dataw1=Xml+formatw2=Svgw3=Formatw4=Datac=4s=47.sig=aV25K06F7rKa6A2bKQrzpA
   --
  YAHOO! GROUPS LINKS
 
 
 -  Visit your group

svg-developershttp://groups.yahoo.com/group/svg-developers
 on the web.
 
 -  To unsubscribe from this group, send an
 email to:
 

[EMAIL PROTECTED][EMAIL PROTECTED]
 
 -  Your use of Yahoo! Groups is subject to the
 Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/.
 
 
   --
 
 
 
 [Non-text portions of this message have been
 removed]
 
 


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


 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/
 




[svg-developers] SVG world maps

2006-05-10 Thread Peter Thompson
I created http://fastsvg.com to provide SVG maps.  The
site has a downloadable tool for generating your own
SVG maps (you specify continents, projection, scale,
center point, level of detail, etc.) and a sample of
SVG maps generated using the tool.

The Mercator projection maps have formulas in the SVG
files that you can use to generate screen X/Y from
lat/long.  The Lambert projection maps don't have the
formulas in the SVG files yet.  In either case, the
tool has a lat/long to X/Y converter that you can use
to generate screen points for a specific SVG file
(based on projection, center lat/long, screen
width/height, and scale -- all of which are written
into the SVG file).

Send me any questions or comments.

Peter


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


 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/
 




[svg-developers] recommend web hosting service that supports SVG?

2006-04-27 Thread Peter Thompson
Can someone please recommend a reliable, inexpensive
web hosting company that supports SVG?  I have very
few requirements:
1)supports .svg files
2)supports .svgz files (I found one that supports svg
but not svgz)
3)inexpensive
You can respond via private email if you think that a
public response is too much like advertising.
Thanks.
Peter



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


-
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] How to import .js files into SVG

2006-03-02 Thread Peter Thompson
The xlinks don't have to be in the defs section.  I
don't know if they belong there.

This is what works for me:

svg width=200 height=200
xmlns=http://www.w3.org/2000/svg;
xmlns:xlink=http://www.w3.org/1999/xlink;
 script type=text/ecmascript
xlink:href=whatever.js/
...
/svg



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


-
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] map data structure question

2006-03-02 Thread Peter Thompson
Right now, I read coastline data (lat/long) from flat
files and store it in a series of arrays in a program.
 Each array is many points, representing line
segments.  When I draw the vectors on the screen, I
check each array (which represents many line segments)
to see if the vectors should be displayed.  If I had
the data arranged in some better type of data
structure, like a k-d tree or quadtree (or something),
I think that I would be able to retrieve/display the
data faster because I wouldn't have to check as many
segments.

My question is, what is the standard type of data
structure/algoritm for this type of problem?  Is my
question any clearer now?

I know that this problem has been solved many times. 
I tried googling for awhile.  I don't seem to know
enough to find the answer.  It seems like lat/long
data is considered spatial data, which is how I ended
up with k-d tree and quadtree suggestions I mentioned
above.  I'd buy a book if I knew the right one to buy.

Any help or hints are appreciated.


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


-
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] map data structure question

2006-03-01 Thread Peter Thompson
This isn't SVG specific, but is related. What are good (or the 
standard) algorithms/data structures used for quick retrieval of vector 
data, like coastline data?






-
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] Wireframe, lines that do not scale

2006-02-13 Thread Peter Thompson
You can set the stroke-width to the inverse of the
scale, so the line doesn't get fat.  This isn't
perfect, but it may provide what you are looking for. 
This works in ASVG3 and Sqiggle (The green line gets
fat, the red line does not.)

?xml version=1.0 encoding=UTF-8?
svg xmlns=http://www.w3.org/2000/svg; width=100%
height=100%
desc
!-- Illustrates line scaling --
/desc
defs
script type=text/ecmascript![CDATA[
function SyncZoom()
{
var root = document.rootElement;
var scaleUI = 1/parseFloat(root.currentScale);
var obj =
document.getElementById(theseScale);
if (obj != null){
obj.setAttribute(stroke-width, scaleUI);
}
}
document.rootElement.addEventListener( SVGZoom,
SyncZoom, false );
]]
/script
/defs
g id=theseScale
line x1=100 y1=200 x2=300 y2=200
stroke=red/
/g
g id=noScale
line x1=200 y1=100 x2=200 y2=300
stroke=green/
/g
/svg



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


-
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] To achieve an effect

2006-02-03 Thread Peter Thompson
 In following page the English letter A is in a
 rectangle.  I need to replace it with  another
 letter, such as B or C, and switch back and forth. 
 Further, I need to have more than two letters to
 switch back and forth in the rectangle. 
 
 http://www.pinyinology.com/svg/letter.svg
 
 Wondering whether such an effect can be achieved
 with svg.

Yes.  There are several ways to do it, depending on
your requirements and the capabilitites of the browser
you are using.  For example, if you are using a
browser that supports SMIL (animation), you can have
the SVG just display a series of characters.  You can
also make it start displaying the characters when the
user clicks on the rectangle or moves the mouse over
the rectangle.  You could get that to work with SMIL
or Javascript.



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


-
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] can someone validate the code

2006-01-31 Thread Peter Thompson
How do you validate SVG without a DOCTYPE?  Is there a
problem with the DTD?

 Another reason not to use a DOCTYPE declaration. The
 version attribute is
 good. Leave it in and nuke the DOCTYPE instead. :-)
 


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


-
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] Visual Building Search

2006-01-31 Thread Peter Thompson
In case nobody responded to this ...
I consider visual building search to be an SVG
application.  There are case studies in the back of
SVG Unleashed that explain how to write three
different SVG applications, but not visual building
search.  The monitor and control chapter shows what's
involved for the hybrid raster-vector display (the
picture of the building with the dynamic text).  From
reading the case studies you would understand what is
invovled with building an SVG application.  I don't
know of a complete SVG application tutorial on the
web.

You can also view the source of the SVG in the Adobe
visual building search application to get hints or try
to figure the whole thing out for yourself.

--- Mitzie [EMAIL PROTECTED] wrote:

 I'd like to learn how to create SVG objects similar
 to the Visual 
 Building Search on adobe's website.  The URL is 
 http://www.adobe.com/svg/examples.html
 
 Does anyone know where I can find a tutorial which
 explains how this 
 is done? I downloaded illustrator but you can only
 create objects and 
 then save them as svg file type.  what's a good free
 svg editor and 
 how do you make it interactively explore as in this
 demo?
 
 Thanks.
 


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


-
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] can someone validate the code

2006-01-30 Thread Peter Thompson
The SVG file validates in XMLSpy when the version
attribute is removed from the SVG element, so that
line looks like this:
svg width=120mm height=40mm
xmlns=http://www.w3.org/2000/svg/

Your original SVG file displays in ASVG3 both with and
without the version attribute (ASVG3 does not complain
about the version attribute).

--- danfreno [EMAIL PROTECTED] wrote:

 i have a problem with importing this in coreldraw
 and i just wanted to 
 be sure that the file is correct, a supporter i
 mailed with told me 
 that there was an error Syntax error line 1,colum
 0 but i dont the 
 error myself
 
 ?xml version=1.0 standalone=no?
 !DOCTYPE svg PUBLIC -//W3C//DTD SVG 20001102//EN 
  

http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd;
 svg width=120mm height=40mm
  xmlns=http://www.w3.org/2000/svg;
 version=1.0
 g transform=scale(0.1)
   g style=font-family: Helvetica-Narrow;
   rect x=0mm y=0mm width=163.2mm
 height=49.6mm 
 stroke-width=0.1mm
 style=stroke:rgb(255,0,0);fill: none;/
   text x=83.2mm y=24.8mm text-anchor=middle 
 dominant-baseline=mathematical style=font-
 size:13.043478mm;GHGHGH/text
   /g
 /g
 /svg
 
 the problem is the dominant-baseline=mathematical
 
 


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


-
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] SVG/Ajax vs Flash/Ajax vs Java/Ajax or TCP/IP

2006-01-26 Thread Peter Thompson
I don't agree that SVG is the best solution without a
more complete list of evaluation criteria (it doesn't
have to be long, but probably longer than the 4 items
you listed) and how the various solutions compare. 
Two things that were on my list of evaluation criteria
when I was evaluating the use of SVG for a project
were:
1) The qualities of the human-computer interface. For
example, do the users need to zoom/unzoom?  If yes, is
the SVG-viewer pixel-replication zoom acceptable?  If
not, then you'll need to write Javascript to set the
line-widths, font-sizes, etc. to the inverse of the
scale.  The lines end up looking jagged, imo. 
2) The future of SVG.  You should consider how much it
will cost to develop an SVG-based solution with
respect to whether you want to invest that money when
the future of SVG is not very clear at this time.

I encourage you to try to develop a prototype of your
system using SVG.

Based on my experience, my answers to your questions
with regard to using an SVG-based solution are:
 1. learning curve (we have minimum experience in
Flash/Java, 0 SVG)
SVG is easy to learn to do simple things.  More
complicated things are harder to do (e.g., combination
of Javascript, SVG, plus possibly code on the server).
 Debugging can be difficult and development can be
error-prone and slow, especially if you need to work
in different browsers.

 2. existing widgets (gauges, charts...)
There may be useful stuff around, but you'll have to
find it.

 3. server load (I see SVG files are huge compared
to, example, *.swf;
 is there some form of include mechanics?)
I agree with Alastair, that you've mixed file size and
server (CPU) load here.  SVG is XML, which compresses
well, so file size itself may not be a problem.  I
haven't compared comparable svg, compressed-svg, and
swf file sizes.
Regarding the include question ... you can do some
including using XLINK to include other SVG or
javascript files.



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


-
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: Starting and Stopping Animation

2006-01-25 Thread Peter Thompson
Here is another example with pause/unpause animation:
http://svg-whiz.com/svg/PausePlay.svg

You can also start the animation when some event takes
place (e.g., the user clicks on an element).  I can't
point you to an on-line reference for this, but the
following fragment shows how you do this in SVG (no
Javascript required).  I know that it works in ASVG3;
I haven't checked other SVG viewers.

svg
...
animate ... begin=controlRect.click ... /
...
rect id='controlRect' ... '/
...
/svg


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


-
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: Starting and Stopping Animation

2006-01-25 Thread Peter Thompson
Yes.  You can do something like this:

text x=55 y=45 visibility=hiddentooltip
 set attributeName=visibility to=visible
begin=path7.mouseover/
 set attributeName=visibility to=hidden
begin=path7.mouseout/
/text
path id=path7 d=M50 50 L200 50 200 200
fill=none stroke=red/

The text displays when you move the pointer over the
path and disappears when you move the pointer off the
path.

The location of the text on the screen doesn't change.
If that is not the functionality you want, then I
think you need to write some Javascript, similar to:
http://svg-whiz.com/svg/Tooltip2.svg


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


-
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] Easy nooby question...svg

2005-11-22 Thread Peter Thompson
You can use the viewbox attribute on the svg element.

--- Jatinder [EMAIL PROTECTED] wrote:

 I have a svg document what is has very large
 dimensionsi.e my main 
  root svg tag is width 4000px and height
 5000px(approx..cant remember 
 the actual size)...in other words the whole thing
 has huge dimensions.
 
 The problem is that i have to give a preview of the
 svg on my weppage
 ...in an embed tag which is around 300x400.
 
 
 When i display/put the svg directly to the tag its
 soo large that i 
 have to zoom out a number of times before i can seen
 anything.
 
 Can you please tell me how to make my svg fit into
 the embed tag.
 
 
 
 
 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


 Yahoo! Groups Sponsor ~-- 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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: anti-aliasing problem

2005-11-22 Thread Peter Thompson
I think that you can get the effect you are trying to
get in ASVG3 by using rect statements like:

svg:rect x=21 y=0 fill=rgb(150, 150, 150)
width=3 height=3 /
svg:rect x=24 y=0 fill=rgb(200, 200, 200)
width=3 
height=3 /

That is, don't use opacity.  You'll need to figure out
the range of rgb values to get an acceptable
gray-scale for your application.






__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


 Yahoo! Groups Sponsor ~-- 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/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: Please help. How can I get width of text element?

2005-11-14 Thread Peter Thompson
The call getComputedTextLength() might be what you are looking for.  I know 
that it works on ASVG3 and Squiggle.

  
How can I calculate? if the width of leters is different. I want to 
find the width of the text for different browser. Thank you for your 
answer.




-
 Yahoo! FareChase - Search multiple travel sites in one click.  

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



 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/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] parseXML doesnt split up XML nodes

2005-10-17 Thread Peter Thompson
I think that you need to Response.write something like ?xml version='1.0'? 
after you set the content type but before Response.write mydoc.xml (to make 
what you send be a valid XML document).  I've only done this in Java, so I may 
not be correct for ASP.
 
Depending on your application, you may be able to test sendData.asp by 
accessing that page directly from the browser and seeing what is returned, if 
the browser can parse/display XML.



-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

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



 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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] invisible objects

2005-08-23 Thread Peter Thompson
You put ids on the elements or groups of elements that you want to show/hide. 
You can find the elements that you want to show/hide using the id when a menu 
item is selected.  You modify attributes to show/hide elements or groups of 
elements.  You can use either display, visibility, or opacity attributes.  See 
http://svg-whiz.com/svg/HideShow.svg for a working example of all three 
attributes.

chruschtschow64 [EMAIL PROTECTED] wrote:Hi there. 

I have a website containing a map exported from ArcGIS with 
mapviewSVG. The site contains a drop-down menu to choose, highlight 
and zoom to certain elements of the map. some of the elements in the 
are stacked and covering other elements. How do I have to manipulate 
the embedded SVG-file in order to achieve that the element chosen in 
the drop-down menu is visible and the others are hidden?




-
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click edit my 
membership
 



SPONSORED LINKS 
Format Data Svg Computer internet 

-
YAHOO! GROUPS LINKS 


Visit your group svg-developers on the web.
  
To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
  
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-




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

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



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hvqbutm/M=362329.6886308.7839368.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1124819124/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

-
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: invisible objects

2005-08-23 Thread Peter Thompson
Assuming that your drop down menus are coded using SVG, then you respond to the 
onmousedown event to capture the mouse click on an element.  You write your own 
code to handle the onmousedown event, like look up the element id(s) and change 
the visibility I mentioned previously.
 
If I have not answered your question and you post a small test file, maybe 
someone can look at it and answer your question.

chruschtschow64 [EMAIL PROTECTED] wrote:

I know the ID of the elements, but what I don´t know is the js-command 
in the document which makes th edocument react on the drop-down-menu. 
I´m pretty new to JS...
Maybe I could send you a small test project with the same problem?


-
 Start your day with Yahoo! - make it your home page 

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



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hsdft2b/M=362329.6886308.7839368.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1124825992/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

-
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] Newbie SVG Developer

2005-08-07 Thread Peter Thompson
Since you don't know SVG, I suggest that you try hand coding a few SVG files 
that contain a subset of the type of data/display you want.  In your case, a 
few simple schematics will do.  I suggest this because you need to understand 
what your program is supposed to produce if you are going to write that code.
 
You can write a C/C++ program that generates SVG using file I/O.   As you learn 
more about what you are trying to do, you may find needs/uses for the libraries 
suggested by Holger.
 


-
 Start your day with Yahoo! - make it your home page 

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



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12h6n96dd/M=362329.6886308.7839368.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1123447000/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

-
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] Loading SVG in a JSP

2005-07-28 Thread Peter Thompson
If I understand your question, this is what I suggest:  Lets assume that the 
main SVG file is created dynamically on the server using JSP.  Lets assume that 
you use the primary database key as the id attribute on the SVG objects that 
you want to detect and get more information about.

Lets assume that the SVG has been generated, loaded, and displayed.  When the 
user clicks on one of the objects, you can use get the id of the clicked object 
easily.  Then you can call a JSP on the server using getURL(), passing the id 
as part of url (e.g., http://www.yourserver.com/getData.jsp?id=abc123).
 
The getData.jsp function would get the id parameter, query the database, and 
return the results as plain text (or XML or whatever) to the callback function 
in the client, which would modify the DOM, causing the new data to be displayed 
in the main SVG display.
 

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

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



-
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] dtd

2005-07-12 Thread Peter Thompson
I can't answer that question, but if I were setting styles that don't change 
dynamically, I'd be use a style tag in a defs section, like:
 
defs
style type='text/css'
![CDATA[
.colorText {fill:darkcyan;}
.titleText {font-size:22;font-weight:bold;}
]]
/style
/defs
 
Why are you putting them in the DTD?


Erwan TROEL [EMAIL PROTECTED] wrote:
i try to create an external DTD:

the code of my svg:


?xml version=1.0 encoding=iso-8859-1?
!-- Creator: ESRI ArcMap 9.0.0.535 --
!DOCTYPE svg SYSTEM styles.dtd 
svg id=princip x=2 y=3  width=100% height=100%
onload=initMap(); onresize=resetFactors(evt); viewBox=0 0 1024 768
xmlns:a3=http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/;
a3:scriptImplementation=Adobe zoomAndPan=magnify



the code of my DTD:

!ENTITY colorText fill:darkcyan;
!ENTITY allText font-family:Helvetica;
!ENTITY titleText font-size:22;font-weight:bold;
!ENTITY subtitleText font-size:18;font-weight:bold;
!ENTITY headlineText font-size:14;font-weight:bold;
!ENTITY normalText font-size:12;
!ENTITY HistoText font-size:9;font-weight:normal;
!ENTITY legendText font-size:11;text-anchor:end;

it seems to find no DTD


-
 Sell on Yahoo! Auctions  - No fees. Bid on great items.

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



-
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] SVG Parser in VC++

2005-07-12 Thread Peter Thompson
SVG is just XML, so you are looking for an XML parser for C++.  Google for xml 
parser c++ and you'll quickly find the Xerces parser, which has been ported to 
Windows/VC++.  You can find other c++ parsers if you don't like that one.  
There is also MSXML.

P. Gnana Prakash [EMAIL PROTECTED] wrote:Hi all,

Right now we are developing drawing editor application. In this 
application, one of the requirement is saving and loading  the drawing 
in SVG format. Anyone please give me an idea about how to write the SVG 
parser or is there anybody already created the parser for this please 
send it to me.

Regards,
Prakash.



-
 Sell on Yahoo! Auctions  - No fees. Bid on great items.

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



-
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] dtd

2005-07-12 Thread Peter Thompson
You can use a stylesheet that can be applied to multiple files.  See 
http://www.w3.org/TR/SVG/styling.html for an example.  There is also an example 
on that page, so you can make sure that it works for your environment.  You 
can't reuse styles in a stylesheet, as Jerome pointed out.
 
Jerome, can you please point to a small example that shows using ENTITIES for 
styling, where the entities are declared in an external file?

 

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

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



-
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] panning a group of elements

2005-07-11 Thread Peter Thompson
You can pan or zoom any element or group of elements.  You can use something 
like this in you Up() function, which I assume is event driven, to pan the 
group of objects in the y direction:
 
obj=SVGDoc.getElementById(to-be-updated);
obj.setAttribute('transform','translate(0,' + change + ')'; 


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

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



-
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: panning a group of elements

2005-07-11 Thread Peter Thompson
You can pan as much as you want in any direction.  If you look at your code I 
think that you'll see that you aren't updating the translate variable 
correctly.  Put in alert() functions to display the translate variable before 
and after you modify it; you'll see what I mean.
 


-
 Sell on Yahoo! Auctions  - No fees. Bid on great items.

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



-
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: Big svg

2005-06-30 Thread Peter Thompson
There are too many elements, making it unable to display, or very slow.
 
I was able to display 365,000 rects in batik and deer park (mozilla nightly 
build with SVG enabled).  It takes a long time to display, and screen updates 
were very slow.  It would no be usable.
 
What are you really trying to do?  You probably aren't planning on looking at 
all 365,000 rectangles at the same time.  If you are, then you should probably 
should be be using a raster image.  Is there another way to solve the problem, 
like displaying only the rectangles that can be seen, and updating the DOM (via 
interactions with a web server) as the user pans?  Or if continguous rectanges 
are the same color, draw them as a single rectangle?

I also tried 1000 text elements, each with 365 characters (thinking that you 
could use a character that looks like a square) and that was also too slow.
 

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

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



-
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: open a new Browserwindow in SVG?

2005-06-03 Thread Peter Thompson
If it doesn't really have to be a browser window, you could display a new SVG 
rectangle with SVG text on it when your original rectangle is clicked, so that 
it looks like a browser window was openned.
 

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

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



-
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] correct way to write code that modifies DOM?

2005-05-25 Thread Peter Thompson
I started looking at Firefox with native SVG enabled.  The following 
file shows a few ways to modify a text element character data.  You 
click on the text item and it is modified.  Simple.  They don't all 
work in Firefox/SVG.

The programmer in me says just code it the way that works, but I am 
wondering:
1) What is the recommended way to code it that is least apt to break 
in the future?
2) In the cases that don't work, what is broken, Firefox/SVG or my 
code?


?xml version='1.0'?
svg xmlns='http://www.w3.org/2000/svg' width=500 height=400 
onload=init(evt)
defs
script
![CDATA[
var svgDoc;
function init(evt)
{
  svgDoc = evt.target.ownerDocument;
}
function onClick(evt)
{
  var element = evt.target;
  var id = element.getAttribute('id');
  switch (id){
case 'text1':  // works in Squiggle and ASVG
  element.getFirstChild().setData(hello);
  break;
case 'text2':  // works in Squiggle and ASVG
  element.getFirstChild().data = hello;
  break;
case 'text3':  // works in Squiggle and ASVG
  element.firstChild.setData(hello);
  break;
case 'text4':  // works in Squiggle, Firefox/SVG and ASVG
  element.firstChild.data = hello;
  break;
case 'text5':  // works in Squiggle, Firefox/SVG and ASVG
  element.firstChild.nodeValue = hello;
  break;
  }
}
]]
/script
/defs
g onclick=onClick(evt) fill=green font-size=18
  text id=text1 x=20 y=100 element.getFirstChild().setData
(hello)/text
  text id=text2 x=20 y=150 element.getFirstChild().data 
= hello/text
  text id=text3 x=20 y=200element.firstChild.setData(hello)
/text
  text id=text4 x=20 y=250element.firstChild.data 
= hello/text
  text id=text5 x=20 y=300element.firstChild.nodeValue 
= hello/text
/g
/svg





-
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: correct way to write code that modifies DOM?

2005-05-25 Thread Peter Thompson
Are any of the SVG books being updated to reflect the new/correct way 
to code DOM access using Javascript?






-
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] getBox() failing during onload

2005-05-25 Thread Peter Thompson
When I run the following test file in ASVG3 and Squiggle, the 'click 
here' text is blue.  When I run it in Moz/SVG the 'click here' text 
is red and there is an error in the JavaScript console indicating 
getBBox() is generating an exception.

I know that getBBox() works in all 3 environments, because if you 
click on the text the bbox is read and the returned x value is 
displayed.

Which is functioning correctly, ASVG3 and Squiggle or Moz/SVG?

Is there a better solution than a timer hack to be able to use the 
results of getBBox() during initialization in all three 
environments?  I think that I've read about a problem like this, but 
can't find that discussion.


?xml version='1.0'?
svg xmlns='http://www.w3.org/2000/svg' width=500 height=400 
onload=init(evt)
defs
script
![CDATA[
function init(evt)
{
  var svgDoc = evt.target.ownerDocument;
  var element = svgDoc.getElementById('t1');
  element.setAttribute('fill', 'red');
  var bbox = element.getBBox();
  element.setAttribute('fill', 'blue');
}
function onClick(evt)
{
  var element = evt.target;
  bbox = element.getBBox();
  element.firstChild.nodeValue = bbox.x =  + bbox.x;
}
]]
/script
/defs
g onclick=onClick(evt) fill=green font-size=18
  text id=t1 x=20 y=100click here/text
/g
/svg






-
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] Plotting Latitude and Longitude on an SVG map - how it was done

2005-05-19 Thread Peter Thompson
If you use a projection and write the lines using a path with relative moves, 
so they look something like this:
 
path d='m-1172,-135h1v-2h5v-1h-4h-1v1h-1v1h-2v1h-1v1h .../
 
the resulting SVG file for north america is less than 400KB, uncompressed.
 
 

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

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



-
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: Plotting Latitude and Longitude on an SVG map

2005-05-19 Thread Peter Thompson
Thanks for the information about spidering hacks.
 


-
Yahoo! Mail Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.

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



-
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: Plotting Latitude and Longitude on an SVG map

2005-05-18 Thread Peter Thompson
Matt,
 
If you can, please tell us how you convert post office addresses to 
latitude/longitude.
 
Peter
 

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

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



-
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: getURL() problem

2005-05-04 Thread Peter Thompson
There are no attributes in that XML document.  The following fragment returns 
the letter 'u' from the XML document:
 
 x=xmldoc.childNodes.item(0).childNodes.item(0).firstChild.nodeValue;
 

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

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



-
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: Creating User defined DOCTYPE by xslt

2005-05-04 Thread Peter Thompson
Jim,
 
I understand about the DTD not being useful to the renderer, but what other 
ways are there to validate SVG besides validating with an XML parser using the 
DTD?
 
Peter

 

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

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



-
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] setAttribute(display,block) doesn't work in javascript function

2005-05-04 Thread Peter Thompson
I looked at this the first time that you posted it.  I think that there is some 
interaction between the declarative set attribute and the Javascript set 
attribute, but I don't know for sure and can't explain it (maybe someone who 
really understands this will comment).  If it were me, I'd remove the 
declarative set attribute tags and just use Javascript to do what I wanted.
 

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

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



-
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] setAttribute(display,block) doesn't work in javascript function

2005-05-04 Thread Peter Thompson
Thanks.  That is exactly what I didn't know.

 

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

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



-
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: getURL() problem

2005-05-03 Thread Peter Thompson
In the servlet, write the parameters to the response object in a format you can 
parse (e.g., XML, comma-separated values, whatever) then parse the data you 
receive in the callback function.

derguteonkeldod [EMAIL PROTECTED] wrote:
Thank you so much, Rick.
I'm a bit embarassed.
The id in the servlet was an int!
Now it works.

By the way: in the servlet I do a 'select' on a database. Then I get
about 5 parameters which I want to pass to the callback-function in
the javascript. Do you know how to do this?


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

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



-
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: getURL() problem

2005-05-03 Thread Peter Thompson
Set the content type, like you did, get an output stream, and then print.
 
ServletOutputStream out = response.getOutputStream();
out.print(para1|para2|para3|para4);
out.flush();  // don't know if you really need this ...

derguteonkeldod [EMAIL PROTECTED] wrote:
Which Java method sends back the parameters? sendRedirect? Like:

res.setContentType(text/plain);
res.sendRedirect(para1|para2|para3|para4);

?


--- In svg-developers@yahoogroups.com, Peter Thompson
[EMAIL PROTECTED] wrote:
 In the servlet, write the parameters to the response object in a
format you can parse (e.g., XML, comma-separated values, whatever)
then parse the data you receive in the callback function.
 
 derguteonkeldod [EMAIL PROTECTED] wrote:
 Thank you so much, Rick.
 I'm a bit embarassed.
 The id in the servlet was an int!
 Now it works.
 
 By the way: in the servlet I do a 'select' on a database. Then I get
 about 5 parameters which I want to pass to the callback-function in
 the javascript. Do you know how to do this?
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 [Non-text portions of this message have been removed]





-
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 the Yahoo! Terms of Service. 


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

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



-
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: SVG Java servlets

2005-04-28 Thread Peter Thompson
There are lots of people here who can explain this.
 
Generally, SVG and JavaScript are both running in a browser on a client.  SVG 
communicates with JavaScript via events.  JavaScript updates the DOM, which is 
the in-memory representation of the SVG.  See this link for a working example 
of JavaScript/SVG interaction:
http://www.w3.org/TR/SVG11/script.html#EventHandling
 
The Java Servlets run on a web server that supports servlets (e.g., Tomcat).  
The client JavaScript that is embedded in the SVG can communicate with a 
servlet via getURL() and postURL() calls.  For example, the client can call 
getURL(url, callback) to execute the doGet() function in a servlet.  In Tomcat, 
the url is mapped to the servlet via the web.xml file.  The doGet() function on 
the server returns a result to the client, which causes the callback function 
on the client to be called.  The callback function parses the results and 
updates the DOM, causing the display to be updated.
 
getURL() and postURL() are supported by the Adobe SVG and Batik viewers, but 
not all viewers.  
 
I don't know of a link that explains in detail with examples the 
servlet-JavaScript interaction (maybe someone else can provide this).  If you 
know how to do servlets on your web server, then getting them to work with 
client JavaScript and SVG isn't difficult.
 

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

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



-
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] personalized line endcaps

2005-04-20 Thread Peter Thompson

Are you talking about the style stroke-linecap with possible values: butt, 
round, and square?


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

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



-
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] Update Project What do you think about

2005-02-25 Thread Peter Thompson

I don't see anything using ASVG3.02 in Windows.

Burkhard Stollenwerk [EMAIL PROTECTED] wrote:Hello,

Could you have a look at my project.
What do you think about?

www.futurefarm.de/
 http://futurefarm.de/kuh2005/svgkuh.svg

Burkhard Stollenwerk

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



-
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 the Yahoo! Terms of Service. 




-
Do you Yahoo!?
 Yahoo! Mail - 250MB free storage. Do more. Manage less.

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



-
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] SVG Element

2005-02-04 Thread Peter Thompson

It is a DOCTYPE declaration.  Paraphrasing from SVG Unleashed, a document type 
definition defines the permitted structure of an SVG document, and, you may not 
need the DOCTYPE declaration if, for example, your browser recognizes an svg 
file by the file extension.  It also states that it is wiser to include the 
DOCTYPE declaration.
 
I know that you don't need it for svg files that are displayed in ASVG3 in IE.  
If you are using a validating editor (e.g., XMLSpy) you will definitely want to 
use the DOCTYPE.

I'd keep the DOCTYPE.
 


-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

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



-
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: servlet and getURL()

2005-02-04 Thread Peter Thompson


This was discussed here not too long ago, so it should be easy to 
find the thread.  The consensus was that you couldn't expect to be 
getting data via getURL() more than a few times a second.

It doesn't mean it can't be done, just not the way that you 
suggested.  If you want to use getURL(), you could accumulate the 
sensor data on the server and send it down in chunks.






-
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] SVG validation question

2005-01-25 Thread Peter Thompson


Thanks for the response.  The following fragment validates.  If there is a 
better way to do this, please let me know.

-

?xml version=1.0 encoding=UTF-8?
!DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.0//EN
http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd; [
!ATTLIST svg onkeydown CDATA #IMPLIED
]
svg width=100% height=100% onkeydown=press(evt)
 xmlns=http://www.w3.org/2000/svg;
rect width=100% height=100% fill=blue/
/svg



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

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



-
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] SVG validation question

2005-01-24 Thread Peter Thompson


The following code does not validate.  XMLSpy indicates the element 
has no declaration for an attribute named 'onkeydown'.  What do I 
need to do to get the 'onkeydown' to validate?

-
?xml version=1.0 encoding=UTF-8?
!DOCTYPE svg PUBLIC -//W3C//DTD SVG 1.0//EN
   http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd;
svg width=100% height=100%
rect width=100% height=100% fill=blue  onkeydown=press(evt)/
/svg






-
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] Simple SVG Strip Chart Display

2005-01-21 Thread Peter Thompson

 Does anyone know if I can get my hands on an example of a SVG strip?

Try this link: http://www.zuccaralloo.de/devgroup/content.php 
and look at the dynagraph sample.

 


-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

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



-
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] Clickable Line Chart without Markers

2005-01-18 Thread Peter Thompson


 Is there any method to create clickable (to call JavaScript function) SVG 
 line chart WITHOUT using the markers? 


Any object can respone to mouse events associated with clicking.  The mouse 
events associated with clicking include click, mousedown, and mouseup.


 



-
Do you Yahoo!?
 Yahoo! Mail - now with 250MB free storage. Learn more.

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



-
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] create your own font question

2005-01-18 Thread Peter Thompson

Thanks.  I assumed that it was something simple.  When I got your response, I 
was just going to write that when I use the following code, it works as I 
expected.  I added fill=none and stroke=black to the text element.  Now I 
get two different types of empty rectangles, which is explained by the fill 
rule that you referred me to.
 

?xml version=1.0?

!DOCTYPE svg PUBLIC -//W3C/DTD SVG 20010904//EN

http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd;

svg xmlns=http://www.w3.org/2000/svg; width=100% height=100%

descGlyph Test/desc

defs

font horiz-adv-x=959

font-face font-family=FakeFont units-per-em=2048=1835 descent=-597 
alphabetic=0/

missing-glyph horiz-adv-x=2048 d=M256

V1536H1792V0H256ZM384 128H1664V1408H384V128Z/

glyph unicode=A horiz-adv-x=2048 d=M256

V1536H1792V0H256ZM384 128H1664V1408H384V128Z/

glyph unicode=B horiz-adv-x=2048 d=M256

V1536H1792V0H256Z/

/font

/defs

text font-family=FakeFont stroke=black fill=none style=font-size:20 
x=100=100ABCDE/text

/svg




-
Do you Yahoo!?
 The all-new My Yahoo! – Get yours free!

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



-
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: real time data publishing using servlets

2005-01-14 Thread Peter Thompson


From SVG Unleashed, page 1018: Setting a rate below 500 ms will not gain much 
because this is about the average response time of the getURL function.

Just another recommendation for calling getURL a few times a second, at most.

 

 



-
Do you Yahoo!?
 The all-new My Yahoo! – Get yours free!

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



-
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: Expanding and collapsing sections of bargrap hs using SVG - Can it be done?

2004-12-08 Thread Peter Thompson

The following code displays a hierarchy of rectangles that can expand/collapse. 
 You can click on a rectangle with children to hide/show the children, 
expanding and contracting the tree as required.  The groups provide the 
hierarchies.  I've only run it in ASVG3.
 
?xml version=1.0?
svg  xmlns=http://www.w3.org/2000/svg; width='100%' height='100%' 
onload=init(evt)
g id=tasks onmousedown=mouseClick(evt)
  rect x=5 y=5 width=200 height=20 style=fill:blue/
  rect x=5 y=5 width=200 height=20 style=fill:blue/
  g
rect x=5 y=5 width=200 height=20 style=fill:blue/
rect x=5 y=5 width=200 height=20 style=fill:blue/
  /g
  rect x=5 y=5 width=200 height=20 style=fill:blue/
  rect x=5 y=5 width=200 height=20 style=fill:blue/
  rect x=5 y=5 width=200 height=20 style=fill:yellow/
  g
rect x=5 y=5 width=200 height=20 style=fill:blue/
g
  rect x=5 y=5 width=200 height=20 style=fill:blue/
  g
rect x=5 y=5 width=200 height=20 style=fill:blue/
  /g
/g
  /g
  rect x=5 y=5 width=200 height=20 style=fill:blue/
  rect x=5 y=5 width=200 height=20 style=fill:red/
/g
script
![CDATA[
var offsetY = 0;
function init(evt)
{
  refresh(svgDocument.getElementById(tasks) ,0);
}
function mouseClick(evt)
{
  var obj=evt.target.getNextSibling();
  if ((obj != null)  (obj.nodeName==#text)) {
obj=obj.getNextSibling();
if ((obj != null)  (obj.nodeName==g)) {
  var attr = obj.getAttribute(visibility);
  if (attr == hidden){
obj.setAttribute(visibility, );
  }
  else{
obj.setAttribute(visibility, hidden);
  }
  offsetY = 0;
  refresh(svgDocument.getElementById(tasks) ,0)
}
  }
}
function refresh(objGroup, level)
{
  var layer=objGroup.childNodes;
  var num=layer.length;
  for (var ix=0; ix  num; ix++)
  {
var obj=layer.item(ix);
if (obj.nodeName == rect) {
  offsetX = level * 40;
  var transform = translate( + offsetX +   + offsetY + );
  obj.setAttribute(transform, transform);
  offsetY = offsetY + 30;
}
else if (obj.nodeName == g) {
  if (obj.getAttribute(visibility) != hidden){
refresh(obj, level+1);
  }
}
  }
}
// ]]
/script
/svg

 


-
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.

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



 Yahoo! Groups Sponsor ~-- 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/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: Expanding and collapsing sections of bargrap hs using SVG - Can it be done?

2004-12-04 Thread Peter Thompson


Patricia - It sounds like you are displaying a Gantt chart.  I like 
Philip's first suggestion, perhaps because I haven't used glyphs.  I 
assume that you have a tree data structure somewhere with the 
parent/child relationships between the task/subtasks.  I'd use that 
to build a corresponding tree in SVG, then change visibility and the 
translate transform for each expand/contract.

Doug - Are you saying don't use the glyph idea or don't do the 
expanding/contracting bargraph?






 Yahoo! Groups Sponsor ~-- 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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] Zoom without pixel replication

2004-12-03 Thread Peter Thompson

Thanks for the response.  I'll see what I can do with the fonts
 


-
Do you Yahoo!?
 Dress up your holiday email, Hollywood style. Learn more.

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



 Yahoo! Groups Sponsor ~-- 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/