mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-12 16:48:10 +00:00
Merge pull request #378 from thewhodidthis/bf#318--textbox
visual/TextInput: use nullish coalescing operator for stroke styling fallbacks
This commit is contained in:
commit
bad98abde7
@ -831,9 +831,9 @@ function DefaultBoxGenerator(styles)
|
|||||||
if (style.stroke)
|
if (style.stroke)
|
||||||
{
|
{
|
||||||
box.lineStyle(
|
box.lineStyle(
|
||||||
style.stroke.width || 1,
|
style.stroke.width ?? 1,
|
||||||
style.stroke.color || 0,
|
style.stroke.color ?? 0,
|
||||||
style.stroke.alpha || 1
|
style.stroke.alpha ?? 1
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user