resolves #5
Implements textAlign Signed-off-by: Luca Béla Palkovics <luca.bela.palkovics@gmail.com>
This commit is contained in:
parent
9d15a4770e
commit
1aa1d69842
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user