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

Function decorateScaleMapper

src/scale/scaleMapper.ts:333–340  ·  view source on GitHub ↗
(
    host: THost,
    decoratedMapperMethods: Omit<ScaleMapperGeneric<THost>, 'freeze'>
)

Source from the content-addressed store, hash-verified

331export type DecoratedScaleMapperMethods<THost extends ScaleMapper> = Omit<ScaleMapperGeneric<THost>, 'freeze'>;
332
333export function decorateScaleMapper<THost extends ScaleMapper>(
334 host: THost,
335 decoratedMapperMethods: Omit<ScaleMapperGeneric<THost>, 'freeze'>
336): void {
337 each(SCALE_MAPPER_METHOD_NAMES, function (methodName) {
338 (host as any)[methodName] = (decoratedMapperMethods as ScaleMapperGeneric<THost>)[methodName];
339 });
340}
341
342export function enableScaleMapperFreeze(host: ScaleMapper, subMapper: ScaleMapper): void {
343 host.freeze = noop;

Callers 3

constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls 1

eachFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…