Adds a pointerEvents method to the Shape Class which allows allow users to define custom values for the pointer-events property of a shape. This also changes the default value for pointerEvents from all to visiblePainted, which fixes the hit area of lines.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[x] I have documented all new methods.
[x] I have written tests for all new methods/functionality.
[ ] I have written examples for all new methods/functionality.
(closes #68 )
Description
Adds a pointerEvents method to the Shape Class which allows allow users to define custom values for the
pointer-events
property of a shape. This also changes the default value forpointerEvents
fromall
to visiblePainted, which fixes the hit area of lines.Types of changes
Checklist