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

Function clearSlider

src/components/sliders/draw.js:33–43  ·  view source on GitHub ↗
(sliderOpts)

Source from the content-addressed store, hash-verified

31 .style('cursor', staticPlot ? null : 'ew-resize');
32
33 function clearSlider(sliderOpts) {
34 if(sliderOpts._commandObserver) {
35 sliderOpts._commandObserver.remove();
36 delete sliderOpts._commandObserver;
37 }
38
39 // Most components don't need to explicitly remove autoMargin, because
40 // marginPushers does this - but slider updates don't go through
41 // a full replot so we need to explicitly remove it.
42 Plots.autoMargin(gd, autoMarginId(sliderOpts));
43 }
44
45 sliders.exit().each(function() {
46 d3.select(this).selectAll('g.' + constants.groupClassName)

Callers

nothing calls this directly

Calls 1

autoMarginIdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…