Ti.SvgView icon indicating copy to clipboard operation
Ti.SvgView copied to clipboard

SVGView and tishadow

Open icecandy opened this issue 8 years ago • 1 comments

Do you have any idea how to get this module working with tishadow? There is some sort of path issue where running the app does not find the svg file. Error is: [ERROR] [iphone, 8.3, 192.168.0.3] Error: Invalid parameter not satisfying: newSource != nil Runs fine with straightforward ti compile, but not with ti shadow.

icecandy avatar Mar 25 '16 15:03 icecandy

And just to add to this, I can't see a way to trap errors such as calling createView with an non-existent SVG file (i.e. wrong filename or path). Even try/catch doesn't seem to work:

var SVGView = require('com.geraudbourdin.svgview'); var svgView; try { svgView = SVGView.createView({ image: 'test.svg', width: '350', height: '350', //top: 0, //left: 0, backgroundColor: 'red' }); } catch (error) { alert('sgvView is null') }

icecandy avatar Mar 25 '16 16:03 icecandy