|
|
|
@ -37,7 +37,7 @@ import debounce from 'lodash/debounce';
|
|
|
|
|
const DEFAULT_TICK_SIZE = 2; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
abstract class ChartwerkPod<T extends Serie, O extends Options> { |
|
|
|
|
class ChartwerkPod<T extends Serie, O extends Options> { |
|
|
|
|
|
|
|
|
|
protected series: CoreSeries<T>; |
|
|
|
|
protected options: CoreOptions<O>; |
|
|
|
@ -151,13 +151,13 @@ abstract class ChartwerkPod<T extends Serie, O extends Options> {
|
|
|
|
|
this.series.updateSeries(newSeries); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected abstract renderMetrics(): void; |
|
|
|
|
protected abstract onMouseOver(): void; |
|
|
|
|
protected abstract onMouseOut(): void; |
|
|
|
|
protected abstract onMouseMove(): void; |
|
|
|
|
protected abstract onMouseClick(): void; |
|
|
|
|
public abstract renderSharedCrosshair(values: { x?: number, y?: number }): void; |
|
|
|
|
public abstract hideSharedCrosshair(): void; |
|
|
|
|
protected renderMetrics(): void {} |
|
|
|
|
protected onMouseOver(): void {} |
|
|
|
|
protected onMouseOut(): void {} |
|
|
|
|
protected onMouseMove(): void {} |
|
|
|
|
protected onMouseClick(): void { } |
|
|
|
|
public renderSharedCrosshair(values: { x?: number, y?: number }): void {} |
|
|
|
|
public hideSharedCrosshair(): void {} |
|
|
|
|
|
|
|
|
|
protected initPodState(): void { |
|
|
|
|
const boxPararms = { |
|
|
|
|