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

Annotations can be moved #183

Open
RahelaPogacean opened this issue Sep 15, 2023 · 6 comments
Open

Annotations can be moved #183

RahelaPogacean opened this issue Sep 15, 2023 · 6 comments

Comments

@RahelaPogacean
Copy link

Hello! I am developing an application using Annotorious with OSD and I can move the annotations with drag & drop. Is there any possibility to disable this option?

@rsimon
Copy link
Member

rsimon commented Sep 15, 2023

The readOnly option is probably what you're looking for:
https://annotorious.github.io/api-docs/osd-plugin/#readonly

@rsimon
Copy link
Member

rsimon commented Sep 15, 2023

If you want to make the shape locked, but keep the comments editable, I think you can do something like this:

var anno = Annotorious.init({
  image: 'hallstatt',
  readOnly: true,
  widgets: [
    { widget: 'COMMENT', editable: true }
  ]
});

But actually not quite sure anymore... Annotorious v3 is already on the horizon and will allow for more flexibility concerning permissions and editing rules.

@RahelaPogacean
Copy link
Author

@rsimon I want to not be able to move the annotation, but still be able to edit the points

@rsimon
Copy link
Member

rsimon commented Sep 15, 2023

Only change the shape but not move it? Sorry that's not possible. You might be able to work around by making the shape transparent to pointer events using CSS perhaps.

@ferropasha
Copy link

Is the reverse possible? That is for a user to be able to move selection frame around, but not to change it's shape?

@rsimon
Copy link
Member

rsimon commented Oct 5, 2023

No sorry. Not possible either. But likewise, you could try removing the handles via CSS.

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

No branches or pull requests

3 participants