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

preStrokeColor prop #65

Open
ArturGrafTKT opened this issue May 9, 2023 · 1 comment
Open

preStrokeColor prop #65

ArturGrafTKT opened this issue May 9, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request Feature New Feature help wanted Extra attention is needed Pending Pending Feature question A valid question

Comments

@ArturGrafTKT
Copy link

Is your feature request related to a problem? Please describe.
I want an area to be always highlighted like the preFillColor works, but I want only the stroke to be drawn. The stroke should be white and if the mouse enter the area the stroke should turn green.

Describe the solution you'd like
I want a new prop preStrokeColor that allows to set different stroke color in highlighted and default state.

Describe alternatives you've considered
I tried using the the preFillColor with alpha 0, but that way the stroke color is always the same if the mouse moves over the are or not. I need the stroke to be always white and if the mouse enters the are the stroke should turn green.

I also tried to use the callbacks onMouseEnter and onMouseLeave to change the map areas stroke color. But the rerendering gave me flashings and unexpected results.

@teddybee
Copy link

teddybee commented Jul 10, 2023

There could be a natural fillColor variable as well.
P.S.: I have just discovered, there is a preFillColor

@NishargShah NishargShah self-assigned this Dec 24, 2023
@NishargShah NishargShah added enhancement New feature or request help wanted Extra attention is needed question A valid question Feature New Feature Pending Pending Feature labels Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature New Feature help wanted Extra attention is needed Pending Pending Feature question A valid question
Projects
None yet
Development

No branches or pull requests

3 participants