MCPcopy Create free account
hub / github.com/plotly/plotly.js / makeDragger

Function makeDragger

src/plots/cartesian/dragbox.js:1041–1051  ·  view source on GitHub ↗
(plotinfo, nodeName, dragClass, cursor)

Source from the content-addressed store, hash-verified

1039}
1040
1041function makeDragger(plotinfo, nodeName, dragClass, cursor) {
1042 var dragger3 = Lib.ensureSingle(plotinfo.draglayer, nodeName, dragClass, function(s) {
1043 s.classed('drag', true)
1044 .style({fill: 'transparent', 'stroke-width': 0})
1045 .attr('data-subplot', plotinfo.id);
1046 });
1047
1048 dragger3.call(setCursor, cursor);
1049
1050 return dragger3.node();
1051}
1052
1053function makeRectDragger(plotinfo, dragClass, cursor, x, y, w, h) {
1054 var dragger = makeDragger(plotinfo, 'rect', dragClass, cursor);

Callers 1

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