Updating getBBox and anchor code to improve performance
This change will reduce the number of calls to this.container.getBBox when calculating the bounding box of a node
This commit is contained in:
@@ -6,12 +6,9 @@ export default {
|
||||
definedProperties: {
|
||||
_anchor: {
|
||||
get: function() {
|
||||
var box = this.container.getBBox(),
|
||||
matrix = this.transform().localMatrix;
|
||||
var matrix = this.transform().localMatrix;
|
||||
|
||||
return {
|
||||
ax: box.x,
|
||||
ax2: box.x2,
|
||||
ay: matrix.y(0, this.partContainer.getBBox().cy)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user