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/
[svg-developers] Square as basic shape
Has there ever been a discussion of adding square to Basic Shapes? For instance, following the way circle is done: cx = http://www.w3.org/TR/SVG11/types.html#DataTypeCoordinatecoordinate The x-axis coordinate of the center of the square. cy = http://www.w3.org/TR/SVG11/types.html#DataTypeCoordinatecoordinate The y-axis coordinate of the center of the square. side = http://www.w3.org/TR/SVG11/types.html#DataTypeLengthlength The length of the side of a square. If there was, why was it rejected? If there wasn't, could it be considered? I would find is very useful to keep the proportions the same when I use relative sizes for the dimensions of shapes. Jerry [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] Mozilla getStyle GetStyleData JavaScript etc
Hi couloir007, I don't know for sure about Mozilla but your example will work with Batik, if you add the third parameter to setProperty, also I think that you should access style as a 'property' not as a getter: svgobj = document.getElementById(id); svgstyle = svgobj.style; svgstyle.setProperty('fill', 'yellow', ''); couloir007 wrote: The Code below apparently is an Adobe specific way of setting fill color. I believe GetStyleData would be the Mozilla equivalent. Not sure though since I can't get it to work. Does anyone know how to do this in Mozilla? I've had some limited success altering CSS attributes, but would like to avoind it if possible. Thank you. svgobj = document.getElementById(id); svgstyle = svgobj.getStyle(); svgstyle.setProperty('fill', 'yellow'); - 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] Polygon Rotation
pavan kumar wrote: How can i rotate a polygon about one of its sides using svg transformations . Thanking u, S.Pavan Kumar I am not sure to understand your question. You cannot rotate a polygon about one of its sides, unless you do it in 3D, which SVG cannot do. You *can* rotate a polygon about one point on one of its sides, this is quite trivial, I show it with a rectangle below. rect x=200 y=200 width=100 height=150 fill=lightblue stroke=cyan/ rect x=200 y=200 width=100 height=150 fill=blue stroke=lightblue transform=rotate(30, 200,250)/ circle cx=200 cy=250 r=2 fill=red stroke=lightred/ But perhaps you want to do animation? -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- - 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] Polygon Rotation
yeah, i would like to rotate the rectangle with animation about one of it sides (which is in along z-axis). Thank you, S.Pavan Kumar --- Philippe Lhoste [EMAIL PROTECTED] wrote: pavan kumar wrote: How can i rotate a polygon about one of its sides using svg transformations . Thanking u, S.Pavan Kumar I am not sure to understand your question. You cannot rotate a polygon about one of its sides, unless you do it in 3D, which SVG cannot do. You *can* rotate a polygon about one point on one of its sides, this is quite trivial, I show it with a rectangle below. rect x=200 y=200 width=100 height=150 fill=lightblue stroke=cyan/ rect x=200 y=200 width=100 height=150 fill=blue stroke=lightblue transform=rotate(30, 200,250)/ circle cx=200 cy=250 r=2 fill=red stroke=lightred/ But perhaps you want to do animation? -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [svg-developers] Square as basic shape
Hi, Jerry- The issue of basic shapes comes up from time to time. Now isn't the time to ask, with SVG1.2 features being frozen and the Spec not yet being approved, but this is something you should take up with the SVG WG once the dust has settled, as a feature for 1.3 (or whatever). Personally, I would like to see the triangle treated as a first-class citizen, since triangles are both common and mathematically significant. I think that the ability to define a triangle by the angles of its vertices would be really useful for a variety of real-world use cases, such as pie-chart wedges (there could be a special rounding parameter, like there is for rectangles, that would draw an arc between 2 of the designated corners, completing a circle when several triangles are abutted. Calculating angles from percentages would then be a trivial task. So, the adding a triangle primative would thus pull double-duty, satisfying both the frequently-requested pie-slice primative and the utilitarian triangle. Not to dismiss your idea, I'm not sure that there is sufficient need for the square to be in our tool palette of basic shapes. You can already do this very easily with a 'rect' element (although admittedly you would lose the strict semantic value of defining it as a square), and perfect squares don't seem that they would be altogether that common. If you want to center a square, you can simply use a transform: rect id='square' x='50' y='30' width='100' height='100' transform='translate(-25,-15)'/ As for keeping the height and width the same, I would promote a different feature to accomplish this which is more broadly applicable. You may be familiar with Cameron McCormack's explorations into constraints; this would allow attributes to reference other attributes to set their value. An example might be that you want a text element to be centered in a rectangle, no matter how large the rectangle might grow; in his scheme, you would use XPath syntax to achieve this: rect id='buttonRect' x='10' y='30' width='100' height='30'/ text x='$buttonRect @x + @width div 2' y='$buttonRect @y + @height div 2' text-anchor='middle' baseline-shift='-33%'Text/text The syntax may seem a bit arcane, but it's not that bad once you get used to it. In the above example, if the rectangle changed position or size, the text would remain centered in it. You could add a further constraint to the rectangle that would prevent it from shrinking past the bounding box of the text as well, ensuring that the text doesn't poke out; or, you could set a constraint on the text to shrink to fit. It would allow a lot of useful relative effects, like dynamic positioning for layout, too. The nice thing is that XPath is already going to be part of SVG1.2 (though only for script, it seems, not as a legal attribute value), so it would really not be too much more to add. I'm sure you've seen where I'm going with this... Your square could be defined as: rect id='square' x='50' y='30' width='100' height='@width' transform='translate(-25,-15)'/ But don't let me discourage you from taking it up with the SVG WG. I may not be seeing a bigger picture. Regards- Doug doug . schepers @ vectoreal.com www.vectoreal.com ...for scalable solutions. Jerrold Maddox wrote: | | | Has there ever been a discussion of adding square to Basic Shapes? | For instance, following the way circle is done: | | cx = | http://www.w3.org/TR/SVG11/types.html#DataTypeCoordinateco | ordinate | The x-axis coordinate of the center of the square. | | cy = | http://www.w3.org/TR/SVG11/types.html#DataTypeCoordinateco | ordinate | The y-axis coordinate of the center of the square. | | side = | http://www.w3.org/TR/SVG11/types.html#DataTypeLengthlength | The length of the side of a square. | | If there was, why was it rejected? | If there wasn't, could it be considered? | | I would find is very useful to keep the proportions the same | when I use relative sizes for the dimensions of shapes. | | Jerry | -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 2/3/2005 - 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] Square as basic shape
Hi, Jerry- Thinking more about your proposal, how about instead of a square, you call it 'regularPoly', and add a parameter to indicate the number of sides. So, you'd have: regularPoly cx='30' cy='50' sides='4' length='15' / That way you could have a broadly applicable element that lets you easily create regular polygons, a commmon use case which can be rather tricky to do, and you get some semantics out of the deal. An equilateral triangle would be 3 sides, a pentagon 5, a hex 6, octogon 8, etc. I'd further propose that there be a 'rotation' attribute, with values '0' or '1'; '0' would mean that the edge would be parallel to the x-axis, '1' would mean that one of the corners would be pointing up instead (that is, a line between the centerpoint and one of the vertices would be parallel to the y-axis), like so: regularPoly cx='100' cy='50' sides='6' edge='15' rotation='1' / There could be a DOM API to locate the x/y-coordinates of the corner points, and you could use markers at those points, too. See, I told you I was missing the big picture! :) I think that this would be extremely useful. Regards- Doug p.s. If I were going to be crazy, I would say that you could set sides='1' and get a circle with a circumference equal to the edge length. doug . schepers @ vectoreal.com www.vectoreal.com ...for scalable solutions. | Jerrold Maddox wrote: | | | Has there ever been a discussion of adding square to Basic Shapes? | For instance, following the way circle is done: | | cx = | http://www.w3.org/TR/SVG11/types.html#DataTypeCoordinateco | ordinate | The x-axis coordinate of the center of the square. | | cy = | http://www.w3.org/TR/SVG11/types.html#DataTypeCoordinateco | ordinate | The y-axis coordinate of the center of the square. | | side = | http://www.w3.org/TR/SVG11/types.html#DataTypeLengthlength | The length of the side of a square. | | If there was, why was it rejected? | If there wasn't, could it be considered? | | I would find is very useful to keep the proportions the same | when I use relative sizes for the dimensions of shapes. | | Jerry | -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 2/3/2005 - 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] Why
I do not believe in something like a god, because of the reasons stated below: 1)In science everything must have a reason. So what should the reason of our creation be ? Most people say god is testing us. When god is almighty he should know the test results, why is he testing when he already knows the results ? So that could not be the reason. It may also be said 'to prove his almightyness', but the question here is 'to whom ?'. So when there is no reason there could not be a result. Our creation could only be by chance, but then there is no god needed. Most people are saying that this chance is very very low. Yes indeed, but this chance must have been occured so that we are now able to say this. If this was not the case then we would not be able to say this, but in this case also everything is normal. If your mother and father didn't do that thing exact in this period (48 hours)(You know..) You would not exist, but it would not matter, because nobody would notice that you do not exist, because that is normal. So if we didn't exist who would notice it 2) Most religions say we are ongoing a test; when we do good things we will go to heaven (Result 1), when we do bad things we will go to hell (Result 2). Also in buddism, there is a result which will affect our next life (lives). In a test there are parameters (inputs) which could affect the test results (outputs). When all the initial parameters are the same the result is also to be the same (logic). Or let's say it in other words, when there are two or more results, normally we look what has changed (parameters-inputs). For example pure water (purity is a parameter, because with increasing salt concentration the boiling point also increases) has a boiling point at 100°C when the air pressure is 1 atm (here the air pressure is another parameter, because with increasing air pressure the boiling point decreases). Scientific tests could only be made, because the test are repeatable. When you repeat this test 1000 times you will get 1000 times the same result (boiling point = 100°C) (Otherwise nobody would thrust science). If this is not the case you have to look what is wrong (maybe pressure or purity). This test is a quite simple one to illustrate what a 'parameter' is and what a 'reults' is. Of course there are much more complex tests with much more parameters, but the logic is the same; with exact the same parameters you will observe the same result or visa versus. Now lets come back to the big test: For our example the initial time (time 0) is our birth, the parameters could be intelligence, circumstances, good will (bad will), patience and so on, but let's come to the results; there are two possible results heaven or hell. When there are two different results, there must! be different initial parameters, which are of course set when we are born. That means when there is a god, he (by the way why he not she !!! Think about it.) has already set what will be the result, then what could we change ? Nothing, because this would also have been set at the beginning. So this would mean that there is an unequality at the beginning. That is simply not fair. Would you believe in an unfair god ? 3) Another contradiction between Religion and Science is the evolution of the human race. Science proves that we and also apes evolved from the same kind of species, whereas religion insists on its old views. Science is built on facts and proves, but religion fails what is concerning proves. Everybody could ask what these proves are. Here are a few of scientific methods, which prove the evolution of us: a) Protein presipitation method: In this method near 'relatives' give little presipitation, while far relatives give much presipitaion. Most presipitation is observed with animals like mice, while with apes only little presipitation is obtained. b) Genetics: Our DNA is 99.9 % equal with the apes DNA, whereas with other animals this ratio is much lower. c) Antropolgy: Many skeleton foundings prove that there are other species between our race (homo sapiens sapiens) and our common relatives with the apes. Many species like, homo erectus, homo habilis, Lucy, Cro Magnon ... were found and DNA test show what intermediate step this specie is. d) Linguistic: First of all I want to say that all what I will write could be found on two sources: - The book 'Kanzi the ape at the brink of the human mind' from Roger Lewin - Terramagica Programme in SAT-1 TV (Germany) In the linguistic department of Georgia State University a group of scientist investigated the ability of apes to learn a language. They found that bonobos have a good ability to learn language. They used symbols for each word and pictures for this word which show the real object. One day Kanzi was born, but the scientist thought if was to early to teach Kanzi language. But there came a time when Kanzi, who was just there during the investigations took a real
[svg-developers] Re: Polygon Rotation
Hi, something like http://www.zuccaralloo.de/devgroup/samples/rotateRect.svg ? Regards- -Heiko http://www.zuccaralloo.de/devgroup/ --- In svg-developers@yahoogroups.com, pavan kumar [EMAIL PROTECTED] wrote: yeah, i would like to rotate the rectangle with animation about one of it sides (which is in along z-axis). Thank you, S.Pavan Kumar --- Philippe Lhoste [EMAIL PROTECTED] wrote: pavan kumar wrote: How can i rotate a polygon about one of its sides using svg transformations . Thanking u, S.Pavan Kumar I am not sure to understand your question. You cannot rotate a polygon about one of its sides, unless you do it in 3D, which SVG cannot do. You *can* rotate a polygon about one point on one of its sides, this is quite trivial, I show it with a rectangle below. rect x=200 y=200 width=100 height=150 fill=lightblue stroke=cyan/ rect x=200 y=200 width=100 height=150 fill=blue stroke=lightblue transform=rotate(30, 200,250)/ circle cx=200 cy=250 r=2 fill=red stroke=lightred/ But perhaps you want to do animation? -- Philippe Lhoste -- (near) Paris -- France -- http://Phi.Lho.free.fr -- For servers mangling my From and Reply-To fields, -- please send private answers to PhiLho(a)GMX.net -- -- -- -- -- -- -- -- -- -- -- -- -- -- __ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[svg-developers] Re: Polygon Rotation
Hi Pavan, If you want to rotate in 3D a rectangle along the side, that is on the x or y axis, you just do an animated scale transformation from 1 to -1. For a more complicated rotation, as rotation along a diagonal, take a look on my animation presented at the SVGOpen2003 at http://www.svgopen.org/2003/papers/AnimatedMathematics/invers1.svg In this case you have to sandwich the animated scale transformation between to rotations with opposite sign. Good luck, Samy --- In svg-developers@yahoogroups.com, pavan kumar [EMAIL PROTECTED] wrote: Hi, How can i rotate a polygon about one of its sides using svg transformations . This rotation has to be animated. Thanking u, S.Pavan Kumar __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [svg-developers] SVG Element
Peter, Thank you for your clear explanation. The problem that I am facing is, I have a desktop application which can render the svg file thru the use for Adobe SVG Viewer. But each time when I try to read this XML element (separately - element by element), it try to get Internet connection automatically. This has created an error in my application which has no Internet connection. So I think I will just deleted this element from my svg file. Will this creates any harm? PinYiow Peter Thompson [EMAIL PROTECTED] wrote: It is a DOCTYPE declaration. Paraphrasing from SVG Unleashed, a document type definition defines the permitted structure of an SVG document, and, you may not need the DOCTYPE declaration if, for example, your browser recognizes an svg file by the file extension. It also states that it is wiser to include the DOCTYPE declaration. I know that you don't need it for svg files that are displayed in ASVG3 in IE. If you are using a validating editor (e.g., XMLSpy) you will definitely want to use the DOCTYPE. I'd keep the DOCTYPE. - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership - Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [svg-developers] Square as basic shape
Doug Thanks for your long and thoughtful responses. I agree about adding triangles and would really like to see then added to the spec. Ditto for regularPoly ( I am not sure if this should be in place of the triangles or not - the detail you suggest for triangles makes me think they should stand alone.) And yes, these things couldn't be added until SVG 1.3 or after so my request is either too late or too early. But what i am really interested in is keeping the proportions when relative sizes are used - I posted a suggestion earlier that something like x=10% y=x(0.5), so that y would always be half of x regardless for the proportions of the field they are in. The square is just a simple version of that which looks like it would be easy to do since it would be like the circle . How I face this day to day is that i work on a Mac with a cinema display (9x16) and on a PC with display in conventional proportions (4x5) and when use the full screen the relatively size images aren't consistent in shape. If there is another way to make them consistent, I would love to know about it. Jerry Hi, Jerry- Thinking more about your proposal, how about instead of a square, you call it 'regularPoly', and add a parameter to indicate the number of sides. So, you'd have: regularPoly cx='30' cy='50' sides='4' length='15' / That way you could have a broadly applicable element that lets you easily create regular polygons, a commmon use case which can be rather tricky to do, and you get some semantics out of the deal. An equilateral triangle would be 3 sides, a pentagon 5, a hex 6, octogon 8, etc. I'd further propose that there be a 'rotation' attribute, with values '0' or '1'; '0' would mean that the edge would be parallel to the x-axis, '1' would mean that one of the corners would be pointing up instead (that is, a line between the centerpoint and one of the vertices would be parallel to the y-axis), like so: regularPoly cx='100' cy='50' sides='6' edge='15' rotation='1' / There could be a DOM API to locate the x/y-coordinates of the corner points, and you could use markers at those points, too. See, I told you I was missing the big picture! :) I think that this would be extremely useful. Regards- Doug p.s. If I were going to be crazy, I would say that you could set sides='1' and get a circle with a circumference equal to the edge length. doug . schepers @ vectoreal.com www.vectoreal.com ...for scalable solutions. | Jerrold Maddox wrote: | | | Has there ever been a discussion of adding square to Basic Shapes? | For instance, following the way circle is done: | | cx = | http://www.w3.org/TR/SVG11/types.html#DataTypeCoordinateco | ordinate | The x-axis coordinate of the center of the square. | | cy = | http://www.w3.org/TR/SVG11/types.html#DataTypeCoordinateco | ordinate | The y-axis coordinate of the center of the square. | | side = | http://www.w3.org/TR/SVG11/types.html#DataTypeLengthlength | The length of the side of a square. | | If there was, why was it rejected? | If there wasn't, could it be considered? | | I would find is very useful to keep the proportions the same | when I use relative sizes for the dimensions of shapes. | | Jerry | -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 2/3/2005 - 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/
[svg-developers] SVG and XAML - was Re: svg viewer for .NET
The SVGViewPlus .NET control by Mobiform is miles ahead of SharpVectorGraphics and is used successfully by a number of large corporations. That said, most of the companies that are using Microsoft products and .NET and looking for vector graphics solutions have dumped the concept of using SVG. Many of the companies that we have licensed our SVG renderer to have now informed us that they are moving to XAML and have come back to us for XAML products. SVG implements maybe %5 - %10 of the graphics capabilities that are inside of Avalon. XAML/Avalon is now available as a free public download for Windows XP and updates IE with a XAML renderer that handles 2D and 3D xaml docs. There is a %100 XAML web site at XAML.NET. The Visual Studio 2005 beta uses XAML with Avalon/WinFX installed, the Avalon Object model is brilliant! Mobiform has SVG rendering and XAML authoring technology. One year ago the interest in our SVG products was 10 times that of our XAML products, that has now reversed. Ron @ Mobiform www.mobiform.com --- In svg-developers@yahoogroups.com, Jeff Rafter [EMAIL PROTECTED] wrote: 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] Mozilla getStyle GetStyleData JavaScript etc
On Sat, 05 Feb 2005 01:35:03 -, couloir007 [EMAIL PROTECTED] wrote: The Code below apparently is an Adobe specific way of setting fill color. I believe GetStyleData would be the Mozilla equivalent. Not sure though since I can't get it to work. Does anyone know how to do this in Mozilla? I've had some limited success altering CSS attributes, but would like to avoind it if possible. Thank you. svgobj = document.getElementById(id); svgstyle = svgobj.getStyle(); svgstyle.setProperty('fill', 'yellow'); The DOM interface to use is CSSStyleDeclaration, see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration Note that setProperty takes *three* arguments. It may be that in ASV you don't need to provide the last one, but in Mozilla you will so best to get in the habit of including all three. Normally the third argument is simply null. In Mozilla your code should look like this: svgobj = document.getElementById(id); svgstyle = svgobj.style; svgstyle.setProperty('fill', 'yellow', null); And if that doesn't work in ASV then this probably will: svgobj = document.getElementById(id); svgstyle = svgobj.style || svgobj.getStyle(); svgstyle.setProperty('fill', 'yellow', null); - 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
Jeff, I am using SharpVectorGraphics in my project. But I don't know how to use it to display an SVG file in my project. May I know which library should I include in the references of my project and which Windows Component (control) must I add in to display the SVG image. PinYiow Jeff Rafter [EMAIL PROTECTED] wrote: 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 the Yahoo! Terms of Service. - Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' [Non-text portions of this message have been removed] - To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click edit my membership Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [svg-developers] Square as basic shape
Hi, Jerry- Jerrold Maddox wrote: | | Doug | | Thanks for your long and thoughtful responses. Probably with too much 'long' and not enough 'thoughtful'. ;) | I agree about adding triangles and would really like to see | then added to the spec. | Ditto for regularPoly ( I am not sure if this should be in | place of the triangles or not - the detail you suggest for | triangles makes me think they should stand alone.) I see them as different use cases. Just because you can draw a circle a dozen or so ways in SVG (as was recently proved on this list) doesn't mean that there shouldn't be a circle element. I think that both the regular polygon and the triangle should be supported, and there is some indication that 1.3 will concentrate again on graphical features. (Though I'm personally glad of all the neat WebApp features in 1.2). | And yes, these things couldn't be added until SVG 1.3 or | after so my request is either too late or too early. Too early, at this point. I've summarized this idea, and made a little script that takes the proposed regularPoly and draws them using polygon elements. I haven't yet done the 'rotation' bit, but I'm convinced this idea has merit, and I'll suggest it to the WG post-1.2. http://svg-whiz.com/experiments.html#basicShapes | But what i am really interested in is keeping the proportions | when relative sizes are used - I posted a suggestion earlier | that something like x=10% y=x(0.5), so that y would | always be half of x regardless for the proportions of the | field they are in. Yes, lots of us really love this idea. | The square is just a simple version of that which looks like | it would be easy to do since it would be like the circle . | | How I face this day to day is that i work on a Mac with a | cinema display (9x16) and on a PC with display in | conventional proportions | (4x5) and when use the full screen the relatively size | images aren't consistent in shape. | | If there is another way to make them consistent, I would love | to know about it. I agree that there needs to be better support for relative positioning and sizing, and I think Cameron's idea is the best thought out. Regards- Doug doug . schepers @ vectoreal.com www.vectoreal.com ...for scalable solutions. - 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/