|
|
|
@ -49,8 +49,8 @@ module.exports = function createCompositeObject(options) {
|
|
|
|
|
let position = getPosition(object);
|
|
|
|
|
|
|
|
|
|
object.render(context, {
|
|
|
|
|
x: object.x - this.renderOffsetX,
|
|
|
|
|
y: object.y - this.renderOffsetY
|
|
|
|
|
x: object.x - this.offsetX,
|
|
|
|
|
y: object.y - this.offsetY
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
@ -72,11 +72,12 @@ module.exports = function createCompositeObject(options) {
|
|
|
|
|
let x2 = max(objectMetrics.map(object => object.x2));
|
|
|
|
|
let y2 = max(objectMetrics.map(object => object.y2));
|
|
|
|
|
|
|
|
|
|
this.offsetX = x1;
|
|
|
|
|
this.offsetY = y1;
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
width: x2 - x1,
|
|
|
|
|
height: y2 - y1,
|
|
|
|
|
offsetX: x1,
|
|
|
|
|
offsetY: y1
|
|
|
|
|
height: y2 - y1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, initialPropertySet._));
|
|
|
|
|