Skip to content

Commit 616d77d

Browse files
committed
add 'rx' and 'ry' button rect radii
1 parent 46f4a20 commit 616d77d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/components/rangeselector/constants.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ module.exports = {
1515
yPad: 0.02,
1616

1717
// minimum button width (regardless of text size)
18-
minButtonWidth: 30
18+
minButtonWidth: 30,
19+
20+
// buttons rect radii
21+
rx: 3,
22+
ry: 3
1923
};

src/components/rangeselector/draw.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ function drawButtonRect(button, selectorLayout) {
105105

106106
rect.attr('shape-rendering', 'crispEdges');
107107

108+
rect.attr({
109+
'rx': constants.rx,
110+
'ry': constants.ry
111+
});
112+
108113
rect.call(Color.stroke, selectorLayout.bordercolor)
109114
.call(Color.fill, selectorLayout.bgcolor)
110115
.style('stroke-width', selectorLayout.borderwidth + 'px');

0 commit comments

Comments
 (0)