vega-lite
Version:
Vega-Lite is a concise high-level language for interactive visualization.
30 lines (23 loc) • 618 B
text/typescript
import {SELECTION_ID} from '../../selection.js';
import {IdentifierTransform as VgIdentifierTransform} from 'vega';
import {DataFlowNode} from './dataflow.js';
export class IdentifierNode extends DataFlowNode {
public clone() {
return new IdentifierNode(null);
}
constructor(parent: DataFlowNode) {
super(parent);
}
public dependentFields() {
return new Set<string>();
}
public producedFields() {
return new Set([SELECTION_ID]);
}
public hash() {
return 'Identifier';
}
public assemble(): VgIdentifierTransform {
return {type: 'identifier', as: SELECTION_ID};
}
}