MCPcopy Index your code
hub / github.com/plotly/plotly.js / zoomPrep

Function zoomPrep

src/plots/polar/polar.js:931–944  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

929 }
930
931 function zoomPrep() {
932 r0 = null;
933 r1 = null;
934 path0 = _this.pathSubplot();
935 dimmed = false;
936
937 var polarLayoutNow = gd._fullLayout[_this.id];
938 lum = tinycolor(polarLayoutNow.bgcolor).getLuminance();
939
940 zb = dragBox.makeZoombox(zoomlayer, lum, cx, cy, path0);
941 zb.attr('fill-rule', 'evenodd');
942 corners = dragBox.makeCorners(zoomlayer, cx, cy);
943 clearOutline(gd);
944 }
945
946 // N.B. this sets scoped 'r0' and 'r1'
947 // return true if 'valid' zoom distance, false otherwise

Callers 1

polar.jsFile · 0.70

Calls 1

clearOutlineFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…