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

Function transitionZoombox

src/plots/cartesian/dragbox.js:1192–1202  ·  view source on GitHub ↗
(zb, corners, dimmed, lum)

Source from the content-addressed store, hash-verified

1190}
1191
1192function transitionZoombox(zb, corners, dimmed, lum) {
1193 if(!dimmed) {
1194 zb.transition()
1195 .style('fill', lum > 0.2 ? 'rgba(0,0,0,0.4)' :
1196 'rgba(255,255,255,0.3)')
1197 .duration(200);
1198 corners.transition()
1199 .style('opacity', 1)
1200 .duration(200);
1201 }
1202}
1203
1204function removeZoombox(gd) {
1205 d3.select(gd)

Callers 1

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