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

Method renderHull

resources/vega.min.js:25787–25798  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

25785 return n && n.value();
25786 }
25787 renderHull(t) {
25788 const e = null == t ? (t = new JF()) : void 0,
25789 { hull: n, points: r } = this,
25790 i = 2 * n[0],
25791 o = n.length;
25792 t.moveTo(r[i], r[i + 1]);
25793 for (let e = 1; e < o; ++e) {
25794 const i = 2 * n[e];
25795 t.lineTo(r[i], r[i + 1]);
25796 }
25797 return (t.closePath(), e && e.value());
25798 }
25799 hullPolygon() {
25800 const t = new ZF();
25801 return (this.renderHull(t), t.value());

Callers 2

renderMethod · 0.95
hullPolygonMethod · 0.95

Calls 4

moveToMethod · 0.45
lineToMethod · 0.45
closePathMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected