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

Method initialize

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

Source from the content-addressed store, hash-verified

14877 (this._defs = null));
14878 }
14879 initialize(t, e, n, r, i) {
14880 return (
14881 (this._defs = {}),
14882 this._clearDefs(),
14883 t &&
14884 ((this._svg = rv(t, 0, "svg", l_)),
14885 this._svg.setAttributeNS(u_, "xmlns", l_),
14886 this._svg.setAttributeNS(u_, "xmlns:xlink", uy["xmlns:xlink"]),
14887 this._svg.setAttribute("version", uy.version),
14888 this._svg.setAttribute("class", "marks"),
14889 iv(t, 1),
14890 (this._root = rv(this._svg, 0, "g", l_)),
14891 x_(this._root, s_),
14892 iv(this._svg, 1)),
14893 this.background(this._bgcolor),
14894 super.initialize(t, e, n, r, i)
14895 );
14896 }
14897 background(t) {
14898 return (
14899 arguments.length &&

Callers

nothing calls this directly

Calls 6

_clearDefsMethod · 0.95
backgroundMethod · 0.95
rvFunction · 0.85
ivFunction · 0.85
x_Function · 0.85
initializeMethod · 0.45

Tested by

no test coverage detected