devexpress-diagram
Advanced tools
Comparing version 2.1.61 to 2.1.62
{ | ||
"name": "devexpress-diagram", | ||
"version": "2.1.61", | ||
"version": "2.1.62", | ||
"description": "DevExpress Diagram Control", | ||
@@ -5,0 +5,0 @@ "main": "dist/dx-diagram.min.js", |
@@ -116,3 +116,3 @@ import { ClipboardCommand } from "./ClipboardCommand"; | ||
this.control.history.beginTransaction(); | ||
const ids = []; | ||
const idsForSelection: {[id: string]: boolean} = {}; | ||
let items = this.parseClipboardData(data); | ||
@@ -129,7 +129,9 @@ items = this.getSortedPasteItems(items); | ||
const containerKey = item.container && item.container.key; | ||
if(!containerKey || ids.indexOf(containerKey) === -1) | ||
ids.push(item.key); | ||
if(!containerKey || idsForSelection[containerKey] === undefined) | ||
idsForSelection[item.key] = true; | ||
else if(containerKey && idsForSelection[containerKey] !== undefined) | ||
idsForSelection[item.key] = false; | ||
} | ||
ModelUtils.tryUpdateModelRectangle(this.control.history); | ||
this.control.history.addAndRedo(new SetSelectionHistoryItem(this.control.selection, ids)); | ||
this.control.history.addAndRedo(new SetSelectionHistoryItem(this.control.selection, Object.keys(idsForSelection).filter(id => idsForSelection[id]))); | ||
this.control.history.endTransaction(); | ||
@@ -136,0 +138,0 @@ this.control.endUpdateCanvas(); |
{ | ||
"name": "devexpress-diagram", | ||
"version": "2.1.61", | ||
"version": "2.1.62", | ||
"description": "DevExpress Diagram Control", | ||
@@ -5,0 +5,0 @@ "main": "dist/dx-diagram.min.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4493988
69384