andym Posted September 25, 2014 Share Posted September 25, 2014 Hi I don't know if this is a question or a feature request. I'm working on a map for a website, and what I'd like to do is use CSS to control the fill colour for a particular region. So I want to tinker with the svg in a text editor. The only problem is the layer names aren't preserved when I export to svg. Am I missing something? Is there a way to preserve them? Quote Link to comment Share on other sites More sharing options...
Dave Harris Posted September 25, 2014 Share Posted September 25, 2014 Sorry, no: layer names aren't currently preserved by export. Quote Link to comment Share on other sites More sharing options...
Eelco Deuling Posted September 25, 2014 Share Posted September 25, 2014 SVG's do not have layers. If you use Inkscape there is a basic layer tool, but these are grouped objects stacked above each other. If you want to use layers in svg you should look at the <g>…</g> enclosures (sorry for my lousy English: hope this makes sense). Quote Link to comment Share on other sites More sharing options...
andym Posted September 26, 2014 Author Share Posted September 26, 2014 SVG's do not have layers. If you use Inkscape there is a basic layer tool, but these are grouped objects stacked above each other. If you want to use layers in svg you should look at the <g>…</g> enclosures (sorry for my lousy English: hope this makes sense). Hi Eelco Your English seems fine to me, I think I should have explained myself better. What I have in the svg file is a series of paths <g><path d="M564.55,581.71l-2.24,-0.73l0.82, [ .... ] -1.16l0.9,0l5.79,2.21l-0.23,1.58l0.01,-0.01Z" style="fill:none;stroke-width:2px;stroke:#000;"/> i need to go through the file in a text editor and amend to <g><path id="[LayerName]" d="M564.55,581.71l-2.24,-0.73l0.82, [ .... ] -1.16l0.9,0l5.79,2.21l-0.23,1.58l0.01,-0.01Z" style="fill:none;stroke-width:2px;stroke:#000;"/> etc Hopefully they're in the same order as in the original .affinitydesign file, but it would be great if Affinity Designer either did this as the default, or gave me the option of preserving the layer names. (Excuse me if I've got the terminology wrong and these are 'Curves' as opposed to 'Layers'). Also, I hope this is a related question. a couple of 'layers' have clip paths attached. I think one of these is a curve/layer that I've edited in AD and the other is a text layer I've created in AD: <g clip-path="url(#tag1)"><g transform="matrix(0.404421,0,0,0.404421,258.434,283.616)"><text x="416.934px" y="459.965px" style="font-family:Helvetica Neue;font-size:37.5px;fill:#000;">Lazio</text></g> I know the developers are working to get out the release version, but when they get round to doing the documentation it would be useful to know when AD creates clip-paths - so you can create them when you need them and not create them when you don't. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.