MCPcopy Create free account
hub / github.com/chearon/dropflow / setTopRightBottomLeftOr

Function setTopRightBottomLeftOr

src/parse-css.js:50–61  ·  view source on GitHub ↗
(x, obj, before, after, t, r, b, l)

Source from the content-addressed store, hash-verified

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}],

Callers 10

peg$f108Function · 0.85
peg$f109Function · 0.85
peg$f110Function · 0.85
peg$f111Function · 0.85
peg$f112Function · 0.85
peg$f113Function · 0.85
peg$f114Function · 0.85
peg$f115Function · 0.85
peg$f116Function · 0.85
peg$f117Function · 0.85

Calls 1

setTopRightBottomLeftFunction · 0.85

Tested by

no test coverage detected