vega-lite-api
Version:
A JavaScript API for Vega-Lite.
36 lines (30 loc) • 662 B
JavaScript
import {BaseObject, assign, copy, get, init, set} from './__util__.js';
class CsvFormat extends BaseObject {
constructor(...args) {
super();
init(this);
set(this, "type", "csv");
assign(this, ...args);
}
parse(value) {
if (arguments.length) {
const obj = copy(this);
set(obj, "parse", value);
return obj;
} else {
return get(this, "parse");
}
}
type(value) {
if (arguments.length) {
const obj = copy(this);
set(obj, "type", value);
return obj;
} else {
return get(this, "type");
}
}
}
export function csvFormat(...args) {
return new CsvFormat(...args);
}