MCPcopy
hub / github.com/plotly/plotly.js / dragPos0

Function dragPos0

test/jasmine/tests/domain_ref_interact_test.js:61–72  ·  view source on GitHub ↗
(bbox, corner)

Source from the content-addressed store, hash-verified

59}
60
61function dragPos0(bbox, corner) {
62 if(corner === 'bl') {
63 return [ bbox.x + bbox.width * 0.5,
64 bbox.y + bbox.height * 0.5 - 10 ];
65 } else if(corner === 'tr') {
66 return [ bbox.x + bbox.width * 0.5,
67 bbox.y + bbox.height * 0.5 + 10 ];
68 } else {
69 return [ bbox.x + bbox.width * 0.5,
70 bbox.y + bbox.height * 0.5];
71 }
72}
73
74// Tests moving the annotation label
75function testAnnotationMoveLabel(objectColor, moveX, moveY) {

Callers 2

testAnnotationMoveLabelFunction · 0.85
testAnnotationMoveWholeFunction · 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…