Skip to content

Commit

Permalink
compiles v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Jul 1, 2016
1 parent edce289 commit 6f914d7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ npm install d3plus-common

<a name="install.browser"></a>
### Browser
In a vanilla environment, a `d3plus_common` global is exported. To use a compiled version hosted on [d3plus.org](https://d3plus.org) that includes all dependencies:
In a vanilla environment, a `d3plus` global is exported. To use a compiled version hosted on [d3plus.org](https://d3plus.org) that includes all dependencies:

```html
<script src="https://d3plus.org/js/d3plus-common.v0.3.full.min.js"></script>
<script src="https://d3plus.org/js/d3plus-common.v0.4.full.min.js"></script>
```

Otherwise, [click here](https://github.com/d3plus/d3plus-common/releases/latest) to download the latest release.
Expand Down Expand Up @@ -58,6 +58,9 @@ The source code is written using standard `import` and `export` statements. Crea
<dt><a href="#merge">merge(objects)</a></dt>
<dd><p>Combines an Array of Objects together and returns a new Object.</p>
</dd>
<dt><a href="#stylize">stylize(The, An)</a></dt>
<dd><p>Applies each key/value in an object as a style.</p>
</dd>
</dl>

<a name="accessor"></a>
Expand Down Expand Up @@ -152,3 +155,15 @@ merge([
```js
{id: ["bar", "foo"], group: "A", value: 30}
```
<a name="stylize"></a>

## stylize(The, An)
Applies each key/value in an object as a style.

**Kind**: global function

| Param | Type | Description |
| --- | --- | --- |
| The | <code>D3selection</code> | D3 element to apply the styles to. |
| An | <code>Object</code> | object of key/value style pairs. |

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3plus-common",
"version": "0.3.7",
"version": "0.4.0",
"description": "Common functions and methods used across D3plus modules.",
"main": "build/d3plus-common.js",
"jsnext:main": "index",
Expand Down

0 comments on commit 6f914d7

Please sign in to comment.