MCPcopy
hub / github.com/clientIO/joint / getBBoxAngles

Function getBBoxAngles

packages/joint-core/src/layout/ports/portLabel.mjs:16–26  ·  view source on GitHub ↗
(elBBox)

Source from the content-addressed store, hash-verified

14}
15
16function getBBoxAngles(elBBox) {
17
18 var center = elBBox.center();
19
20 var tl = center.theta(elBBox.origin());
21 var bl = center.theta(elBBox.bottomLeft());
22 var br = center.theta(elBBox.corner());
23 var tr = center.theta(elBBox.topRight());
24
25 return [tl, tr, br, bl];
26}
27
28function outsideLayout(portPosition, elBBox, autoOrient, opt) {
29

Callers 2

outsideLayoutFunction · 0.85
insideLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected