diff options
author | wout <wout@impinc.co.uk> | 2014-02-03 15:19:26 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-02-03 15:19:26 +0100 |
commit | 78bbbfebcf6a2b2e17e46f395cf665c932957f36 (patch) | |
tree | 2b783ba820490c7179981ccd98bd799e8d41e68d /README.md | |
parent | e2304534e0cfb6f6f4ab8c37ea5275ae26cd455a (diff) | |
download | svg.js-78bbbfebcf6a2b2e17e46f395cf665c932957f36.tar.gz svg.js-78bbbfebcf6a2b2e17e46f395cf665c932957f36.zip |
Updated README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2335,7 +2335,7 @@ SVG.Rounded = SVG.invent({ } } - // Add create method to parent elements + // Add method to parent elements , construct: { // Create a rounded element rounded: function(width, height) { @@ -2357,12 +2357,12 @@ That's, the invention is now ready to be used! The `SVG.invent()` function always expectes an object. The object accepts the following configuration values: - `create`: can be either a string with the node name (e.g. `rect`, `ellipse`, ...) or a custom initializer function; `[required]` -- `inherit`: the desired svg.js class to inherit from (e.g. `SVG.Shape`, `SVG.Element`, `SVG.Container`, SVG.Rect`, ...); `[optional]` +- `inherit`: the desired svg.js class to inherit from (e.g. `SVG.Shape`, `SVG.Element`, `SVG.Container`, `SVG.Rect`, ...); `[optional]` - `extend`: an object with the methods that should eb applied to the element's prototype; `[optional]` - `construct`: an objects with the methods to create the element on the parent element; `[optional]` - `parent`: an svg.js parent class on which the methods in the passed `construct` object should be available; `[optional]` -Svg.js uses the `SVG.invent()` function`to create all internal elements, so have a look at the source to see how this function is used in various ways. +Svg.js uses the `SVG.invent()` function to create all internal elements, so have a look at the source to see how this function is used in various ways. ### SVG.extend() |