Skip to content

Arrow: refactor arrow system to allow different and customizable arrow shapes#3745

Merged
swharden merged 17 commits intomainfrom
3697-refactor-arrows
Apr 27, 2024
Merged

Arrow: refactor arrow system to allow different and customizable arrow shapes#3745
swharden merged 17 commits intomainfrom
3697-refactor-arrows

Conversation

@swharden
Copy link
Member

@swharden swharden commented Apr 27, 2024

Extensively refactors the arrow system to add multiple arrow styles and let users inject their own styles.

image

Also refactored to reduce the number of public extension methods. Very few were actually used, and required logic was moved into more appropriate locations. The only pain point is that System.Drawing.Color.ToColor() no longer produces a ScottPlot.Color. The recommended way to convert between the two colors is:

ScottPlot.Color.FromColor(System.Drawing.Color.Red);

@swharden swharden marked this pull request as ready for review April 27, 2024 17:05
@swharden swharden enabled auto-merge April 27, 2024 17:06
@swharden swharden merged commit bce9c14 into main Apr 27, 2024
@swharden swharden deleted the 3697-refactor-arrows branch April 27, 2024 18:21
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.

Arrow: refactor the arrow system

1 participant