Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVGView and tishadow #11

Open
icecandy opened this issue Mar 25, 2016 · 1 comment
Open

SVGView and tishadow #11

icecandy opened this issue Mar 25, 2016 · 1 comment

Comments

@icecandy
Copy link

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
Copy link
Author

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')
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant