Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

yEd: how to create simple node shapes w/ line & fill styles

+1 vote
I created a very simple svg file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="svg2" version="1.1">
  <g>
    <path
       style="fill:#ffc000;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
       d="M 20,0 0,20 0,161.8 100,161.8 100,0 z M 20,0 L 20,20 L 0,20"
       id="fileshape"
    />
  </g>
</svg>

I can import it into my custom symbol library in yEd, but I can't change the fill color or stroke color/width in yEd, I'm stuck with whatever is in svg. Is there any way to change this? I understand why in general for svg shapes you treat them as-is, but for files that just have a single <path> element, why can't you recognize and modify the path style as necessary?
asked Feb 27, 2012 in Feature Requests by jms_nh (370 points)
recategorized Apr 7, 2012 by jms_nh

1 Answer

0 votes
Your observation is correct: SVGs are treated as-is, their properties cannot be altered by yEd in any way. This also holds for "simple" SVGs with only one <path> element.

But this sounds interesting, so why don't you change your question into a Feature Request?
answered Feb 28, 2012 by thomas [yWorks] (23,590 points)
>why don't you change your question into a Feature Request?

how do I do that?
Simply "edit" your original question and change the question's type from "Help" to "Feature Request".
ok, thanks.
Imprint | Privacy Policy