|
|
|
|
@ -1161,10 +1161,7 @@ class ShapeCollectionView {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this._frameContent.on('mousemove', function(e) {
|
|
|
|
|
if (e.ctrlKey || e.shiftKey || e.which === 2 || e.target.classList.contains('svg_select_points')) {
|
|
|
|
|
if (e.shiftKey) {
|
|
|
|
|
this._controller.resetActive();
|
|
|
|
|
}
|
|
|
|
|
if (e.ctrlKey || e.which === 2 || e.target.classList.contains('svg_select_points')) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1177,7 +1174,6 @@ class ShapeCollectionView {
|
|
|
|
|
}.bind(this));
|
|
|
|
|
|
|
|
|
|
$('#shapeContextMenu li').click((e) => {
|
|
|
|
|
let menu = $('#shapeContextMenu');
|
|
|
|
|
$('.custom-menu').hide(100);
|
|
|
|
|
|
|
|
|
|
switch($(e.target).attr("action")) {
|
|
|
|
|
@ -1324,7 +1320,7 @@ class ShapeCollectionView {
|
|
|
|
|
mainDiv[0].updateState = function() {
|
|
|
|
|
lockButton[0].updateState();
|
|
|
|
|
hiddenButton[0].updateState();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this._labelsContent.append(mainDiv);
|
|
|
|
|
}
|
|
|
|
|
@ -1399,7 +1395,7 @@ class ShapeCollectionView {
|
|
|
|
|
view.erase();
|
|
|
|
|
|
|
|
|
|
if (newIdx != -1 && (frameChanged || significantUpdate)) {
|
|
|
|
|
drawView.call(this, newShapes[newIdx], newModels[newIdx])
|
|
|
|
|
drawView.call(this, newShapes[newIdx], newModels[newIdx]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
@ -1411,7 +1407,7 @@ class ShapeCollectionView {
|
|
|
|
|
// Now we need draw new models which aren't on previous collection
|
|
|
|
|
for (let newIdx = 0; newIdx < newModels.length; newIdx ++) {
|
|
|
|
|
if (!this._currentModels.includes(newModels[newIdx])) {
|
|
|
|
|
drawView.call(this, newShapes[newIdx], newModels[newIdx])
|
|
|
|
|
drawView.call(this, newShapes[newIdx], newModels[newIdx]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|