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

Function viewCoordSysGetViewRectCenter

src/coord/View.ts:589–594  ·  view source on GitHub ↗
(viewInner: ViewInner)

Source from the content-addressed store, hash-verified

587}
588
589function viewCoordSysGetViewRectCenter(viewInner: ViewInner): number[] {
590 const viewRect = viewInner.viewRect;
591 tmpViewRectCenter[0] = viewRect.x + viewRect.width / 2;
592 tmpViewRectCenter[1] = viewRect.y + viewRect.height / 2;
593 return tmpViewRectCenter;
594}
595const tmpViewRectCenter: number[] = [];
596
597export function isViewCoordSys(coordSys: CoordinateSystem | NullUndefined): coordSys is View {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…