-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 lock types can be easily removed via UI #65
Comments
This is a bug. Thanks for pointing into it.
For now, this is intentional. Like, a user can lock/unlock elements when they need that. Do you have a use case when you want to lock something buy still allow selection? I would like to understand better. |
Yes, in the usecase with the PageView elements, that I explained here, I need to lock the PageView elements from moving or resizing or editing content or removing, because they are unchangable part of the final disign. At the same time I want the users to select them, so that for example I can show text & button on the Topbar.
To be honest, I don't see why general lock/unlock should remove all the custom locks. It should keep the previously set custom locks as they were. Maybe if you want to give a user possibility to override custom locking, provide a flag for it (like this)? |
I would need to deeply think about it. Your use case does make sense to me. Currently, there are no "custom locks". Locks that you change from API and locks that can toggle the user are the same locks. Probably I can add "lockChangeEnabled", that will prevent changing locking from UI. |
Yeah, that's one way.. |
I need to lock some objects in the starter template that I provide to the user.
But users can easily disable those locks.
removable
lock can be still deleted via Layers panel (the delete button is enabled there)draggable
,resizable
andcontentEditable
locks all you need to do is to lock the element with the lock button (either in Layers, or in the topbar) and unlock it back. all the locks will be removed from this element!Only
selectable
lock works.Reference polotno export with different locks:
polotno_locks.json.zip
The text was updated successfully, but these errors were encountered: