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

Method _dirtyCheck

resources/vega.min.js:14963–14994  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14961 );
14962 }
14963 _dirtyCheck() {
14964 this._dirtyAll = !0;
14965 const t = this._dirty;
14966 if (!t.length || !this._dirtyID) return !0;
14967 const e = ++this._dirtyID;
14968 let n, r, i, o, a, s, u;
14969 for (a = 0, s = t.length; a < s; ++a)
14970 ((n = t[a]),
14971 (r = n.mark),
14972 r.marktype !== i && ((i = r.marktype), (o = Hy[i])),
14973 r.zdirty &&
14974 r.dirty !== e &&
14975 ((this._dirtyAll = !1),
14976 f_(n, e),
14977 r.items.forEach((t) => {
14978 t.dirty = e;
14979 })),
14980 r.zdirty ||
14981 (n.exit
14982 ? (o.nested && r.items.length
14983 ? ((u = r.items[0]), u._svg && this._update(o, u._svg, u))
14984 : n._svg &&
14985 ((u = n._svg.parentNode), u && u.removeChild(n._svg)),
14986 (n._svg = null))
14987 : ((n = o.nested ? r.items[0] : n),
14988 n._update !== e &&
14989 (n._svg && n._svg.ownerSVGElement
14990 ? this._update(o, n._svg, n)
14991 : ((this._dirtyAll = !1), f_(n, e)),
14992 (n._update = e)))));
14993 return !this._dirtyAll;
14994 }
14995 mark(t, e, n, r) {
14996 if (!this.isDirty(e)) return e._svg;
14997 const i = this._svg,

Callers 1

_renderMethod · 0.95

Calls 3

_updateMethod · 0.95
f_Function · 0.85
removeChildMethod · 0.80

Tested by

no test coverage detected