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

jonathandlynch at gmail.com jonathandlynch at gmail.com
Thu May 11 17:44:48 CEST 2017


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 <use-livecode at lists.runrev.com> wrote:
> 
> 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 setscale() method
> > - export the resized image (with transparency) to a variable
> > - pass that variable back to LC
> > - set the image content of the image to that variable
> >
> > The entire operation took 4 milliseconds for a moderate sized svg
> > image.
> >
> > This means we could have svg-quality resizable images, for responsive
> > design scripts.
> 
> Clever workaround, but looking at the bigger picture of platform adoption, do we really want to tell new users that to display SVGs you need to embed an entire browser application inside your application?
> 
> What is the purpose of the existing SVG widget if not to render SVGs?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> ____________________________________________________________________
> Ambassador at FourthWorld.com                http://www.FourthWorld.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list