|
@ -19,6 +19,11 @@ function ItemSet(backgroundPanel, axisPanel, options) { |
|
|
this.axisPanel = axisPanel; |
|
|
this.axisPanel = axisPanel; |
|
|
this.itemOptions = Object.create(this.options); |
|
|
this.itemOptions = Object.create(this.options); |
|
|
this.dom = {}; |
|
|
this.dom = {}; |
|
|
|
|
|
this.props = { |
|
|
|
|
|
labels: { |
|
|
|
|
|
width: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
this.hammer = null; |
|
|
this.hammer = null; |
|
|
|
|
|
|
|
|
var me = this; |
|
|
var me = this; |
|
@ -698,6 +703,14 @@ ItemSet.prototype._constructByEndArray = function _constructByEndArray(array) { |
|
|
return endArray; |
|
|
return endArray; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Get the width of the group labels |
|
|
|
|
|
* @return {Number} width |
|
|
|
|
|
*/ |
|
|
|
|
|
ItemSet.prototype.getLabelsWidth = function getLabelsWidth() { |
|
|
|
|
|
return this.props.labels.width; |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Start dragging the selected events |
|
|
* Start dragging the selected events |
|
|
* @param {Event} event |
|
|
* @param {Event} event |
|
|