Skip to content

Border width is not counted as part of ArcElement  #11178

@stockiNail

Description

@stockiNail

Feature Proposal

Currently, when you set a borderWidth to an arc element, the width of the border is ignored by ArcElement when inRange method is invoked.
When a lineWidth is set before drawing on the canvas, half with is part of the shape itself but half width is drawn outside the shape.
In my opinion, but correct me if I'm wrong, the border width should be take in consideration as part of the element.

Codepen: https://codepen.io/stockinail/pen/VwGzWZN

If you move the mouse, hovering the pie chart, you can see that the border will appear when the mouse point is in the middle of the border.

Possible Implementation

I havent seen the arc element code yet, therefore I can only write now, it should be considered.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions