Skip to content

Commit

Permalink
Bump 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Apr 16, 2022
1 parent 1721c36 commit 3802a87
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ var palette = Palette.fromMapping(
* **mapping** *object|Map*: mapping from values to colors.
* **defaultColor** *?string* [`#ccc`]: default color to return in case desired value is not known.

*Palette.fromJSON arguments*

* **data** *object*: serialized palette data (`{name, defaultColor, entries}`).

*Palette members*

* **name** *string*: name of the palette.
Expand All @@ -122,6 +126,7 @@ var palette = Palette.fromMapping(
* **has**: return whether the value is known to the palette.
* **forEach**: callback iteration over (color, value).
* **colors**: return the palette's colors as an array.
* **toJSON**: return the palette in a serialized format fit for JSON.

### Precomputed palettes

Expand Down
4 changes: 2 additions & 2 deletions npm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iwanthue",
"version": "1.6.1",
"version": "2.0.0",
"description": "Colors for data scientists. Generate and refine palettes of optimally distinct colors.",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 3802a87

Please sign in to comment.