@d3plus/color 3.1.4 → 3.1.5
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 +14 -14
- package/package.json +1 -1
- package/umd/d3plus-color.full.js +1 -1
- package/umd/d3plus-color.full.min.js +1 -1
- package/umd/d3plus-color.js +1 -1
- package/umd/d3plus-color.min.js +1 -1
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ Live examples can be found on [d3plus.org](https://d3plus.org/), which includes
|
|
|
53
53
|
|
|
54
54
|
> **colorAdd**(`c1`: `string`, `c2`: `string`, `o1?`: `number`, `o2?`: `number`): `string`
|
|
55
55
|
|
|
56
|
-
Defined in: [add.ts:10](https://github.com/d3plus/d3plus/blob/
|
|
56
|
+
Defined in: [add.ts:10](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/add.ts#L10)
|
|
57
57
|
|
|
58
58
|
Adds two colors together.
|
|
59
59
|
|
|
@@ -78,7 +78,7 @@ Adds two colors together.
|
|
|
78
78
|
|
|
79
79
|
> **colorAssign**(`c`: `string` \| `boolean` \| `null` \| `undefined`, `u?`: `Partial`\<[`ColorDefaults`](#colordefaults)\>): `string`
|
|
80
80
|
|
|
81
|
-
Defined in: [assign.ts:9](https://github.com/d3plus/d3plus/blob/
|
|
81
|
+
Defined in: [assign.ts:9](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/assign.ts#L9)
|
|
82
82
|
|
|
83
83
|
Assigns a color to a value using a predefined set of defaults.
|
|
84
84
|
|
|
@@ -101,7 +101,7 @@ Assigns a color to a value using a predefined set of defaults.
|
|
|
101
101
|
|
|
102
102
|
> **colorContrast**(`c`: `string`, `u?`: `Partial`\<[`ColorDefaults`](#colordefaults)\>): `string`
|
|
103
103
|
|
|
104
|
-
Defined in: [contrast.ts:9](https://github.com/d3plus/d3plus/blob/
|
|
104
|
+
Defined in: [contrast.ts:9](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/contrast.ts#L9)
|
|
105
105
|
|
|
106
106
|
A set of default color values used when assigning colors based on data.
|
|
107
107
|
|
|
@@ -124,7 +124,7 @@ A set of default color values used when assigning colors based on data.
|
|
|
124
124
|
|
|
125
125
|
> **colorLegible**(`c`: `string`): `string`
|
|
126
126
|
|
|
127
|
-
Defined in: [legible.ts:7](https://github.com/d3plus/d3plus/blob/
|
|
127
|
+
Defined in: [legible.ts:7](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/legible.ts#L7)
|
|
128
128
|
|
|
129
129
|
Darkens a color so that it will appear legible on a white background.
|
|
130
130
|
|
|
@@ -146,7 +146,7 @@ Darkens a color so that it will appear legible on a white background.
|
|
|
146
146
|
|
|
147
147
|
> **colorLighter**(`c`: `string`, `i?`: `number`): `string`
|
|
148
148
|
|
|
149
|
-
Defined in: [lighter.ts:8](https://github.com/d3plus/d3plus/blob/
|
|
149
|
+
Defined in: [lighter.ts:8](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/lighter.ts#L8)
|
|
150
150
|
|
|
151
151
|
Similar to d3.color.brighter, except that this also reduces saturation so that colors don't appear neon.
|
|
152
152
|
|
|
@@ -169,7 +169,7 @@ Similar to d3.color.brighter, except that this also reduces saturation so that c
|
|
|
169
169
|
|
|
170
170
|
> **colorSubtract**(`c1`: `string`, `c2`: `string`, `o1?`: `number`, `o2?`: `number`): `string`
|
|
171
171
|
|
|
172
|
-
Defined in: [subtract.ts:10](https://github.com/d3plus/d3plus/blob/
|
|
172
|
+
Defined in: [subtract.ts:10](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/subtract.ts#L10)
|
|
173
173
|
|
|
174
174
|
Subtracts one color from another.
|
|
175
175
|
|
|
@@ -194,7 +194,7 @@ Subtracts one color from another.
|
|
|
194
194
|
|
|
195
195
|
> `const` **colorDefaults**: [`ColorDefaults`](#colordefaults)
|
|
196
196
|
|
|
197
|
-
Defined in: [defaults.ts:37](https://github.com/d3plus/d3plus/blob/
|
|
197
|
+
Defined in: [defaults.ts:37](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/defaults.ts#L37)
|
|
198
198
|
|
|
199
199
|
A set of default color values used when assigning colors based on data.
|
|
200
200
|
|
|
@@ -224,15 +224,15 @@ A set of default color values used when assigning colors based on data.
|
|
|
224
224
|
|
|
225
225
|
### ColorDefaults
|
|
226
226
|
|
|
227
|
-
Defined in: [defaults.ts:6](https://github.com/d3plus/d3plus/blob/
|
|
227
|
+
Defined in: [defaults.ts:6](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/defaults.ts#L6)
|
|
228
228
|
|
|
229
229
|
#### Properties
|
|
230
230
|
|
|
231
231
|
| Property | Type | Defined in |
|
|
232
232
|
| ------ | ------ | ------ |
|
|
233
|
-
| <a id="property-dark"></a> `dark` | `string` | [defaults.ts:7](https://github.com/d3plus/d3plus/blob/
|
|
234
|
-
| <a id="property-light"></a> `light` | `string` | [defaults.ts:8](https://github.com/d3plus/d3plus/blob/
|
|
235
|
-
| <a id="property-missing"></a> `missing` | `string` | [defaults.ts:9](https://github.com/d3plus/d3plus/blob/
|
|
236
|
-
| <a id="property-off"></a> `off` | `string` | [defaults.ts:10](https://github.com/d3plus/d3plus/blob/
|
|
237
|
-
| <a id="property-on"></a> `on` | `string` | [defaults.ts:11](https://github.com/d3plus/d3plus/blob/
|
|
238
|
-
| <a id="property-scale"></a> `scale` | `ScaleOrdinal`\<`string`, `string`\> | [defaults.ts:12](https://github.com/d3plus/d3plus/blob/
|
|
233
|
+
| <a id="property-dark"></a> `dark` | `string` | [defaults.ts:7](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/defaults.ts#L7) |
|
|
234
|
+
| <a id="property-light"></a> `light` | `string` | [defaults.ts:8](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/defaults.ts#L8) |
|
|
235
|
+
| <a id="property-missing"></a> `missing` | `string` | [defaults.ts:9](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/defaults.ts#L9) |
|
|
236
|
+
| <a id="property-off"></a> `off` | `string` | [defaults.ts:10](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/defaults.ts#L10) |
|
|
237
|
+
| <a id="property-on"></a> `on` | `string` | [defaults.ts:11](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/defaults.ts#L11) |
|
|
238
|
+
| <a id="property-scale"></a> `scale` | `ScaleOrdinal`\<`string`, `string`\> | [defaults.ts:12](https://github.com/d3plus/d3plus/blob/b48c22667cace23541ff5baeea3f4f1dc9fd5e80/packages/color/src/defaults.ts#L12) |
|
package/package.json
CHANGED
package/umd/d3plus-color.full.js
CHANGED
package/umd/d3plus-color.js
CHANGED
package/umd/d3plus-color.min.js
CHANGED