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

Function getCoordForCoordSysUsageKindBox

src/core/CoordinateSystem.ts:149–165  ·  view source on GitHub ↗
(
    model: ComponentModel
)

Source from the content-addressed store, hash-verified

147 * @return Be an object, but never be NullUndefined.
148 */
149export function getCoordForCoordSysUsageKindBox(
150 model: ComponentModel
151): {
152 coord: CoordinateSystemDataCoord | NullUndefined
153 from: BoxCoordinateSystemCoordFrom
154} {
155 let coord: CoordinateSystemDataCoord = model.getShallow('coord', true);
156 let from: BoxCoordinateSystemCoordFrom = BOX_COORD_SYS_COORD_FROM_PROP_COORD;
157 if (coord == null) {
158 const store = coordSysUseMap.get(model.type);
159 if (store && store.getCoord2) {
160 from = BOX_COORD_SYS_COORD_FROM_PROP_COORD2;
161 coord = store.getCoord2(model);
162 }
163 }
164 return {coord, from};
165}
166
167/**
168 * - `COORD_SYS_USAGE_KIND_DATA`: each data item is laid out based on a coord sys.

Callers 2

createBoxLayoutReferenceFunction · 0.90

Calls 2

getShallowMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…