feat(signage): More settings for every widget (opacity, rotation, shadow, border, entrance animation, a logo's fit; text weight, highlight, typing out; date and clock formats; a logo in a QR code)
Folded under each widget card like Text and colours. The TV puts them on the element that places the widget (fx), animations on translate / scale so its place's transform stays (an older TV only fades); an entrance animates to the widget's own opacity. Calibrating: a strict-mode remount no longer ends it. Plan 6R.17, F-115. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -24,10 +24,13 @@ export default function CalibrateDialog({ screen, onClose, onSaved }) {
|
||||
const timer = useRef(null)
|
||||
const latest = useRef(area)
|
||||
|
||||
// on while open; off when closed
|
||||
// on while open; off when closed (a moment later, so a remount, as React's strict mode does in
|
||||
// development, never sends "off" after "on")
|
||||
const alive = useRef(0)
|
||||
useEffect(() => {
|
||||
const mine = ++alive.current
|
||||
api.calibrateScreen(screen.id, true).catch(err => toast.error(errorMessage(err, t)))
|
||||
return () => { api.calibrateScreen(screen.id, false).catch(() => {}) }
|
||||
return () => { setTimeout(() => { if (alive.current === mine) api.calibrateScreen(screen.id, false).catch(() => {}) }, 300) }
|
||||
}, [screen.id]) // eslint-disable-line react-hooks/exhaustive-deps
|
||||
// the TV's window size (it reports it when it starts and when it changes)
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user