chore(apply-changes): cleanup)

This commit is contained in:
moklick
2025-11-25 12:34:49 +01:00
parent f739c7fae1
commit f858cbb404

View File

@@ -125,9 +125,9 @@ function applyChange(change: any, element: any): any {
case 'dimensions': {
if (typeof change.dimensions !== 'undefined') {
element.measured = {};
element.measured.width = change.dimensions.width;
element.measured.height = change.dimensions.height;
element.measured = {
...change.dimensions,
};
if (change.setAttributes) {
if (change.setAttributes === true || change.setAttributes === 'width') {