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

Method initialize

resources/vega.min.js:15472–15492  ·  view source on GitHub ↗
(t, e, n, r, i)

Source from the content-addressed store, hash-verified

15470 (this._canvasRenderer = new Rv(t)));
15471 }
15472 initialize(t, e, n, r, i) {
15473 this._root_el = rv(t, 0, "div");
15474 const o = rv(this._root_el, 0, "div"),
15475 a = rv(this._root_el, 1, "div");
15476 return (
15477 (this._root_el.style.position = "relative"),
15478 A_.debug ||
15479 ((o.style.height = "100%"),
15480 (a.style.position = "absolute"),
15481 (a.style.top = "0"),
15482 (a.style.left = "0"),
15483 (a.style.height = "100%"),
15484 (a.style.width = "100%")),
15485 (this._svgEl = A_.svgOnTop ? a : o),
15486 (this._canvasEl = A_.svgOnTop ? o : a),
15487 (this._svgEl.style.pointerEvents = "none"),
15488 this._canvasRenderer.initialize(this._canvasEl, e, n, r, i),
15489 this._svgRenderer.initialize(this._svgEl, e, n, r, i),
15490 super.initialize(t, e, n, r, i)
15491 );
15492 }
15493 dirty(t) {
15494 return (
15495 A_.svgMarkTypes.includes(t.mark.marktype)

Callers

nothing calls this directly

Calls 2

rvFunction · 0.85
initializeMethod · 0.45

Tested by

no test coverage detected