Skip to content

fix(canvas)!: use full block for Marker::Block#133

Merged
orhun merged 1 commit intoratatui:mainfrom
joshka:main
Apr 15, 2023
Merged

fix(canvas)!: use full block for Marker::Block#133
orhun merged 1 commit intoratatui:mainfrom
joshka:main

Conversation

@joshka
Copy link
Member

@joshka joshka commented Apr 12, 2023

Fixes #82

When drawing a vertical line on a canvas, using Marker::Block would
draw a gap in between each line. This is because the default block
character was a half bar. This changes the default block character to a
full block, and adds a new marker type Marker::Bar to replace the
current Marker::Block.

BREAKING CHANGE: Marker::Block now uses a full block character, and
Marker::Bar is the new half block character.

  • Adds tests for each Marker in the canvas widget.
  • Adds marker to the canvas example to show the difference between
    the marker types.

@joshka
Copy link
Member Author

joshka commented Apr 12, 2023

Changed .split('\n') to .lines() in tests to attempt to make ubuntu happy.

@joshka joshka force-pushed the main branch 2 times, most recently from 74f0006 to 5b36533 Compare April 12, 2023 09:03
@joshka
Copy link
Member Author

joshka commented Apr 12, 2023

(Tests fixed)

When drawing a vertical line on a canvas, using `Marker::Block` would
draw a gap in between each line. This is because the default block
character was a half bar. This changes the default block character to a
full block, and adds a new marker type `Marker::Bar` to replace the
current `Marker::Block`.

BREAKING CHANGE: `Marker::Block` now uses a full block character, and
`Marker::Bar` is the new half block character.

- Adds tests for each `Marker` in the canvas widget.
- Adds marker to the canvas example to show the difference between
  the marker types.
@joshka
Copy link
Member Author

joshka commented Apr 12, 2023

sigh in improving the tests, I was too hasty and introduced a typo bug (which is now fixed, and should succeed).

@mindoodoo mindoodoo changed the title fix(canvas)!: Use full block for Marker::Block fix(canvas)!: use full block for Marker::Block Apr 15, 2023
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.

Marker to draw shapes without gaps in the vertical direction on canvas

4 participants