Skip to content

fix(line): hide when length subpath is zero - #214

Open
SaidMarar wants to merge 2 commits into
react-component:masterfrom
SaidMarar:fix/line-value-zero
Open

fix(line): hide when length subpath is zero#214
SaidMarar wants to merge 2 commits into
react-component:masterfrom
SaidMarar:fix/line-value-zero

Conversation

@SaidMarar

@SaidMarar SaidMarar commented Dec 29, 2022

Copy link
Copy Markdown
Contributor

This fix #133

As mentioned in MDN: stroke-linecap it is the expected behavior of svg stroke-linecap for both round and square.

The round value indicates that at the end of each subpath the stroke will be extended by a half circle with a diameter equal to the stroke width. On a zero length subpath, the stroke consists of a full circle centered at the subpath's point.

The square value indicates that at the end of each subpath the stroke will be extended by a rectangle with a width equal to half the width of the stroke and a height equal to the width of the stroke. On a zero length subpath, the stroke consists of a square with its width equal to the stroke width, centered at the subpath's point.

@vercel

vercel Bot commented Dec 29, 2022

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
progress ❌ Failed (Inspect) Dec 29, 2022 at 11:35AM (UTC)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant