|
@ -19460,7 +19460,6 @@ return /******/ (function(modules) { // webpackBootstrap |
|
|
if (group) { |
|
|
if (group) { |
|
|
itemData.group = group.groupId; |
|
|
itemData.group = group.groupId; |
|
|
} |
|
|
} |
|
|
console.log("adding range item"); |
|
|
|
|
|
var newItem = new RangeItem(itemData, this.conversion, this.options); |
|
|
var newItem = new RangeItem(itemData, this.conversion, this.options); |
|
|
newItem.id = id; // TODO: not so nice setting id afterwards
|
|
|
newItem.id = id; // TODO: not so nice setting id afterwards
|
|
|
newItem.data = this._cloneItemData(itemData); |
|
|
newItem.data = this._cloneItemData(itemData); |
|
@ -19617,7 +19616,6 @@ return /******/ (function(modules) { // webpackBootstrap |
|
|
}.bind(this)); |
|
|
}.bind(this)); |
|
|
|
|
|
|
|
|
this.stackDirty = true; // force re-stacking of all items next redraw
|
|
|
this.stackDirty = true; // force re-stacking of all items next redraw
|
|
|
console.log("should redraw"); |
|
|
|
|
|
this.body.emitter.emit('_change'); |
|
|
this.body.emitter.emit('_change'); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
@ -19921,7 +19919,6 @@ return /******/ (function(modules) { // webpackBootstrap |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
// add item
|
|
|
// add item
|
|
|
console.log("adding item"); |
|
|
|
|
|
if (this.options.rtl) { |
|
|
if (this.options.rtl) { |
|
|
var xAbs = util.getAbsoluteRight(this.dom.frame); |
|
|
var xAbs = util.getAbsoluteRight(this.dom.frame); |
|
|
var x = xAbs - event.center.x; |
|
|
var x = xAbs - event.center.x; |
|
@ -22111,7 +22108,12 @@ return /******/ (function(modules) { // webpackBootstrap |
|
|
var me = this; |
|
|
var me = this; |
|
|
|
|
|
|
|
|
var deleteButton = document.createElement('div'); |
|
|
var deleteButton = document.createElement('div'); |
|
|
deleteButton.className = 'vis-delete'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.options.rtl) { |
|
|
|
|
|
deleteButton.className = 'vis-delete-rtl'; |
|
|
|
|
|
} else { |
|
|
|
|
|
deleteButton.className = 'vis-delete'; |
|
|
|
|
|
} |
|
|
deleteButton.title = 'Delete this item'; |
|
|
deleteButton.title = 'Delete this item'; |
|
|
|
|
|
|
|
|
// TODO: be able to destroy the delete button
|
|
|
// TODO: be able to destroy the delete button
|
|
@ -43089,7 +43091,12 @@ return /******/ (function(modules) { // webpackBootstrap |
|
|
}, { |
|
|
}, { |
|
|
key: '_createDeleteButton', |
|
|
key: '_createDeleteButton', |
|
|
value: function _createDeleteButton(locale) { |
|
|
value: function _createDeleteButton(locale) { |
|
|
var button = this._createButton('delete', 'vis-button vis-delete', locale['del'] || this.options.locales['en']['del']); |
|
|
|
|
|
|
|
|
if (this.options.rtl) { |
|
|
|
|
|
var deleteBtnClass = 'vis-button vis-delete-rtl'; |
|
|
|
|
|
} else { |
|
|
|
|
|
var deleteBtnClass = 'vis-button vis-delete'; |
|
|
|
|
|
} |
|
|
|
|
|
var button = this._createButton('delete', deleteBtnClass, locale['del'] || this.options.locales['en']['del']); |
|
|
this.manipulationDiv.appendChild(button); |
|
|
this.manipulationDiv.appendChild(button); |
|
|
this._bindHammerToDiv(button, this.deleteSelected.bind(this)); |
|
|
this._bindHammerToDiv(button, this.deleteSelected.bind(this)); |
|
|
} |
|
|
} |
|
|