Skip to content

Commit 55f27fc

Browse files
committed
capitalize none > normal
1 parent d7c6f8f commit 55f27fc

File tree

5 files changed

+644
-644
lines changed

5 files changed

+644
-644
lines changed

src/components/drawing/index.js

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

5454
function capitalize2transform(capitalize) {
5555
return (
56-
capitalize === 'word' ?
57-
'capitalize' :
56+
capitalize === 'normal' ? 'none' :
57+
capitalize === 'word' ? 'capitalize' :
5858
capitalize
5959
);
6060
}

src/plots/font_attributes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ module.exports = function(opts) {
8989
capitalize: opts.noFontCapitalize ? undefined : {
9090
editType: editType,
9191
valType: 'enumerated',
92-
values: ['none', 'word', 'uppercase', 'lowercase'],
93-
dflt: 'none',
92+
values: ['normal', 'word', 'uppercase', 'lowercase'],
93+
dflt: 'normal',
9494
description: [
9595
'Sets capitalization of text.',
9696
'It can be used to make text appear in all-uppercase or all-lowercase,',

test/jasmine/tests/annotations_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ describe('annotation effects', function() {
14481448
weight: 'normal',
14491449
style: 'normal',
14501450
variant: 'normal',
1451-
capitalize: 'none',
1451+
capitalize: 'normal',
14521452
striding: 'none',
14531453
shadow: 'none',
14541454
}
@@ -1480,7 +1480,7 @@ describe('annotation effects', function() {
14801480
weight: 'normal',
14811481
style: 'normal',
14821482
variant: 'normal',
1483-
capitalize: 'none',
1483+
capitalize: 'normal',
14841484
striding: 'none',
14851485
shadow: 'none',
14861486
}
@@ -1499,7 +1499,7 @@ describe('annotation effects', function() {
14991499
weight: 'normal',
15001500
style: 'normal',
15011501
variant: 'normal',
1502-
capitalize: 'none',
1502+
capitalize: 'normal',
15031503
striding: 'none',
15041504
shadow: 'none',
15051505
}

test/jasmine/tests/axes_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2373,7 +2373,7 @@ describe('Test axes', function() {
23732373
weight: 'normal',
23742374
style: 'normal',
23752375
variant: 'normal',
2376-
capitalize: 'none',
2376+
capitalize: 'normal',
23772377
striding: 'none',
23782378
shadow: 'none',
23792379
});
@@ -2396,7 +2396,7 @@ describe('Test axes', function() {
23962396
weight: 'normal',
23972397
style: 'normal',
23982398
variant: 'normal',
2399-
capitalize: 'none',
2399+
capitalize: 'normal',
24002400
striding: 'none',
24012401
shadow: 'none',
24022402
},
@@ -2419,7 +2419,7 @@ describe('Test axes', function() {
24192419
weight: 'normal',
24202420
style: 'normal',
24212421
variant: 'normal',
2422-
capitalize: 'none',
2422+
capitalize: 'normal',
24232423
striding: 'none',
24242424
shadow: 'none',
24252425
});

0 commit comments

Comments
 (0)