@phun-ky/moebius 0.2.4 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -3
- package/{moebius.d.ts → dist/moebius.d.ts} +532 -532
- package/dist/moebius.js +84 -0
- package/dist/moebius.js.map +1 -0
- package/package.json +58 -35
- package/moebius.js +0 -2
- package/moebius.js.map +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> Automatically generate color palettes!
|
|
6
6
|
|
|
7
|
-
[](http://commitizen.github.io/cz-cli/) [](http://makeapullrequest.com) [](http://semver.org/spec/v2.0.0.html)      
|
|
7
|
+
[](http://commitizen.github.io/cz-cli/) [](http://makeapullrequest.com) [](http://semver.org/spec/v2.0.0.html)       [](https://codecov.io/gh/phun-ky/moebius)
|
|
8
8
|
|
|
9
9
|
- [@phun-ky/moebius `möbius`](#phun-kymoebius-möbius)
|
|
10
10
|
- [About](#about)
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
- [toObject](#toobject)
|
|
29
29
|
- [toFloat](#tofloat)
|
|
30
30
|
- [Types](#types)
|
|
31
|
+
- [Contributing](#contributing)
|
|
31
32
|
- [Sponsor me](#sponsor-me)
|
|
32
33
|
|
|
33
34
|
## About
|
|
@@ -73,7 +74,7 @@ const defaultOptions = {
|
|
|
73
74
|
noDuplicates: true,
|
|
74
75
|
colorScaleMode: 'lch',
|
|
75
76
|
reverseDirection: false,
|
|
76
|
-
divergentColor: '#f5f5f5'
|
|
77
|
+
divergentColor: '#f5f5f5'
|
|
77
78
|
};
|
|
78
79
|
```
|
|
79
80
|
|
|
@@ -87,7 +88,7 @@ const { MoebiusPalette, MoebiusColor } = await Moebius();
|
|
|
87
88
|
const palettes = new MoebiusPalettes({
|
|
88
89
|
baseColor: new MoebiusColor('#003f5c'),
|
|
89
90
|
secondaryColor: new MoebiusColor('#ff9900'),
|
|
90
|
-
...options
|
|
91
|
+
...options
|
|
91
92
|
});
|
|
92
93
|
```
|
|
93
94
|
|
|
@@ -406,6 +407,10 @@ console.log(color.toFloat(); // "0, 0.25, 0.36"
|
|
|
406
407
|
|
|
407
408
|
Types can be found in `@phun-ky/moebius/moebius.d.ts`.
|
|
408
409
|
|
|
410
|
+
## Contributing
|
|
411
|
+
|
|
412
|
+
If you want to contribute, please read the [CONTRIBUTING.md](https://github.com/phun-ky/moebius/blob/main/CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](https://github.com/phun-ky/moebius/blob/main/CODE_OF_CONDUCT.md)
|
|
413
|
+
|
|
409
414
|
## Sponsor me
|
|
410
415
|
|
|
411
416
|
I'm an Open Source evangelist, creating stuff that does not exist yet to help get rid of secondary activities and to enhance systems already in place, be it documentation or web sites.
|