|
|
@ -63,6 +63,9 @@ export default { |
|
|
|
if(has(this.$listeners, 'zoomOut')) { |
|
|
|
if(has(this.$listeners, 'zoomOut')) { |
|
|
|
this.options.events.zoomOut = this.zoomOut.bind(this); |
|
|
|
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')) { |
|
|
|
if(has(this.$listeners, 'mouseMove')) { |
|
|
|
this.options.events.mouseMove = this.mouseMove.bind(this); |
|
|
|
this.options.events.mouseMove = this.mouseMove.bind(this); |
|
|
|
} |
|
|
|
} |
|
|
@ -97,6 +100,9 @@ export default { |
|
|
|
zoomOut(centers) { |
|
|
|
zoomOut(centers) { |
|
|
|
this.$emit('zoomOut', centers); |
|
|
|
this.$emit('zoomOut', centers); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
mouseOver() { |
|
|
|
|
|
|
|
this.$emit('mouseOver'); |
|
|
|
|
|
|
|
}, |
|
|
|
mouseMove(evt) { |
|
|
|
mouseMove(evt) { |
|
|
|
this.$emit('mouseMove', evt); |
|
|
|
this.$emit('mouseMove', evt); |
|
|
|
}, |
|
|
|
}, |
|
|
|