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

Function makeZoombox

src/plots/cartesian/dragbox.js:1161–1170  ·  view source on GitHub ↗
(zoomlayer, lum, xs, ys, path0)

Source from the content-addressed store, hash-verified

1159}
1160
1161function makeZoombox(zoomlayer, lum, xs, ys, path0) {
1162 return zoomlayer.append('path')
1163 .attr('class', 'zoombox')
1164 .style({
1165 fill: lum > 0.2 ? 'rgba(0,0,0,0)' : 'rgba(255,255,255,0)',
1166 'stroke-width': 0
1167 })
1168 .attr('transform', strTranslate(xs, ys))
1169 .attr('d', path0 + 'Z');
1170}
1171
1172function makeCorners(zoomlayer, xs, ys) {
1173 return zoomlayer.append('path')

Callers 1

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