Implements textAlign

Signed-off-by: Luca Béla Palkovics <luca.bela.palkovics@gmail.com>
This commit is contained in:
Luca Béla Palkovics 2014-09-13 19:27:19 +02:00
parent 9d15a4770e
commit 1aa1d69842

View File

@ -746,7 +746,8 @@
"font-weight" : font.weight, "font-weight" : font.weight,
"text-decoration" : font.decoration, "text-decoration" : font.decoration,
"x" : x, "x" : x,
"y" : y "y" : y,
"text-anchor": this.textAlign.replace("left", "start").replace("right", "end").replace("center", "middle")
}, true); }, true);
textElement.appendChild(document.createTextNode(text)); textElement.appendChild(document.createTextNode(text));