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

Prevent lineWidth object from filling the cell in black [#897] #961

Conversation

MikeDabrowski
Copy link
Contributor

@MikeDabrowski MikeDabrowski commented Apr 17, 2023

Completely reworked the way the border drawing works. It now takes into consideration the neighbouring borders to achieve 'sharp' edge. Borders are still centered on cell edge.

If lineWidth: number is provided, borders will be drawn using rectangle with stroke.

If lineWidth: Partial<LineWidth> is provided, borders will be drawn individually.

The tests passed, and from what I could see, all examples are working. I've also added example page with borders showcase - it may not be beautiful but showcases what can be done with the borders now.

Closes #897

@MikeDabrowski MikeDabrowski changed the title Prevent lineWidth object from filling the cell in black #397 Prevent lineWidth object from filling the cell in black Apr 18, 2023
@MikeDabrowski MikeDabrowski changed the title #397 Prevent lineWidth object from filling the cell in black Prevent lineWidth object from filling the cell in black [#897] Apr 18, 2023
@MikeDabrowski MikeDabrowski marked this pull request as draft April 18, 2023 17:29
@MikeDabrowski MikeDabrowski force-pushed the 897_fillColor_turns_cell_black_when_used_with_lineWidth branch from 17ef07c to af34388 Compare April 18, 2023 18:40
@MikeDabrowski MikeDabrowski marked this pull request as ready for review April 18, 2023 18:41
@simonbengtsson simonbengtsson merged commit 49bb89e into simonbengtsson:master May 20, 2023
@simonbengtsson
Copy link
Owner

Looks great!

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.

fillColor turn's black when specifing an object to lineWidth
2 participants