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

Function simpleCoordSysInjectionProvider

src/core/CoordinateSystem.ts:353–358  ·  view source on GitHub ↗
(coordSysType, injectTargetModel)

Source from the content-addressed store, hash-verified

351) => CoordinateSystem | NullUndefined;
352
353export const simpleCoordSysInjectionProvider: CoordSysInjectionProvider = function (coordSysType, injectTargetModel) {
354 const coordSysModel = injectTargetModel.getReferringComponents(
355 coordSysType, SINGLE_REFERRING
356 ).models[0] as (ComponentModel & {coordinateSystem: CoordinateSystem});
357 return coordSysModel && coordSysModel.coordinateSystem;
358};
359
360export default CoordinateSystemManager;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…