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

Method _render

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

Source from the content-addressed store, hash-verified

14558 this._dirty.union(e);
14559 }
14560 _render(t, e) {
14561 const n = this.context(),
14562 r = this._origin,
14563 i = this._width,
14564 o = this._height,
14565 a = this._dirty,
14566 s = Lv(r, i, o);
14567 n.save();
14568 const u =
14569 this._redraw || a.empty()
14570 ? ((this._redraw = !1), s.expand(1))
14571 : (function (t, e, n) {
14572 (e.expand(1).round(),
14573 t.pixelRatio % 1 &&
14574 e
14575 .scale(t.pixelRatio)
14576 .round()
14577 .scale(1 / t.pixelRatio));
14578 return (
14579 e.translate(-n[0] % 1, -n[1] % 1),
14580 t.beginPath(),
14581 t.rect(e.x1, e.y1, e.width(), e.height()),
14582 t.clip(),
14583 e
14584 );
14585 })(n, s.intersect(a), r);
14586 return (
14587 this.clear(-r[0], -r[1], i, o),
14588 this.draw(n, t, u, e),
14589 n.restore(),
14590 a.clear(),
14591 this
14592 );
14593 }
14594 draw(t, e, n, r) {
14595 if ("group" !== e.marktype && null != r && !r.includes(e.marktype))
14596 return;

Callers

nothing calls this directly

Calls 7

contextMethod · 0.95
clearMethod · 0.95
drawMethod · 0.95
LvFunction · 0.85
widthMethod · 0.80
heightMethod · 0.80
rectMethod · 0.45

Tested by

no test coverage detected