Hi @mperkins
The new import SVG update, duplicate texts with one level tspan tag.
For Example, following SVG code in the previous version only add one text element:
But in the new one, we have both text and nested tspan and both text and tspan include text attrib.
There are two major problems with this:
1 - For dynamic text binding I need manually delete tspan which is a very time-consuming task.
2 - It introduces an unwanted bigger file size which leads to an increased loading page.
I really do like the previous import tools that only create one SVG text tag without tspan
I really do like the previous import tools that only create one SVG text tag without tspan
The original SVG importer did not support tspans, it just read the text from the child nodes and inserted it in the element. The old behavior might be desirable in this instance... but what about
<text><tspan stroke="green">some green text</tspan> <tspan stroke="red">some red text</tspan></text>
the old importer would result in <text>some green text some red text</text>
the good news is the fix for the other text path issue should fix this so that <text><tspan stroke="green">some green text</tspan> <tspan stroke="red">some red text</tspan></text>
is retained
Hi @mperkins
it seems the SVG document with less than 15px 15px size have problem when importing into the perspective:
This is the SVG (I wrap SVG file in the zip so I can upload it here) M12.zip (432 Bytes)
After import, it is out of the box. I also test it in 8.1.12 which doesn't have this new update so this problem is very old.
I'm trying out the "Convert to Drawing" feature and I'm a bit confused. I've tried converting piping and my pipes seem to disappear. I have the following test screen:
Also, I tried doing the "Convert to Drawing" on the thermometer seen on the same test screen. Somehow, when I select convert on that component the pipes also disappear. What am I missing here?
I'm trying out the "Convert to Drawing" feature and I'm a bit confused. I've tried converting piping and my pipes seem to disappear. I have the following test screen:
There was a bug introduced in 8.1.23 that resulted in incorrect dimensions and viewBoxes for pipes that were converted to a drawing. This was fixed in 8.1.25. It is highly likely that this is the bug that you are encountering. Which version of Ignition are you using?
Also, I tried doing the "Convert to Drawing" on the thermometer seen on the same test screen. Somehow, when I select convert on that component the pipes also disappear. What am I missing here?
hmm, I know this seems obvious, but are you sure you had the Thermometer component selected before right clicking? I'm not aware of any bugs relating to the selection of SVG elements, not that it's not possible, but convert to drawing appears to work for the Thermometer on my development environment.
Hello, yes I have been using 8.1.23. Here is a summary:
I upgraded to version 8.1.26, this resolved the pipe conversion.
Before I upgraded to 8.1.23, I tried doing the "convert to drawing" with the Thermometer component again. I was able to recreate the issue (Where it converted the pipes instead of the Thermometer. I know it's super weird). Unfortunately, even after upgrading to 8.1.26 it seems that this issue still occurs. It appears this happens if I delete the pipes, re-add the pipes, and then try to convert the Thermometer.
Has anyone figured out a good workflow to export to a SVG file after converting a component to a drawing? I am bumping these over to Figma for mockups and prototyping.
Hi @msteele, at the present there is no direct method to export SVG from the Designer. Perhaps others can chime in, the only method comes to mind involves a manual process of composing your own SVG markup with copied paths... As an alternative, using screen capture of the component and assigning interactions to create your Figma prototypes would be one method.
BTW this is after editing the SVG elements after embedding into Ignition. Directly after importing, the circle isn't visible at all presumably because the filter element doesn't exist.
This is the unedited initially embedded SVG:
I'm starting to think perhaps i'm not in the right version... do you know what version these improvements were implemented in? (would be good to add this into the OP)
This is the raw SVG:
SVG IS HERE >> <<
Edit: looks like you can't actually see it in the browser...
Edit2: I can use a matrix instead to desaturate it, but now I have another issue. I want to dynamically apply the filter based on a binding, but I can't work out how I can do this with the dynamically named id values I can't use a binding to set the filter to url(#desaturate) because the id is dynamically renamed to s0_1-desaturate in the client. And I can't use a binding to the filter's id field either, because it looks like this doesn't update to the dynamically produced name, it remains set to desaturate in the client.
Try making a copy of your SVG and converting the circle to a path. I've seen some shape definitions not show up when I embed SVGs and converting to path has made them show up so far.
It looks like you have a typo here: "satureate" instead of "saturate". And given that this documentation says "saturate", I'd say that this is not what the browser expects to see /s
regardless of the typo, its all about the attribute "type" that can not be defined because in perspective the property "type" is used to deterime the svg type (feColorMatrix), not the attribute "type"