[Plugin] : SVG Canvas (vector graphics !)

Post your completed addons to share with the community

Post » Tue Oct 09, 2012 4:12 pm

Hi @pode @chrissbrobs and all others guys,

I am using this plugin to build "talking baloons".

I mount the string, like you can see above:

"<path d=""m 50,5 c -24,0 -44,19 -44,44 l 0,11 c 0,24 19,44 44,44 l 23,0 -2,39 29,-39 330,0 c 24,0 44,-19 44,-44 l 0,-11 c 0,-24 -19,-44 -44,-44 z"" stroke=""black"" stroke-width=""5"" fill=""white"" transform=""scale(1,1)""/><text id=""TextElement"" x=""60"" y="47" style=""font-family:Verdana;font-size:24"">""Ol motorista, seja BEM-VINDO Empresa de Cimentos Liz.""</text>"

And it is working fine, BUT when I wanna change the text and resize the SVG, by inserting another string I do not has sucess.

I tryed to destroy the SVG canvas and create a new one, it works but the old one keep showing, and if the new one is smaller there are a trouble.

Anybody can help?
B
90
S
5
G
8
Posts: 165
Reputation: 7,648

Post » Thu Oct 11, 2012 12:13 pm

@NRABrazil : I have added a new build to the first post with a new method to help you.

@all : I have added the .capx of the original demo to the first post.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Thu Oct 11, 2012 12:25 pm

Hey @Pode !

Thanks man

Will help a lot!!
B
90
S
5
G
8
Posts: 165
Reputation: 7,648

Post » Mon Nov 12, 2012 12:25 pm

nice plugin!

am i able to draw my own things on it like microsoft paint?
B
4
Posts: 15
Reputation: 355

Post » Mon Nov 12, 2012 1:04 pm

@johnELLIS : for the moment, it's best to use it to display pre-drawn SVG files.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Thu Nov 15, 2012 3:40 pm

Flash exports as .emf and .wmf. Are these compatible with your plugin? Thanks.
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Thu Nov 15, 2012 4:16 pm

@kenhes : no. You need to use an .emf or .wmf to .svg converter before using this plugin.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Sun Dec 09, 2012 1:43 pm

hey so i want to add behaviour effect - platform to the svg sprite....and its not letting me. do you know how i can change this?
B
4
Posts: 15
Reputation: 355

Post » Sat Mar 02, 2013 10:38 pm

Hello, I've been having some trouble importing SVGs from Inkscape, particularly the ones that contain hashtags and exclamation marks (All of them without exception), as they are considered invalid characters by the plugin. Is there something I can do about this, or will I continue to have to export to a bitmap? I don't really like the prospect of writing an 81KB SVG by hand.
When I attempt to import them into the SVG Edit tool on Google Code, there are too many errors. Particularly for the vectors that contain masks, clips, and groups.
B
2
Posts: 2
Reputation: 254

Post » Sun Mar 03, 2013 9:52 am

@Sir Stranger : since the plugin parse with regex the SVG string, I didn't do anything special about # and !. I'll escape them in a future release.
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest