raphael
raphael copied to clipboard
JavaScript Vector Library
This rect: function (el) { var a = el.attrs; return rectPath(a.x, a.y, a.width, a.height, a.r); } should be replaced to rect: function (el) { var a = el.attrs; return rectPath(a.x,...
For example,when I load the big image to fill the circle, but I want to set this big image size as the circle size. --- the same question as: https://stackoverflow.com/questions/1098994/scaling-a-fill-pattern-in-raphael-js...
getBBox on a set will return Infinity and -Infinity for all of the bbox values. If done on one with a child set that is empty it would return NaN....
I got some trouble with binding a drag event and a click event on the same elements : ``` javascript set.click( function(){ this.remove().clear(); }); set.drag(function(dx,dy){...},function(){...},function(){...}); ``` when the drag end,...
Hello, I have an memory issue with rapahel pathBBox. I'm working on ipad with phonegap I have a function who calculate the new viewBox for my svg draw, when i...
Example: var circle = paper.circle(100, 56, 50); circle.getPathString(); will return: "M100,56M100,6C138.49001794597504,6.000000000000003,162.54627916220946,47.66666666666667,143.30127018922195,81C134.36963044151787,96.47005383792515,117.86327949540818,106,100,106C61.50998205402496,106,37.453720837790556,64.33333333333334,56.69872981077806,31.000000000000014C65.63036955848214,15.529946162074857,82.13672050459182,6.0000000000000036,100,6C100,6,100,6,100,6"
Example: var circle = paper.circle(100, 56, 50); circle.attr('r'); ---> 50 circle.transform('s0.5'); circle.attr('r'); ---> 50 Once the element is transformed, its path and attributes have changed. It will be really useful...
I would expect the last circle to inherit the parent set transformation. ``` var paper = Raphael("chart", 700, 700); var st = paper.set(); st.push( paper.circle(10, 10, 5), paper.circle(30, 10, 5)...
Is it possible to specify an existing canvas instead of specifying a container element for a new `Paper` instance? Thanks in advance, Adriano
I'm trying to place two Raphael diagrams into a very basic bootstrap layout, but it's not behaving properly. Here is the plunker: http://plnkr.co/edit/p3k99ngacdQbUN7m5Df7?p=preview If you make the result area wide...