Skip to content Skip to sidebar Skip to footer

Getbbox() And Getcomputedtextlength() Once Working, Once Not

I am creating charts with d3.js+svg+javscript/typescript. I need to know length of texts to append it in proper places. I am using/was trying to use functions getBBox() and getCo

Solution 1:

I've found an answer. It was returning 0s, because it returns good results only when svg/html block is visible, while when I was trying to regenerate chart it was hidden.


Post a Comment for "Getbbox() And Getcomputedtextlength() Once Working, Once Not"