You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
maybe ISO rating: ISO 1600 instead of 1600 ("ISO " & value)
f-number/aperture: f/2.4 instead of 2.4 ("f/" & value)
using custom units is not that interesting cuz we cant do prefixes nor dynamic formatting (for example, shutter speeds >= 1 would not use the 1/ notation) (and well, it's not there yet)
spec:
shutter_speed:
unit: secondspresentation: value < 1 ? "1/" & $round(1/value) : value# or, if we add a python-esque $format / $fmtdisplay: value < 1 ? $fmt("1/{value}", $) : value
problem is what to do when the user wants to edit the value.
a better idea would be 2 kinds of displays:
prefix and/or suffix: just add them around the input { prefix?: string, suffix?: string }
format (and opt. parse): turn the field into a text field, show format(value), and parse back into number with parse(formatted) { format: string, parse?: string }
we can still show ranges & incre/decr buttons:
call it presentation cuz we already do that for enum metadata (to force dropdowns)
Activity
1 remaining item
✨ Custom formatting of numeric metadata (Closes #1941)
✨ Custom formatting of numeric metadata (Closes #1941) (#2017)
⬆️ Update dependency es-toolkit to ^1.52.0 (#2159)