UNPKG

vega-lite-api

Version:
56 lines (48 loc) 1.04 kB
import {BaseObject, copy, get, init, set} from './__util__.js'; class Dense_rank extends BaseObject { constructor(...args) { super(); init(this); set(this, "op", "dense_rank"); if (args[0] !== undefined) set(this, "as", args[0]); } as(value) { if (arguments.length) { const obj = copy(this); set(obj, "as", value); return obj; } else { return get(this, "as"); } } field(value) { if (arguments.length) { const obj = copy(this); set(obj, "field", value); return obj; } else { return get(this, "field"); } } op(value) { if (arguments.length) { const obj = copy(this); set(obj, "op", value); return obj; } else { return get(this, "op"); } } param(value) { if (arguments.length) { const obj = copy(this); set(obj, "param", value); return obj; } else { return get(this, "param"); } } } export function dense_rank(...args) { return new Dense_rank(...args); }