@overtone-art/canvas-editor-core 0.6.3 → 0.6.4

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.mjs CHANGED
@@ -1875,7 +1875,11 @@ function normalizeTextCurve(config) {
1875
1875
  shape: config.shape ?? inferred,
1876
1876
  arc,
1877
1877
  wave,
1878
- waveLength: clamp(config.waveLength ?? DEFAULT_TEXT_CURVE.waveLength, MIN_WAVE_LENGTH, MAX_WAVE_LENGTH),
1878
+ waveLength: clamp(
1879
+ config.waveLength ?? DEFAULT_TEXT_CURVE.waveLength,
1880
+ MIN_WAVE_LENGTH,
1881
+ MAX_WAVE_LENGTH
1882
+ ),
1879
1883
  offset: clamp(config.offset ?? 0, -100, 100),
1880
1884
  centerOffset: clamp(config.centerOffset ?? 0, -100, 100)
1881
1885
  };
@@ -4002,6 +4006,9 @@ var LayerMaskManager = class extends MaskStackStore {
4002
4006
  if (resolved === layerId) return null;
4003
4007
  const object = layer.fabricObject;
4004
4008
  if (!object.fill && object.type !== "image") object.set({ fill: "#000000" });
4009
+ const stackHost = this.host(resolved);
4010
+ const absolute = resolved === CANVAS_MASK_TARGET || needsAbsoluteSpace(this.list(resolved));
4011
+ if (!absolute && stackHost) toHostSpace(object, stackHost);
4005
4012
  this.history.beginTransaction();
4006
4013
  try {
4007
4014
  if (this.canvas.getActiveObject() === object) this.canvas.discardActiveObject();