raphael
raphael copied to clipboard
JavaScript Vector Library
the gradient fill wouldn't find its defining elements from the svg defs section, because it is referred to in an absolute manner, and the url would include anchor (#) tags....
Before: ``` javascript var inVarTextRef = this._paper.text(pointX, pointY, textToDisplay).attr({ 'text-anchor': 'end', 'font-size': '12px', 'title': textToDisplay, /* testVarA */ 'cursor': 'pointer' }); ``` ![image](https://cloud.githubusercontent.com/assets/1756049/8531911/959cada4-23f8-11e5-9869-3ad5f6d9bef7.png) After: ``` javascript inVarTextRef.attr('text', value); /* value...
With a rect's attribute `vector-effect` set to [`non-scaling-stroke`](http://www.w3.org/TR/SVGTiny12/painting.html#NonScalingStroke), a greater than one `stroke-width`, calling the transform method with a scale greater than 1, the stroke width is changed. I've narrowed...
It would be **awesome** if we had another **attribute** for `paper.text()` that could specify **top-left** alignment. It's difficult to put text inside a box, especially if such text is later...
I use RaphaelJS for generate SVG, SVG is 1024px width and height, i use setViewBox because a div container is more small 510px width and height, this work, with IE8...
When you touch and hold text element created by Rapahel in Safari on iOS7, Safari crashes. On iOS6 everything works fine. It can be tested on http://raphaeljs.com/easing.html . Just press...
The MATRIX in Raphael has only six element. But I want to analog perspective behaviors, the matrix need to be 3*3. How to do? Thanks for answering.
fix setViewBox bugs in IE8, Repair "scale" property, it should not be "pageSize", which is equal to "1 / mmax(w / width, h / height)".
My code is like this below, and I can't see any thing in viewport. paper.setViewBox(0, 0, 4200, 4800, true); If I set the last argument to false, only the left...
Element.scale(sx, sy, [cx], [cy]) has a bug in IE8. when using the method, warning "this._.transform is undefind" Maybe need fixed the code in line 7722 in version 2.1.4 if (oldt...