diff options
author | wout <wout@impinc.co.uk> | 2014-02-01 16:31:32 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-02-01 16:31:32 +0100 |
commit | c8261c9ebe129ea0b281c876fdf722d04a8a4904 (patch) | |
tree | deeff3bda7e2509c4e9e156387bccd984c0caa1b | |
parent | b50d376804d57e17f467325e1e95a7ef29bc0955 (diff) | |
download | svg.js-c8261c9ebe129ea0b281c876fdf722d04a8a4904.tar.gz svg.js-c8261c9ebe129ea0b281c876fdf722d04a8a4904.zip |
Updated README
-rw-r--r-- | README.md | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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: |