aboutsummaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2012-12-29 15:39:40 +0100
committerwout <wout@impinc.co.uk>2012-12-29 15:39:40 +0100
commit95c7db4d86c429ce4ade55b2f4fec96126640d11 (patch)
tree27735bb6dde7d33aedff157da78e95b462c80594 /dist/svg.js
parent5fc94f8c98602d8c5081e9f3c67cb409ff75eb56 (diff)
downloadsvg.js-95c7db4d86c429ce4ade55b2f4fec96126640d11.tar.gz
svg.js-95c7db4d86c429ce4ade55b2f4fec96126640d11.zip
Improved container
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 5d3a670..61f9898 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -1,4 +1,4 @@
-/* svg.js v0.1-38-ga20c0b1 - svg container element group arrange defs clip gradient doc shape rect ellipse poly path image text sugar - svgjs.com/license */
+/* svg.js v0.1-40-g5fc94f8 - svg container element group arrange defs clip gradient doc shape rect ellipse poly path image text sugar - svgjs.com/license */
(function() {
this.SVG = {
@@ -121,7 +121,7 @@
r = function() {
if (document.readyState === 'complete') {
- e.attr('style', 'position:absolute;left:0;top:0;');
+ e.attr('style', 'position:absolute;');
setTimeout(function() { e.attr('style', 'position:relative;'); }, 5);
} else {
setTimeout(r, 10);
@@ -605,8 +605,8 @@
// position element by its center
center: function(x, y) {
return this.attr({
- cx: (x || ((this.attrs.x || 0) + (this.attrs.rx || 0))),
- cy: (y || ((this.attrs.y || 0) + (this.attrs.ry || 0)))
+ cx: x || ((this.attrs.x || 0) + (this.attrs.rx || 0)),
+ cy: y || ((this.attrs.y || 0) + (this.attrs.ry || 0))
});
}