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

Function makeMapperParam

src/component/axisPointer/axisTrigger.ts:521–535  ·  view source on GitHub ↗
(axisInfo: CollectedAxisInfo)

Source from the content-addressed store, hash-verified

519}
520
521function makeMapperParam(axisInfo: CollectedAxisInfo) {
522 const axisModel = axisInfo.axis.model;
523 const item = {} as {
524 axisDim: string
525 axisIndex: number
526 axisId: string
527 axisName: string
528 // TODO `dim`AxisIndex, `dim`AxisName, `dim`AxisId?
529 };
530 const dim = item.axisDim = axisInfo.axis.dim;
531 item.axisIndex = (item as any)[dim + 'AxisIndex'] = axisModel.componentIndex;
532 item.axisName = (item as any)[dim + 'AxisName'] = axisModel.name;
533 item.axisId = (item as any)[dim + 'AxisId'] = axisModel.id;
534 return item;
535}
536
537function illegalPoint(point?: number[]) {
538 return !point || point[0] == null || isNaN(point[0]) || point[1] == null || isNaN(point[1]);

Callers 1

axisTriggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…