Re: [svg-developers] Re: use tag and unique IDs
Sean, It can be done, it just has to be done differently in each browser. Try this code inside of your event: var target = evt.target; var use = null if (target == null) return; if (target.correspondingUseElement) use = target.correspondingUseElement; This is a sure way to get the use element from the target (in case it is not correctly returned as an SVGElementInstance). The correspondingElement property is not itself reliable (because of inconsitent implementation interpretations). Once you have that you should be able to access use.instanceRoot, use.animatedInstanceRoot (less reliable) From that you should get a reliable SVGElementInstance on which you can use the correspondingElement property. Additionally you should be able to use read only DOM properties. See http://www.w3.org/TR/SVG/struct.html#InterfaceSVGElementInstance Also, once you have the use element, you can simply follow the link specified in the URI reference or simply lookup the referenced element by the specified ID. Cheers, Jeff Rafter Sean wrote: I can get the use tag, I want to be able to navigate the use tag. I have the use referencing a g tag with several elements under the g tag. I want to be able to navigate those elements. I'm coming to the conclusion that it can't be done. Sean Peter Kalev wrote: Why don't you wrap the use element in a g id=, search for the g and then look for the use inside the g... Works fine for me... Peter Kalev Senior Developer, SWF, LLC -Original Message- From: Sean [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 11:21 AM To: svg-developers@yahoogroups.com Subject: Re: [svg-developers] Re: use tag and unique IDs I should say navigate the use element. I realize that it is read only, but I can't figure out how to do that. Thanks. Sean wrote: Does any one have examples of using SVGUseElement SVGElementInstance? Thanks. Sean Sean wrote: Hi Alastair, Thanks for the input. I figured as much with the id, but getElementByName didn't work either. I was hoping that something would work. I tried the childNodes and firstChild, but nothing works. objet.childNodes.length returns 0, which appears to mean that the child nodes under the use tag don't get recognized, rendering the approaches below useless, no pun intended. My failure to get the use tags to work would mean the difference between using 35,000 tags and 210,000 tags. I have quite the incentive to make it work. Thanks. var objet=evt.target; alert(objet.childNodes.length); var child = objet.firstChild; i=0; while(child != null){ childSibling = child.nextSibling; alert(child.nodeType); child = childSibling; } Sean Alastair Fettes wrote: You've made a fundamental mistake. 1. The idea behind a defs section is to resuse (have multiple copies) of an definition. 2. The idea of an ID attribute is to only have one attribute with a specific value document wide (see xs:ID type - http://www.w3.org/TR/xmlschema-2/#ID). So therefore you have a fundamental mistake. The defs section and the id invalidate each other. The only thing you could (possibly) do would be to getElementById( useFrame2 ).childNodes.foo.bar to get the tspan. Maybe, i don't guarantee it. Alastair --- In svg-developers@yahoogroups.com, Sean [EMAIL PROTECTED] wrote: I would like to use the use tags to save much text size as below. Problem is grabbing and editing data with onclick events. The id for my tspan would always be the same, but they would be used in different use tags with unique IDs. Is there a way to isolate say the tspan1 under useFrame2? SVG defs g id=textFrame cat=textBox text cat=textBox font-size=14 font=sans-serif tspan id=tspan1 cat=textBoxText/tspan/text texttspan visibility=hidden id=tspan2/tspan/text /g /defs use id=useFrame onclick=edit2(evt); xlink:href=#textFrame transform=translate(10,25)/ use id=useFrame2 onclick=edit2(evt); xlink:href=#textFrame transform=translate(10,50)/ JS function edit2(evt){ var objet=evt.target; var tspan1 = objet.getElementById(tspan1); //Doesn't work } Thanks! Sean -- I'd rather have a bottle in front of me, than a frontal lobotomy. -- Tom Waits - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my
Re: [svg-developers] Re: IE7 / SVG/ASV3
kggsystem wrote: Wow, that was fast! IE7 Beta 2 was only released yesterday. Has anybody tried SVG (ASV 3) on IE 7 Beta 1? I tried it and couldn't get the ASV control to site. Also I am sitting in a Windows Vista (longhorn) training session trying to drop the SVG Control on a VB Form and hook it's SRC property up to a SVG file sitting on my desktop. It doesn't seem to work. Anybody played with SVG on Vista betas That didn't work properly in XP / 2000 / 98 either... It may be the same error though I suspect not-- but it is nothing new. It would work in some situations but generally it did not. Jeff - 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] Corecting Javascript for Firefox
This is getting confusing. Anyway I've tried the following combinations: return evt.currentTarget.ownerDocument return evt.target.ownerDocument return evt.target.ownerDocument.documentElement return evt.currentTarget.ownerDocument.documentElement BTW, if you are using use elements and the event is for one of the use elements then you may need to change your code slightly. To be technically correct you should be getting back an EventTarget interface implemented by either SVGElement or SVGElementInstance. SVGElementInstance has no .ownerDocument property. Ideally you could write pperfectly cross-browser code here, but the problem is that ASV3 has a bug (which ASV6 and Firefox do not have). I use the following test (though some say this could cause an exception in some environments): var el = null; if (evt.target.correspondingUseElement) el = evt.target.correspondingUseElement; else el = evt.target; var doc = el.ownerDocument; This is in general pretty safe. As for the other property, which is correspondingElement... just ignore that property... nobody implements it the same. These all work with ASV but not Firefox. That's assuming that Firefox isn't having problems with something else. Is this acceptable? : Doc.getElementById(Target).getStyle().setProperty(display, none) I would separate out these calls. There is a good chance that getElementById is returning null. ID-ness in Firefox is a strict thing-- you must have a DTD in force (which is correct)-- ASV and most everyone else cheats and makes assumptions about the document structure if no DTD is in place. Because of this you may have to actually build up the set of ids yourself and use them. If you need an example of this, take a look at Doug Schepers' SMILScript function getElementByAttName (I think). Merry Christmas, Jeff Rafter Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/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] getBBox() oddity in Firefox ?? [was Screen extents]
Also, the problem with the target is that you are using use elements. The target object may or may not change depending on the implementation. In general it is supposed to return an SVGElementInstance... not an SVGElement. ASV 3.x does it wrong and FF does it right. (They do other silly things though... but I guess they are only silly depending on how you interpret the spec...). So do something like: psuedo code: var el; if (evt.target.correspondingUseElement) el = evt.target.correspondingUseElement; else el = evt.target; The correspondingElement property is where things get fuzzy. Cheers, Jeff Rafter david dailey wrote: At 12:03 PM 12/13/2005, I wrote: I have sometimes noticed troubles using getBBox() in Firefox, but I went looking back through some previous messages and discovered that others had indeed talked about the problem I reported. Sorry for rehashing old news. Perhaps someone will like the solution of waiting 'til the mouse moves to do the screen measuring, though it could be that the recent discussion of screen extents provides a better solution -- I read that to deal more with the size of object rendered off-screen than of on-screen content, and confess I didn't follow it very carefully. David - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/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] Any Help on SVG Viewer for Win Form Based VB.Net Application !!!
SharpVectorGraphics is a .NET based viewer with quite a bit of functionality. It is not as fast or robust as some of the more established implementations. http://sf.net/projects/svgdomcsharp Cheers, Jeff Rafter Prerak V. Shah wrote: Hi All, These days, I am going to develop application which required SVG Image Viewer in my Form of Vb.Net Application which is just a stand alone app and not going to run on any other client or web. I have already found a way with Web-Browser IE Control but I don't want to use it. Is there any other viewer control available?? Plz. Let me know as soon as possible as its urgent. Regards, Prerak V. Shah - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 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] Hi all. How can I get version SVG viewer using JavaScript?
Hi all. How can I get version SVG viewer using JavaScript? By downloading one? This question is exceedingly vague. Batik, Firefox, Adobe, SharpVectorGraphics, Ksvg, Ksvg2 are just some of the freeware ones. I am sure that there are others. But I have no idea what platform(s) you are targeting, whether or not you want a control or browser, editor ability, etc. All the best, Jeff Rafter 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] Hi all. How can I get version SVG viewer using JavaScript?
How can I find out the version of the SVG viewer my svg is being viewed through using javascript? Personally I'd also like to be find what viewer i'm using (ie FF, ASV etc.)? Also as feature detection is better than browser detection does any one have any examples that use hasFeature successfully. Aha, I see I was misreading-- sorry for my curt reply. Viewer/browser detection is pretty tough to get exactly right, but you can get close-- here are some of the basics (stolen from Doug Schepers' SMILscript): try { if ( -1 != getSVGViewerVersion().indexOf('ASV') ) { return; } } catch(er) {} This will raise an exception in Firefox because getSVGViewerVersion does not exist. In Adobe it will return various version strings containing 'ASV'. I am not sure how to test this in Opera and Batik. I can look into that if needed. Cheers, Jeff Rafter 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] SVG to PDF or Printable Press Solution
There are several solutions, one of which is to utilize XSL:FO. I think Batik (Java) supports this, and on .NET you could use RenderX. Of course there are other solutions as well: you could install a specialized print driver and print directly from SVG controls (e.g., SharpVectorGraphics new alpha can paint directly to a printer canvas using GDI commands-- resulting in ultra high resolution prints). Cheers, Jeff Rafter dperschonok wrote: Hi everyone, My company currently uses SVGs on our website for dynamic product creation. Once the product is created we have a long drawn out process of taking these files and making them printable. I was just wondering if there are any solutions out there to easily convert an SVG to either a PDF or some sort of other printable format that is print press quality. I tried using Adobe Graphics Server but it fails to meet our needs because it doesnt convert everything properly. I was also told by an Adobe rep that the PDFs it produces wont be that of print quality. So if anyone has any suggestions for me I would greatly appreciate. Oh and ideally this would be something I could do programmatically using my programming language of choice. - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 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] SVGElementInstance
The SVGElementInstance tree is a read-only DOM approximation. So you wouldn't really manipulate the instances. Instead you would use the correspondingElement property [1] to get to the actual node in the tree of nodes pointed to by the use. Note: changing *that* node would be reflected in all components that use it. In general you will encounter SVGElementInstance objects when an event is attached via a use. The target will be an SVGElementInstance and not an SVGElement (though both are IEventTargets). [1] http://www.w3.org/TR/SVG/struct.html#InterfaceSVGElementInstance All the best, Jeff Rafter Erwan TROEL wrote: je lis dans la spec w3c: Pour chaque élément 'use', le DOM de SVG maintient un arbre compagnon (l'« arbre des instances ») d'objets de type SVGElementInstance. Un objet SVGElementInstance représente un seul noud dans l'arbre des instances. L'objet racine de cet arbre est désigné par l'attribut instanceRoot de l'objet SVGUseElement de l'élément 'use' correspondant. comment fait on en javascript pour acceder manipuler cet arbre compagnon? [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 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] using SVG image in .net...Query
SharpVectorGraphics is a native .NET implementation. There is a sample viewer application written in C# but it should give you a good start: Download: http://sourceforge.net/project/showfiles.php?group_id=46621 Summary Page: http://sourceforge.net/projects/svgdomcsharp/ Mailing list: http://lists.sourceforge.net/lists/listinfo/svgdomcsharp-developers Cheers, Jeff Rafter amol rakh wrote: hi all... i m a new member of this grup... I have one query I am currently working on SVG I want to dispaly SVG image in vb.net I want to integrate the any SVG viewer control into a VB.NET application Is there any SVG related control available in .net to do this??? Ineternet explorer allows to dispaly the SVG image If it is possible for me to use internet explorer control in vb.net then i can display the SVG image in .net thru internet explorer ( i don't know how to use inetrnet explorer control in .net do any one know how to do this???but i am serching for a special SVG related control instead of IE control ... last choice is IE) Do any one have any sample .net application which displays the svg image...?? If yes then plz try to send it to me ASAP... tanx in advance... Regards, AmolR - Yahoo! FareChase - Search multiple travel sites in one click. [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 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/
[svg-developers] SharpVectorGraphics (aka SVG#) releases 0.4 alpha
SharpVectorGraphics (aka SVG#), the C# SVG implementation has released a new alpha version available at SourceForge. Some of the new features and enhancements from v0.3.1 include: * Interactivity * Events * Rendering Updates * Rendering to HDC * Scripting * Source Code Reorganization * Improved use support * Improved Coordinate Handling *Warning: This project now contains unsafe code blocks to support image transparency and hit testing, additionally, security models for scripting support is still under development. This release is fairly complete for single-pass rendering, however scripting and interactivity updates will demonstrate bugs in masking and invalidation. Please give it a try and report findings to the svgdomcsharp-developers mailing list on the project page (make sure you subscribe to the list). 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] SharpVectorGraphics (aka SVG#) releases 0.4 alpha
Looks like the links got stripped from the last email: Download: http://sourceforge.net/project/showfiles.php?group_id=46621 Summary Page: http://sourceforge.net/projects/svgdomcsharp/ Mailing list: http://lists.sourceforge.net/lists/listinfo/svgdomcsharp-developers Yahoo! Groups Sponsor ~-- AIDS in India: A lurking bomb. Click and help stop AIDS now. http://us.click.yahoo.com/VpTY2A/lzNLAA/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# documentation or tutorial
Wait. Absolutely wait. As far as tutorials go, sadly there are none that I know of. I know that NDoc can be run against the source code and that will give you some clues. But in general that won't get you very far. I have a couple of sample projects and there is a good sample application in the SvgViewer... In terms of connecting events and such inside C# it is not very straight forward but there are samples. As you get specific questions I will be happy to help. I have been working a ton on scripting support and almost have to an alpha stage. I might do an 0.4 alpha release at that point. Glad to see the interest though! Jeff simjobe wrote: Hi, I'm pretty new to svg but I'm interested in developing an SVG application using SVG#. I know Jeff Rafter is currently working very hard on SVG#. My problem is that I cannot find any documentation or tutorials about SVG#. This makes it very difficult for a newbie like me to get started, especially as C# is new to me as well. Of course I could try to find out everything by myself but it will take me ages to do that. Does anyone know where to find documentation? A specific question for Jeff (If he reads this): With all the changes you made recently, would it be better to wait for a new build before using SVG# or can it be used in its current form? 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 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: Manipulating the Dom with SVG#
The line el.SetAttribute(fill, blue); didn't work in my program. IElement didn't even provide the method set Attribut(). This indicates that you may not have the latest version... You may still need an Invalidate call in there or an Update call-- I don't remember. This is the stuff (along with scripting) that I currently have in my trunk so it is hard to remember what is committed or not (I am a bad developer I know!) Does SharpVectors really support animation or is this a hint that I don't have the newest SharpVectors release. No, there is currently no support for animation in SVG#. Maybe in the next couple of months. Right now the priority is to get a release out with the new Rendering updates and Scripting updates. There is also quite a lot checked in to patch the event model... so this will be a huge improvement on the existing release... soon I hope. Cheers, Jeff Thank you Olli --- In svg-developers@yahoogroups.com, Jeff Rafter [EMAIL PROTECTED] wrote: Hi Olli, Access mySvgPictureBox.Window.Document. Then you can do all of the things you normally would. For example: ISvgDocument doc = mySvgPictureBox.Window.Document; IElement el = doc.getElementById(foo); if (el != null) el.SetAttribute(fill, blue); Also, make sure you are using the CVS version... a new release is pending as well based on the CVS version. Cheers, Jeff Rafter mailinatorolli wrote: Hello, i'm trying to write an application in C# using SVG# and i have no experience with C# and VisualStudio. Im displaying a simple SVG-Graphic (wich shows only a red circle) in a svgPictureBox. Now I want the circle to change his colour after clicking on a System.Windows.Forms.Button. How can I access the Dom of the SVG-Graphic shown in the svgPictureBox and manipulate certain elements in the dom (if this is the right way to do it)? What must I do? Pleas help!! Thanks Olli - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links 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] Anchor in SVG - Atul
Atul, What is your target browser-- I think maybe Firefox could get close to displaying this but it would need some help. (1) Your result is a mixed HTML and SVG document... which is okay... but I would avoid including a DOCTYPE in such a case. Also, the SVG is not rendering as SVG per se... it is simply letting the CSS apply to the text like a freely styled vocabulary. With that said, I bet you could do a very nice fallback for older browsers using this approach... For those of you that didn't run the transform, this is the output: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE html PUBLIC -//W3C//DTD SVG 1.1//EN http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; html xmlns:xlink=http://www.w3.org/2000/xlink/namespace/; xmlns:svg=http://www.w3.org/2000/svg; head object id=AdobeSVG classid=clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2 /object ?import namespace=svg implementation=#AdobeSVG? /head body svg:svg width=100% height=100% viewBox=0 0 1024#xA;768 zoomAndPan=enable a xlink:href=http://www.google.com; svg:rect x=3 y=6 width=193 height=37 style=fill:rgb(0,0,255);stroke:rgb(0,0,0);stroke-width:1 / svg:text x=26px y=17px transform=translate(13#xA;12) style=fill:rgb(0,0,0);font-size:24;font-family:ArialGoogle/svg:text /a /svg:svg table tr td Hi /td td Atul /td /tr /table /body /html Cheers, Jeff Rafter atul K wrote: Hi I am new to SVG. I am generating SVG file from XML Data using the XSLT and sending the same to browser. I want to add the anchor to the text. when i add a tag it doesn't show anything on browser. if i remove the anchor tag it shows the rectangle but without href. if i use the saxon for generating the .svg file then it shows correctly. I don't understand where i am going wrong. Below is AA.xml file ?xml version=1.0 ? ?xml-stylesheet type=text/xsl href=button.xsl? button textGoogle/text urlhttp://www.google.com/url /button below is the AA.xsl file ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xlink=http://www.w3.org/2000/xlink/namespace/; xmlns:svg=http://www.w3.org/2000/svg; xsl:output method=xml omit-xml-declaration=no indent=yes version=1.0 doctype-system=http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd; doctype-public=-//W3C//DTD SVG 1.1//EN/ xsl:template match=/ html head object id=AdobeSVG classid=clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2 /object xsl:processing-instruction name=import xsl:textnamespace=svg implementation=#AdobeSVG/xsl:text /xsl:processing-instruction /head body svg:svg width=100% height=100% viewBox=0 0 1024 768 zoomAndPan=enable xmlns:svg=http://www.w3.org/2000/svg; xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xlink=http://www.w3.org/1999/xlink; a xsl:attribute name=xlink:hrefxsl:value-of select=/button/url / /xsl:attribute svg:rect x=3 y=6 width=193 height=37 style=fill:rgb(0,0,255);stroke:rgb(0,0,0);stroke-width:1/ svg:text x=26px y=17px transform=translate(13 12) style=fill:rgb(0,0,0);font-size:24;font-family:Arial xsl:value-of select=/button/text / /svg:text /a /svg:svg table tr td Hi /td td Atul /td /tr /table /body /html /xsl:template /xsl:stylesheet thanx and regards, Atul __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs 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 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] Re: Heresy - Convert svg to jpg?
Simon, In addition to the toolkits mentioned, this is also possible using SharpVectorGraphics-- it has support for use, but no scripting currently-- certain features are a little spotty. But if you are in an ASP.NET environment then it threads in seamlessly. BTW: if you do check it out-- the version in CVS is much better than the current release as a new release is pending... Cheers, Jeff simonshutter wrote: --- In svg-developers@yahoogroups.com, simonshutter [EMAIL PROTECTED] My environment is IIS on Windows 2000 Server. Running batik as a windows service might be beyond my abilities - Is it fairly straightforward? Simon Looks like the JavaServiceWrapper described at http://bdn.borland.com/article/0,1410,32068,00.html may be my answer - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 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] getClientX() and getBBox() not in Firefox 1.5?
getBBox() is also supported, although there does seem to be something buggy about it. I haven't troubled to track it down, but I think it only works on visible, rendered objects. Yep, there is a problem in that you have to wait until *after* onload... but not in onload. So you have to settimeout in onload and hope that everything is rendered. So there is not a safe time to really check this per se... it may be right, it may not be for that brief startup moment. I believe that there is a bug filed on this already. Cheers, Jeff Rafter 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] node from id
Mozilla maintains a hash table. I'd imagine most other browsers would do the same, but I could be wrong. Agreed. Another important point is this: because all of the implementations do silly stuff like maintain a hash table you can get into trouble with IDs. Supposedly the DTD has to be in force to know that an ID is an ID for getElementById-- but most implementations cheat and do something like //@id and Hash the results. Maybe not Moz, I am not sure... but this creates problems with Meta data and foreign content inside of your SVG. Cheers, Jeff Rafter 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] Re: Using Adobe SVG Viewer with C#
We would need to know very specifically what version and build you were working with. Adobe has worked differently in hosted environments each new release. With that said I have never seen the error you are referring to come up... might you really have a memory problem? Also, is this something that SharpVectorGraphics could handle for you instead? In the CVS version there is quite a bit of interactivity added... Cheers Jeff Rafter mailinatorolli wrote: Hello Holger, thanks for your answer. I tried it the way it is descriebed in the SVG - Wiki but it doesn't work. The Problem stays the same: Attempted to read or write protected memory. This is often an indication that other memory is corrupt Thank you anyway Olli --- In svg-developers@yahoogroups.com, Holger Will [EMAIL PROTECTED] wrote: mailinatorolli schrieb: Hello, I´m trying to use the Adobe SVG Plugin within a C# Appliction with Visual Studio 2005 Beta 2. But I always get this error message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt Maybe someone has a small piecer of code that uses the Adobe plugin Please help me. Thanks olli Hi Olli i have no experience with .NET, but there is some information on the SVG Wiki about using ASV in C# and .NET . http://svg-whiz.com/wiki/index.php?title=Other_Documentation hth Holger -- if this information was usefull, please try to help someone else ! http://www.treebuilder.de - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 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/
[svg-developers] Let's talk about SVG Development (was: Let's make some income from SVG)
To be honest, this list is barely readable anymore. I vote that we return to discussion of development issues-- this is svg-*dev* after all-- and start a second yahoo list. I am not taking sides on anything that has been said here... I am just sick to death of wondering if I can convince my Bayesian filtering to weed out the nonsense that has been coming up over the past few months. I grant that there is a need to evaluate a technology and that a discussion needs to be had about a particular technologies merits. This list is not the place for that discussion. Please send emails of that nature to [EMAIL PROTECTED] Respectfully, Jeff Rafter Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12ht2jrb2/M=362131.6882499.7825260.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1124023272/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/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] getScreenCTM
Hi Thomas, Will, While a viewer independent library for coordinate handling is useful, I don't see the references you mention to supporting evidence for the implementation. In particular I don't see how you can justify the inclusion of the translate due to 'x' 'y' in your getCTM matrix (The 'x' 'y' are used to establish the viewport coordinate system), much less the inclusion of currentScale/Translate which are supposed to be outside the outermost SVG element. Yes, upon further review I consider this a bug in my code. I think I have pinpointed how I came to the conclusion I did at the time and have outlined it, along with the rest of my thoughts on getCTM in this document: http://jeffrafter.com/svg/tests/getCTM.html Your definition may be more useful than the one in the SVG specification but I think it would be hard to consider it conformant. I think that my new one is backed by the spec. The section in my document in red is the part that is likely not conformant (strictly) but is more useful. is the viewport coordinate system for the nearestViewportElement of the outermost svg element the DOM implementations client area ? I don't see why these have to be the same thing. In particular it might make sense for these to be separated by currentScale/Translate. However I suspect that the SVG specification is insufficiently clear on this point to have a reasoned discussion. I agree, however if I had to guess I would argue that it is referring to the initial viewport which may or may not be equivalent to the nearestViewportElement's viewport (depending on nested svg elements and currentTranslate/currentScale). furthermore root.getCTM() does not include the viewBox transformation of root, This is clearly wrong. getCTM goes from the user-space of the current element - which for an SVG element is clearly defined to include the viewBox transform. I agree with this... This is the main reason getCTM is almost useless if you try to chain 'getCTM' calls up the rendering tree you get 'double' viewBox transforms. I don't agree with this. whereas anyElement.getCTM() does. so root.getScreenCTM() = root.getCTM() This might be true because getScreenCTM would also include the viewBox transform the real question is does root.getCTM return just the viewBox transform of the root element or does it also include currentScale/Translate? Strictly speaking I would argue no (though my implementation had a bug on this point). I think root.getCTM() is undefined but that is pretty useless and I prefer the other method. I don't really know and as I said I don't think the SVG specification is sufficiently clear on the topic. Since I consider getCTM to be a lost cause due to the inability to 'chain' calls I'm not sure it's worth significant effort to clarify - the SVG WG should just deprecate it. I think the fix is pretty easy and still stays in the spirit of getCTM. Also, I think we need to talk further about why chaining is not possible when using a strict interpretation of the spec. I don't really know why you are interested in this (implementation or usage), but the really useful methods to use are 'getTransformToElement' and 'getScreenCTM' In cases where you are using the viewports to create windows into a document and you are establishing a clipping region, it can be very useful. But yes for the common cases (e.g. mouse events) getScreenCTM is what should be used. Thanks, Jeff Rafter - 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] getScreenCTM
This is a nice write up. Thanks :) I agree that this is not conformant (at all) but is more useful, except to be useful I would think that it should include any translate due to X/Y on the SVG element (which unlike the 'x'/'y' on rect _do_ change the coordinate system). Without this you still couldn't chain getCTM calls. To be a little more explicit on why I don't consider this implementation at all conformant the definition of getCTM is very clear that it goes from the _userspace_ of the current element. This is also very clearly defined for the SVG element to be the coordinate system after the application of the viewBox transform (if any). Okay, this is it. This is exactly the point where we disagree... I think that the wording in section 7.9 spells out pretty clearly that the coordinate system that is established by the svg element and it's viewBox attribute is _separate_ from it's own user coordinate system. This line in particular drives this thinking: The orientation of the new viewport coordinate system and the new user coordinate system correspond to the orientation of the current user coordinate system for the element establishing the viewport. A single unit in the new viewport coordinate system and the new user coordinate system are the same size as a single unit in the current user coordinate system for the element establishing the viewport. [1] I am not sure where else in the recommendation this is addressed. Did you have a specific reference for your reading? The only other reference I could come up with was section 7.7 which I think further supports my reading. As you know, in section 7.7 the viewBox transformation is equated to a supplemental transformation included on a child g element. This points to it being treated separately. Additionally, the simple fact that the new coordinate system established by the viewBox is not applied to the x, y, width, height demonstrate it's different treatment. The most specific paragraph from 7.7 is: The effect of the viewBox attribute is that the user agent automatically supplies the appropriate transformation matrix to map the specified rectangle in user space to the bounds of a designated region (often, the viewport). To achieve the effect of the example on the left, with viewport dimensions of 300 by 200 pixels, the user agent needs to automatically insert a transformation which scales both X and Y by 0.2. The effect is equivalent to having a viewport of size 300px by 200px and the following supplemental transformation in the document [2] Here the spec again treats the user space of the svg element and the coordinate system it is establishing as separate artifacts. snipother important points we need to talk about once we agree on the above/snip [1] http://www.w3.org/TR/SVG/coords.html#ElementsThatEstablishViewports#EstablishingANewViewport [2] http://www.w3.org/TR/SVG/coords.html#ElementsThatEstablishViewports#ViewBoxAttribute Thanks again, Jeff Rafter - 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 Optimization
The main problem is about how the optimisation should be? Reduce file sizes or rendering time? I might consider rendering time which in return will increase file sizes! All of the above I have to consider but of course I need to know how SVG is rendered! Is there anybody who can tell me where I can find such information please! There are at least two other primary optimization concerns: memory optimization processing optimization Your examples (size and rendering) map onto these categories well but you should be aware that memory and processing are the driving underlying factors. It is best to think about cell phones as a platform-- there is limited memory and limited processing power. Both of these translate to cost-- either in bandwidth or in heat/battery. Sometimes in both. SVG allows for various forms of quality degradation to accomplish both. Another important issue is re-rendering (or animation). Somethings which save initial speed (e.g. use) end up costing a lot more in the long run. All the best, Jeff Rafter - 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] new SVG Game: Sokoban
so before the game gets too boring, ive just added another 30 levels. its the first 30 levels of the mikroban set of ksokoban. they are easier than the previous levels ;) Alright so I was able to pass the old level 7 and all of the new levels (60 total) except level 42 in the new series... this one REALLY seems impossible... BTW, I added: // R if(evt.keyCode==82){ retry() } // N if(evt.keyCode==78){ nextlevel() } Into the keypress... maybe the n is cheating... but it let's you go on if you get stuck... Thanks again! Jeff - 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] new SVG Game: Sokoban
Alright so I was able to pass the old level 7 and all of the new levels (60 total) except level 42 in the new series... this one REALLY seems impossible... oh! this one is really a bug, ive corrected that level 42, sorry, and thanks for finding it. Credit goes to Paul Shoener who beat me to it :) But the update works great, awesome work Holger! Cheers, Jeff Rafter - 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] new SVG Game: Sokoban
I will file this away... but won't go through it quite yet-- just knowing it is solvable gives me renewed hope! Thanks!! Jeff [EMAIL PROTECTED] wrote: Here is solution for level 7 :) llDDldddrruuLrddlluUruLruu rrdLulDDldddrruuLrddll ulluuRRllddrrdrruulUUluRdd drddlluUdlluurRdrUU l=left d=down etc... capital letters indicate you are pushing the item. --KG -Original Message- From: svg-developers@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Rafter Sent: Monday, April 25, 2005 1:58 PM To: svg-developers@yahoogroups.com Subject: Re: [svg-developers] new SVG Game: Sokoban so before the game gets too boring, ive just added another 30 levels. its the first 30 levels of the mikroban set of ksokoban. they are easier than the previous levels ;) have fun Is it just me or is the 7th level downright impossible? I haven't been able to figure it out! Awesome game though... I am utterly addicted. Thanks Jeff Rafter - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] 3rd post - how to wrap text by JavaScript - Help please!
I have an SVG that is somewhat older and does on-the-fly wrapping and updating of a set of text. The code is open as it was for a University project. I am not sure if it will help or not... and if I did it today I would do things slightly different (e.g. more conformance ;)) http://jeffrafter.com/poetry/ananalogous/ Cheers, Jeff Rafter tangdm wrote: Hi All, I am sorry I have to post the same question again because I stuck in here for two weeks and the task's deadline is in next week. My problem is text wrapping. I need to retrieve attribute values and display the data on svg map when a map element is clicked. To do this, I created a text:wrap element in svg script, then tried to overwrite it by javascript program. The code is: svg: text:wrap id=comments x=590 y=490 width=410 style=font-family: arial; fill:red; font-size: 15px; text-align: justify; line-interval: 1.2emmy text/text:wrap javascript code: svgDoc.getElementById(comments).firstChild.nodeValue=the new text; Both of my text and the new text can be wrapped, but instead of replacing old text( this is what I want), the new text overlaps old ones. Please give me a hand. Your help will be greatly appreciated. Spring - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] Learn programming, phreaking, exploits, proxies, hacks!!!
Learn how to steal, kill, and maim. Learn rape techniques from the experts! Find out the sure fire 'pain zones' when stabbing a victim. Please log on to our website full of crackers, phreakers, and newbie programmers... your computer will be fine, honest! Jeff - 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: rendering speed - batik vs. asv
Wow! I am sorry about that Hannes-- I thought it was in there! Okay... what platform are you on? I know that Ksvg2 has event/javascript buffering built in... Sorry bout that... Jeff Rafter - 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] rendering speed - batik vs. asv
Hannes, The problem/difference is that Adobe caches rendering updates until the Javascript interpretter has completed. Meaning: when a function/event is called all of the code is executed then the rendering update is completed when ASV regains control. You can approximate this in Batik using suspendRedraw, forceRedraw at the beginning and end of your functions. You should see and incredible performance gain. All the best, Jeff Rafter higorion wrote: hi, after developing svg applications for some time using adobe svg viewer i have tried batik squiggle viewer for the first time. i was very disappointed with the batik viewer performance (slower by a factor of 3-5 compared to the adobe viewer). as seen in this very simple animated example: http://www.igorion.com/_hf_files/rendering_test.svg can batik's performance be improved by not using the java-javascript interpreter but rather modifying the dom directly from java? i was planning to build a standalone svg application using batik's JSVGCanvas, but assuming that they have built their squiggle viewer around that same class, this doesn't seem very promising to me now. has anyone got any good advice for me concerning a fast svg implementation that can also be used standalone (preferrably with filesystem access). thanks for any answers, hannes fleischer - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] Re: SVG#, examples and interactivity
Thanks for the reply. I will probably need to use the transform functions but not just yet. Meanwhile, rendering was taking to long so I made a little digging :) ended up making a minor change with a performance gain of at least 500% in rendering my test SVG :) It would be great if you took a look to check if it's worth adding this change to the latest version. How would you prefer I send it to you? Either way, on this list or directly. I am ambivalent : ) I have been gathering fixes from all over and getting ready for another commit once I have this transform stuff working (oh so close now!). As an aside, a lot of the performance bottlenecks are in exception creation many around CSS and colors. With a slight change to the CSS regex I got a 2000% increase in the debugger. It didn't make that much of a difference outside of the debugger, but wow. I wouldn't use SharpVectorGraphics without it. Then again, I am skittish about committing something so unresearched... and lately I have been typing ambilevousy. All the best, Jeff Rafter - 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 viewer for .NET
Which is the favorite svg viewer for builing now such a comercial .Net windows application? We are using SharpVectorGraphics. I have currently been enhancing the interactivity portions of the library with the help of a couple of others. The development is being supported by a company in Colorado, US and it looks like a couple more steps will be made this round. With that said there is still quite a lot unimplemented-- and unoptimized. If you decide to try it, use the CVS version. All the best, Jeff Rafter - 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] accessing children nodes inherited from defs
For the object defined by ElementId = U1, is there a way to access the inherited children from Gr. Meaning, is access to U1's rectangle child or U1's text child allowed. svgdoc.getElementById(U1).childNodes doesn't give any elements. Right, you have to get the use element's InstanceRoot or AnimatedInstanceRoot. This returns an SVGElementInstance. From that you can get the CorrespondingElement (which in 99% of cases will be a g that is wrapping the reffered-to construction). Now, depending on the interpretation you can just go from there with ChildNodes and all the rest-- but some may interpret the spec to mean that you must always navigate via the SVGElementInstance and get the ChildNodes of that which returns an SVGElementInstanceList-- so in that case you would have to get the CorrespondingElement each time. I am not sure who supports this though... my guess is ASV6 does and ASV3 does not. SharpVectorGraphics supports it in CVS. All the best, Jeff Rafter - 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#, examples and interactivity
Where might I find examples and/or documentation on SharpVectorGraphics? I will be using it to show an SVG in my C# app but I will also need some interaction. For example, when clicking a certain element it should become highlighted by changing its color. I've read about this being possible (not sure where though) but couldn't yet figure out how. // After loading... ISvgDocument doc = svgPictureBox.Window.Document; doc.RootElement.AddEventListener(click, new EventListener(ClickHandler), false); doc.RootElement.AddEventListener(mousedown, new EventListener(MouseDownHandler), false); doc.RootElement.AddEventListener(mouseup, new EventListener(MouseUpHandler), false); doc.RootElement.AddEventListener(mousemove, new EventListener(MouseMoveHandler), false); doc.RootElement.AddEventListener(mouseover, new EventListener(MouseOverHandler), false); doc.RootElement.AddEventListener(mouseout, new EventListener(MouseOutHandler), false); etc public void MouseOverHandler(IEvent e) { SvgElement aGraphic = null; if (e.Target is SvgElement) aGraphic = ((SvgElement)e.Target); else if (e.Target is SvgElementInstance) aGraphic = (SvgElement)((SvgElementInstance)e.Target).CorrespondingUseElement; aGraphic.SetAttribute(stroke, cyan); svgPictureBox1.Render(); } And so on... keep in mind, this only works from the CVS version, re-rendering is not optimized, and if you are planning on using GetCTM, GetTransformToElement, GetScreenCTM or the like, wait. I will be finished in a couple more days I think... Cheers, Jeff Rafter - 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] use and mouseover
Which viewer are you using? You should receive an MouseEvent with the target as a SVGElementInstance (not an SVGElement)... so it is most likely a bug in the viewer... All the best Jeff Rafter - 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] Using SVG in a .NET application
I've been trying to use SVG in a C# application and have succeeded in presenting a SVG image with the sharpvectorgraphics library (been using an image of a graph actually). But now I would like to add some interactivity, making it possible for the user to select or move each of my graph's node or connection. Being able to handle some simple events from each SVG element (like mousedown, mousemove, etc) would be enough for the time being. Get the CVS version. There was a lot of work done that was never released as a full version. Additionally I have been committing changes on the project for about 2 months now. I have a lot of changes yet on my side (including some performance tuning)-- but I fixed all of the interactivity for use elements and the shadow tree-- reimplemented mutation events and corrected click behavior-- to name a few things. Right now I am trying to correct the CTM functions-- they are apparently more right than adobe 3-- but there are still a couple of issues. When I am finished everything should be ready to enable custom dragging and editing code-- I am just not quite there yet. Cheers, Jeff Rafter - 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] test for mouse position within shape?
Is there a way to test to see if a mouse position is within a shape? If one uses getBBox() on a triangle, for example, the results are not very useful if one wants to know if the mouse is really within the triangle. Another approach would be to track that information using events. For example setup a mouseover event and a mouseout event to determine if the mouse is in fact over the polygon. If necessary, store the information in a global var. HTH, Jeff Rafter 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/
Re: [svg-developers] Mozilla SVG, it's getting it wrong...
https://bugzilla.mozilla.org/show_bug.cgi?id=62485 which is about supporting text/ecmascript is still marked as NEW after 4 years (which basically means we're not going to do it) In the bugzilla comments there was this from Brendan Eich: No, October 28th will see a new face-to-face meeting of the ECMA technical group. I'll make sure this gets some attention there. So does anyone know what happened there? Thanks, Jeff Rafter 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] Photoalbum demo
Good :) I definitely encourage you to use FF as your daily browser, but for MozSVG stuff it's not there yet. When it's in sync again this list will be informed. It makes one wonder why they didn't want to develop it as a plugin (using the NSPlugin architecture, a la adBlock). Maybe it isn't feasible-- I haven't looked at the code. But I would love for it to work in FF, regardless of the build... that way they could be upgraded independently. Jeff Rafter Yahoo! Groups Sponsor ~-- $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/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/