UNPKG

vega-lite

Version:

Vega-Lite is a concise high-level language for interactive visualization.

40 lines 1.59 kB
import { Transforms as VgTransform } from 'vega'; import { BinParams } from '../../bin.js'; import { FieldName } from '../../channeldef.js'; import { BinTransform } from '../../transform.js'; import { Dict } from '../../util.js'; import { Model, ModelWithField } from '../model.js'; import { DataFlowNode } from './dataflow.js'; export declare function getBinSignalName(model: Model, field: string, bin: boolean | BinParams): string; export interface BinComponent { bin: BinParams; field: FieldName; extentSignal?: string; signal?: string; span?: string; /** Pairs of strings of the names of start and end signals */ as: [string, string][]; formula?: string; formulaAs?: string; } export declare class BinNode extends DataFlowNode { private bins; clone(): BinNode; constructor(parent: DataFlowNode, bins: Dict<BinComponent>); static makeFromEncoding(parent: DataFlowNode, model: ModelWithField): BinNode; /** * Creates a bin node from BinTransform. * The optional parameter should provide */ static makeFromTransform(parent: DataFlowNode, t: BinTransform, model: Model): BinNode; /** * Merge bin nodes. This method either integrates the bin config from the other node * or if this node already has a bin config, renames the corresponding signal in the model. */ merge(other: BinNode, renameSignal: (s1: string, s2: string) => void): void; producedFields(): Set<string>; dependentFields(): Set<string>; hash(): string; assemble(): VgTransform[]; } //# sourceMappingURL=bin.d.ts.map