/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. * * What the inspector reads of the canvas's rows (#1197, `Plan Builder * Spec.md` PB40): what a heat, table or chart row draws in one bucket, in * words — the values the canvas draws there, folded to the period as the row * draws them (#824), each said as its own cell says it to a reader (#819). * * @packageDocumentation */ import type { PlanInstantValue } from "../instant.js"; import type { PlanDerived, PlanRowValue } from "../model.js"; import type { RowKey } from "../plan-state.js"; import type { PlanScale } from "../scale.js"; import type { PlanWords } from "../words.js"; /** What the inspector reads of the canvas's rows (#1197). */ export interface PlanCanvasInspect { /** * A row the canvas holds, by its key. * * @param key - The row's key * @returns The row, or `undefined` for one the canvas does not hold */ row(key: RowKey): PlanRowValue | undefined; /** * What a heat, table or chart row draws in the bucket an instant falls in. * * @param key - The row's key * @param at - The instant * @returns Its value there, in words; `undefined` where it draws nothing there, or for a row of another kind */ valueAt(key: RowKey, at: PlanInstantValue): string | undefined; } /** * What a row draws in the bucket an instant falls in, in words: a heat cell's * label or value, a weight bar's booked share, a composition's segments, a * table cell's parts, or each of a chart's data layers' last value in it. * * @param row - The row * @param derived - The canvas's derivations: what each row draws, folded to the period * @param scale - The shared scale * @param w - The canvas's words * @param at - The instant * @returns Its value there; `undefined` where it draws nothing there, or for a row of another kind */ export declare function rowValueAt(row: PlanRowValue, derived: PlanDerived, scale: PlanScale, w: PlanWords, at: PlanInstantValue): string | undefined; //# sourceMappingURL=inspect.d.ts.map