polarvo-layout 1.0.49 → 1.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polarvo-layout",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "type": "module",
5
5
  "author": "unigence <unigencelab@gmail.com>",
6
6
  "repository": {
@@ -276,20 +276,19 @@ class EngineManager {
276
276
  const newWidth = newValue.px;
277
277
  const newHeight = newValue.px / calculateAspectRatio(newValue.aspectRatio);
278
278
 
279
- await nextTick();
279
+ await nextTick()
280
280
  // nextTick(() => {
281
- this.setContainerSize();
281
+ this.setContainerSize();
282
282
 
283
- const normalizeElements = dataConverter.normalize(this.state.elements, oldWidth, oldHeight);
284
- const denormalizedElements = dataConverter.denormalize(normalizeElements, newWidth, newHeight);
283
+ const normalizeElements = dataConverter.normalize(this.state.elements, oldWidth, oldHeight);
284
+ const denormalizedElements = dataConverter.denormalize(normalizeElements, newWidth, newHeight);
285
285
 
286
- // this.state.elements = denormalizedElements;
287
- this.state.elements.splice(0, this.state.elements.length, ...denormalizedElements);
286
+ this.state.elements = denormalizedElements;
288
287
 
289
- this.eventBus.emit('system:requestElementsScale', {
290
- $elements: this.state.elements,
291
- timestamp: Date.now(),
292
- });
288
+ this.eventBus.emit('system:requestElementsScale', {
289
+ $elements: this.state.elements,
290
+ timestamp: Date.now(),
291
+ });
293
292
  // });
294
293
  }
295
294
 
@@ -385,7 +384,6 @@ class EngineManager {
385
384
  size: { ...el.size, h: el.size.h * scaleFactor },
386
385
  };
387
386
  });
388
- console.log('element', this.state.elements);
389
387
 
390
388
  // nextTick(() => {
391
389
  this.eventBus.emit('system:requestElementsScale', {