g.raphael.0.51.js
authorAlan Knowles <alan@roojs.com>
Tue, 11 Nov 2014 05:18:34 +0000 (13:18 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 11 Nov 2014 05:18:34 +0000 (13:18 +0800)
g.raphael.0.51.js

index 70c7828..7e06a67 100644 (file)
@@ -767,7 +767,24 @@ Raphael.g = {
      * @param orentation //0=top 1=right 2=bottom 3=left
      *
      */
-    axis: function (x, y, length, from, to, steps, orientation, labels, type, dashsize, paper) {
+    axis: function (x, y, length, from, to, steps, orientation, labels, type, dashsize, paper)
+    {
+        if (R.is(x,"object")) {
+            opts = x;
+            x = opts.x;
+            y = opts.y;
+            length = opts.length;
+            from = opts.from;
+            to = opts.to;
+            steps = opts.steps;
+            orientation = opts.orientation;
+            labels = opts.labels,
+            type = opts.type,
+            dashsize = opts.dashsize;
+            paper = opts.paper;
+            
+            
+        }
         dashsize = dashsize == null ? 2 : dashsize;
         type = type || "t";
         steps = steps || 10;