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

Function getDragCursor

src/plots/cartesian/dragbox.js:1149–1159  ·  view source on GitHub ↗
(nsew, dragmode, isMainDrag)

Source from the content-addressed store, hash-verified

1147}
1148
1149function getDragCursor(nsew, dragmode, isMainDrag) {
1150 if(!nsew) return 'pointer';
1151 if(nsew === 'nsew') {
1152 // in this case here, clear cursor and
1153 // use the cursor style set on <g .draglayer>
1154 if(isMainDrag) return '';
1155 if(dragmode === 'pan') return 'move';
1156 return 'crosshair';
1157 }
1158 return nsew.toLowerCase() + '-resize';
1159}
1160
1161function makeZoombox(zoomlayer, lum, xs, ys, path0) {
1162 return zoomlayer.append('path')

Callers 1

makeDragBoxFunction · 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…