Browser Widget/HTML5/LC Integration

Sannyasin Brahmanathaswami brahma at hindu.org
Sun Jan 29 22:10:22 EST 2017


@ Bernd  It's good to hear there is some progress! thanks for testing.  I will look into Peter's files but also hope for the day when this is in the product. 

@ Richard, No, as you can see they will not display in the widget.  But here appears to be hope. I was not aware of the big shift over to SKIA (nor do I really know the scope of what that means in terms of future possibilities)

I'll do a small test loading these into a browser widget..

 

On 1/29/17, 11:41 AM, "BNig via use-livecode" <use-livecode at lists.runrev.com> wrote:

    Sannyasin Brahmanathaswami wrote:
    
     > OK, one more SVG example (I believe that's what you were asking for)
     >
     > now you have three
     >
     > http://wiki.hindu.org/uploads/floor-plan.svg # not responsive, but
     > could be
     >
     > http://wiki.hindu.org/uploads/SivaSivaDiagram.svg
     >    # not responsive, but could be (though that's not wanted in this
     > scenario
     >    # imagine a "map world" you could explore…so it stays full size,
     > user zooms in and out and swipes
     >
     > http://www.himalayanacademy.com/assets/img/khm-logo-full-horizontal.svg
    
    Do those render in LC's SVG widget?
    
    
     > So is SKIA in LC's future?
    
    Skia replaced LC's older graphics subsystem many versions ago (5.x?). 
    They did such a good job that most folks never noticed.  But where you 
    see new capabilities like the SVG widget, those are among the many 
    upsides of having switched to this popular graphics system.
    
    -- 
      Richard Gaskin
    
    
    Peter Thirkell posted a -lcb file that has to be compiled using the
    Extension Builder that he uses to display simple color SVGs. No gradients
    and no advanced features of SVG.
    http://forums.livecode.com/viewtopic.php?f=93&t=27811&p=150208#p150208
    He parses svg export from Affinity Designer.
    
    That said I scraped two of the above mentioned SVGs, after exporting them
    from Affinity Designer I was able to feed the logo to Peter's hacked SVG
    Color widget and it displayed fully. Rescalable and everything.
    
    The floor plan lost the annotational text and some fills (because of
    gradients) but otherwise rendered ok.
    
    I did not attempt to use the SivaSivaDiagramm because the source code was
    full of things Peter's widget can not display.
    
    I recommend anybody interested in widgets to look at Peter's .lcb file and
    especially appreciate his parsing handlers.
    
    That all said what the svg widget is lacking is a more advanced svg parser
    beyond black and white and transparency. Mark Waddingham had started on
    implementing an open source parser but apparently Infinite Livecode kept him
    from finishing it yet.
    https://github.com/livecode/livecode/pull/3089
    
    Kind regards
    Bernd
    
    
    
    --
    View this message in context: http://runtime-revolution.278305.n4.nabble.com/Browser-Widget-HTML5-LC-Integration-tp4712003p4712034.html
    Sent from the Revolution - User mailing list archive at Nabble.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