Skip to content

Commit

Permalink
Update active_selection.class.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Mar 6, 2022
1 parent c08f4b7 commit 55c6ccc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/shapes/active_selection.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@
ctx.save();
ctx.globalAlpha = this.isMoving ? this.borderOpacityWhenMoving : 1;
this.callSuper('_renderControls', ctx, styleOverride);
childrenOverride = childrenOverride || { };
if (typeof childrenOverride.hasControls === 'undefined') {
childrenOverride.hasControls = false;
}
childrenOverride.forActiveSelection = true;
var options = Object.assign(
{ hasControls: false },
childrenOverride,
{ forActiveSelection: true }
);
for (var i = 0, len = this._objects.length; i < len; i++) {
this._objects[i]._renderControls(ctx, childrenOverride);
this._objects[i]._renderControls(ctx, options);
}
ctx.restore();
},
Expand All @@ -129,7 +129,7 @@
options = fabric.util.object.clone(object, true);
delete options.objects;
return fabric.util.enlivenObjects(objects).then(function(enlivenedObjects) {
return new fabric.ActiveSelection(enlivenedObjects, object, true);
return new fabric.ActiveSelection(enlivenedObjects, options, true);
});
};

Expand Down

0 comments on commit 55c6ccc

Please sign in to comment.