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

Function oa

resources/vega.min.js:3203–3217  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

3201 ((na.responseType = "text"), (ra.responseType = "json"));
3202 const ia = { interior: (t, e) => t !== e, exterior: (t, e) => t === e };
3203 function oa(t, e) {
3204 let n, r, i, o;
3205 return (
3206 (t = ra(t, e)),
3207 e && e.feature
3208 ? ((n = Yt), (i = e.feature))
3209 : e && e.mesh
3210 ? ((n = Jt), (i = e.mesh), (o = ia[e.filter]))
3211 : s("Missing TopoJSON feature or mesh parameter."),
3212 (r = (r = t.objects[i])
3213 ? n(t, r, o)
3214 : s("Invalid TopoJSON object: " + i)),
3215 (r && r.features) || [r]
3216 );
3217 }
3218 oa.responseType = "json";
3219 const aa = { dsv: na, csv: ea(","), tsv: ea("\t"), json: ra, topojson: oa };
3220 function sa(t, e) {

Callers

nothing calls this directly

Calls 3

raFunction · 0.70
sFunction · 0.70
nFunction · 0.70

Tested by

no test coverage detected