Skip to content

Commit 0c91191

Browse files
committed
lowercase > lower, uppercase > upper
1 parent 55f27fc commit 0c91191

File tree

3 files changed

+640
-638
lines changed

3 files changed

+640
-638
lines changed

src/components/drawing/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ drawing.font = function(s, font) {
5353

5454
function capitalize2transform(capitalize) {
5555
return (
56-
capitalize === 'normal' ? 'none' :
57-
capitalize === 'word' ? 'capitalize' :
58-
capitalize
56+
capitalize === 'normal' ?
57+
'none' :
58+
capitalize === 'word' ?
59+
'capitalize' :
60+
(capitalize + 'case')
5961
);
6062
}
6163
drawing.capitalize2transform = capitalize2transform;

src/plots/font_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ module.exports = function(opts) {
8989
capitalize: opts.noFontCapitalize ? undefined : {
9090
editType: editType,
9191
valType: 'enumerated',
92-
values: ['normal', 'word', 'uppercase', 'lowercase'],
92+
values: ['normal', 'word', 'upper', 'lower'],
9393
dflt: 'normal',
9494
description: [
9595
'Sets capitalization of text.',

0 commit comments

Comments
 (0)