I have a raphael.js shape which I am plotting circle's on top of. I only want a circle to appear if the circle does not go off the boundary of the shape it is being plotted on to.
To make this more clear, here is an example of what I do not want to happen:
I want the circles outside of the grey area not to appear. How would I detect ...
What I want
My goal is to be able to display a large number of SVG images on a single drawing area in Java, each with its own translation/rotation/scale values. I'm looking for the simplest solution allowing this, optionally even using OpenGL to speed things up.
What I've Tried
My initial naive approach was to use SVGSalamander to dra...
I would like to display a SVG layer (polygons) over the openlayers tiles in an html page, or alternatively, load my SVG in flash and have the OL tiles rendered into flash as well.
Is any/either of these ideas possible at all?
Thanks in advance
...
I have a series of shapes that I want the user to be able click anywhere on the shape to pick up as part of a drag and drop feature. All of these shapes are bounded by a rectangle.
For example:
<g id="shape1" fill="none" stroke="black">
<rect x="0" y="0" width="100" height="100"/>
<circle cx="50" cy="50" r="50"/>
</g>
<g id="s...
I have a SVG document that I exported from Visio 2003 that would like to edit. This file has an action where you click a button it will navigate to a new screen. What I would like to do is have the navigation be based off of a data point rather than having to click the button.
As an example I have a dynamic point data being brought in...
I have a simplr svg-graph and I'm trying to create a simple
tooltip-popup for this graph, but I'm unable to find out how to set the position
of the tooltip properly.
I have a .css where my popup-div is absolute:
#popup {
position: relative
When creating nodes in the svg I hook a listener like:
p.setAttributeNS(null,"onmousem...
I use jqGrid with many columns contains Boolean information, which are displayed as checkboxes inside of table (see http://www.ok-soft-gmbh.com/VerticalHeaders/TestFixedO.htm as an example). To display information more compact I use vertical column headers. It works very well and works in jqGrid in all browsers (see my discussion with To...
I'm using http://raphaeljs.com/ to try and draw multiple small circles. The problem I'm having is that the canvas has a fixed width, and if I want to draw, say, 1000 circles, they don't wrap onto a 'new line' (because you have to specify the xy position of each circle).
E.g.
I want this:
...................................................
I need to create an interactive world map on the front page of a site, the view portal will be about 650x200 pixels. The interactivity would include the following, mouse-over a country would highlight (the countries are will literally be filled with "red" for example) that country and display the countries' name (preferably text in a di...
Hello,
I have a transparent SVG file.
I would like to use it as the icon of a JLabel, via setIcon().
I use Batik for SVG, but I don't know how to do this.
Can you help me ?
Thanks :)
...
Hello,
I use SVG inisde my xhtml file. I can not get access to the text with id="Wert".
What is wrong, I want to change the color form blue to red.
Untitled Page
<script type="text/javascript">
function OnLoad() {
setTimeout("timer()", 1000);
}
function timer() {
var randomnumber = Math.floor(M...
Hello !
I have a svg file of 100x100 pixels (for example).
I am using Batik.
If I do a :
JSVGCanvas svg = new JSVGCanvas();
[...]
svg.setSize(10,10);
It will only show this part of the picture and not the resized image.
Do you know how I can display a resized svg picture ?
Thanks ;)
...
What do I need to do something like this?
User builds a diagram and tags
certain boxes and circles with text.
User imports diagram into my
program.
My program processes the tagged
boxes and circles and fills them
with different colors.
My program exports color-filled
diagram.
So the questions are...
What graphics format supports
ta...
Hi -
I have some large, dynamically generated SVGs that are being served over a relatively slow internet connection. I'm trying to optimize them to be viewable as fast as possible. If I set the server to Content-Encoding: gzip and Transfer-Encoding: chunked, will any SVG viewers take advantage of that and render it partially, as it is...
I am trying to copy paths from inkscape into Raphael (individual countries), the problem is the moveTo is way off, how do I make it display on the relatively correct position on the canvas?
...
In the course of toying with SVG for the first time (using the Raphael library), I've run into a problem positioning dynamic elements on the canvas in such a way that they're completely contained within the canvas. What I'm trying to do is randomly position n words/short phrases.
Since the text is variable, its position needs to be vari...
I'm trying to use SMIL to animate the typing of text into a field embedded in a SVG. I tried the following code in both Chrome and a SMIL-enable Firefox nightly, but it has no effect:
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:html="http://www.w3.org/1999/xhtml">
<foreignObject>
<html:input type="text" value="">
<...
I'm trying to open simple vector graphics using Raphaël JS and I can't find any converter that would do the whole job.
Is there any way to transfer vector graphics (SVG or anything from Illustrator, Inkscape) into Raphaël's JavaScript?
...
I made the following observation:
If I create an svg image that references an external raster image via xlink:href and try to load the svg in browsers, the external images are only shown if I use the <object> tag, but not when using the <img> tag.
Rendering with the <object> tag is quite slow and not as clean as using the img tag for i...
Hello,
is it possible to create a screenshot of a WPF application as SVG / is there some WPF built-in function to get the XAML code for the current drawn window that then can be converted to SVG? I need some screenshots for documenting a WPF application and I'd like them to be zoomable like a WPF program is using e.g. Snoop or Vista Mag...