development
mcyph 2021-04-09 17:03:19 +10:00
parent ea5f2a54fb
commit 533b2fd4f1
2 changed files with 3 additions and 3 deletions

View File

@ -6071,7 +6071,7 @@ class mxGraph extends mxEventSource {
dy: number,
target: mxCell | null=null,
evt: mxMouseEvent,
mapping: any): mxCell[] | null {
mapping: any={}): mxCell[] | null {
return this.moveCells(cells, dx, dy, true, target, evt, mapping);
}

View File

@ -2113,11 +2113,11 @@ class mxGraphModel extends mxEventSource {
* Inner helper method for cloning cells recursively.
*/
cloneCellImpl(cell: mxCell,
mapping: any,
mapping: any={},
includeChildren: boolean): mxCell {
const ident = mxObjectIdentity.get(cell);
let clone = mapping[ident];
let clone = mapping ? mapping[ident] : null;
if (clone == null) {
clone = this.cellCloned(cell);