Skip to content

Commit 2d50e72

Browse files
committed
Fix transfer of minScale to be decimal rather than percent. (#42)
1 parent 380ec7b commit 2d50e72

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

convert-configuration/convert-configuration.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ var Translate = {
203203
Translate.notAvailable(prefix, key, value, config);
204204
},
205205

206-
scale: function (jax) {
206+
scale: function (jax, id) {
207207
return function (prefix, key, value, config) {
208208
if (Translate.checkValue(prefix, key, value)) {
209209
var scale = [(value[0] / 100).toFixed(8).replace(/\.?0*$/, ''), value[1]];
210-
Translate.set(jax + '.scale', scale, config);
210+
Translate.set(jax + '.' + id, scale, config);
211211
}
212212
}
213213
},
@@ -459,8 +459,8 @@ var Convert = {
459459
},
460460
CommonHTML: {
461461
Augment: Translate.augment,
462-
scale: Translate.scale('chtml'),
463-
minScaleAdjust: Translate.transfer('chtml.minScale'),
462+
scale: Translate.scale('chtml', 'scale'),
463+
minScaleAdjust: Translate.scale('chtml', 'minScale'),
464464
font: Translate.font,
465465
undefinedFamily: Translate.message('%s is now handled through direct CSS'),
466466
mtextFontInherit: Translate.transfer('chtml.mtextInheritFont'),
@@ -475,8 +475,8 @@ var Convert = {
475475
"HTML-CSS": {
476476
Augment: Translate.augment,
477477
extensions: Translate.extensions,
478-
scale: Translate.scale('chtml'),
479-
minScaleAdjust: Translate.transfer('chtml.minScale'),
478+
scale: Translate.scale('chtml', 'scale'),
479+
minScaleAdjust: Translate.scale('chtml', 'minScale'),
480480
availableFonts: Translate.font,
481481
preferredFont: Translate.font,
482482
webFont: Translate.font,
@@ -497,8 +497,8 @@ var Convert = {
497497
NativeMML: Translate.message('Native MathML output currently is not implemented'),
498498
SVG: {
499499
Augment: Translate.augment,
500-
scale: Translate.scale('svg'),
501-
minScaleAdjust: Translate.transfer('svg.minScale'),
500+
scale: Translate.scale('svg', 'scale'),
501+
minScaleAdjust: Translate.scale('svg', 'minScale'),
502502
font: Translate.font,
503503
blacker: Translate.notImplemented,
504504
undefinedFamily: Translate.transfer('%s is now handled through direct CSS'),

0 commit comments

Comments
 (0)