Removing some unnecessary extend calls
This commit is contained in:
parent
6793b342ae
commit
000809752e
@ -9,11 +9,11 @@ export default {
|
|||||||
var anchor = this.content.anchor,
|
var anchor = this.content.anchor,
|
||||||
matrix = this.transform().localMatrix;
|
matrix = this.transform().localMatrix;
|
||||||
|
|
||||||
return _.extend(anchor, {
|
return {
|
||||||
ax: matrix.x(anchor.ax, anchor.ay),
|
ax: matrix.x(anchor.ax, anchor.ay),
|
||||||
ax2: matrix.x(anchor.ax2, anchor.ay),
|
ax2: matrix.x(anchor.ax2, anchor.ay),
|
||||||
ay: matrix.y(anchor.ax, anchor.ay)
|
ay: matrix.y(anchor.ax, anchor.ay)
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -9,11 +9,11 @@ export default {
|
|||||||
var anchor = this.regexp.anchor,
|
var anchor = this.regexp.anchor,
|
||||||
matrix = this.transform().localMatrix;
|
matrix = this.transform().localMatrix;
|
||||||
|
|
||||||
return _.extend(anchor, {
|
return {
|
||||||
ax: matrix.x(anchor.ax, anchor.ay),
|
ax: matrix.x(anchor.ax, anchor.ay),
|
||||||
ax2: matrix.x(anchor.ax2, anchor.ay),
|
ax2: matrix.x(anchor.ax2, anchor.ay),
|
||||||
ay: matrix.y(anchor.ax, anchor.ay)
|
ay: matrix.y(anchor.ax, anchor.ay)
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user