Skip to content

Commit

Permalink
compiles v0.8.21
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Nov 10, 2016
1 parent 05f5a16 commit 9125e10
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 50 deletions.
128 changes: 79 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,6 @@ function(d) {
* [new Rect()](#new_Rect_new)
* [.height([*value*])](#Rect.height)
* [.width([*value*])](#Rect.width)
* [.x([*value*])](#Rect.x)
* [.y([*value*])](#Rect.y)

<a name="new_Rect_new"></a>

Expand Down Expand Up @@ -501,47 +499,14 @@ function(d) {
return d.width;
}
```
<a name="Rect.x"></a>

#### Rect.x([*value*])
If *value* is specified, sets the x accessor to the specified function or number and returns the current class instance. If *value* is not specified, returns the current x accessor.

**Kind**: static method of <code>[Rect](#Rect)</code>

| Param | Type |
| --- | --- |
| [*value*] | <code>function</code> &#124; <code>Number</code> |

**Example**
```js
function(d) {
return d.x;
}
```
<a name="Rect.y"></a>

#### Rect.y([*value*])
If *value* is specified, sets the y accessor to the specified function or number and returns the current class instance. If *value* is not specified, returns the current y accessor.

**Kind**: static method of <code>[Rect](#Rect)</code>

| Param | Type |
| --- | --- |
| [*value*] | <code>function</code> &#124; <code>Number</code> |

**Example**
```js
function(d) {
return d.y;
}
```
<a name="Shape"></a>

### Shape
**Kind**: global class

* [Shape](#Shape)
* [new Shape()](#new_Shape_new)
* [.render([*callback*])](#Shape.render)
* [.backgroundImage([*value*])](#Shape.backgroundImage)
* [.data([*data*])](#Shape.data)
* [.duration([*ms*])](#Shape.duration)
Expand All @@ -557,21 +522,35 @@ function(d) {
* [.labelPadding([*value*])](#Shape.labelPadding)
* [.lineHeight([*value*])](#Shape.lineHeight)
* [.opacity([*value*])](#Shape.opacity)
* [.render([*callback*])](#Shape.render)
* [.scale([*value*])](#Shape.scale)
* [.select([*selector*])](#Shape.select)
* [.shapeRendering([*value*])](#Shape.shapeRendering)
* [.sort([*value*])](#Shape.sort)
* [.stroke([*value*])](#Shape.stroke)
* [.strokeWidth([*value*])](#Shape.strokeWidth)
* [.textAnchor([*value*])](#Shape.textAnchor)
* [.transform([*value*])](#Shape.transform)
* [.vectorEffect([*value*])](#Shape.vectorEffect)
* [.verticalAlign([*value*])](#Shape.verticalAlign)
* [.x([*value*])](#Shape.x)
* [.y([*value*])](#Shape.y)

<a name="new_Shape_new"></a>

#### new Shape()
An abstracted class for generating shapes.

<a name="Shape.render"></a>

#### Shape.render([*callback*])
Renders the current Shape to the page. If a *callback* is specified, it will be called once the shapes are done drawing.

**Kind**: static method of <code>[Shape](#Shape)</code>

| Param | Type |
| --- | --- |
| [*callback*] | <code>function</code> |

<a name="Shape.backgroundImage"></a>

#### Shape.backgroundImage([*value*])
Expand Down Expand Up @@ -759,17 +738,6 @@ If *value* is specified, sets the opacity accessor to the specified function or
| --- | --- | --- |
| [*value*] | <code>Number</code> | <code>1</code> |

<a name="Shape.render"></a>

#### Shape.render([*callback*])
Renders the current Shape to the page. If a *callback* is specified, it will be called once the shapes are done drawing.

**Kind**: static method of <code>[Shape](#Shape)</code>

| Param | Type |
| --- | --- |
| [*callback*] | <code>function</code> |

<a name="Shape.scale"></a>

#### Shape.scale([*value*])
Expand All @@ -792,6 +760,34 @@ If *selector* is specified, sets the SVG container element to the specified d3 s
| --- | --- | --- |
| [*selector*] | <code>String</code> &#124; <code>HTMLElement</code> | <code>d3.select(&quot;body&quot;).append(&quot;svg&quot;)</code> |

<a name="Shape.shapeRendering"></a>

#### Shape.shapeRendering([*value*])
If *value* is specified, sets the shape-rendering accessor to the specified function or string and returns the current class instance. If *value* is not specified, returns the current shape-rendering accessor.

**Kind**: static method of <code>[Shape](#Shape)</code>

| Param | Type | Default |
| --- | --- | --- |
| [*value*] | <code>function</code> &#124; <code>String</code> | <code>&quot;geometricPrecision&quot;</code> |

**Example**
```js
function(d) {
return d.x;
}
```
<a name="Shape.sort"></a>

#### Shape.sort([*value*])
If *value* is specified, sets the sort comparator to the specified function and returns the current class instance. If *value* is not specified, returns the current sort comparator.

**Kind**: static method of <code>[Shape](#Shape)</code>

| Param | Type | Default |
| --- | --- | --- |
| [*value*] | <code>false</code> &#124; <code>function</code> | <code>[]</code> |

<a name="Shape.stroke"></a>

#### Shape.stroke([*value*])
Expand Down Expand Up @@ -858,6 +854,40 @@ If *value* is specified, sets the vertical alignment accessor to the specified f
| --- | --- | --- |
| [*value*] | <code>function</code> &#124; <code>String</code> &#124; <code>Array</code> | <code>&quot;start&quot;</code> |

<a name="Shape.x"></a>

#### Shape.x([*value*])
If *value* is specified, sets the x accessor to the specified function or number and returns the current class instance. If *value* is not specified, returns the current x accessor.

**Kind**: static method of <code>[Shape](#Shape)</code>

| Param | Type |
| --- | --- |
| [*value*] | <code>function</code> &#124; <code>Number</code> |

**Example**
```js
function(d) {
return d.x;
}
```
<a name="Shape.y"></a>

#### Shape.y([*value*])
If *value* is specified, sets the y accessor to the specified function or number and returns the current class instance. If *value* is not specified, returns the current y accessor.

**Kind**: static method of <code>[Shape](#Shape)</code>

| Param | Type |
| --- | --- |
| [*value*] | <code>function</code> &#124; <code>Number</code> |

**Example**
```js
function(d) {
return d.y;
}
```


###### <sub>Documentation generated on Fri, 04 Nov 2016 20:32:56 GMT</sub>
###### <sub>Documentation generated on Thu, 10 Nov 2016 18:13:16 GMT</sub>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3plus-shape",
"version": "0.8.20",
"version": "0.8.21",
"description": "Fancy SVG shapes for visualizations",
"main": "build/d3plus-shape.js",
"jsnext:main": "index",
Expand Down

0 comments on commit 9125e10

Please sign in to comment.