We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c91191 commit b0977ddCopy full SHA for b0977dd
src/components/drawing/index.js
@@ -51,14 +51,15 @@ drawing.font = function(s, font) {
51
if(striding) s.style('text-decoration-line', striding2decorationLine(striding));
52
};
53
54
+var capitalize2transformOptions = {
55
+ normal: 'none',
56
+ word: 'capitalize',
57
+ lower: 'lowercase',
58
+ upper: 'uppercase'
59
+};
60
+
61
function capitalize2transform(capitalize) {
- return (
- capitalize === 'normal' ?
- 'none' :
- capitalize === 'word' ?
- 'capitalize' :
- (capitalize + 'case')
- );
62
+ return capitalize2transformOptions[capitalize];
63
}
64
drawing.capitalize2transform = capitalize2transform;
65
0 commit comments