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

Method style

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

Source from the content-addressed store, hash-verified

15039 (r && r.call(this, t, e, n), g_ && this.style(g_, n));
15040 }
15041 style(t, e) {
15042 if (null != e) {
15043 for (const n in o_) {
15044 let r = "font" === n ? Oy(e) : e[n];
15045 if (r === m_[n]) continue;
15046 const i = o_[n];
15047 (null == r
15048 ? t.removeAttribute(i)
15049 : (Xp(r) && (r = Jp(r, this._defs.gradient, w_())),
15050 t.setAttribute(i, r + "")),
15051 (m_[n] = r));
15052 }
15053 for (const n in a_) __(t, a_[n], e[n]);
15054 }
15055 }
15056 defs() {
15057 const t = this._svg,
15058 e = this._defs;

Callers 2

_updateMethod · 0.95
groupFunction · 0.80

Calls 5

OyFunction · 0.85
XpFunction · 0.85
JpFunction · 0.85
w_Function · 0.85
__Function · 0.85

Tested by

no test coverage detected