MCPcopy Index your code
hub / github.com/apache/echarts / getUnitLayoutInfo

Method getUnitLayoutInfo

src/coord/matrix/MatrixDim.ts:416–420  ·  view source on GitHub ↗

* Get leaf cell or get level info. * Should be able to return null/undefined if not found on x or y, thus input `dimIdx` is needed.

(dimIdx: number, locator: MatrixXYLocator)

Source from the content-addressed store, hash-verified

414 * Should be able to return null/undefined if not found on x or y, thus input `dimIdx` is needed.
415 */
416 getUnitLayoutInfo(dimIdx: number, locator: MatrixXYLocator): MatrixCellLayoutInfo | NullUndefined {
417 return dimIdx === this.dimIdx
418 ? (locator < this._leavesCount ? this._cells[locator] : undefined)
419 : this._levels[locator + this._levels.length];
420 }
421
422 /**
423 * Get dimension cell by data, including leaves and non-leaves.

Callers 5

getLayoutMethod · 0.95
renderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected