Using Raphael JS, fill an SVG element with with a background-image with an offset
问题 I want to this this Fill SVG element with with a background-image with an offset, but using Raphael JS. Displaying an rectangle with a background image without the offset is easy. canvas.rect( positionx, positiony, width, height ).attr( {fill: "url('/content/image_set.gif')"} ); The code above will display only the upper-left corner of the image. I want to shift it and display another part of it. How can I do it? 回答1: I'd suggest drawing the image separately from the rect. If you need the