konvajs / ng2-konva

Angular & Canvas - JavaScript library for drawing complex canvas graphics using Angular.
http://rafaelescala.com/ng2-konva/
119 stars 33 forks source link

How to align text in the middle of the screen? #20

Open thudxz opened 6 years ago

thudxz commented 6 years ago

I want to use ko-text and align text in the middle of the screen. I tried to use setOffset() method following this tutorial. https://konvajs.github.io/docs/shapes/Text.html. But failed. Any suggestions?