/** * Declared bands into the chart's shaded bands. * * A band is two plot keys and two colours, which is the chart's own spec, so the * pair of keys crosses unchanged. Three details do not. * * **Opacity is a dimmer, not a second alpha.** A colour carries its own alpha * everywhere in the language, and the band's `opacity` multiplies whatever the * colours already are. That is exactly what the chart does with the field, to a * colour computed per bar as much as to a constant one, so a script that never * touches it gets the colour it wrote. * * **A band with no colour of its own follows the first plot.** `stdlib.md` 14.2 * says such a band is that plot's colour faded to twelve percent, and the plot's * colour may be one the host picked from its palette rather than one the script * wrote, so the band is pointed at the plot's settings key rather than at a value * read now. The twelve percent is then the dimmer, multiplied by whatever the * script asked for. A band whose colour is computed per bar has a colour of its * own, so neither applies to it. * * **A colour computed per bar travels as columns and is read back per bar.** * It arrives on a channel, rides the values table as the two columns * `columns.ts` describes, and the band's colour callback reads them on each bar * for the side the band is on there. The side is decided the way the chart * decides it, the first plot at or above the second, so the colour answered is * the colour of the run the chart is drawing that bar in. An absent colour is a * transparent one rather than no answer, because no answer hands the bar to * the band's colour for that side, and `docs/visuals/fills.md` teaches an absent * colour as how a band switches itself off. The callback exists only on a chart * that reads it (`capabilities.ts`); on any other, `undrawable.ts` has refused * the program before this is drawn. */ import type { CompiledProgram } from '../../core/emit/index.js'; import type { ChartCapabilities } from './capabilities.js'; import type { ColumnSpec } from './columns.js'; import type { ChartFill } from './contract.js'; import type { InputLookup } from './fields.js'; export interface FillsBuild { readonly fills: readonly ChartFill[]; /** The colour columns the bands' callbacks read, for the values table. */ readonly columns: readonly ColumnSpec[]; } export declare function buildFills(program: CompiledProgram, lookup: InputLookup, chart: ChartCapabilities): FillsBuild; //# sourceMappingURL=fills.d.ts.map