Skip to content

Commit 9b01aa7

Browse files
committed
build
1 parent 56679a7 commit 9b01aa7

File tree

7 files changed

+13
-17
lines changed

7 files changed

+13
-17
lines changed

lib/cjs/invert.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,11 @@ function invert(color, bw) {
8989
* Generates inverted (opposite) version of the given color, as a RGB object.
9090
* @alias invert.asRgbObject
9191
* @param {Color} color - Color to be inverted.
92-
* @param {BlackWhite|boolean} [bw=false] - Whether to amplify the inversion to
92+
* @param {BlackWhite|boolean} [bw] - Whether to amplify the inversion to
9393
* black or white. Provide an object to customize black/white colors.
9494
* @returns {RGB} - RGB object representation of the inverted color.
9595
*/
9696
function asRGB(color, bw) {
97-
if (bw === void 0) { bw = false; }
9897
color = toRgbArray(color);
9998
var list = bw
10099
? invertToBW(color, bw, true)
@@ -105,12 +104,11 @@ function invert(color, bw) {
105104
/**
106105
* Generates inverted (opposite) version of the given color, as a RGB array.
107106
* @param {Color} color - Color to be inverted.
108-
* @param {BlackWhite|boolean} [bw=false] - Whether to amplify the inversion to
107+
* @param {BlackWhite|boolean} [bw] - Whether to amplify the inversion to
109108
* black or white. Provide an object to customize black/white colors.
110109
* @returns {RGB} - RGB array representation of the inverted color.
111110
*/
112111
function asRgbArray(color, bw) {
113-
if (bw === void 0) { bw = false; }
114112
color = toRgbArray(color);
115113
return bw
116114
? invertToBW(color, bw, true)

lib/esm/invert.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ function invert(color, bw = false) {
8585
* Generates inverted (opposite) version of the given color, as a RGB object.
8686
* @alias invert.asRgbObject
8787
* @param {Color} color - Color to be inverted.
88-
* @param {BlackWhite|boolean} [bw=false] - Whether to amplify the inversion to
88+
* @param {BlackWhite|boolean} [bw] - Whether to amplify the inversion to
8989
* black or white. Provide an object to customize black/white colors.
9090
* @returns {RGB} - RGB object representation of the inverted color.
9191
*/
92-
function asRGB(color, bw = false) {
92+
function asRGB(color, bw) {
9393
color = toRgbArray(color);
9494
const list = bw
9595
? invertToBW(color, bw, true)
@@ -100,11 +100,11 @@ function invert(color, bw = false) {
100100
/**
101101
* Generates inverted (opposite) version of the given color, as a RGB array.
102102
* @param {Color} color - Color to be inverted.
103-
* @param {BlackWhite|boolean} [bw=false] - Whether to amplify the inversion to
103+
* @param {BlackWhite|boolean} [bw] - Whether to amplify the inversion to
104104
* black or white. Provide an object to customize black/white colors.
105105
* @returns {RGB} - RGB array representation of the inverted color.
106106
*/
107-
function asRgbArray(color, bw = false) {
107+
function asRgbArray(color, bw) {
108108
color = toRgbArray(color);
109109
return bw
110110
? invertToBW(color, bw, true)

lib/invert.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ declare namespace invert {
4444
* Generates inverted (opposite) version of the given color, as a RGB object.
4545
* @alias invert.asRgbObject
4646
* @param {Color} color - Color to be inverted.
47-
* @param {BlackWhite|boolean} [bw=false] - Whether to amplify the inversion to
47+
* @param {BlackWhite|boolean} [bw] - Whether to amplify the inversion to
4848
* black or white. Provide an object to customize black/white colors.
4949
* @returns {RGB} - RGB object representation of the inverted color.
5050
*/
5151
function asRGB(color: Color, bw?: BlackWhite | boolean): RGB;
5252
/**
5353
* Generates inverted (opposite) version of the given color, as a RGB array.
5454
* @param {Color} color - Color to be inverted.
55-
* @param {BlackWhite|boolean} [bw=false] - Whether to amplify the inversion to
55+
* @param {BlackWhite|boolean} [bw] - Whether to amplify the inversion to
5656
* black or white. Provide an object to customize black/white colors.
5757
* @returns {RGB} - RGB array representation of the inverted color.
5858
*/

lib/invert.js

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/invert.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/invert.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/invert.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)