@texturehq/edges 2.3.4 → 2.4.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.
package/dist/index.d.cts CHANGED
@@ -3054,10 +3054,13 @@ type TileRef = {
3054
3054
  startMs: number;
3055
3055
  endMs: number;
3056
3056
  };
3057
- /** Data a tile carries. `band` optional → engine is metric-agnostic. */
3057
+ /** Data a tile carries. `band` optional → engine is metric-agnostic.
3058
+ * `lines` carries additional named series (e.g. export/net flows) that
3059
+ * stitch with the same dedup-by-timestamp semantics as `line`. */
3058
3060
  type TileData = {
3059
3061
  line: BaseDataPoint[];
3060
3062
  band?: BaseDataPoint[];
3063
+ lines?: Record<string, BaseDataPoint[]>;
3061
3064
  };
3062
3065
  /** Injected loader: one tile = one bounded fetch. */
3063
3066
  type FetchTile = (tier: Tier, startMs: number, endMs: number, signal: AbortSignal) => Promise<TileData>;
@@ -3104,6 +3107,7 @@ type Coverage = {
3104
3107
  type AssembledSeries = {
3105
3108
  line: BaseDataPoint[];
3106
3109
  band: BaseDataPoint[];
3110
+ lines: Record<string, BaseDataPoint[]>;
3107
3111
  renderTier: Tier | null;
3108
3112
  targetTier: Tier;
3109
3113
  isFallback: boolean;
package/dist/index.d.ts CHANGED
@@ -3054,10 +3054,13 @@ type TileRef = {
3054
3054
  startMs: number;
3055
3055
  endMs: number;
3056
3056
  };
3057
- /** Data a tile carries. `band` optional → engine is metric-agnostic. */
3057
+ /** Data a tile carries. `band` optional → engine is metric-agnostic.
3058
+ * `lines` carries additional named series (e.g. export/net flows) that
3059
+ * stitch with the same dedup-by-timestamp semantics as `line`. */
3058
3060
  type TileData = {
3059
3061
  line: BaseDataPoint[];
3060
3062
  band?: BaseDataPoint[];
3063
+ lines?: Record<string, BaseDataPoint[]>;
3061
3064
  };
3062
3065
  /** Injected loader: one tile = one bounded fetch. */
3063
3066
  type FetchTile = (tier: Tier, startMs: number, endMs: number, signal: AbortSignal) => Promise<TileData>;
@@ -3104,6 +3107,7 @@ type Coverage = {
3104
3107
  type AssembledSeries = {
3105
3108
  line: BaseDataPoint[];
3106
3109
  band: BaseDataPoint[];
3110
+ lines: Record<string, BaseDataPoint[]>;
3107
3111
  renderTier: Tier | null;
3108
3112
  targetTier: Tier;
3109
3113
  isFallback: boolean;