Questions tagged [svg]
Scalable Vector Graphics (SVG) is an XML-based two-dimensional vector graphics format that can also be used in HTML. Do not add this tag just because your project uses SVG. Instead, add the tag if your question is either about SVG or closely related, like how to achieve something with SVG.
44,218
questions
2
votes
2
answers
1k
views
SVG to JPEG via PHP4
I am currently struggling with a side project I hope you can help me with.
I am trying to convert SVG images to JPEG with PHP4.
Originally I tried to interface java with php via the php_java.dll and ...
3
votes
3
answers
2k
views
Using JavaScript to model 3D polyhedra
Is there a JavaScript library that models 3D polyhedra using the canvas tag or SVG? Say I wanted to produce renderings of the Platonic solids, how would I best achieve this? FWIW, I'm only concerned ...
6
votes
1
answer
6k
views
Calculating SVG paths
I have a quite complex image map (made up of over 150 pieces) and I want to convert the coords within the map to SVG path standard format.
The reason why is I want to use the following instead of an ...
2
votes
1
answer
851
views
Hyperlink over embedded SVG
I have a page with an object tag that contains a SVG. Is there an easy method to make it clickable (in order to show a larger version in a popup when clicked)?
5
votes
3
answers
3k
views
Can I use mixed units with 'path' element?
SVG has a rectangle element which dimensions could be specified in percent of dimensions of its owner and radius in pixels. So by doing the following
<div style="position: relative;">
...
1
vote
1
answer
3k
views
web link in svg
I need to have a linked text inside a svg graph. Here is what I did
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="138pt" height="188pt" viewBox="0.00 0.00 138.00 188.00" ...
4
votes
1
answer
1k
views
Rotating 3D cube perspective problem
Since I was 13 and playing around with AMOS 3D I've been wanting to learn how to code 3D graphics. Now, 10 years later, I finally think I have have accumulated enough maths to give it a go.
I have ...
12
votes
4
answers
14k
views
Simplest way to clear a container using raphaeljs javascript graphical library
I have to clear and redraw a raphael javascript main container. I've tried with
var paper = Raphael(10, 50, 320, 200);
paper.remove(); // Doesn't work
paper.node.removeNode(); //this neither
...
12
votes
7
answers
18k
views
Inline SVG in HTML, with Firefox 3.5
I'm trying to create some mixed HTML/SVG content and having some trouble. The HTML content shows up as expected, but the inline SVG does not. So, I do some experiments.
I find sites which have ...
34
votes
5
answers
47k
views
SVG draggable using JQuery and Jquery-svg
I have an HTML 5 page where I load an svg circle. When I click on the circle I create another small circle where I click. I want to be able to drag the second circle but cant seem to do it with jquery-...
3
votes
1
answer
898
views
SVG Linear Gradient Scale and Translation Question
I have the following radial gradient:
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient2454"
id="radialGradient2460"
cx="4022.8572"
cy="5451.2656"
fx="4022....
5
votes
2
answers
3k
views
Gradient servers as external files in SVG [duplicate]
Possible Duplicate:
Include SVG file in SVG
the fill property in SVG accepts an url to point to a gradient/pattern element, an instance of a so-called 'paint server'.
The Question: Is it ...
3
votes
4
answers
4k
views
How to show a subsection or "slice" of an SVG graphic?
Is there any way to slice an SVG . I mean any already available lib . I need to implement this slicing component in Java.
I mean , I have single SVG file and based rulers/scales i choose graphically ,...
2
votes
4
answers
7k
views
Is there a script available to resize SVG?
Is there a way to script the rescaling of a .SVG from its current size (thousands of pixels) to a much smaller size? I've tried ImageMagick, but its support for SVG gradients is far too weak to be ...
2
votes
4
answers
2k
views
What types of SVG gradient fills are supported when using the Embed meta tag in ActionScript3
I've been trying to embed some svg files into an AS3 project using the Embed meta tag. For example:
[Embed(source = "assets/image.svg")]
private var Image : Class;
However when displaying these ...