-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
raster.onLoad event is not firing on PhantomJS #1163
Comments
What version of the library is this happening with? Could you share a test-case for replication? |
The version number is 0.10.2. The code looks like this:
|
From the sketch, it looks working. The tutorial might help you. |
Sure, it works in FF and Chrome. But not in PhantomJS. The word "FINISHED" never appears in the console. |
Could you try this? <html>
<head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.10.2/paper-core.js"></script>
<script>
paper.install(window);
window.onload = function() {
paper.setup('canvas');
var raster = new Raster({
source: 'https://en.wikipedia.org/static/images/project-logos/enwiki.png',
position: [400, 400]
});
raster.onLoad = function () {
console.log('FINISHED');
}
}
</script>
</head>
<body style="margin: 10px">
<canvas id="canvas" height="900" width="800"></canvas>
</body>
</html> |
I am sorry, my snippet was incomplete. I wrapped the code in a jQuery document.ready statement ( With |
Not sure if this is the proper place to submit this issue. But kind of at a loss of where to start.
Could this be related to #924?
The text was updated successfully, but these errors were encountered: