@ateliercartographie/ok-palette 0.1.3 → 0.1.4
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 +21 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -209,16 +209,17 @@ This approach is non iterative. Performance is independent of class count and ve
|
|
|
209
209
|
|
|
210
210
|
Generates categorical pattern parameters compatible with [@ateliercartographie/motif.js](https://github.com/AtelierCartographie/motif.js).
|
|
211
211
|
|
|
212
|
-
| Option | Type
|
|
213
|
-
| ------------ |
|
|
214
|
-
| `shapes` | `string[]`
|
|
215
|
-
| `angleRange` | `[number, number]`
|
|
216
|
-
| `scaleRange` | `[number, number]`
|
|
217
|
-
| `size` | `number`
|
|
218
|
-
| `fill` | `string`
|
|
219
|
-
| `background` | `string`
|
|
220
|
-
| `patchSize` | `boolean`
|
|
221
|
-
| `vdcOffset` | `number`
|
|
212
|
+
| Option | Type | Default | Description |
|
|
213
|
+
| ------------ | ------------------------------------ | ----------------------------------------- | -------------------------------------------- |
|
|
214
|
+
| `shapes` | `string[]` | `["line", "circle", "plaid", "triangle"]` | Shapes to cycle through |
|
|
215
|
+
| `angleRange` | `[number, number]` | `[0, 180]` | Angle range (degrees) |
|
|
216
|
+
| `scaleRange` | `[number, number]` | `[2, 8]` | Scale range |
|
|
217
|
+
| `size` | `number` | `10` | Fixed size |
|
|
218
|
+
| `fill` | `string` | `"#000000"` | Fill color |
|
|
219
|
+
| `background` | `string` | `"#ffffff"` | Background color |
|
|
220
|
+
| `patchSize` | `boolean` | `true` | Enable patchSize |
|
|
221
|
+
| `vdcOffset` | `number` | `0` | Van der Corput offset |
|
|
222
|
+
| `colorize` | `boolean \| CategoricalColorOptions` | `false` | Auto-colorize pattern fill via `categorical` |
|
|
222
223
|
|
|
223
224
|
**Returns** `PatternParams[]`
|
|
224
225
|
|
|
@@ -238,16 +239,16 @@ Pattern **size** increases monotonically across classes, analogous to the lightn
|
|
|
238
239
|
|
|
239
240
|
The shape is fixed to preserve the perception of order.
|
|
240
241
|
|
|
241
|
-
| Option | Type | Default
|
|
242
|
-
| ------------ | ----------------------------- |
|
|
243
|
-
| `shape` | `string` | `"line"`
|
|
244
|
-
| `sizeRange` | `[number, number]` | `[4, 14]`
|
|
245
|
-
| `angle` | `number` | `45`
|
|
246
|
-
| `scale` | `number` | `4`
|
|
247
|
-
| `contrast` | `"low" \| "normal" \| "high"` | `"normal"`
|
|
248
|
-
| `fill` | `string` | `"#
|
|
249
|
-
| `background` | `string` | `"
|
|
250
|
-
| `patchSize` | `boolean` | `true`
|
|
242
|
+
| Option | Type | Default | Description |
|
|
243
|
+
| ------------ | ----------------------------- | ----------- | ------------------------- |
|
|
244
|
+
| `shape` | `string` | `"line"` | Pattern shape |
|
|
245
|
+
| `sizeRange` | `[number, number]` | `[4, 14]` | Size range [small, large] |
|
|
246
|
+
| `angle` | `number` | `45` | Fixed angle (degrees) |
|
|
247
|
+
| `scale` | `number` | `4` | Fixed scale |
|
|
248
|
+
| `contrast` | `"low" \| "normal" \| "high"` | `"normal"` | Contrast profile |
|
|
249
|
+
| `fill` | `string` | `"#000000"` | Fill color |
|
|
250
|
+
| `background` | `string` | `"#ffffff"` | Background color |
|
|
251
|
+
| `patchSize` | `boolean` | `true` | Enable patchSize |
|
|
251
252
|
|
|
252
253
|
**Returns** `PatternParams[]`
|
|
253
254
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ateliercartographie/ok-palette",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Générateur de palettes de couleurs séquentielles, divergentes et catégorielles pour la dataviz et la cartographie",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/ok-palette.cjs",
|