daybrush / guides

A Guides component that can draw ruler and manage guidelines.
https://daybrush.com/guides/
MIT License
342 stars 46 forks source link

Feature: lockGuides prop for locking changes #34

Open drumnation opened 3 years ago

drumnation commented 3 years ago

Environments

Description

using e.stop() is still letting click events change state when hovering over a guide.

Just like how there is a showGuides prop for toggling guides, it would be great if there were a lockGuides prop for toggling locking the guides.

Will be adding to my fork in the future.

daybrush commented 3 years ago

@drumnation react-guides 0.13.0 is released.

lockGuides prop is added.


<Guides lockGuides={["add", "remove", "change"]} />