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

No way to remove an annotation that has no body #399

Open
jimsafley opened this issue May 10, 2024 · 0 comments
Open

No way to remove an annotation that has no body #399

jimsafley opened this issue May 10, 2024 · 0 comments
Labels
v2.x Legacy 2.x relesae

Comments

@jimsafley
Copy link

I'm on 2.7.13, using the standard version API.

I have an annotation that has no body. After using setAnnotations() to render the annotation to the image, the UI provides no way to remove the annotation from the image. Clicking on the box opens the editor popup, but there is no delete option, and clicking "Cancel" or "OK" doesn't remove the drawing box.

For example (note that body is an empty array):

[
  {
    "@context":"http:\/\/www.w3.org\/ns\/anno.jsonld",
    "type":"Annotation",
    "body":[],
    "target":{
      "source":"http:\/\/localhost\/image.jpg",
      "selector":{
        "type":"FragmentSelector",
        "conformsTo":"http:\/\/www.w3.org\/TR\/media-frags\/",
        "value":"xywh=pixel:352,159,107,77"
      }
    },
    "id":"#2c0ba819-c91b-4272-a113-a192d4c8b927"
  }
]
@rsimon rsimon added the v2.x Legacy 2.x relesae label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2.x Legacy 2.x relesae
Projects
None yet
Development

No branches or pull requests

2 participants