@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.js CHANGED
@@ -1961,7 +1961,11 @@ function normalizeTextCurve(config) {
1961
1961
  shape: config.shape ?? inferred,
1962
1962
  arc,
1963
1963
  wave,
1964
- waveLength: clamp(config.waveLength ?? DEFAULT_TEXT_CURVE.waveLength, MIN_WAVE_LENGTH, MAX_WAVE_LENGTH),
1964
+ waveLength: clamp(
1965
+ config.waveLength ?? DEFAULT_TEXT_CURVE.waveLength,
1966
+ MIN_WAVE_LENGTH,
1967
+ MAX_WAVE_LENGTH
1968
+ ),
1965
1969
  offset: clamp(config.offset ?? 0, -100, 100),
1966
1970
  centerOffset: clamp(config.centerOffset ?? 0, -100, 100)
1967
1971
  };
@@ -4339,6 +4343,9 @@ var LayerMaskManager = class extends MaskStackStore {
4339
4343
  if (resolved === layerId) return null;
4340
4344
  const object = layer.fabricObject;
4341
4345
  if (!object.fill && object.type !== "image") object.set({ fill: "#000000" });
4346
+ const stackHost = this.host(resolved);
4347
+ const absolute = resolved === CANVAS_MASK_TARGET || needsAbsoluteSpace(this.list(resolved));
4348
+ if (!absolute && stackHost) toHostSpace(object, stackHost);
4342
4349
  this.history.beginTransaction();
4343
4350
  try {
4344
4351
  if (this.canvas.getActiveObject() === object) this.canvas.discardActiveObject();