mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-25 16:04:42 +00:00
Update group.class.js
This commit is contained in:
parent
2fefe13613
commit
64531a3905
1 changed files with 10 additions and 2 deletions
|
|
@ -58,13 +58,21 @@
|
|||
this.originalState = { };
|
||||
this.callSuper('initialize');
|
||||
|
||||
if (options) {
|
||||
extend(this, options);
|
||||
if (options.originX) {
|
||||
this.originX = options.originX;
|
||||
}
|
||||
|
||||
if (options.originY) {
|
||||
this.originY = options.originY;
|
||||
}
|
||||
|
||||
this._calcBounds();
|
||||
this._updateObjectsCoords();
|
||||
|
||||
if (options) {
|
||||
extend(this, options);
|
||||
}
|
||||
|
||||
this.setCoords();
|
||||
this.saveCoords();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue