nhn / tui.image-editor

🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
http://ui.toast.com/tui-image-editor
MIT License
6.96k stars 1.28k forks source link

Multiple object opeartion issue. #19

Closed Dipak26 closed 7 years ago

Dipak26 commented 7 years ago

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

Dipak26 commented 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.

dongsik-yoo commented 7 years ago

OK, please write helpful information.

Version

Development Environment

Current Behavior

// Write example code

Expected Behavior

Dipak26 commented 7 years ago

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.

dongsik-yoo commented 7 years ago

Do you use addImageObject API to add image? I want you to give me a test page to reproduce it.

Dipak26 commented 7 years ago

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.

daniel

Dipak26 commented 7 years ago

inside this, i required adding canvas on pillow area only.

dongsik-yoo commented 7 years ago

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).

Dipak26 commented 7 years ago

I want only selectable area as a canvas and add text and image only in this area.

daniel

Dipak26 commented 7 years ago

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.

dongsik-yoo commented 7 years ago

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?

Dipak26 commented 7 years ago

Yes, you I exactly want this and I am using the tui-image-editor.js

Dipak26 commented 7 years ago

I want to canvas area on image not want to add a background image of the canvas.

dongsik-yoo commented 7 years ago

Do you mean that adjustCanvasSize isresizeCanvasDimension()?

There is no editing functionality to edit specific area only.

Dipak26 commented 7 years ago

okay, but how I implement in this code with fabric js

dongsik-yoo commented 7 years ago

No more conversation.