MCPcopy Create free account
hub / github.com/apache/echarts / registerAxisContainShapeHandler

Function registerAxisContainShapeHandler

src/coord/scaleRawExtentInfo.ts:669–679  ·  view source on GitHub ↗
(
    // `axisStatKey` is used to quickly omit irrelevant handlers,
    // since handlers need to be iterated per axis.
    axisStatKey: AxisStatKey,
    handler: AxisContainShapeHandler,
)

Source from the content-addressed store, hash-verified

667 * And it is implemented in different code and not merged to this implementation yet.
668 */
669export function registerAxisContainShapeHandler(
670 // `axisStatKey` is used to quickly omit irrelevant handlers,
671 // since handlers need to be iterated per axis.
672 axisStatKey: AxisStatKey,
673 handler: AxisContainShapeHandler,
674) {
675 if (__DEV__) {
676 assert(!axisContainShapeHandlerMap.get(axisStatKey));
677 }
678 axisContainShapeHandlerMap.set(axisStatKey, handler);
679}
680
681const axisContainShapeHandlerMap: HashMap<AxisContainShapeHandler, AxisStatKey> = createHashMap();
682

Callers 4

registerFunction · 0.90

Calls 2

assertFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected