A trick for shape creators



Greetings, All!

If you are like me, and want to make a number of very simple, but high-quality
shapes from scratch, there's a little trick you can use to make your life a
little easier in a long run.

Create a symbolic link to your .shape file and name it "Yourshapename.svg" or
"Yourshapename.xml", then use any SVG-enabled browser to preview your work.
Opera, IE, Mosilla - make your choice.

Just add necessary viewport specifications to <svg:svg /> element, like this:

  <svg:svg width="300px" height="300px" viewBox="0 0 3 3">

Unfortunately, SVG specification forbid the use of negative viewBox
coordinates, but you can work around it by using transform:translate().

P.S.
It seems like only Opera 12 correctly parse namespaced attributes.
I'm unimpressed.


-- 
WBR,
Andrey Repin (anrdaemon freemail ru) 17.03.2015, <03:09>

Sorry for my terrible english...



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]