(x, obj, before, after, t, r, b, l)
| 48 | } |
| 49 | |
| 50 | function setTopRightBottomLeftOr(x, obj, before, after, t, r, b, l) { |
| 51 | if (!x) return setTopRightBottomLeft(obj, before, after, t, r, b, l); |
| 52 | |
| 53 | x = x.toLowerCase(); |
| 54 | |
| 55 | if (x === '-top') obj[before + 'Top' + (after || '')] = t; |
| 56 | if (x === '-right') obj[before + 'Right' + (after || '')] = r; |
| 57 | if (x === '-bottom') obj[before + 'Bottom' + (after || '')] = b; |
| 58 | if (x === '-left') obj[before + 'Left' + (after || '')] = l; |
| 59 | |
| 60 | return obj; |
| 61 | } |
| 62 | |
| 63 | const colorMap = new Map([ |
| 64 | ['maroon', {r: 128, g: 0, b: 0, a: 1}], |
no test coverage detected