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

Function getPosition

lib/Layout.js:136–141  ·  view source on GitHub ↗
(node, pos)

Source from the content-addressed store, hash-verified

134 }
135
136 function getPosition(node, pos) {
137 if (pos in node.style) {
138 return node.style[pos];
139 }
140 return 0;
141 }
142
143 // When the user specifically sets a value for width or height
144 function setDimensionFromStyle(node, axis) {

Callers 2

getRelativePositionFunction · 0.85
Layout.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…