Skip to content

Commit ebb9c63

Browse files
committed
grouptitlesfont > grouptitlefont
1 parent 339d37b commit ebb9c63

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

Diff for: draftlogs/6040_add.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- Implement legendgrouptitlesfont and hoverlabel.grouptitlesfont [[#6040](https://github.com/plotly/plotly.js/pull/6040)]
1+
- Implement legendgrouptitlefont and hoverlabel.grouptitlefont [[#6040](https://github.com/plotly/plotly.js/pull/6040)]

Diff for: src/components/fx/hover.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ function createHoverText(hoverData, opts) {
11441144

11451145
// Draw unified hover label
11461146
mockLegend._inHover = true;
1147-
mockLegend._groupTitleFont = hoverlabel.grouptitlesfont;
1147+
mockLegend._groupTitleFont = hoverlabel.grouptitlefont;
11481148

11491149
legendDraw(gd, mockLegend);
11501150

Diff for: src/components/fx/layout_attributes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ module.exports = {
121121
].join(' ')
122122
},
123123
font: font,
124-
grouptitlesfont: fontAttrs({
124+
grouptitlefont: fontAttrs({
125125
editType: 'none',
126126
description: [
127127
'Sets the font for group titles in hover (unified modes).',

Diff for: src/components/fx/layout_defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
3535

3636
handleHoverLabelDefaults(layoutIn, layoutOut, coerce);
3737

38-
Lib.coerceFont(coerce, 'hoverlabel.grouptitlesfont', layoutOut.hoverlabel.font);
38+
Lib.coerceFont(coerce, 'hoverlabel.grouptitlefont', layoutOut.hoverlabel.font);
3939
};

Diff for: src/plots/layout_attributes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ module.exports = {
309309
'c) One trace is explicitly given with `showlegend: true`.'
310310
].join(' ')
311311
},
312-
legendgrouptitlesfont: fontAttrs({
312+
legendgrouptitlefont: fontAttrs({
313313
editType: 'legend',
314314
description: [
315315
'Sets the font for group titles in legend.',

Diff for: src/plots/plots.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ plots.supplyTraceDefaults = function(traceIn, traceOut, colorIndex, layout, trac
13231323
coerce('legendgroup');
13241324
var titleText = coerce('legendgrouptitle.text');
13251325
if(titleText) {
1326-
Lib.coerceFont(coerce, 'legendgrouptitle.font', layout.legendgrouptitlesfont);
1326+
Lib.coerceFont(coerce, 'legendgrouptitle.font', layout.legendgrouptitlefont);
13271327
}
13281328

13291329
coerce('legendrank');
@@ -1476,7 +1476,7 @@ plots.supplyLayoutGlobalDefaults = function(layoutIn, layoutOut, formatObj) {
14761476
var font = Lib.coerceFont(coerce, 'font');
14771477
var fontSize = font.size;
14781478

1479-
Lib.coerceFont(coerce, 'legendgrouptitlesfont', Lib.extendFlat({}, font, {
1479+
Lib.coerceFont(coerce, 'legendgrouptitlefont', Lib.extendFlat({}, font, {
14801480
size: Math.round(fontSize * 1.1)
14811481
}));
14821482

Diff for: test/image/mocks/legendrank.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
},
3939
"hovermode": "x unified",
4040
"hoverlabel": {
41-
"grouptitlesfont": {
41+
"grouptitlefont": {
4242
"family": "Raleway",
4343
"color": "red",
4444
"size": 16
4545
}
4646
},
47-
"legendgrouptitlesfont": {
47+
"legendgrouptitlefont": {
4848
"family": "Times New Roman",
4949
"color": "orange",
5050
"size": 14

Diff for: test/plot-schema.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2494,7 +2494,7 @@
24942494
"valType": "number"
24952495
}
24962496
},
2497-
"grouptitlesfont": {
2497+
"grouptitlefont": {
24982498
"color": {
24992499
"editType": "none",
25002500
"valType": "color"
@@ -2878,7 +2878,7 @@
28782878
]
28792879
}
28802880
},
2881-
"legendgrouptitlesfont": {
2881+
"legendgrouptitlefont": {
28822882
"color": {
28832883
"editType": "legend",
28842884
"valType": "color"

0 commit comments

Comments
 (0)