Closed Dipak26 closed 7 years ago
IN dev tools I got these warning
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080 _onMouseMove @ fabric.js:10069 fabric.js:1873 [Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive.
OK, please write helpful information.
// Write example code
Version Android 7.0 Development Environment Android Studio(ionic angular android app) Current Behavior if I added two images in canvas than first image rotation and resize controller are not visible some times and not work.
Expected Behavior work for all added thing on canvas.
Do you use addImageObject
API to add image?
I want you to give me a test page to reproduce it.
it has API through which I add fixed size canvas on big image and editing inside canvas only after that I save the complete image. I will show you an image what I required.
inside this, i required adding canvas on pillow area only.
I guess you want one background image and one bird image, right? I think this codes might help you.
imageEditor.loadImageFromURL(backgroundImageUrl, imageName).then(result => {
imageEditor.addImageObject(birdImageUrl);
});
loadImageFromURL
set an image as background image. And the background image is not selectable object. You can only select other objects(Shape, Text, Image etc).
I want only selectable area as a canvas and add text and image only in this area.
it is single product image and I want canvas on the only selectable area on this image means I don't want to add text and image outside this area like product personalization on E-commerce.
I don't understand your issue. Is this a bug or request?
What I understand about this issue is...
And what version of ImageEditor do you use?
Yes, you I exactly want this and I am using the tui-image-editor.js
I want to canvas area on image not want to add a background image of the canvas.
Do you mean that adjustCanvasSize
isresizeCanvasDimension()
?
There is no editing functionality to edit specific area only.
okay, but how I implement in this code with fabric js
No more conversation.
when I add two objects on canvas I can not modified the previous object like I add two text or images then I can not rotate move first text or image