diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-04-22 22:16:36 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-04-22 22:16:36 +0200 |
commit | ab1c07e80bd21f2cdf773be238d4dd754db4e80a (patch) | |
tree | b1386635a4e54f29eee8cfa41151fd930610c25e /src/doc.js | |
parent | 03d25548fe99c87ed74e789b894e37a7fc6caf34 (diff) | |
download | svg.js-ab1c07e80bd21f2cdf773be238d4dd754db4e80a.tar.gz svg.js-ab1c07e80bd21f2cdf773be238d4dd754db4e80a.zip |
changed `style()` to `css()`
it now accepts array as input and returns object when no argument given (#517)
also removed sub-pixel offset fix
Diffstat (limited to 'src/doc.js')
-rw-r--r-- | src/doc.js | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -55,19 +55,6 @@ SVG.Doc = SVG.invent({ , parent: function() { return this.node.parentNode.nodeName == '#document' ? null : this.node.parentNode } - // Fix for possible sub-pixel offset. See: - // https://bugzilla.mozilla.org/show_bug.cgi?id=608812 - , spof: function(spof) { - var pos = this.node.getScreenCTM() - - if (pos) - this - .style('left', (-pos.e % 1) + 'px') - .style('top', (-pos.f % 1) + 'px') - - return this - } - // Removes the doc from the DOM , remove: function() { if(this.parent()) { |