JSVGEditor and presentation program available

2004-03-31 Thread Bibek Sahu
Hello Everyone, Over the past year, the Global Circle of Knowledge project has spent a lot of time developing and building an open-source "Lesson Builder Program" -- essentially a presentation program designed around Batik/SVG. One of the core components of that is a SVG Editor component built a

Re: how to associate DOM element w/ MouseEvent?

2004-03-31 Thread Bibek Sahu
Howdy, If I'm understanding you correctly, you'd want: Element elem = ;// DOM Element EventTarget target = (EventTarget) elem; // works with almost all SVGElements target.addEventListener(new EventListener() { ... }); The relevant event c

Re: Drawing a text in a SVG document

2004-03-31 Thread Tonny Kohar
Hi, > Value from > the html form > > - using the DOM implementation > Element svgRoot = document.getDocumentElement(); > Element texteElmt = document.createElementNS(svgNS, "text"); texteElmt(null, "x","10"); texteElmt(null, "y","40"); texteElmt(null, "style,"stroke:none;"); Text text = docume

can't reload svg file contents....

2004-03-31 Thread Stuart McMahon
hi, I'm trying to reload the contents of a file which change dynamically. i.e. a server modifies the svg file content and the user interface must reload the file to show these changes (same url). However, the old svg is more often that not displayed. How do I force JSVGCanvas to display the content

Re: Poor quality results rasterizing SVG images (Samples attached).

2004-03-31 Thread John Parisi
Hi again, You made a good point .. I didn't think to try viewing the image with Batik. As expected, it looked the same in Squiggle as the PNG output did in my browser (not good). Since I'm unable to choose how my source SVGs are composed, I'm not really going to be able to do anything about the p

how to associate DOM element w/ MouseEvent?

2004-03-31 Thread George Armhold
Hi, I'm working on what is essentially a whiteboard-like drawing app. I'm using a JSVGComponent, adding elements to the DOM in response to mouse clicks. I also have a SVGUserAgentAdapter extension that launches a web browser when links are clicked. Both link-clicking and drawing are left-mouse