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

Function clickZoomPan

src/plots/ternary/ternary.js:559–576  ·  view source on GitHub ↗
(numClicks, evt)

Source from the content-addressed store, hash-verified

557 }
558
559 function clickZoomPan(numClicks, evt) {
560 var clickMode = gd._fullLayout.clickmode;
561
562 removeZoombox(gd);
563
564 if(numClicks === 2) {
565 gd.emit('plotly_doubleclick', null);
566 Registry.call('_guiRelayout', gd, makeUpdate({a: 0, b: 0, c: 0}));
567 }
568
569 if(clickMode.indexOf('select') > -1 && numClicks === 1) {
570 selectOnClick(evt, gd, [_this.xaxis], [_this.yaxis], _this.id, _this.dragOptions);
571 }
572
573 if(clickMode.indexOf('event') > -1) {
574 Fx.click(gd, evt, _this.id);
575 }
576 }
577
578 function zoomPrep(e, startX, startY) {
579 var dragBBox = dragger.getBoundingClientRect();

Callers

nothing calls this directly

Calls 3

selectOnClickFunction · 0.85
removeZoomboxFunction · 0.70
makeUpdateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…