bodoni / svg

Composer and parser for SVG
Other
302 stars 44 forks source link

Question: how can I get Text node size (w, h) before adding it? #54

Closed pashinin closed 3 years ago

pashinin commented 3 years ago

Let's say I want insert labels for some dots in SVG picture. I want this text to be below/up/left/right/centered to these dots.

To place it properly I need to get this Text node size. How can I get it before I append() it to SVG?