Skip to content

Commit 3ff255f

Browse files
committed
caps > word caps
1 parent cff60fb commit 3ff255f

37 files changed

+369
-369
lines changed

src/components/drawing/index.js

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

5454
var textcase2transformOptions = {
5555
normal: 'none',
56-
caps: 'capitalize',
5756
lower: 'lowercase',
58-
upper: 'uppercase'
57+
upper: 'uppercase',
58+
'word caps': 'capitalize'
5959
};
6060

6161
function textcase2transform(textcase) {

src/plots/font_attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ module.exports = function(opts) {
102102
textcase: opts.noFontTextcase ? undefined : {
103103
editType: editType,
104104
valType: 'enumerated',
105-
values: ['normal', 'caps', 'upper', 'lower'],
105+
values: ['normal', 'word caps', 'upper', 'lower'],
106106
dflt: 'normal',
107107
description: [
108108
'Sets capitalization of text.',
719 Bytes
Loading

test/image/mocks/axes_custom-ticks_log-date.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}],
1515
"layout": {
1616
"font": {
17-
"textcase": "caps",
17+
"textcase": "word caps",
1818
"decorline": "under",
1919
"shadow": "auto"
2020
},

test/image/mocks/axes_labels.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
],
5454
"layout": {
5555
"font": {
56-
"textcase": "caps",
56+
"textcase": "word caps",
5757
"decorline": "under",
5858
"shadow": "auto"
5959
},

test/image/mocks/bar-colorscale-colorbar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
],
5656
"layout": {
5757
"font": {
58-
"textcase": "caps",
58+
"textcase": "word caps",
5959
"decorline": "under",
6060
"shadow": "auto"
6161
},

test/image/mocks/bar_annotation_max_range_eq_category.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"weight": "bold",
1212
"style": "italic",
1313
"variant": "small-caps",
14-
"textcase": "caps",
14+
"textcase": "word caps",
1515
"decorline": "under",
1616
"shadow": "auto"
1717
},

test/image/mocks/bar_attrs_group_norm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"layout":{
1818
"font": {
19-
"textcase": "caps",
19+
"textcase": "word caps",
2020
"decorline": "under",
2121
"shadow": "auto"
2222
},

test/image/mocks/bar_gantt-chart.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
],
7070
"layout": {
7171
"font": {
72-
"textcase": "caps",
72+
"textcase": "word caps",
7373
"decorline": "under",
7474
"shadow": "auto"
7575
},

test/image/mocks/benchmarks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
],
310310
"layout": {
311311
"font": {
312-
"textcase": "caps",
312+
"textcase": "word caps",
313313
"decorline": "under",
314314
"shadow": "auto"
315315
},

test/image/mocks/canada_geo_projections.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3869,7 +3869,7 @@
38693869
],
38703870
"layout": {
38713871
"font": {
3872-
"textcase": "caps",
3872+
"textcase": "word caps",
38733873
"decorline": "under",
38743874
"shadow": "auto"
38753875
},

test/image/mocks/cliponaxis_false-dates-log.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}],
2626
"layout": {
2727
"font": {
28-
"textcase": "caps",
28+
"textcase": "word caps",
2929
"decorline": "under",
3030
"shadow": "auto"
3131
},

test/image/mocks/container-legend.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
],
2525
"layout": {
2626
"font": {
27-
"textcase": "caps",
27+
"textcase": "word caps",
2828
"decorline": "under",
2929
"shadow": "auto"
3030
},

test/image/mocks/contour_constraints_equal_boundary_minmax.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
],
160160
"layout": {
161161
"font": {
162-
"textcase": "caps",
162+
"textcase": "word caps",
163163
"decorline": "under",
164164
"shadow": "auto"
165165
},

test/image/mocks/funnel_axis_textangle_outside.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
],
8282
"layout": {
8383
"font": {
84-
"textcase": "caps",
84+
"textcase": "word caps",
8585
"decorline": "under",
8686
"shadow": "auto"
8787
},

test/image/mocks/funnel_horizontal_group_basic.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
],
5353
"layout": {
5454
"font": {
55-
"textcase": "caps",
55+
"textcase": "word caps",
5656
"decorline": "under",
5757
"shadow": "auto"
5858
},

test/image/mocks/geo_africa-insets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
],
222222
"layout": {
223223
"font": {
224-
"textcase": "caps",
224+
"textcase": "word caps",
225225
"decorline": "under",
226226
"shadow": "auto"
227227
},

test/image/mocks/geo_canadian-cities.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
}
8787
},
8888
"font": {
89-
"textcase": "caps",
89+
"textcase": "word caps",
9090
"decorline": "under",
9191
"shadow": "auto",
9292
"family": "Noto Serif, serif"

test/image/mocks/heatmap-text-color-on-missing-data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
],
5353
"layout": {
5454
"font": {
55-
"textcase": "caps",
55+
"textcase": "word caps",
5656
"decorline": "under",
5757
"shadow": "auto"
5858
},

test/image/mocks/indicator_attrs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
"weight": "bold",
154154
"style": "italic",
155155
"variant": "small-caps",
156-
"textcase": "caps",
156+
"textcase": "word caps",
157157
"decorline": "under",
158158
"shadow": "auto"
159159
},

test/image/mocks/sankey_messy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}],
3838
"layout": {
3939
"font": {
40-
"textcase": "caps",
40+
"textcase": "word caps",
4141
"decorline": "under",
4242
"shadow": "auto"
4343
},

test/image/mocks/text_on_shapes_basic.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}],
77
"layout": {
88
"font": {
9-
"textcase": "caps",
9+
"textcase": "word caps",
1010
"decorline": "under",
1111
"shadow": "auto",
1212
"weight": "bold",

test/image/mocks/texttemplate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
],
168168
"layout": {
169169
"font": {
170-
"textcase": "caps",
170+
"textcase": "word caps",
171171
"decorline": "under",
172172
"shadow": "auto",
173173
"weight": 700,

test/image/mocks/texttemplate_scatter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
],
8484
"layout": {
8585
"font": {
86-
"textcase": "caps",
86+
"textcase": "word caps",
8787
"decorline": "under",
8888
"shadow": "auto",
8989
"weight": "700",

test/image/mocks/ticklabelposition-5.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
"gridcolor": "white"
179179
},
180180
"font": {
181-
"textcase": "caps",
181+
"textcase": "word caps",
182182
"decorline": "under",
183183
"shadow": "auto",
184184
"size": 16

test/image/mocks/trace_metatext.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"weight": "bold",
3838
"style": "italic",
3939
"variant": "small-caps",
40-
"textcase": "caps",
40+
"textcase": "word caps",
4141
"decorline": "under",
4242
"shadow": "auto"
4343
},

test/image/mocks/treemap_multi-line_headers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"textposition": "middle center",
2525
"texttemplate": "<b>%{label}</b>",
2626
"textfont": {
27-
"textcase": "caps",
27+
"textcase": "word caps",
2828
"decorline": "under",
2929
"shadow": "auto",
3030
"size": 20

test/image/mocks/zz-font-textcase-scatter.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"data": [
33
{
44
"hovertemplate": "%{text}",
5-
"texttemplate": "Rien ne se perd, rien ne se crée, tout se transforme<br>%{text}",
5+
"texttemplate": "Rien ne se perd, rien ne se crée, tout se transforme!<br>%{text}",
66
"mode": "text",
77
"text": [
88
"normal",
9-
"caps",
9+
"word caps",
1010
"upper",
1111
"lower"
1212
],
@@ -15,7 +15,7 @@
1515
"size": 16,
1616
"textcase": [
1717
"normal",
18-
"caps",
18+
"word caps",
1919
"upper",
2020
"lower"
2121
]

test/jasmine/tests/bar_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe('Bar.supplyDefaults', function() {
159159
weight: 'bold',
160160
style: 'italic',
161161
variant: 'small-caps',
162-
textcase: 'caps',
162+
textcase: 'word caps',
163163
decorline: 'under',
164164
shadow: 'auto',
165165
}
@@ -170,7 +170,7 @@ describe('Bar.supplyDefaults', function() {
170170
weight: 'bold',
171171
style: 'italic',
172172
variant: 'small-caps',
173-
textcase: 'caps',
173+
textcase: 'word caps',
174174
decorline: 'under',
175175
shadow: 'auto',
176176
};

test/jasmine/tests/funnel_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ describe('Funnel.supplyDefaults', function() {
160160
weight: 'bold',
161161
style: 'italic',
162162
variant: 'small-caps',
163-
textcase: 'caps',
163+
textcase: 'word caps',
164164
decorline: 'under',
165165
shadow: 'auto',
166166
}
@@ -171,7 +171,7 @@ describe('Funnel.supplyDefaults', function() {
171171
weight: 'bold',
172172
style: 'italic',
173173
variant: 'small-caps',
174-
textcase: 'caps',
174+
textcase: 'word caps',
175175
decorline: 'under',
176176
shadow: 'auto',
177177
};

test/jasmine/tests/fx_test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ describe('Fx defaults', function() {
157157
weight: 'bold',
158158
style: 'italic',
159159
variant: 'small-caps',
160-
textcase: 'caps',
160+
textcase: 'word caps',
161161
decorline: 'under',
162162
shadow: 'auto',
163163
}
@@ -174,7 +174,7 @@ describe('Fx defaults', function() {
174174
weight: 'bold',
175175
style: 'italic',
176176
variant: 'small-caps',
177-
textcase: 'caps',
177+
textcase: 'word caps',
178178
decorline: 'under',
179179
shadow: 'auto',
180180
},
@@ -192,7 +192,7 @@ describe('Fx defaults', function() {
192192
weight: 'bold',
193193
style: 'italic',
194194
variant: 'small-caps',
195-
textcase: 'caps',
195+
textcase: 'word caps',
196196
decorline: 'under',
197197
shadow: 'auto',
198198
},
@@ -210,7 +210,7 @@ describe('Fx defaults', function() {
210210
weight: 'bold',
211211
style: 'italic',
212212
variant: 'small-caps',
213-
textcase: 'caps',
213+
textcase: 'word caps',
214214
decorline: 'under',
215215
shadow: 'auto',
216216
}
@@ -226,7 +226,7 @@ describe('Fx defaults', function() {
226226
weight: 'bold',
227227
style: 'italic',
228228
variant: 'small-caps',
229-
textcase: 'caps',
229+
textcase: 'word caps',
230230
decorline: 'under',
231231
shadow: 'auto',
232232
}

test/jasmine/tests/lib_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ describe('Test lib.js:', function() {
10391039
weight: 'bold',
10401040
style: 'italic',
10411041
variant: 'small-caps',
1042-
textcase: 'caps',
1042+
textcase: 'word caps',
10431043
decorline: 'under',
10441044
shadow: 'auto',
10451045
};
@@ -1111,7 +1111,7 @@ describe('Test lib.js:', function() {
11111111
var goodVariant = 'small-caps';
11121112
var badVariant = false;
11131113

1114-
var goodTextcase = 'caps';
1114+
var goodTextcase = 'word caps';
11151115
var badTextcase = true;
11161116
var goodStriding = 'under';
11171117
var badStriding = 'underline';

test/jasmine/tests/parcoords_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('parcoords initialization tests', function() {
9696
weight: 'bold',
9797
style: 'italic',
9898
variant: 'small-caps',
99-
textcase: 'caps',
99+
textcase: 'word caps',
100100
decorline: 'under',
101101
shadow: '1px 1px 2px green',
102102
};
@@ -110,7 +110,7 @@ describe('parcoords initialization tests', function() {
110110
weight: 'bold',
111111
style: 'italic',
112112
variant: 'small-caps',
113-
textcase: 'caps',
113+
textcase: 'word caps',
114114
decorline: 'under',
115115
shadow: '1px 1px 2px green',
116116
};

test/jasmine/tests/sankey_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ describe('sankey tests', function() {
159159
weight: 'bold',
160160
style: 'italic',
161161
variant: 'small-caps',
162-
textcase: 'caps',
162+
textcase: 'word caps',
163163
decorline: 'under',
164164
shadow: '1px 1px 2px green',
165165
}});
@@ -169,7 +169,7 @@ describe('sankey tests', function() {
169169
weight: 'bold',
170170
style: 'italic',
171171
variant: 'small-caps',
172-
textcase: 'caps',
172+
textcase: 'word caps',
173173
decorline: 'under',
174174
shadow: '1px 1px 2px green',
175175
}, 'textfont is defined');

0 commit comments

Comments
 (0)