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

Method _clip

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

Source from the content-addressed store, hash-verified

25352 return a;
25353 }
25354 _clip(t) {
25355 if (0 === t && 1 === this.delaunay.hull.length)
25356 return [
25357 this.xmax,
25358 this.ymin,
25359 this.xmax,
25360 this.ymax,
25361 this.xmin,
25362 this.ymax,
25363 this.xmin,
25364 this.ymin,
25365 ];
25366 const e = this._cell(t);
25367 if (null === e) return null;
25368 const { vectors: n } = this,
25369 r = 4 * t;
25370 return this._simplify(
25371 n[r] || n[r + 1]
25372 ? this._clipInfinite(t, e, n[r], n[r + 1], n[r + 2], n[r + 3])
25373 : this._clipFinite(t, e),
25374 );
25375 }
25376 _clipFinite(t, e) {
25377 const n = e.length;
25378 let r,

Callers 2

renderCellMethod · 0.80
neighborsMethod · 0.80

Calls 4

_cellMethod · 0.80
_simplifyMethod · 0.80
_clipInfiniteMethod · 0.80
_clipFiniteMethod · 0.80

Tested by

no test coverage detected