MCPcopy
hub / github.com/apache/echarts / unionExtentFromExtent

Function unionExtentFromExtent

src/util/model.ts:1258–1264  ·  view source on GitHub ↗
(tarExtent: number[], srcExtent: number[])

Source from the content-addressed store, hash-verified

1256 * - `extent` should be initialized as `initExtentForUnion()`.
1257 */
1258export function unionExtentFromExtent(tarExtent: number[], srcExtent: number[]): void {
1259 // Accept both or neither.
1260 if (isValidBoundsForExtent(srcExtent[0], srcExtent[1])) {
1261 srcExtent[0] < tarExtent[0] && (tarExtent[0] = srcExtent[0]);
1262 srcExtent[1] > tarExtent[1] && (tarExtent[1] = srcExtent[1]);
1263 }
1264}
1265
1266/**
1267 * PENDING: `Infinity` from user data is not necessarily meaningless, but visualizing it requires

Callers 1

Calls 1

isValidBoundsForExtentFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…