Open brianandcher opened 9 years ago
I am not sure about inkscape but I think if you add ($(e).prop("tagName") == "text" || in the "checkEl" function, text works properly.
function checkEl(e) { if (($(e).prop("tagName") == "text" || $(e).prop("tagName") == "ellipse" || $(e).prop("tagName") == "circle" || $(e).prop("tagName") == "rect" || $(e).prop("tagName") == "polyline" || $(e).prop("tagName") == "g" || $(e).prop("tagName") == "polygon" || $(e).prop("tagName") == "path" || $(e).prop("tagName") == "polygon" || $(e).prop("tagName") == "line") && ($(e).attr("fill") != "none" || $(e).attr("stroke-width"))) { return true } else { return false } }
as jonoogle said, if you change the line in the 3 script files:
by adding:
$(e).prop("tagName") == "text"
to the 'if' in the function the text will work!
the files are at:
C:\Users[user]\AppData\Local\QlikTech\QlikView\Extensions\Objects
open the svg for edit in notepad++ and you need to add the text at the end so it will be on top, before the </g>
tag closing
iv added this tags:
<text x="280" y="550" >HI</text>
<text x="115" y="500" >AK</text>
<text x="760" y="500" >FL</text>
<text x="755" y="380" >SC</text>
<text x="710" y="400" >GA</text>
<text x="650" y="400" >AL</text>
<text x="800" y="330" >NC</text>
<text x="650" y="345" >TN</text>
<text x="880" y="180" >RI</text>
<text x="860" y="180" >CT</text>
<text x="890" y="165" >MA</text>
<text x="895" y="75" >ME</text>
<text x="865" y="140" >NH</text>
<text x="845" y="130" >VT</text>
<text x="815" y="160" >NY</text>
<text x="840" y="220" >NJ</text>
<text x="790" y="210" >PA</text>
<text x="835" y="245" >DE</text>
<text x="830" y="265" >MD</text>
<text x="740" y="265" >WV</text>
<text x="685" y="305" >KY</text>
<text x="700" y="240" >OH</text>
<text x="660" y="180" >MI</text>
<text x="300" y="180" >WY</text>
<text x="280" y="100" >MT</text>
<text x="180" y="150" >ID</text>
<text x="120" y="50" >WA</text>
<text x="430" y="450" >TX</text>
<text x="70" y="280" >CA</text>
<text x="190" y="360" >AZ</text>
<text x="140" y="230" >NV</text>
<text x="220" y="260" >UT</text>
<text x="320" y="280" >CO</text>
<text x="300" y="370" >NM</text>
<text x="95" y="125" >OR</text>
<text x="420" y="100" >ND</text>
<text x="420" y="160" >SD</text>
<text x="430" y="225" >NE</text>
<text x="520" y="210" >IA</text>
<text x="600" y="410" >MS</text>
<text x="640" y="260" >IN</text>
<text x="600" y="250" >IL</text>
<text x="500" y="130" >MN</text>
<text x="580" y="160" >WI</text>
<text x="540" y="290" >MO</text>
<text x="545" y="375" >AR</text>
<text x="450" y="360" >OK</text>
<text x="440" y="290" >KS</text>
<text x="560" y="475" >LA</text>
<text x="790" y="280" >VA</text>
<text x="805" y="250" >DC</text>
Brian, Is it possible to included the text objects created by Inkscape? Thanks, Brian