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

Method mark

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

Source from the content-addressed store, hash-verified

14993 return !this._dirtyAll;
14994 }
14995 mark(t, e, n, r) {
14996 if (!this.isDirty(e)) return e._svg;
14997 const i = this._svg,
14998 o = e.marktype,
14999 a = Hy[o],
15000 s = !1 === e.interactive ? "none" : null,
15001 u = "g" === a.tag,
15002 l = p_(e, t, n, "g", i);
15003 if ("group" !== o && null != r && !r.includes(o))
15004 return (iv(l, 0), e._svg);
15005 l.setAttribute("class", ov(e));
15006 const c = Qv(e);
15007 for (const t in c) b_(l, t, c[t]);
15008 (u || b_(l, "pointer-events", s),
15009 b_(l, "clip-path", e.clip ? Gg(this, e, e.group) : null));
15010 let f = null,
15011 h = 0;
15012 const d = (t) => {
15013 const e = this.isDirty(t),
15014 n = p_(t, l, f, a.tag, i);
15015 (e &&
15016 (this._update(a, n, t),
15017 u &&
15018 (function (t, e, n, r) {
15019 e = e.lastChild.previousSibling;
15020 let i,
15021 o = 0;
15022 (Um(n, (n) => {
15023 ((i = t.mark(e, n, i, r)), ++o);
15024 }),
15025 iv(e, 1 + o));
15026 })(this, n, t, r)),
15027 (f = n),
15028 ++h);
15029 };
15030 return (
15031 a.nested ? e.items.length && d(e.items[0]) : Um(e, d),
15032 iv(l, h),
15033 l
15034 );
15035 }
15036 _update(t, e, n) {
15037 ((g_ = e), (m_ = e.__values__), Zv(v_, n), t.attr(v_, n, this));
15038 const r = y_[t.type];

Callers 1

_renderMethod · 0.95

Calls 9

isDirtyMethod · 0.95
p_Function · 0.85
ivFunction · 0.85
ovFunction · 0.85
QvFunction · 0.85
b_Function · 0.85
GgFunction · 0.85
dFunction · 0.70
UmFunction · 0.70

Tested by

no test coverage detected