Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit 30b9fa5

Browse files
committed
remove some obsolete code and comments from sliders/draw
1 parent 6c72c77 commit 30b9fa5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/components/sliders/draw.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,9 @@ module.exports = function draw(gd) {
8686
});
8787

8888
drawSlider(gd, d3.select(this), sliderOpts);
89-
90-
// makeInputProxy(gd, d3.select(this), sliderOpts);
9189
});
9290
};
9391

94-
/* function makeInputProxy(gd, sliderGroup, sliderOpts) {
95-
sliderOpts.inputProxy = gd._fullLayout._paperdiv.selectAll('input.' + constants.inputProxyClass)
96-
.data([0]);
97-
}*/
98-
9992
// This really only just filters by visibility:
10093
function makeSliderData(fullLayout, gd) {
10194
var contOpts = fullLayout[constants.name],
@@ -135,10 +128,6 @@ function findDimensions(gd, sliderOpts) {
135128
var textNode = text.node();
136129
if(textNode) {
137130
var bBox = Drawing.bBox(textNode);
138-
// This just overwrites with the last. Which is fine as long as
139-
// the bounding box (probably incorrectly) measures the text *on
140-
// a single line*:
141-
// TODO: what is that comment about? should this be a max as well?
142131
labelHeight = Math.max(labelHeight, bBox.height);
143132
maxLabelWidth = Math.max(maxLabelWidth, bBox.width);
144133
}

0 commit comments

Comments
 (0)