Skip to content
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

Give more control over the functionality of the editor(details in description) #412

Open
KDDeveloper opened this issue Nov 25, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@KDDeveloper
Copy link

KDDeveloper commented Nov 25, 2023

Hey, I have been using this editor and have had an amazing experience because of its capabilities and features, it would be amazing if we could have more control over the annotations and their behaviour. Example,

  1. An onDelete event.
  2. show a particular set of annotations only based upon a common id added in them by user.
  3. change style of the selected boundary
  4. option to show a string added to the annotation object when hovered over it. something like showLabel = {(annotation)=>{annotation.nameInObject}}.
  5. you have a ref option with which we can control annotations data but it could be made more simpler by making the editor have a controlled state (for react).
@AhmeeedMostafa
Copy link
Collaborator

@KDDeveloper thank you for ur suggestions we will consider them while planning for the next major version.

I'd also appreciate explaining the use case of 2nd point and clarifying it more.

@AhmeeedMostafa AhmeeedMostafa added the enhancement New feature or request label Nov 29, 2023
@KDDeveloper
Copy link
Author

hey @AhmeeedMostafa , Sorry for the late reply. For the 2nd point, lets say there are a 100 of annotations at point of time and i have grouped them on the basis of an Id that i have added in the "annotations" state, then it should be possible for me to just have the annotations grouped by a that id as visible. This enhances the user experience as they can focus on on part at a time and have least amount of confusion. This will also inscrease and better the scope of use.
something like groupAnnotsBy={"key in which the id is stored"} showAnnotGroup={"the id value "}. If "showAnnotGroup" is empty show all. and give a small info at a corner that a particular id group is only being shown. if none added, it'll work as is. Thankyou.

@AhmeeedMostafa
Copy link
Collaborator

@KDDeveloper Thanks for the clarification, if we have enough time and find this would fit more general use cases we will consider it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants