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

Function getDimWithMargin

lib/Layout.js:120–122  ·  view source on GitHub ↗
(node, axis)

Source from the content-addressed store, hash-verified

118 }
119
120 function getDimWithMargin(node, axis) {
121 return node.layout[dim[axis]] + getMarginAxis(node, axis);
122 }
123
124 function isDimDefined(node, axis) {
125 return !isUndefined(node.style[dim[axis]]) && node.style[dim[axis]] >= 0;

Callers 1

Layout.jsFile · 0.85

Calls 1

getMarginAxisFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…