Все вопросы: [svg]

153 вопросов

1
голосов
4ответов
14854 просмотров

SVG not working when access on localhost. Why?

Does anybody know why the same code from this page http://emacsformacosx.com/ would not render when hosted on a local tomcat server? I am trying to play with some SVG but can't see to make it work locally. Any ideas?

18
голосов
1ответов
9484 просмотров

Allow SVG graphics to overflow outside the containing svg element

I'm using the Raphaël—JavaScript Library to create some pie chart graphics, but I want to set the overflow of the containing SVG element to visible, to allow the graphics inside to display outside of their container. The way you would with normal dom elements (overflow: visible;) does not seem to...

1
голосов
1ответов
125 просмотров

What tool is this - or anyone got an alternative tool

I need to make a very simple drawing of a graph (NOT a chart but a graph, like in Dijkstra) with multiple nodes and multiple vertexes. I once saw this guy using a tool where he wrote the data in notepad then compiled or something and then he had an svg to view in a browser - to me this should be...

5
голосов
1ответов
2912 просмотров

Mobile Safari SVG rendering issues with raphaeljs

I am working on an animated, interactive graph using raphael that I need to work well on the iPhone. I have 2 minor rendering issues that I'm struggling with. The first is that whenever you click on an svg element that has a click handler attached, mobile safari draws a transparent gray box arou...

2
голосов
3ответов
562 просмотров

How can I access the sub-items of a <use> tag from javascript?</use>

I have the following SVG code in a XHTML page &lt;svg:svg&gt; &lt;svg:svg width="450" heigth="450" viewBox="0 0 500 500"&gt; &lt;svg:defs&gt; &lt;svg:g id='mygroup'&gt; &lt;svg:circle id='a' cx="15" cy="15" r='15' fill="green" fill-opacity="0.3"/&gt; &lt;svg...

66
голосов
4ответов
90132 просмотров

Drawing SVG in .NET/C#?

I'd like to generate an SVG file using C#. I already have code to draw them in PNG and EMF formats (using framework's standard class System.Drawing.Imaging.Metafile and ZedGraph). What could you recommend to do to adapt that code to SVG? Preferably I'd like to find some library (free or not) that...

1
голосов
2ответов
401 просмотров

Bend a vector image (text) with script language

We want to show a dynamic text (ttf font, or similar) in a generated vector image (svg, pdf) and it should be bended similar like the names on a football shirt. Is there any command line tool or other possibility to do that? It is important that it is a vector graphic since the output will be pri...

1
голосов
2ответов
481 просмотров

Adobe Air: draw vector graphics

Does Air supports SVG and if it not possible is there another way to event sensitive graphics draw via JavaScript.

1
голосов
2ответов
1422 просмотров

SVG via dynamic XML+XSL

This is a bit of a vague notion which I have been running over in my head, and which I am very curious if there is an elegant method of solving. Perhaps it should be taken as a thought experiment. Imagine you have an XML schema with a corresponding XSL transform, which renders the XML as SVG in...

4
голосов
1ответов
2168 просмотров

How to draw a (bezier) path with a fill color using GDI+?

I am making a SVG renderer for Windows using the Windows API and GDI+. SVG allows setting the 'fill' and 'stroke' style attributes on a Path. I am having some difficulty with the implementation of the 'fill' attribute. The following path represents a spiral: &lt;svg:path style="fill:yellow;...

0
голосов
1ответов
434 просмотров

Projecting only some part of SVG on Google Map

I have SVG files, which I'd like to: export and use as custom ground overlay with flat Euclidean projection (econym.org.uk/gmap/example_custommapflat.htm). take only polygons and project them on Google Map My SVG files have some rules in common: they all are 4096x4096px main objects of the ...

9
голосов
2ответов
5876 просмотров

Loading Qt plugins when linking to Qt statically?

I'm trying to use SVG graphics in QIcons. I have a static library that contains all my graphics resources, and a method in that static library that returns QIcons pre-loaded with the correct graphics. I'm trying to do this: QIcon icon(":/icons/find.svg"); I have verified that that resources ha...

1
голосов
1ответов
667 просмотров

Rendering SVG images with compact framework

I'm looking for a component to render SVG files in .Net Compact Framework (preferably 2.0) with the possibility to rotate and scale the image. DXF would also be an alternative but SVG would be preferred. Does anyone know of a component able to do this? Or have any recommendation on how to imple...

13
голосов
3ответов
17026 просмотров

Is there a way to render SVG in Windows Forms?

I am working with a library that renders part of its state as an SVG document. I would like to render this in either a Windows Forms or a WPF environment. Is there currently a way to do this? If not, I could modify the library to use a more general rendering strategy, and then add an XML adapte...

6
голосов
1ответов
4551 просмотров

Are there any tools to convert legacy VML to SVG?

Just wondering if anybody has come across a tool or anything to make the process easier of converting VML to SVG or some other modern format (Silverlight, flash). I'm dealing with some legacy VML browser renderings and I'd like to make it cross browser compatible. Right now the vml is being gen...

5
голосов
3ответов
3488 просмотров

How to center and scale SVG files inside another SVG file

I'm developing a program that generates svg files based on choices the user makes. One of these choises is to include another svg file centered on a specific point in the first one. The second file has an unknown aspect ratio and size, but it should be scaled to a specific max size either as heig...

1
голосов
1ответов
1543 просмотров

Finding objects under mouse in a JSVGCanvas from Batik

I have a JSVGCanvas object from the Batik library from java. In my application, I am rendering several objects in a schematic. I require to know what component is below the mouse so I can render an appropiate tooltip and description that I am rendering from an external source. My question is, ...

9
голосов
2ответов
6272 просмотров

Scrolling &amp; zooming SVG Viewer on Windows?

We need to view some very large (7200+ pixels) SVGs. Every SVG viewer I've found, including modern web browsers, does not allow us to view the entire image. There aren't any scrollbars, and we do not have the option to zoom. Is an open source / free application available that could help with vi...

4
голосов
1ответов
7157 просмотров

Using Raphael JS to create text nodes

I built some shapes using Raphael, and now I wanted to put some text into them. But, it seems, from the examples, that a text node can only be attached to the paper and not svg shapes? Is it possible to create multiple shapes with different text inside? The example I was using was: paper.text...

2
голосов
1ответов
1920 просмотров

SVG image sprites? Possible or not?

Has anyone ever used SVG for image sprites? I wish to replace a bunch of very similar GIFs and JPGs with some scalable SVG images, but the image gradient and button shape specifications bloat out the SVG. If I could create a composite diagram, then I might be able to reuse the gradients and bas...

4
голосов
3ответов
8191 просмотров

Any advantage to using SVG font in @font-face instead of TTF/EOT?

I am investigating the usage of SVG fonts in @font-face declaration. So far, only Safari 4 and Opera 10 seem to support it. Firefox 3.5 does not support it but there is a bug report but no fix has been supplied yet (though there are patches). I am wondering, with @font-face support in major bro...

5
голосов
2ответов
5613 просмотров

Animation: jQuery or Raphael?

I am building a page that will animate objects (image/shape/div) and float them around the screen. At times there may be a large number of objects floating and interacting. A requirement is to have data associated with each object, as they will each have an id. So, if I click one object, it ca...

0
голосов
1ответов
513 просмотров

jQuery doesn't select lineargradient object

I am using jQuery 1.3.2, and I'm trying to select some elements in an svg DOM element. $('svg &gt; defs &gt; lineargradient') However for some reason it does not select it, I know that I can access other items in the element since I have successfully retrieved an $("svg&gt; rect"). My SVG DO...

2
голосов
2ответов
1853 просмотров

JQuery, SVG and Visio metadata

I'm trying to access some custom data emitted into an SVG document by Visio 2007. I've used jquery.svg.js by Keith Wood. Unfortunately, even with the svgdom extension, I am not able to get to the shape I'm after to animate it. Here's what the SVG looks like: ... &lt;g id="group4-6" transform="t...

17
голосов
5ответов
24370 просмотров

How to make SVG work with IE?

Does anybody know of a comprehensive library to make SVG work with IE (7 and 8 in particular)? I wanted something Javascript which could be included in my web page and which would silently convert all my SVG to VML in a fashion similar to what excanvas does for Canvas.

20
голосов
2ответов
24066 просмотров

SVG: About using <defs> and <use> with variable text values</use></defs>

I have the following SVG source code that generates a number of boxes with texts: &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20050904/DTD/svg11.dtd"&gt; &lt;svg xmlns="http://www.w3.org/2000/svg" versio...

1
голосов
1ответов
813 просмотров

Generic solution for resolution of image in SVG

I have an xml file which I need to visualize in a pdf file. I use xslt to do transformations and an svg image in the pdf. The svg will finally draw some information and also display a tiff image, for which the path and the resolution is in the xml file. The problem is that the image can have dif...

8
голосов
5ответов
1411 просмотров

ASP.NET MVC: How do I send "text/xml" to all browsers but IE?

I need to be able to send the content type "text/xml" to Firefox and Safari, to allow them to render inline SVG in one of my pages. This works, as long as the content type is "text/xml". However, when IE hits the page, if the content type is not "text/html" it tries to render the XML document t...

5
голосов
2ответов
1212 просмотров

Creating SVGs using Python

I'm building a set of SVG files that include an unfortunate number of hardcoded values (they must print with some elements sized in mm, while others must be scaled as a percent, and most of the values are defined relative to each other). Rather than managing those numbers by hand (heaven forbid I...

3
голосов
2ответов
2126 просмотров

SVG -&gt; WPF linear gradient

Does anyone know if there is an equilant attribute of SVG's "gradientUnits=userSpaceOnUse" in WPF for a LinearGradientBrush? I can't seem to find this. If not, does anyone know about how to calculate it in (C# or VB.NET)? For example if I have a StartPoint of 0,0 and EndPoint of 1,1 on a Rectang...