javascript - Property getBBox does not exist on type SVGElement -


i'm using d3, , i'd use getbbox method svg elements have.

i'm using following: (d3selection.node() svgelement).getbbox(), typescript fails compile due error in title.

is svgelement wrong type use? can working using any instead, seems bit of "unclean" solution.

not svg elements have bounding boxes, <defs> instance doesn't, neither <title>, yes svgelement wrong type use. want svglocatable


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -