MCPcopy Create free account
hub / github.com/microsoft/SandDance / _getRectangleFromElement

Function _getRectangleFromElement

docs/app/js/sanddance-app.js:32073–32076  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

32071 return beakPosition;
32072}
32073function _getRectangleFromElement(element) {
32074 var clientRect = element.getBoundingClientRect();
32075 return new (0, _utilities.Rectangle)(clientRect.left, clientRect.right, clientRect.top, clientRect.bottom);
32076}
32077function _getRectangleFromIRect(rect) {
32078 return new (0, _utilities.Rectangle)(rect.left, rect.right, rect.top, rect.bottom);
32079}

Callers 4

_finalizeElementPositionFunction · 0.85
_getTargetRectFunction · 0.85
_positionElementRelativeFunction · 0.85
getMaxHeightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected