d3-textwrap
d3-textwrap copied to clipboard
Can't debug the getbounds function
Thanks for the work on the plugin. I'd love to use it.
As I want to wrap a large number of svg-text elements already located by another algorithm, I need to wrap the text at its original position. When I try to to use a custom getbound function, nothing happens, all texts stay the same. I see no errors in Chrome Console as well. Therefore I made a simple jsfiddle to test a simple function, that sets the elements boundaries based on the elements original position. Unfortunately, nothing happens and I can't manage to debug the function, as the breakbpoint in Chrome Console Debugger is never reached. I tried to debug through your code, but did not understand why the boundary function is never reached.
Is this intended behaviour, and if so, how can I debug code in the boundary function?
http://jsfiddle.net/MathiasRiechert/140geakL/2/
Thanks alot!