(
host: THost,
decoratedMapperMethods: Omit<ScaleMapperGeneric<THost>, 'freeze'>
)
| 331 | export type DecoratedScaleMapperMethods<THost extends ScaleMapper> = Omit<ScaleMapperGeneric<THost>, 'freeze'>; |
| 332 | |
| 333 | export 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 | |
| 342 | export function enableScaleMapperFreeze(host: ScaleMapper, subMapper: ScaleMapper): void { |
| 343 | host.freeze = noop; |
no test coverage detected
searching dependent graphs…