summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-02-01 16:31:32 +0100
committerwout <wout@impinc.co.uk>2014-02-01 16:31:32 +0100
commitc8261c9ebe129ea0b281c876fdf722d04a8a4904 (patch)
treedeeff3bda7e2509c4e9e156387bccd984c0caa1b
parentb50d376804d57e17f467325e1e95a7ef29bc0955 (diff)
downloadsvg.js-c8261c9ebe129ea0b281c876fdf722d04a8a4904.tar.gz
svg.js-c8261c9ebe129ea0b281c876fdf722d04a8a4904.zip
Updated README
-rw-r--r--README.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/README.md b/README.md
index a7933de..e638034 100644
--- a/README.md
+++ b/README.md
@@ -805,7 +805,8 @@ Without an argument the `x()` method serves as a getter as well:
rect.x() //-> returns 200
```
-__`returns`: number__
+__`returns`: itself [setter]__
+__`returns`: number [getter]__
### y()
Move element only along y-axis by its upper left corner:
@@ -820,7 +821,8 @@ Without an argument the `y()` method serves as a getter as well:
rect.y() //-> returns 350
```
-__`returns`: number__
+__`returns`: itself [setter]__
+__`returns`: number [getter]__
### relative()
The `move()`, `x()` and `y()` methods move an element to an absolute position. With the `relative()` method, elements can be moved relatively to their current position. This can be done by calling the `relative()` method before the `move()`, `x()` or `y()` methods in the method chain:
@@ -867,7 +869,8 @@ Without an argument the `cx()` method serves as a getter as well:
rect.cx() //-> returns 200
```
-__`returns`: number__
+__`returns`: itself [setter]__
+__`returns`: number [getter]__
### cy()
Move element only along y-axis by its center:
@@ -882,7 +885,8 @@ Without an argument the `cy()` method serves as a getter as well:
rect.cy() //-> returns 350
```
-__`returns`: number__
+__`returns`: itself [setter]__
+__`returns`: number [getter]__
### size()
Set the size of an element by a given `width` and `height`:
@@ -920,7 +924,8 @@ This method also acts as a getter:
rect.width() //-> returns 200
```
-__`returns`: number__
+__`returns`: itself [setter]__
+__`returns`: number [getter]__
### height()
Set only height of an element:
@@ -935,7 +940,8 @@ This method also acts as a getter:
rect.height() //-> returns 325
```
-__`returns`: number__
+__`returns`: itself [setter]__
+__`returns`: number [getter]__
### hide()
Hide element: