|
|
|
@ -39,9 +39,9 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// it's "abstract" method. "children" components should override it
|
|
|
|
|
render() { }, |
|
|
|
|
renderSharedCrosshair(values: { x?: number, y?: number }) { }, |
|
|
|
|
hideSharedCrosshair() { }, |
|
|
|
|
render() {}, |
|
|
|
|
renderSharedCrosshair(values: { x?: number, y?: number }) {}, |
|
|
|
|
hideSharedCrosshair() {}, |
|
|
|
|
onPanningRescale(event) { |
|
|
|
|
this.pod.rescaleMetricAndAxis(event); |
|
|
|
|
}, |
|
|
|
@ -63,6 +63,9 @@ export default {
|
|
|
|
|
if(has(this.$listeners, 'zoomOut')) { |
|
|
|
|
this.options.events.zoomOut = this.zoomOut.bind(this); |
|
|
|
|
} |
|
|
|
|
if(has(this.$listeners, 'mouseOver')) { |
|
|
|
|
this.options.events.mouseOver = this.mouseOver.bind(this); |
|
|
|
|
} |
|
|
|
|
if(has(this.$listeners, 'mouseMove')) { |
|
|
|
|
this.options.events.mouseMove = this.mouseMove.bind(this); |
|
|
|
|
} |
|
|
|
@ -97,6 +100,9 @@ export default {
|
|
|
|
|
zoomOut(centers) { |
|
|
|
|
this.$emit('zoomOut', centers); |
|
|
|
|
}, |
|
|
|
|
mouseOver() { |
|
|
|
|
this.$emit('mouseOver'); |
|
|
|
|
}, |
|
|
|
|
mouseMove(evt) { |
|
|
|
|
this.$emit('mouseMove', evt); |
|
|
|
|
}, |
|
|
|
|