react-native-livechart 4.8.0 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"LiveChart.d.ts","sourceRoot":"","sources":["../../src/components/LiveChart.tsx"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAEV,cAAc,EAGf,MAAM,UAAU,CAAC;AAwvDlB,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAwL9C"}
1
+ {"version":3,"file":"LiveChart.d.ts","sourceRoot":"","sources":["../../src/components/LiveChart.tsx"],"names":[],"mappings":"AAmHA,OAAO,KAAK,EAGV,cAAc,EAGf,MAAM,UAAU,CAAC;AAu9DlB,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAwL9C"}
@@ -14,6 +14,9 @@ interface ThresholdMarkerProps {
14
14
  palette: LiveChartPalette;
15
15
  font: SkFont;
16
16
  formatValue: (v: number) => string;
17
+ /** When set, draw the marker as this time-varying threshold polyline (`[x, y, …]`)
18
+ * instead of a horizontal line at `lineY`. */
19
+ seriesPts?: SharedValue<number[]>;
17
20
  }
18
21
  /**
19
22
  * The dashed horizontal marker line at a live threshold value, tracking a
@@ -21,7 +24,7 @@ interface ThresholdMarkerProps {
21
24
  * data line stays the focus; the label badge ({@link ThresholdBadgeOverlay}) is
22
25
  * a separate layer drawn on top. Hidden when the threshold is off-screen.
23
26
  */
24
- export declare function ThresholdLineOverlay({ engine, padding, lineY, visible, cfg, palette, }: ThresholdMarkerProps): import("react").JSX.Element;
27
+ export declare function ThresholdLineOverlay({ engine, padding, lineY, visible, cfg, palette, seriesPts, }: ThresholdMarkerProps): import("react").JSX.Element;
25
28
  /**
26
29
  * The threshold's label as an opaque badge pill (rounded background + colored
27
30
  * border, like `ReferenceLineOverlay`'s off-axis badge). Drawn **on top** of the
@@ -1 +1 @@
1
- {"version":3,"file":"ThresholdLineOverlay.d.ts","sourceRoot":"","sources":["../../src/components/ThresholdLineOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,MAAM,EACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE5E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAGjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AASjD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,GAAG,EAAE,2BAA2B,CAAC;IACjC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;CACpC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,OAAO,EACP,KAAK,EACL,OAAO,EACP,GAAG,EACH,OAAO,GACR,EAAE,oBAAoB,+BA8BtB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,OAAO,EACP,KAAK,EACL,OAAO,EACP,KAAK,EACL,GAAG,EACH,OAAO,EACP,IAAI,EACJ,WAAW,GACZ,EAAE,oBAAoB,sCAyEtB"}
1
+ {"version":3,"file":"ThresholdLineOverlay.d.ts","sourceRoot":"","sources":["../../src/components/ThresholdLineOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,MAAM,EACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE5E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAIjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AASjD,UAAU,oBAAoB;IAC5B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,GAAG,EAAE,2BAA2B,CAAC;IACjC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC;mDAC+C;IAC/C,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,OAAO,EACP,KAAK,EACL,OAAO,EACP,GAAG,EACH,OAAO,EACP,SAAS,GACV,EAAE,oBAAoB,+BAuDtB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,OAAO,EACP,KAAK,EACL,OAAO,EACP,KAAK,EACL,GAAG,EACH,OAAO,EACP,IAAI,EACJ,WAAW,GACZ,EAAE,oBAAoB,sCAyEtB"}
@@ -0,0 +1,26 @@
1
+ import { type Uniforms } from "@shopify/react-native-skia";
2
+ import type { SharedValue } from "react-native-reanimated";
3
+ /**
4
+ * Whether the split effect compiled. Callers must gate any `<Path>` whose ONLY
5
+ * paint is this shader on it — without the shader child the path fills with the
6
+ * default paint (opaque black). A fallback `color` prop can't stand in instead:
7
+ * Skia multiplies the shader output by the paint alpha, so a transparent color
8
+ * erases the shader's own output too.
9
+ */
10
+ export declare const THRESHOLD_SPLIT_AVAILABLE: boolean;
11
+ interface ThresholdSplitShaderProps {
12
+ /**
13
+ * Per-frame uniforms (built in `useThresholdSplitUniforms`): `sampleLeft` /
14
+ * `sampleRight` (the gliding sample-grid span, px), `aboveColor` / `belowColor`
15
+ * (straight-alpha `[r, g, b, a]` vec4s, channels 0..1) and `samples`
16
+ * (`THRESHOLD_SAMPLE_COUNT` threshold pixel-Y values on the grid).
17
+ */
18
+ uniforms: SharedValue<Uniforms>;
19
+ }
20
+ /**
21
+ * The split `RuntimeShader` as a paint child — drop it inside a stroked line
22
+ * `<Path>` or a filled band `<Path>`, like a `<LinearGradient>`.
23
+ */
24
+ export declare function ThresholdSplitShader({ uniforms }: ThresholdSplitShaderProps): import("react").JSX.Element | null;
25
+ export {};
26
+ //# sourceMappingURL=ThresholdSplitShader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThresholdSplitShader.d.ts","sourceRoot":"","sources":["../../src/components/ThresholdSplitShader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AA+D3D;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,SAAwB,CAAC;AAE/D,UAAU,yBAAyB;IACjC;;;;;OAKG;IACH,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE,yBAAyB,sCAI3E"}
@@ -43,6 +43,15 @@ export interface EngineTickInput {
43
43
  referenceValue: number | undefined;
44
44
  /** Additional reference values (lines + bands) folded into the Y range. */
45
45
  referenceValues?: number[];
46
+ /**
47
+ * Time-varying threshold series (`threshold.includeInRange`): its min/max over
48
+ * the visible window is folded into the Y range, like {@link referenceValues}
49
+ * but windowed each tick.
50
+ */
51
+ thresholdRangePoints?: LiveChartPoint[];
52
+ /** Whether {@link thresholdRangePoints} extends flat past its last point to
53
+ * "now" (`threshold.extendToNow`). Default `true`. */
54
+ thresholdRangeExtendToNow?: boolean;
46
55
  /** Clamp the computed lower bound at 0. */
47
56
  nonNegative?: boolean;
48
57
  /** Hard cap for the computed upper bound. */
@@ -1 +1 @@
1
- {"version":3,"file":"liveChartEngineTick.d.ts","sourceRoot":"","sources":["../../src/core/liveChartEngineTick.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK5D,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,2EAA2E;IAC3E,eAAe,CA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f;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,uEAAuE;IACvE,UAAU,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACjC;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,eAAe,GACrB,IAAI,CAiQN"}
@@ -1,4 +1,4 @@
1
- import type { AreaDotsConfig, AxisLabelConfig, BadgeConfig, BadgeVariant, DegenOptions, FontConfig, FontWeight, GradientConfig, GridStyleConfig, LeftEdgeFadeConfig, LegendConfig, LegendStyle, LineStyleConfig, LiveChartMetrics, LiveChartMetricsOverride, LoadingConfig, MarkerClusterConfig, DotConfig, DotRingConfig, MultiSeriesDotConfig, PulseConfig, ReferenceLine, ScrubActionConfig, ScrubConfig, SelectionDotConfig, SelectionDotProps, SelectionDotRingConfig, ReturnToLiveConfig, ThresholdConfig, ThresholdLineConfig, TradeEvent, TransitionConfig, ValueLineConfig, VolumeConfig, XAxisConfig, YAxisConfig, ZoomConfig } from "../types";
1
+ import type { AreaDotsConfig, AxisLabelConfig, BadgeConfig, BadgeVariant, DegenOptions, FontConfig, FontWeight, GradientConfig, GridStyleConfig, LeftEdgeFadeConfig, LegendConfig, LegendStyle, LineStyleConfig, LiveChartMetrics, LiveChartMetricsOverride, LiveChartPoint, LoadingConfig, MarkerClusterConfig, DotConfig, DotRingConfig, MultiSeriesDotConfig, PulseConfig, ReferenceLine, ScrubActionConfig, ScrubConfig, SelectionDotConfig, SelectionDotProps, SelectionDotRingConfig, ReturnToLiveConfig, ThresholdConfig, ThresholdLineConfig, TradeEvent, TransitionConfig, ValueLineConfig, VolumeConfig, XAxisConfig, YAxisConfig, ZoomConfig } from "../types";
2
2
  import type { ComponentType, ReactElement } from "react";
3
3
  import type { SharedValue } from "react-native-reanimated";
4
4
  import type { ResolvedMarkerCluster } from "../math/markerCluster";
@@ -220,17 +220,34 @@ export interface ResolvedThresholdLineConfig {
220
220
  intervals: [number, number];
221
221
  strokeWidth: number;
222
222
  showValue: boolean;
223
+ /** undefined → fall back to `color`, then palette.refLabel at render time. */
224
+ labelColor: string | undefined;
223
225
  }
224
226
  export interface ResolvedThresholdConfig {
225
- /** The live split value (Y-axis units). Read on the UI thread each frame. */
226
- value: SharedValue<number>;
227
+ /**
228
+ * The split value (Y-axis units). A `SharedValue<number>` for a single live
229
+ * benchmark (read on the UI thread each frame), or a `LiveChartPoint[]` for a
230
+ * time-varying threshold the split follows point-for-point. `undefined` when
231
+ * {@link series} carries the threshold instead.
232
+ */
233
+ value: SharedValue<number> | LiveChartPoint[] | undefined;
234
+ /** Live time-varying threshold (`SharedValue<LiveChartPoint[]>`); wins over `value`. */
235
+ series: SharedValue<LiveChartPoint[]> | null;
227
236
  /** undefined → use palette.candleUp (up-green) at render time. */
228
237
  aboveColor: string | undefined;
229
238
  /** undefined → use palette.candleDown (down-red) at render time. */
230
239
  belowColor: string | undefined;
231
240
  fill: boolean;
241
+ /** Band opacity (0–1); {@link THRESHOLD_FILL_OPACITY_DEFAULT} unless tuned. */
242
+ fillOpacity: number;
243
+ /** Fold the threshold into the Y-axis range fit. */
244
+ includeInRange: boolean;
245
+ /** Series forms: extend flat past the last point to "now". */
246
+ extendToNow: boolean;
232
247
  line: ResolvedThresholdLineConfig | null;
233
248
  }
249
+ /** Default threshold band opacity — matches reference-line bands. */
250
+ export declare const THRESHOLD_FILL_OPACITY_DEFAULT = 0.16;
234
251
  /**
235
252
  * Resolves the `threshold.line` sub-prop to a config or null (no marker line).
236
253
  * `true` → dashed defaults, object → merged, falsy/undefined → null.
@@ -238,8 +255,8 @@ export interface ResolvedThresholdConfig {
238
255
  export declare function resolveThresholdLine(prop: boolean | ThresholdLineConfig | undefined): ResolvedThresholdLineConfig | null;
239
256
  /**
240
257
  * Resolves the `threshold` prop to a fully-typed config or null (disabled).
241
- * Presence-gated (like `referenceLines`/`markers`): the required `value`
242
- * SharedValue means there is no boolean form — a config object enables it.
258
+ * Presence-gated (like `referenceLines`/`markers`): a config object with a
259
+ * `value` or `series` enables it — there is no boolean form.
243
260
  */
244
261
  export declare function resolveThreshold(prop: ThresholdConfig | undefined): ResolvedThresholdConfig | null;
245
262
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"resolveConfig.d.ts","sourceRoot":"","sources":["../../src/core/resolveConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,EACb,mBAAmB,EACnB,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACX,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAenE,MAAM,WAAW,uBAAuB;IACtC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CAAC;CAC9C;AAUD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS,GAC7C,0BAA0B,GAAG,IAAI,CASnC;AAID,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,mEAAmE;IACnE,KAAK,EAAE,WAAW,GAAG,SAAS,CAAC;CAChC;AASD,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,GACvC,oBAAoB,CAWtB;AAaD;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,wBAAwB,GAAG,SAAS,GACzC,gBAAgB,CASlB"}
1
+ {"version":3,"file":"resolveConfig.d.ts","sourceRoot":"","sources":["../../src/core/resolveConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,UAAU,EACV,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACX,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,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A8B;IAC7C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;CACf;AAOD,oEAAoE;AACpE,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,OAAO,GAAG,sBAAsB,GAAG,SAAS,GACjD,8BAA8B,GAAG,IAAI,CAEvC;AAED,4CAA4C;AAC5C,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,EAAE,8BAA8B,GAAG,IAAI,CAAC;IAC5C,gEAAgE;IAChE,SAAS,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CAC9C;AAUD;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS,GAC7C,0BAA0B,GAAG,IAAI,CASnC;AAID,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,mEAAmE;IACnE,KAAK,EAAE,WAAW,GAAG,SAAS,CAAC;CAChC;AASD,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,GACvC,oBAAoB,CAWtB;AAaD;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,wBAAwB,GAAG,SAAS,GACzC,gBAAgB,CASlB"}
@@ -17,6 +17,17 @@ export interface EngineConfig {
17
17
  * `referenceValues`). Read on the UI thread each frame; omit for non-draggable charts.
18
18
  */
19
19
  liveReferenceValues?: SharedValue<number[]>;
20
+ /**
21
+ * Time-varying threshold series folded into the axis-range fit
22
+ * (`threshold.includeInRange`): each tick contributes the series' min/max over
23
+ * the visible window — like {@link referenceValues}, but windowed. A
24
+ * `SharedValue` for the live `threshold.series` form, a plain array for the
25
+ * `LiveChartPoint[]` form.
26
+ */
27
+ thresholdRangePoints?: SharedValue<LiveChartPoint[]> | LiveChartPoint[];
28
+ /** With {@link thresholdRangePoints}: whether the series extends flat past its
29
+ * last point to "now" (`threshold.extendToNow`). Default `true`. */
30
+ thresholdRangeExtendToNow?: boolean;
20
31
  nonNegative?: boolean;
21
32
  maxValue?: number;
22
33
  nowOverride?: number;
@@ -154,6 +165,9 @@ export interface EngineFrameRefs {
154
165
  exaggerateSV: SharedValue<boolean>;
155
166
  referenceValue: SharedValue<number | undefined>;
156
167
  referenceValues?: SharedValue<number[] | undefined>;
168
+ /** Series threshold folded into the range fit (`threshold.includeInRange`). */
169
+ thresholdRangePoints?: SharedValue<LiveChartPoint[] | undefined>;
170
+ thresholdRangeExtendToNow?: SharedValue<boolean>;
157
171
  nonNegativeSV?: SharedValue<boolean>;
158
172
  maxValueSV?: SharedValue<number | undefined>;
159
173
  nowOverrideSV?: SharedValue<number | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"useLiveChartEngine.d.ts","sourceRoot":"","sources":["../../src/core/useLiveChartEngine.ts"],"names":[],"mappings":"AAQA,OAAO,EAQL,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG1E,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,WAAW,CAAC,cAAc,EAAE,CAAC,CAAC;IACpC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B;;;;;OAKG;IACH,mBAAmB,CAAC,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MAAM,CAAC,CAAC;IACrC,eAAe,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACrC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACrC;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,SAAS,EAAE;IAAE,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,EACrD,EAAE,EAAE,eAAe,GAClB,IAAI,CAkEN;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,YAAY,GACnB,iBAAiB,GAAG,iBAAiB,GAAG,eAAe,CA0PzD"}
@@ -29,7 +29,12 @@ edgeValue?: SharedValue<number>, followViewEdge?: boolean,
29
29
  /** Loading squiggle wave amplitude (px) for the reveal morph. Default 14. */
30
30
  squiggleAmplitude?: number,
31
31
  /** Loading squiggle wave speed multiplier for the reveal morph. Default 1. */
32
- squiggleSpeed?: number): {
32
+ squiggleSpeed?: number,
33
+ /** When set, build `thresholdFillPath` as the band between the line and this
34
+ * *time-varying* threshold — the split shader's evenly-spaced pixel-Y
35
+ * `samples[]` (so band geometry matches the shader exactly). Takes precedence
36
+ * over `thresholdY`, the constant (horizontal) case. */
37
+ thresholdSamples?: SharedValue<number[]>): {
33
38
  readonly linePath: import("react-native-reanimated").DerivedValue<SkPath>;
34
39
  readonly fillPath: import("react-native-reanimated").DerivedValue<SkPath>;
35
40
  readonly thresholdFillPath: import("react-native-reanimated").DerivedValue<SkPath>;
@@ -1 +1 @@
1
- {"version":3,"file":"useChartPaths.d.ts","sourceRoot":"","sources":["../../src/hooks/useChartPaths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,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;;;;EA2JzC"}
@@ -1,7 +1,12 @@
1
- import { vec } from "@shopify/react-native-skia";
1
+ import { vec, type Uniforms } from "@shopify/react-native-skia";
2
2
  import { type SharedValue } from "react-native-reanimated";
3
3
  import type { ChartEngineLayout } from "../core/useLiveChartEngine";
4
4
  import type { ChartPadding } from "../draw/line";
5
+ import type { LiveChartPoint } from "../types";
6
+ /** A threshold value that is either a single live benchmark or a time-varying series. */
7
+ export type ThresholdValue = SharedValue<number> | LiveChartPoint[];
8
+ /** `clipRight` sentinel when the threshold extends to "now" (no forward cutoff). */
9
+ export declare const THRESHOLD_NO_CLIP = 1000000000;
5
10
  export interface ThresholdGeometry {
6
11
  /** Threshold pixel-Y within the canvas, or NaN before layout / degenerate range. */
7
12
  lineY: SharedValue<number>;
@@ -13,10 +18,62 @@ export interface ThresholdGeometry {
13
18
  splitPositions: SharedValue<number[]>;
14
19
  }
15
20
  /**
16
- * Per-frame screen geometry for the threshold split, shared by the stroke
17
- * gradient, the profit/loss fill band, and the dashed marker line. Reads the live
18
- * threshold value + engine Y-range on the UI thread; the math lives in
19
- * `math/threshold` so it stays unit-testable without Reanimated.
21
+ * Per-frame screen geometry for the **constant** threshold split (a single
22
+ * `SharedValue<number>` benchmark), shared by the stroke gradient, the
23
+ * profit/loss fill band, and the dashed marker line. Reads the live threshold
24
+ * value + engine Y-range on the UI thread; the math lives in `math/threshold` so
25
+ * it stays unit-testable without Reanimated.
26
+ *
27
+ * When the threshold is a time-varying series this geometry is unused — the
28
+ * worklets short-circuit to a NaN `lineY` (→ off-screen, solid-above fallback)
29
+ * and {@link useThresholdSeries} drives the render instead.
20
30
  */
21
- export declare function useThreshold(engine: ChartEngineLayout, padding: ChartPadding, value: SharedValue<number>): ThresholdGeometry;
31
+ export declare function useThreshold(engine: ChartEngineLayout, padding: ChartPadding, value: ThresholdValue): ThresholdGeometry;
32
+ export interface ThresholdSeriesGeometry {
33
+ /** Marker-line polyline in screen space `[x, y, …]`, projected from `samples`
34
+ * (so it aligns exactly with the band edge + stroke split) and pinned to the
35
+ * plot's left edge and to `min(plot right, clipRightX)`. */
36
+ screenPts: SharedValue<number[]>;
37
+ /** `THRESHOLD_SAMPLE_COUNT` threshold pixel-Y values on the time-anchored
38
+ * sample grid — the split shader's `samples[]`, and the bottom edge of the
39
+ * profit/loss band. Their pixel-X span is `thresholdSampleSpanX(...)`, which
40
+ * glides with the window (NOT the static plot edges). */
41
+ samples: SharedValue<number[]>;
42
+ /** Whether any of the polyline is on-screen (drives marker-line opacity). */
43
+ visible: SharedValue<boolean>;
44
+ /** Threshold value at `now` (flat-extended past the last point) — the badge label. */
45
+ currentValue: SharedValue<number>;
46
+ /** Pixel-Y of `currentValue` — anchors the badge. */
47
+ currentLineY: SharedValue<number>;
48
+ /** Whether the badge should show: `currentLineY` on-plot AND, with
49
+ * `extendToNow` off, "now" not past the series' last point. (`visible` can be
50
+ * true for the polyline while the value-at-now sits outside the plot; the
51
+ * badge must not draw into the gutters then.) */
52
+ currentVisible: SharedValue<boolean>;
53
+ /** Pixel-X where the threshold ends: the last point's X with `extendToNow`
54
+ * off, else {@link THRESHOLD_NO_CLIP}. The shader paints its plain
55
+ * `restColor` right of it; the marker polyline stops there. */
56
+ clipRightX: SharedValue<number>;
57
+ }
58
+ /**
59
+ * Per-frame screen geometry for a **time-varying** threshold — a plain
60
+ * `LiveChartPoint[]` `value` or a live `SharedValue<LiveChartPoint[]>` `series`
61
+ * (which wins when both are given): the screen polyline (marker line +
62
+ * fill-band bottom), the shader's pixel-Y `samples[]`, the current value/anchor
63
+ * for the badge, and the `extendToNow` cutoff X. The array buffers ping-pong
64
+ * (Reanimated only re-notifies subscribers when the returned reference
65
+ * changes). When the threshold is a constant `SharedValue<number>` every
66
+ * worklet short-circuits cheaply and {@link useThreshold} drives the render
67
+ * instead.
68
+ */
69
+ export declare function useThresholdSeries(engine: ChartEngineLayout, padding: ChartPadding, value: ThresholdValue, series?: SharedValue<LiveChartPoint[]> | null, extendToNow?: boolean): ThresholdSeriesGeometry;
70
+ /**
71
+ * Pack a series geometry + a color set into the {@link ThresholdSplitShader}'s
72
+ * uniforms (one `SharedValue` per paint — stroke vs. the alpha-reduced fill band).
73
+ * The object is rebuilt each frame so the shader re-paints as `samples` advance;
74
+ * `sampleLeft`/`sampleRight` are the gliding pixel-X span of the sample grid and
75
+ * `clipRight`/`restColor` implement the `extendToNow: false` cutoff (plain line
76
+ * color for the stroke, transparent for the band).
77
+ */
78
+ export declare function useThresholdSplitUniforms(samples: SharedValue<number[]>, engine: ChartEngineLayout, padding: ChartPadding, aboveColor: number[], belowColor: number[], restColor: number[], clipRightX: SharedValue<number>): SharedValue<Uniforms>;
22
79
  //# sourceMappingURL=useThreshold.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useThreshold.d.ts","sourceRoot":"","sources":["../../src/hooks/useThreshold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,4BAA4B,CAAC;AACjD,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAOjD,MAAM,WAAW,iBAAiB;IAChC,oFAAoF;IACpF,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,oFAAoF;IACpF,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B,sFAAsF;IACtF,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;IACjD,2FAA2F;IAC3F,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GACzB,iBAAiB,CA8BnB"}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;IACtF,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,qDAAqD;IACrD,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC;;;sDAGkD;IAClD,cAAc,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACrC;;oEAEgE;IAChE,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACjC;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,cAAc,EACrB,MAAM,GAAE,WAAW,CAAC,cAAc,EAAE,CAAC,GAAG,IAAW,EACnD,WAAW,UAAO,GACjB,uBAAuB,CAoJzB;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC,EAC9B,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,MAAM,EAAE,EACpB,UAAU,EAAE,MAAM,EAAE,EACpB,SAAS,EAAE,MAAM,EAAE,EACnB,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,WAAW,CAAC,QAAQ,CAAC,CAoBvB"}
@@ -3,6 +3,16 @@
3
3
  * No SharedValues and no hooks — these are unit-tested directly; `useThreshold`
4
4
  * wires the live SharedValues into them.
5
5
  */
6
+ import type { LiveChartPoint } from "../types";
7
+ /**
8
+ * Sample resolution for the time-varying split shader: the threshold series is
9
+ * projected to this many evenly-spaced pixel-Y values across the plot, which the
10
+ * shader linearly interpolates between. ~one sample per 6px on a phone plot —
11
+ * fine enough that the line's crossing point is coloured accurately. The shader
12
+ * walks these in an unrolled loop (`THRESHOLD_SAMPLE_COUNT - 1` iterations), so
13
+ * keep it modest to stay within SkSL's unroll limits.
14
+ */
15
+ export declare const THRESHOLD_SAMPLE_COUNT = 64;
6
16
  /**
7
17
  * Pixel Y of a threshold value within the plot. Mirrors the line path's value→Y
8
18
  * mapping in `buildLinePoints` (`top + (max - v) / range * chartH`). Returns NaN
@@ -22,4 +32,76 @@ export declare function thresholdVisible(lineY: number, canvasHeight: number, pa
22
32
  * - `t ≥ 1` (threshold below everything) → `[0, 1, 1, 1]` → solid above-color.
23
33
  */
24
34
  export declare function thresholdSplitPositions(lineY: number, canvasHeight: number): number[];
35
+ /**
36
+ * Spacing of the threshold sample grid, in seconds. `count - 2` (not `count - 1`)
37
+ * so the `count` samples cover the window plus up to one spacing of overhang on
38
+ * each side — the grid is anchored to absolute time (see
39
+ * {@link thresholdSampleStart}) and must keep covering the plot as it glides.
40
+ */
41
+ export declare function thresholdSampleStep(windowSecs: number, count: number): number;
42
+ /**
43
+ * First sample time of the grid: the greatest multiple of the spacing at or
44
+ * before the window start. Anchoring sample TIMES to an absolute grid (instead
45
+ * of evenly across the current window) keeps each sample's *value* stable while
46
+ * the window scrolls — the grid's *pixel* positions glide left each frame, so a
47
+ * step riser translates fluidly instead of popping from one fixed sample bin to
48
+ * the next (~plotWidth/63 px at a time) while the data line glides beside it.
49
+ */
50
+ export declare function thresholdSampleStart(now: number, windowSecs: number, count: number): number;
51
+ /**
52
+ * Pixel-X endpoints `[x0, x1]` of the sample grid for the current frame — the
53
+ * span the shader / band / marker interpolate {@link sampleThresholdY}'s output
54
+ * across. Overhangs `[plotLeft, plotRight]` by up to one spacing per side and
55
+ * glides with the window. Falls back to the plot edges when the window or plot
56
+ * is degenerate (matching `sampleThresholdY`'s degenerate fill).
57
+ */
58
+ export declare function thresholdSampleSpanX(now: number, windowSecs: number, plotLeft: number, plotRight: number, count: number): [number, number];
59
+ /**
60
+ * Sample the threshold series to `count` pixel-Y values on the time-anchored
61
+ * grid ({@link thresholdSampleStart}/{@link thresholdSampleSpanX}), for the
62
+ * split shader's `samples[]` uniform (it linearly interpolates between them and
63
+ * compares each fragment's Y). Clamps to the series' first/last value outside
64
+ * its range (flat extension). When the canvas or range is degenerate — or a
65
+ * series value is NaN — it fills with a far-below Y, so the shader paints the
66
+ * above-color everywhere — matching the constant split's pre-layout fallback
67
+ * (`thresholdSplitPositions` → solid above).
68
+ */
69
+ export declare function sampleThresholdY(points: LiveChartPoint[], now: number, windowSecs: number, displayMin: number, displayMax: number, canvasHeight: number, paddingTop: number, paddingBottom: number, count: number, out?: number[]): number[];
70
+ /**
71
+ * Evaluate the threshold at pixel-x `x` from the evenly-spaced `samples[]` (the
72
+ * same array the split shader reads), linearly interpolated across the sample
73
+ * span `[spanLeft, spanRight]` (see {@link thresholdSampleSpanX}) and clamped
74
+ * outside it. The profit/loss band's bottom edge and the marker polyline's
75
+ * plot-edge pins are built from this so their geometry matches the shader
76
+ * **exactly** — a sharp step in the threshold becomes the same ~1-sample ramp in
77
+ * all of them, so no green/red sliver bleeds through at a step riser.
78
+ */
79
+ export declare function sampleThresholdYAt(samples: number[], spanLeft: number, spanRight: number, x: number): number;
80
+ /**
81
+ * Dash-phase (px) for the series marker line so its dash pattern travels WITH
82
+ * the scrolling threshold instead of staying screen-fixed. The marker path
83
+ * starts at the static plot edge, so without a moving phase the dashes sit
84
+ * still while the staircase glides left — reading as the dots "marching" right
85
+ * along the line. Advancing the phase at exactly the content scroll speed
86
+ * (`span/windowSecs` px per second, mod the dash cycle) pins the pattern to the
87
+ * geometry. Returns 0 for a degenerate window/plot/cycle (static dashes).
88
+ */
89
+ export declare function thresholdDashPhase(now: number, windowSecs: number, plotLeft: number, plotRight: number, dashCycle: number): number;
90
+ /**
91
+ * Min/max of a threshold series over the visible window `[now - windowSecs,
92
+ * now]` — the values folded into the engine's Y-range fit when
93
+ * `threshold.includeInRange` is set (like reference-line values). Uses the
94
+ * clamped window-edge values plus every interior point; with `extendToNow` off,
95
+ * the window end clamps to the series' last point (nothing projects forward).
96
+ * Writes `[min, max]` into `out` and returns it, or returns null when the
97
+ * series is empty / entirely outside the effective window / non-finite.
98
+ */
99
+ export declare function thresholdRangeMinMax(points: LiveChartPoint[], now: number, windowSecs: number, extendToNow: boolean, out: [number, number]): [number, number] | null;
100
+ /**
101
+ * True when any part of a threshold screen polyline crosses the plot: a vertex
102
+ * inside it, or a segment whose endpoints straddle it (a step riser can jump
103
+ * from below the bottom edge to above the top edge between two samples without
104
+ * landing a vertex inside).
105
+ */
106
+ export declare function thresholdSeriesVisible(screenPts: number[], canvasHeight: number, paddingTop: number, paddingBottom: number): boolean;
25
107
  //# sourceMappingURL=threshold.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"threshold.d.ts","sourceRoot":"","sources":["../../src/math/threshold.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,GACpB,MAAM,CAMR;AAED,8EAA8E;AAC9E,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,GACpB,OAAO,CAIT;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,GACnB,MAAM,EAAE,CAOV"}
1
+ {"version":3,"file":"threshold.d.ts","sourceRoot":"","sources":["../../src/math/threshold.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,GACpB,MAAM,CAMR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GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB,MAAM,CAKR;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,cAAc,EAAE,EACxB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,OAAO,EACpB,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GACpB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CA2BzB;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,MAAM,EAAE,EACnB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,GACpB,OAAO,CAkBT"}
package/dist/types.d.ts CHANGED
@@ -392,32 +392,77 @@ export interface LineConfig {
392
392
  cap?: "round" | "butt" | "square";
393
393
  }
394
394
  /**
395
- * Color the line above vs. below a live threshold value — green above, red below
396
- * by default. The threshold is **always** a `SharedValue` so it can track a live
397
- * benchmark (break-even / average cost, VWAP, previous close, a peg) on the UI
398
- * thread without re-rendering. Drives a hard-split line stroke and, optionally, a
399
- * tinted profit/loss fill band and a dashed marker line at the threshold.
395
+ * Color the line above vs. below a threshold — green above, red below by
396
+ * default. The threshold is either a single **live benchmark** (a
397
+ * `SharedValue<number>` that tracks on the UI thread without re-rendering) or a
398
+ * **time-varying series** (a `LiveChartPoint[]` the split follows point-for-point
399
+ * a stepped break-even, a historical VWAP). Drives a hard-split line stroke
400
+ * and, optionally, a tinted profit/loss fill band and a marker line at the
401
+ * threshold.
400
402
  *
401
403
  * The split stroke supersedes `LineConfig.color`/`colors` and segment recoloring
402
404
  * for the main line while a threshold is set.
403
405
  */
404
406
  export interface ThresholdConfig {
405
407
  /**
406
- * The split value, in Y-axis (price) units. A `SharedValue` — update it with
407
- * `.set()` and the split tracks live on the UI thread (break-even, VWAP, the
408
- * previous close, a peg, …).
408
+ * The split value, in Y-axis (price) units. Two forms:
409
+ *
410
+ * - **`SharedValue<number>`** a single live benchmark. Update it with
411
+ * `.set()` and the horizontal split tracks on the UI thread without
412
+ * re-rendering (break-even / average cost, VWAP, the previous close, a peg).
413
+ * - **`LiveChartPoint[]`** — a *time-varying* threshold (e.g. a historical
414
+ * break-even that steps up as you average in). The stroke split, fill band
415
+ * and marker line follow the series point-for-point. The series clamps to its
416
+ * first/last value outside its own time range, so a threshold whose last
417
+ * point sits behind the live edge extends as a flat line to "now" (see
418
+ * {@link extendToNow}). Flows in on re-render — pass a stable (memoized)
419
+ * array and reserve it for thresholds that change occasionally; for a
420
+ * threshold series that updates live, use {@link series} instead.
421
+ *
422
+ * Provide `value` or {@link series} (not both) — `series` wins if both are set.
423
+ */
424
+ value?: SharedValue<number> | LiveChartPoint[];
425
+ /**
426
+ * A **live** time-varying threshold: like the `LiveChartPoint[]` form of
427
+ * {@link value}, but a `SharedValue` — update it with `.set()`/`.modify()` and
428
+ * the split tracks on the UI thread without re-rendering (a VWAP that updates
429
+ * every tick, mirroring how the chart's own `data` prop works). Points must be
430
+ * sorted by `time`, like `data`. Takes precedence over {@link value}.
431
+ */
432
+ series?: SharedValue<LiveChartPoint[]>;
433
+ /**
434
+ * Stroke color where the line is at/above `value`. Default: palette up-green
435
+ * (`candleUp`). With a series `value`, use hex (`#rgb`/`#rrggbb`), `rgb()` or
436
+ * `rgba()` — the split shader parses these; named CSS colors and 8-digit hex
437
+ * are only supported by the constant form.
409
438
  */
410
- value: SharedValue<number>;
411
- /** Stroke color where the line is at/above `value`. Default: palette up-green (`candleUp`). */
412
439
  aboveColor?: string;
413
- /** Stroke color where the line is below `value`. Default: palette down-red (`candleDown`). */
440
+ /** Stroke color where the line is below `value`. Default: palette down-red
441
+ * (`candleDown`). Same format support as `aboveColor`. */
414
442
  belowColor?: string;
415
443
  /**
416
- * Tint the area between the line and `value` (the profit/loss band) toward the
417
- * above/below colors. Independent of the baseline `gradient` fill — set
418
- * `gradient={false}` for the threshold band alone. Default `false`.
444
+ * Tint the area between the line and the threshold (the profit/loss band)
445
+ * toward the above/below colors. Independent of the baseline `gradient` fill —
446
+ * set `gradient={false}` for the threshold band alone. `true` → default band
447
+ * opacity (`0.16`), or an object to tune it. Default `false`.
419
448
  */
420
- fill?: boolean;
449
+ fill?: boolean | ThresholdFillConfig;
450
+ /**
451
+ * Fold the threshold into the Y-axis range fit — like reference lines — so a
452
+ * benchmark outside the data's own range stays on-plot instead of rendering
453
+ * invisibly (marker off-plot, whole line one color). For a series, the values
454
+ * visible in the current window count (respecting {@link extendToNow}).
455
+ * Default `false` (range fits the data only).
456
+ */
457
+ includeInRange?: boolean;
458
+ /**
459
+ * Series forms only: extend the threshold **flat past its last point to
460
+ * "now"**, carrying the last known benchmark forward. Set `false` for a
461
+ * benchmark that must not project into the future (a closed session's VWAP) —
462
+ * right of the last point the stroke keeps its plain line color and the band /
463
+ * marker / badge end. Default `true`.
464
+ */
465
+ extendToNow?: boolean;
421
466
  /**
422
467
  * Dashed marker line + optional gutter label at the threshold. `true` → a dashed
423
468
  * line in the palette reference color; object → styled; omit/`false` → none.
@@ -443,6 +488,15 @@ export interface ThresholdLineConfig {
443
488
  strokeWidth?: number;
444
489
  /** Append the formatted threshold value to the label. Default `false`. */
445
490
  showValue?: boolean;
491
+ /** Label text color. Defaults to {@link color}, then palette `refLabel` —
492
+ * mirroring `ReferenceLine.labelColor`. */
493
+ labelColor?: string;
494
+ }
495
+ /** Object form of {@link ThresholdConfig.fill} — band tuning. */
496
+ export interface ThresholdFillConfig {
497
+ /** Band fill opacity (0–1), applied to the above/below colors. Multiplies an
498
+ * `rgba()` color's own alpha. Default `0.16` (matching reference-line bands). */
499
+ opacity?: number;
446
500
  }
447
501
  /** Area fill gradient beneath the chart line. */
448
502
  export interface GradientConfig {