Update canvas2svg.js
Changed default to alphabetic
This commit is contained in:
parent
d9834027c5
commit
0393936d0e
@ -69,7 +69,7 @@
|
|||||||
function getDominantBaseline(textBaseline) {
|
function getDominantBaseline(textBaseline) {
|
||||||
//INFO: not supported in all browsers
|
//INFO: not supported in all browsers
|
||||||
var mapping = {"alphabetic": "alphabetic", "hanging": "hanging", "top":"text-before-edge", "bottom":"text-after-edge", "middle":"central"};
|
var mapping = {"alphabetic": "alphabetic", "hanging": "hanging", "top":"text-before-edge", "bottom":"text-after-edge", "middle":"central"};
|
||||||
return mapping[textBaseline] || mapping.start;
|
return mapping[textBaseline] || mapping.alphabetic;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unpack entities lookup where the numbers are in radix 32 to reduce the size
|
// Unpack entities lookup where the numbers are in radix 32 to reduce the size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user