MCPcopy
hub / github.com/Flipboard/react-canvas / getSpacing

Function getSpacing

lib/Layout.js:18–30  ·  view source on GitHub ↗
(node, type, suffix, location)

Source from the content-addressed store, hash-verified

16 }
17
18 function getSpacing(node, type, suffix, location) {
19 var key = type + capitalizeFirst(location) + suffix;
20 if (key in node.style) {
21 return node.style[key];
22 }
23
24 key = type + suffix;
25 if (key in node.style) {
26 return node.style[key];
27 }
28
29 return 0;
30 }
31
32 function getPositiveSpacing(node, type, suffix, location) {
33 var key = type + capitalizeFirst(location) + suffix;

Callers 1

getMarginFunction · 0.85

Calls 1

capitalizeFirstFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…