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

Function Oz

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

Source from the content-addressed store, hash-verified

29481 return k(t) ? "[…]" : A(t) && !gt(t) ? "{…}" : t;
29482 }
29483 function Oz(t, e) {
29484 const n = this;
29485 if (
29486 ((e = e || {}),
29487 Ga.call(n),
29488 e.loader && n.loader(e.loader),
29489 e.logger && n.logger(e.logger),
29490 null != e.logLevel && n.logLevel(e.logLevel),
29491 e.locale || t.locale)
29492 ) {
29493 const r = ot({}, t.locale, e.locale);
29494 n.locale(Oo(r.number, r.time));
29495 }
29496 ((n._el = null),
29497 (n._elBind = null),
29498 (n._renderType = e.renderer || S_.Canvas),
29499 (n._scenegraph = new Ky()));
29500 const r = n._scenegraph.root;
29501 ((n._renderer = null),
29502 (n._tooltip = e.tooltip || Bz),
29503 (n._redraw = !0),
29504 (n._handler = new Sv().scene(r)),
29505 (n._globalCursor = !1),
29506 (n._preventDefault = !1),
29507 (n._timers = []),
29508 (n._eventListeners = []),
29509 (n._resizeListeners = []),
29510 (n._eventConfig = (function (t) {
29511 const e = ot({ defaults: {} }, t),
29512 n = (t, e) => {
29513 e.forEach((e) => {
29514 k(t[e]) && (t[e] = Tt(t[e]));
29515 });
29516 };
29517 return (
29518 n(e.defaults, ["prevent", "allow"]),
29519 n(e, ["view", "window", "selector"]),
29520 e
29521 );
29522 })(t.eventConfig)),
29523 n.globalCursor(n._eventConfig.globalCursor));
29524 const i = (function (t, e, n) {
29525 return jB(t, Ja, EB, n).parse(e);
29526 })(n, t, e.expr);
29527 ((n._runtime = i),
29528 (n._signals = i.signals),
29529 (n._bind = (t.bindings || []).map((t) => ({
29530 state: null,
29531 param: ot({}, t),
29532 }))),
29533 i.root && i.root.set(r),
29534 (r.source = i.data.root.input),
29535 n.pulse(i.data.root.input, n.changeset().insert(r.items)),
29536 (n._width = n.width()),
29537 (n._height = n.height()),
29538 (n._viewWidth = Fz(n, n._width)),
29539 (n._viewHeight = Sz(n, n._height)),
29540 (n._origin = [0, 0]),

Callers

nothing calls this directly

Calls 15

jBFunction · 0.85
FzFunction · 0.85
SzFunction · 0.85
GBFunction · 0.85
sceneMethod · 0.80
widthMethod · 0.80
heightMethod · 0.80
otFunction · 0.70
OoFunction · 0.70
nFunction · 0.70
oFunction · 0.70
_tFunction · 0.70

Tested by

no test coverage detected