E52A InteractiveTrendLine by btarb24 · Pull Request #5181 · ScottPlot/ScottPlot · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@btarb24
Copy link
@btarb24 btarb24 commented Dec 29, 2025

An amalgamation of InteractiveLineSegment and InteractiveHorizontalLine.

Has 2 movable points like LineSeg. But draws to infinity like HorLine.

Could also be written as a new LineExtension property on InteractiveLineSegment to choose from None, ExtendFromStart, ExtendFromEnd, ExtendBoth. .... but i felt it wouldn't be intuitive for Line'Segment' to extend to infinity so i made a new type.

general behavior:
BindLineToMouse

ClickAnywhere behavior to get nearest point on the infinite line (snap-to-candle is external code):
ClickAnywhereTrendLine

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.

1 participant

0