-
Notifications
You must be signed in to change notification settings - Fork 51
_loadImage() to public #31
Comments
Hi @kochax, I am not really sure how you intend to use this functionality. The If you could perhaps explain me your use case, we may be able to work out some alternative, but for now i do not think there will be any need to allow access to this method. Best, |
@Peshou Thank you for the fast response. I just can confirm that there is Simply calling _loadImage worked fine:
Without the second line, does not work. |
Okay let me look into this since it may be some kind of bug if the method is not being invoked |
Could you try to edit the canvas component directly or make a canvas options object which is linked to the component itself? Example:
Or
then somewhere in the code
Your issue seems to occur when manually changing the input value without letting angular check for changes. Because of this, the |
The example I posted, was directly editing of canvasComponent instance property, the solution that you proposed also didn`t work for me. Here is the example:
Options:
And somewhere in the code:
Nothing happened. I have tried to subscribe to onImageLoaded event before changing of the URL (also with callback), nothing resolved |
Okay, thanks, this is an issue and should be handled accordingly, since this is the correct way to change the imageUrl. I will update the library with a patch version v2.0.4 and you should be able to have this functionality available. In the meantime, I think that you can work out your problem by directly accessing the imageUrl input in the canvas without using the options object.
Thanks for the observation and help. I will try to attend to this as soon as possible. Best, |
I can live with that :) Best Regards, |
Yeah, and until I roll this fix out, you should download the 2.0.3 version of the canvas that I released today so that you can get the fix for the flicker that appears when you draw on a canvas with an image as background. I'll try to tend to your issue really soon. Best Regards, |
Would be nice to have a possibility to load image after the canvas is initialized. One of these options would be good to have:
or simply
canvasWhiteboardComp.loadImage(image);
The text was updated successfully, but these errors were encountered: