Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-11 Thread Jonathan Lynch via use-livecode
I agree - but I need fully scalable controls for Augmented Earth now, not later, and the current SVG objects are not complete. My app uses the browser widget anyway, so not worried about the overhead. Sent from my iPhone > On May 11, 2017, at 10:49 AM, Richard Gaskin via use-livecode >

Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-11 Thread Richard Gaskin via use-livecode
Alejandro Tejada wrote: >> What is the purpose of the existing SVG widget >> if not to render SVGs? > > SVG widget does not render SVG. To paraphrase the late great Mr. Jobs, why doesn't it do that? What purpose does an SVG widget serve if not to bring SVG into LC? -- Richard Gaskin Fourth

Using a hidden browser widget to create a perfectly scalable LC control

2017-05-11 Thread Alejandro Tejada via use-livecode
> What is the purpose of the existing SVG widget > if not to render SVGs? SVG widget does not render SVG. SVG widget uses the path data of SVG to draw a vector graphic. More surprising is learning that still today, does not exist a SVG render that fully cover the SVG specification... SVG renders

Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-11 Thread Richard Gaskin via use-livecode
jonathandlynch wrote: > I just did an experiment. It appears to be possible to have an image > object that stores svg data in a custom property. It connects to a > hidden browser widget to do the following: > > - squirt the svg data into an HTML canvas > - resize the svg image using the

Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-11 Thread Jonathan Lynch via use-livecode
Hi Alejandro, I am almost done. It has a weird bug where the widget only works after the first attempt for each image. It works great after that. I will get it, though. Sent from my iPhone > On May 10, 2017, at 11:09 PM, Alejandro Tejada via use-livecode >

Using a hidden browser widget to create a perfectly scalable LC control

2017-05-10 Thread Alejandro Tejada via use-livecode
Hi All, On May 10, 2017, Hermann wrote: > This is essentially already done by Alejandro with SVGtoPNG, > see the Forum/RichMedia. Many Thanks for remember these stacks! :D They worked more as an experiment or a Proof-of-Concept. Jonathan's work in this area is the real deal. Immediately useful

Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-10 Thread hh via use-livecode
Hi Jonathan, if you do it anyway, then you could also add SVG-Filter. Not too much work, they can easily be chained and work fine in the browser widget (where the browser widget works ...). I have it working but have no time for the demostack. Hermann

Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-10 Thread Jonathan Lynch via use-livecode
Ah - sorry to reinvent the wheel. I already did it, though, and it allows for live near-perfect resizing, so I will go ahead and share it for that one aspect. Sent from my iPhone > On May 10, 2017, at 6:40 PM, hh via use-livecode > wrote: > > This is

Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-10 Thread hh via use-livecode
This is essentially already done by Alejandro with SVGtoPNG, see the Forum/RichMedia. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Re: Using a hidden browser widget to create a perfectly scalable LC control

2017-05-10 Thread Bob Sneidar via use-livecode
Sweet! > On May 10, 2017, at 11:55 , Jonathan Lynch via use-livecode > wrote: > > I just did an experiment. It appears to be possible to have an image object > that stores svg data in a custom property. ___

Using a hidden browser widget to create a perfectly scalable LC control

2017-05-10 Thread Jonathan Lynch via use-livecode
I just did an experiment. It appears to be possible to have an image object that stores svg data in a custom property. It connects to a hidden browser widget to do the following: - squirt the svg data into an HTML canvas - resize the svg image using the setscale() method - export the resized