ScrollTargetContext
public readonly struct ScrollTargetContextContext passed to ChartGuru.ChartScrollTargetBehavior.Snap(System.Single%2cChartGuru.ScrollTargetContext%40)
so context-sensitive behaviors (Page / Matching / LimitBehavior) can resolve.
Fields
Section titled “Fields”
VisibleDomainLength
Section titled “VisibleDomainLength”public readonly float VisibleDomainLengthReturns
System.Single
DataDomain
Section titled “DataDomain”public readonly ClosedRange<float> DataDomainReturns
ChartGuru.ClosedRange{System.Single}
IsXAxis
Section titled “IsXAxis”public readonly bool IsXAxisReturns
System.Boolean
Constructors
Section titled “Constructors”
ScrollTargetContext(float, ClosedRange, bool)
Section titled “ScrollTargetContext(float, ClosedRange, bool)”public ScrollTargetContext(float visibleDomainLength, ClosedRange<float> dataDomain, bool isXAxis)Captures the viewport length, complete data bounds, and axis identity used to constrain and align one scroll target.
Parameters
| Name | Type |
|---|---|
visibleDomainLength |
System.Single |
dataDomain |
ChartGuru.ClosedRange{System.Single} |
isXAxis |
System.Boolean |