javascript - Failed to execute 'getStartPositionOfChar' on 'SVGTextContentElement' -
what reason of following exception?
domexception: failed execute 'getstartpositionofchar' on 'svgtextcontentelement': charnum provided (0) greater or equal maximum bound (0).
actually, i'm trying integrate https://github.com/nlplab/brat own created backend. uses svg jquery.svg.min.js , jquery.svgdom.min.js. stuck @ exception. exeption raised on text element of svg while making call
text.getstartpositionofchar(firstchar).x;
where text
<text x="0" y="0">some text</text>
and firstchar=0
.
i believe bug fixed in master branch, not on packaged version 1.3. try replace brat 1 directly cloned github (git clone https://github.com/nlplab/brat.git
).
Comments
Post a Comment