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

Function makeCorners

src/plots/cartesian/dragbox.js:1172–1183  ·  view source on GitHub ↗
(zoomlayer, xs, ys)

Source from the content-addressed store, hash-verified

1170}
1171
1172function makeCorners(zoomlayer, xs, ys) {
1173 return zoomlayer.append('path')
1174 .attr('class', 'zoombox-corners')
1175 .style({
1176 fill: Color.background,
1177 stroke: Color.defaultLine,
1178 'stroke-width': 1,
1179 opacity: 0
1180 })
1181 .attr('transform', strTranslate(xs, ys))
1182 .attr('d', 'M0,0Z');
1183}
1184
1185function updateZoombox(zb, corners, box, path0, dimmed, lum) {
1186 zb.attr('d',

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…