@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.
Files changed (2) hide show
  1. package/README.md +21 -20
  2. 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 | 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` | `"#ffffff"` | Fill color |
219
- | `background` | `string` | `"transparent"` | Background color |
220
- | `patchSize` | `boolean` | `true` | Enable patchSize |
221
- | `vdcOffset` | `number` | `0` | Van der Corput offset |
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 | Description |
242
- | ------------ | ----------------------------- | --------------- | ------------------------- |
243
- | `shape` | `string` | `"line"` | Pattern shape |
244
- | `sizeRange` | `[number, number]` | `[4, 14]` | Size range [small, large] |
245
- | `angle` | `number` | `45` | Fixed angle (degrees) |
246
- | `scale` | `number` | `4` | Fixed scale |
247
- | `contrast` | `"low" \| "normal" \| "high"` | `"normal"` | Contrast profile |
248
- | `fill` | `string` | `"#ffffff"` | Fill color |
249
- | `background` | `string` | `"transparent"` | Background color |
250
- | `patchSize` | `boolean` | `true` | Enable patchSize |
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",
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",