in packages/util-transform/src/facade/density/densityBuilder.ts [47:71]
public build(df: any, from: any, ds: DatasetManager) {
if (!this.distributionValue) {
throw new Error('density distribution() must be defined')
}
const spec: any = {
distribution: this.distributionValue.build(ds),
pulse: from,
}
if (this.extentValue) {
spec.extent = this.extentValue
}
if (this.methodValue) {
spec.method = this.methodValue
}
if (this.stepsValue) {
spec.steps = this.stepsValue
}
if (this.asValue) {
spec.as = this.asValue
}
return df.add(vegaDensity, spec)
}