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,

[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.

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

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

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

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:

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

[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

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

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

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

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!

Re: [svg-developers] SVG world maps

2006-05-11 Thread Peter Thompson
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

[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

[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

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

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

[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

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

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

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?

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

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

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

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

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

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

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

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.

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

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

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

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

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

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

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]

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,

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 + ')';

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.

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

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!

[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

[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

[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,

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.

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

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

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

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

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

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

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

Re: [svg-developers] Re: getURL() problem

2005-05-03 Thread Peter Thompson
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

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

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

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

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

[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(),

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

[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

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'

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.

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

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

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

[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

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