Skip to content

Commit 61b9d50

Browse files
committed
Improve some variable names in pie/plot.js [2951]
1 parent 3bc3aa2 commit 61b9d50

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/traces/pie/plot.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -411,22 +411,22 @@ module.exports = function plot(gd, cdpie) {
411411
};
412412

413413
function determineOutsideTextFont(trace, pt, layoutFont) {
414-
var customColor = helpers.castOption(trace.outsidetextfont.color, pt.pts) ||
414+
var color = helpers.castOption(trace.outsidetextfont.color, pt.pts) ||
415415
helpers.castOption(trace.textfont.color, pt.pts) ||
416416
layoutFont.color;
417417

418-
var customFamily = helpers.castOption(trace.outsidetextfont.family, pt.pts) ||
418+
var family = helpers.castOption(trace.outsidetextfont.family, pt.pts) ||
419419
helpers.castOption(trace.textfont.family, pt.pts) ||
420420
layoutFont.family;
421421

422-
var customSize = helpers.castOption(trace.outsidetextfont.size, pt.pts) ||
422+
var size = helpers.castOption(trace.outsidetextfont.size, pt.pts) ||
423423
helpers.castOption(trace.textfont.size, pt.pts) ||
424424
layoutFont.size;
425425

426426
return {
427-
color: customColor,
428-
family: customFamily,
429-
size: customSize
427+
color: color,
428+
family: family,
429+
size: size
430430
};
431431
}
432432

@@ -441,18 +441,18 @@ function determineInsideTextFont(trace, pt, layoutFont) {
441441
customColor = helpers.castOption(trace._input.textfont.color, pt.pts);
442442
}
443443

444-
var customFamily = helpers.castOption(trace.insidetextfont.family, pt.pts) ||
444+
var family = helpers.castOption(trace.insidetextfont.family, pt.pts) ||
445445
helpers.castOption(trace.textfont.family, pt.pts) ||
446446
layoutFont.family;
447447

448-
var customSize = helpers.castOption(trace.insidetextfont.size, pt.pts) ||
448+
var size = helpers.castOption(trace.insidetextfont.size, pt.pts) ||
449449
helpers.castOption(trace.textfont.size, pt.pts) ||
450450
layoutFont.size;
451451

452452
return {
453453
color: customColor || Color.contrast(pt.color),
454-
family: customFamily,
455-
size: customSize
454+
family: family,
455+
size: size
456456
};
457457
}
458458

0 commit comments

Comments
 (0)