Skip to content

Commit 48d47b6

Browse files
committed
add height and weight props, textScaleFactor for labels, tooltips and legends (not titles and buttons)
1 parent 1c0ffe3 commit 48d47b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/functions/makeAllStyles.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function makeAllStyles(
168168
},
169169
},
170170
delayedPubertyThresholdLabel: {
171-
fontSize: axisStyle?.axisThresholdLabelTextStyle?.size ?? 9,
171+
fontSize: axisStyle?.axisThresholdLabelTextStyle?.size ?? (9) * (textMultiplier ?? 1),
172172
fill: axisStyle?.axisThresholdLabelTextStyle?.colour ?? black,
173173
fontFamily: axisStyle?.axisThresholdLabelTextStyle?.name ?? 'Arial',
174174
fontWeight: axisStyle?.axisThresholdLabelTextStyle?.weight ?? 400,
@@ -204,7 +204,7 @@ function makeAllStyles(
204204
},
205205
},
206206
centileLabel: {
207-
fontSize: centileStyle.centileTextStyle?.size ?? 6,
207+
fontSize: centileStyle.centileTextStyle?.size ?? (6) * (textMultiplier ?? 1),
208208
fontFamily: centileStyle.centileTextStyle?.name ?? 'Montserrat',
209209
fontWeight: centileStyle.centileTextStyle?.weight ?? 400,
210210
fill: centileStyle?.centileStroke ?? black,

0 commit comments

Comments
 (0)