v5.4.7-dev.6
Pre-release
Pre-release
State mapping enables textual states such as 'on', 'off', 'low', 'high', etc., to be mapped to numeric values.
The test cards for the Kleenex pollen integration do work:
horseshoe_state:
width: 12
state_map:
map:
- state: 'low'
value: 0.99
- state: 'moderate'
value: 1.99
- state: 'high'
value: 2.99
- state: 'very_high'
value: 3.99
styles:
- stroke-linecap: butt
#
color_stops:
gap: 0.01
colors:
0: 'gray'
1: '#fcc449'
2: 'orange'
3: 'red'What's Changed
🚀 New features
- feat: (beta) Add labels and ticks to horseshoe by @AmoebeLabs in #212
- feat: Add external json color palettes to support darklight mode for custom colors not in the theme by @AmoebeLabs in #214
- feat: Extend same_as with named tags, and auto-ids when not assigned based on index in list, delta's and calc() functions by @AmoebeLabs in #218
- feat: Add static constants and ref support for reusable layout configuration by @AmoebeLabs in #221
- feat: Add display svg or image instead of icon by @AmoebeLabs in #225
- feat: Add state mapping support to horseshoe by @AmoebeLabs in #226
🧰 Maintenance
- chore: Remove vx versions of functions and classes for dev3 by @AmoebeLabs in #216
Full Changelog: v5.4.7...v5.4.7-dev.6