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,
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.
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
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
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
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:
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
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
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
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
--- 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
--- 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!
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
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
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
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
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
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
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
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
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?
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
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
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
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
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 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
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
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.
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
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
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
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
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
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
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]
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,
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 + ')';
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.
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
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!
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
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
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,
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.
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
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
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
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
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
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
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
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
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
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
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
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
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(),
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
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
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'
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.
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
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
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
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
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
67 matches
Mail list logo