Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Option to set class on given shape using className attribute #4364

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

Closed
wants to merge 1 commit into from

Conversation

mitja-p
Copy link

@mitja-p mitja-p commented Nov 19, 2019

I am trying to allow the functionality described here and open possible other uses:
https://community.plot.ly/t/lock-the-editing-of-few-shapes/25033/3

In this case you could set CSS for example:
.shapelayer path.locked {
pointer-events: none !important;
}

Useful for enabling editing only on some shapes using CSS. For example: 
.shapelayer path.fixed {
    pointer-events: none !important;
}
@etpinard
Copy link
Contributor

Hi @mitja-p

We don't allow users to set custom class names anywhere in the library at the moment. So what your PR is implementing would be a first, and hence is unlikely to get merged.

Sounds like the end-result you're looking for is to disable {ediatable: true} interactions for some shapes. Without a doubt, this would a nice addition to the library. We already have similar logic for annotations behind the captureevents boolean attribute.

If you're interested in making a PR that adds captureevents to shapes, please go ahead and we'll help you get it ready to be merged in master.

@etpinard
Copy link
Contributor

etpinard commented Jan 6, 2020

Closing due to lack of activity.

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

Successfully merging this pull request may close these issues.

2 participants