SVG widget?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

SVG widget?

Bob Sneidar via use-livecode
Is it true that the Livecode SVG widget is ONLY setup to deal with code
pasted from Inkscape SVG images?

Might be time for Livecode to "fess up".

Richmond.
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: SVG widget?

Bob Sneidar via use-livecode
I tried the path data from the file I made for you. The text letter R is handled differently, but the M path data copy into LiveCode ok.


> On May 13, 2017, at 9:12 AM, Richmond Mathewson via use-livecode <[hidden email]> wrote:
>
> Is it true that the Livecode SVG widget is ONLY setup to deal with code pasted from Inkscape SVG images?
>
> Might be time for Livecode to "fess up".
>
> Richmond.
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: SVG widget?

Bob Sneidar via use-livecode
In reply to this post by Bob Sneidar via use-livecode
@Colin
Your letter "R" is not part of the (single) path.

@Richmond
The widget SVG Icon is set up to display at most ONE SINGLE path,
no matter where the path comes from.

The format must according to dict fulfill the SVG specifications
https://www.w3.org/TR/SVG/paths.html#PathData.

Colin's _path_ demo contains also elliptical arcs (a- or A-Elements).

That's what LC obviously does not (yet) support in LC 9.0.0-dp6.
It IS supported by LC 8.1.4-rc2.

The extracted path is (shows an "M")

M257.85,186a119.82,119.82,0,0,1,7.09-38
c.45-1.24.88-3.22,1.64-4.25,1.81-2.48,2.39-1.47,3.54.62
q2.21,4,4.16,8.15a153.47,153.47,0,0,1,7.49,19.24
c.35,1.11,2.19,1.62,2.74.36l8.43-19.06
c1.14-2.58,2.26-7.56,4.21-9.53,3.42-3.46,3.32,4.4,3.69,6.83
l6.41,42.15c.29,1.9,3.18,1.09,2.89-.8L305.78,163l-2-13.41
c-.45-2.95-.15-8.14-2.26-10.52-3.93-4.44-6.94,3-8.06,5.57
l-11.49,26,2.74.36a157.53,157.53,0,0,0-9.81-24.06
c-1.37-2.69-4.73-12-9.17-7.74-2.16,2.07-3,6.2-4,8.9
a119.47,119.47,0,0,0-3.62,12.24
A124.63,124.63,0,0,0,254.85,186
c-.05,1.93,2.95,1.93,3,0Z


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: SVG widget?

Bob Sneidar via use-livecode
In LiveCode 8.1.4 the path data for the M seems to look ok, and I didn’t get any errors.


> On May 13, 2017, at 9:56 AM, hh via use-livecode <[hidden email]> wrote:
>
> @Colin
> Your letter "R" is not part of the (single) path.
>
> @Richmond
> The widget SVG Icon is set up to display at most ONE SINGLE path,
> no matter where the path comes from.
>
> The format must according to dict fulfill the SVG specifications
> https://www.w3.org/TR/SVG/paths.html#PathData.
>
> Colin's _path_ demo contains also elliptical arcs (a- or A-Elements).
>
> That's what LC obviously does not (yet) support in LC 9.0.0-dp6.
> It IS supported by LC 8.1.4-rc2.
>
> The extracted path is (shows an "M")
>
> M257.85,186a119.82,119.82,0,0,1,7.09-38
> c.45-1.24.88-3.22,1.64-4.25,1.81-2.48,2.39-1.47,3.54.62
> q2.21,4,4.16,8.15a153.47,153.47,0,0,1,7.49,19.24
> c.35,1.11,2.19,1.62,2.74.36l8.43-19.06
> c1.14-2.58,2.26-7.56,4.21-9.53,3.42-3.46,3.32,4.4,3.69,6.83
> l6.41,42.15c.29,1.9,3.18,1.09,2.89-.8L305.78,163l-2-13.41
> c-.45-2.95-.15-8.14-2.26-10.52-3.93-4.44-6.94,3-8.06,5.57
> l-11.49,26,2.74.36a157.53,157.53,0,0,0-9.81-24.06
> c-1.37-2.69-4.73-12-9.17-7.74-2.16,2.07-3,6.2-4,8.9
> a119.47,119.47,0,0,0-3.62,12.24
> A124.63,124.63,0,0,0,254.85,186
> c-.05,1.93,2.95,1.93,3,0Z
>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: SVG widget?

Bob Sneidar via use-livecode
In reply to this post by Bob Sneidar via use-livecode
Maybe it’s more accurate to say “one single path definition” because you aren’t limited to a single vector path.  You can create compound graphics from multiple paths as is done in many icons and graphics.

For example:
go url "http://tactilemedia.com/download/svg_sample.livecode"

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design



> On May 13, 2017, at 6:56 AM, hh via use-livecode <[hidden email]> wrote:
>
> The widget SVG Icon is set up to display at most ONE SINGLE path,
> no matter where the path comes from.


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode