-
-
Notifications
You must be signed in to change notification settings - Fork 997
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
WIP: Add functionality to track bitmap information and events #484
Conversation
photoeditor/src/main/java/ja/burhanrashid52/photoeditor/MultiTouchListener.kt
Outdated
Show resolved
Hide resolved
photoeditor/src/main/java/ja/burhanrashid52/photoeditor/ViewType.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR. I think this will open up a lot of customization options for image editing.
However, I am curious to know how clicking implementation will work, since this library saves a static image?
@tamimattafi Also, please make sure all the test passes. There are some failing tests on the current PR. |
@tamimattafi Are there any updates on this? Because I am planning to release the 3.0.0 version soon. If you can fix this before that then I can merge this in that release. |
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This PR was closed because it has been stalled for 5 days with no activity. |
Hello @burhanrashid52, |
Sure. I am reopening it. |
Thank you, I will make sure to do it this weekend. |
Hello @burhanrashid52 |
If you've changed the majority of the structure then better to open a new PR and if you just address changes regarding my comment then it's better to keep the PR itself to track reviews. |
@tamimattafi I am planning to publish a new version 3.0.1. So wanted to check up to see when can we expect the new PR. Or else I publish the new version for now. |
@burhanrashid52 Sorry again for the delay, we have some troubles at work. I think you should publish the new release for now without my changes, I will try to prepare a new PR this weekend (Probably Sunday) |
@burhanrashid52 New Changes:
Upcoming Changes:Regarding the new changes I talked about here: Since many commits were made since I opened this PR (61 commits), some changes were cherrypicked manually, the rest of the changes will be moved this week (I will try my best to do that whithin 3 days) What will be moved/added:
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This PR was closed because it has been stalled for 5 days with no activity. |
Hello! Thank you for this awesome library!
We are strongly using it for our Story functionality such as on Instagram, and we are willing to help to modify, improve and add more functionality to this library.
Our use-case, that made us create this merge-request, includes the following points:
So, changes that we added to the library include these points:
ViewType
asealed interface
instead ofenum
and used the correct naming conventions for children.ViewType
, calledCustom<T>
, that takes generic data as a parameter/property, thisViewType
can be passed with thebitmap
throughphotoEditor.addImage(bitmap, viewType)
, if nothing is passed,ViewType.Image
will be used by default.OnPhotoEditorListener
interface to return therootView
on each event, so we can extract theRect
and other information about the view and its propertiesOnPhotoEditorListener.onAddViewListener
is now called throughrootView.post {}
to make sure that this event is fired only after the view finishes its creation and setupFor now, this is enough to extract view's data and track it, also to create clickable ghosts during story preview.
I hope this Pull Request will be accepted, it would be awesome to have a review first, so I could adjust any errors since I'm not that well-involved into this library and can miss some moments. Thank you!