Git Product home page Git Product logo

Comments (2)

jonoogle avatar jonoogle commented on July 26, 2024

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
}
}

from svgreader-qv11.

yakirmanor avatar yakirmanor commented on July 26, 2024

as jonoogle said, if you change the line in the 3 script files:

  • functions.js (line: 6)
  • nosvg.js (line: 6)
  • Scripts.js (line: 22)

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

us map

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>

from svgreader-qv11.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.