@overtone-art/canvas-editor-core 0.8.1 → 0.8.2

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/dist/index.js CHANGED
@@ -2716,8 +2716,10 @@ var TextWrapManager = class {
2716
2716
  text.dirty = true;
2717
2717
  text.setCoords();
2718
2718
  this.canvas.requestRenderAll();
2719
- this.events.emit("layer:modified", { layerId });
2720
- if (save) this.history.save();
2719
+ if (save) {
2720
+ this.events.emit("layer:modified", { layerId });
2721
+ this.history.save();
2722
+ }
2721
2723
  return true;
2722
2724
  }
2723
2725
  };