Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mounted: function() {
var self = this;
if(this.brushes.length == 0) {
throw new Error('[Vue Graph error]: At least one brush must be added to \'brushes\' variable.')
}
JUI.use(FocusBrush);
this.chart = JUI.create('chart.builder', this.$el, {
width: this.realWidth,
height: this.height,
padding: {
top: this.paddingTop,
right: this.paddingRight,
bottom: this.paddingBottom,
left: this.paddingLeft
},
event: {
'chart.click': function(e) {
self.$emit('inside#click', e);
},
'chart.dblclick': function(e) {
self.$emit('inside#dblclick', e);
},
'chart.rclick': function(e) {
mounted: function() {
const self = this;
if(this.brushes.length == 0) {
throw new Error('[Vue Graph error]: At least one brush must be added to \'brushes\' variable.')
}
JUI.use(RayCastWidget, PickerWidget);
this.animation = JUI.create('chart.animation', this.$el, {
width: this.realWidth,
height: this.height,
padding: {
top: this.paddingTop,
right: this.paddingRight,
bottom: this.paddingBottom,
left: this.paddingLeft
},
event: {
'chart.click': function(e) {
self.$emit('inside#click', e);
},
'chart.dblclick': function(e) {
self.$emit('inside#dblclick', e);
},
'chart.rclick': function(e) {