Permalink
Browse files

upgrading the animation and attributes to take full advantage of jQue…

…ry 1.4.3
  • Loading branch information...
1 parent 0720138 commit 08dffa73d17337c66f9c9c723e19365e44cb7b7d @heygrady committed Oct 25, 2010
Showing with 270 additions and 262 deletions.
  1. +20 −0 src/jquery.matrix.functions.js
  2. +127 −230 src/jquery.transform.animate.js
  3. +71 −19 src/jquery.transform.attributes.js
  4. +35 −10 test/_test.html
  5. +8 −1 test/test.html
  6. +9 −2 test/test2.html
@@ -213,6 +213,26 @@
0, 1, ty,
0, 0, 1
);
+ },
+
+ /**
+ * Translate on the X-axis
+ * @param Number tx
+ * @return Matrix
+ * @link http://www.w3.org/TR/SVG/coords.html#TranslationDefined
+ */
+ translateX: function (tx) {
+ return $.matrix.translate(tx);
+ },
+
+ /**
+ * Translate on the Y-axis
+ * @param Number ty
+ * @return Matrix
+ * @link http://www.w3.org/TR/SVG/coords.html#TranslationDefined
+ */
+ translateY: function (ty) {
+ return $.matrix.translate(0, ty);
}
});
})(jQuery, this, this.document);
Oops, something went wrong.

0 comments on commit 08dffa7

Please sign in to comment.