MCPcopy Create free account
hub / github.com/alignoth/alignoth / constructor

Method constructor

resources/vega-lite.min.js:9858–9880  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

9856 }
9857 class Ad extends $c {
9858 constructor(e) {
9859 let t;
9860 if (
9861 (super(null),
9862 (e ??= { name: "source" }),
9863 gc(e) || (t = e.format ? { ...f(e.format, ["parse"]) } : {}),
9864 mc(e))
9865 )
9866 this._data = { values: e.values };
9867 else if (dc(e)) {
9868 if (((this._data = { url: e.url }), !t.type)) {
9869 let n = /(?:\.([^.]+))?$/.exec(e.url)[1];
9870 (p(["json", "csv", "tsv", "dsv", "topojson"], n) || (n = "json"),
9871 (t.type = n));
9872 }
9873 } else
9874 yc(e)
9875 ? (this._data = { values: [{ type: "Sphere" }] })
9876 : (pc(e) || gc(e)) && (this._data = {});
9877 ((this._generator = gc(e)),
9878 e.name && (this._name = e.name),
9879 t && !S(t) && (this._data.format = t));
9880 }
9881 dependentFields() {
9882 return new Set();
9883 }

Callers

nothing calls this directly

Calls 8

mcFunction · 0.85
pcFunction · 0.85
gcFunction · 0.70
fFunction · 0.70
dcFunction · 0.70
pFunction · 0.70
ycFunction · 0.70
SFunction · 0.70

Tested by

no test coverage detected