@codingfactory/mediables-vue 2.4.19 → 2.4.20

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.
@@ -2476,7 +2476,7 @@ class tt {
2476
2476
  this._unsubscribers.forEach((t) => t()), this._unsubscribers = [], this._filterItems.clear(), (e = this.element) == null || e.remove(), this.element = null;
2477
2477
  }
2478
2478
  }
2479
- const D = {
2479
+ const L = {
2480
2480
  name: "free",
2481
2481
  initialMode: "filters",
2482
2482
  cropShape: "free",
@@ -2490,10 +2490,10 @@ const D = {
2490
2490
  maxExportHeight: void 0
2491
2491
  }, G = {
2492
2492
  free: {
2493
- ...D
2493
+ ...L
2494
2494
  },
2495
2495
  avatar: {
2496
- ...D,
2496
+ ...L,
2497
2497
  name: "avatar",
2498
2498
  initialMode: "crop",
2499
2499
  cropShape: "circle",
@@ -2503,7 +2503,7 @@ const D = {
2503
2503
  lockAspectRatio: !0
2504
2504
  },
2505
2505
  banner: {
2506
- ...D,
2506
+ ...L,
2507
2507
  name: "banner",
2508
2508
  initialMode: "crop",
2509
2509
  cropShape: "square",
@@ -2512,8 +2512,18 @@ const D = {
2512
2512
  lockCropShape: !1,
2513
2513
  lockAspectRatio: !0
2514
2514
  },
2515
+ cover: {
2516
+ ...L,
2517
+ name: "cover",
2518
+ initialMode: "crop",
2519
+ cropShape: "free",
2520
+ aspectRatio: "24:5",
2521
+ autoZoomOnCropOverflow: !0,
2522
+ lockCropShape: !0,
2523
+ lockAspectRatio: !0
2524
+ },
2515
2525
  product: {
2516
- ...D,
2526
+ ...L,
2517
2527
  name: "product",
2518
2528
  initialMode: "filters",
2519
2529
  cropShape: "square",
@@ -2527,7 +2537,7 @@ function it(s) {
2527
2537
  if (!s)
2528
2538
  return { ...G.free };
2529
2539
  if (typeof s == "object" && s !== null)
2530
- return { ...D, ...s };
2540
+ return { ...L, ...s };
2531
2541
  const e = G[s];
2532
2542
  return e ? { ...e } : { ...G.free };
2533
2543
  }
@@ -3257,7 +3267,7 @@ const { ColorMatrixFilter: ft } = w, E = {
3257
3267
  function gt(s) {
3258
3268
  return mt.has(s);
3259
3269
  }
3260
- function L(s, e) {
3270
+ function D(s, e) {
3261
3271
  if (typeof s == "number" && Number.isFinite(s))
3262
3272
  return s;
3263
3273
  if (typeof s == "string") {
@@ -3280,11 +3290,11 @@ function ye(s, e) {
3280
3290
  }
3281
3291
  function bt(s) {
3282
3292
  return {
3283
- brightness: L(s.brightness, E.brightness),
3284
- contrast: L(s.contrast, E.contrast),
3285
- saturation: L(s.saturation, E.saturation),
3286
- hue: L(s.hue, E.hue),
3287
- sepia: L(s.sepia, E.sepia),
3293
+ brightness: D(s.brightness, E.brightness),
3294
+ contrast: D(s.contrast, E.contrast),
3295
+ saturation: D(s.saturation, E.saturation),
3296
+ hue: D(s.hue, E.hue),
3297
+ sepia: D(s.sepia, E.sepia),
3288
3298
  negative: ye(s.negative, E.negative)
3289
3299
  };
3290
3300
  }
@@ -3309,7 +3319,7 @@ m({
3309
3319
  n.negative = ye(o, n.negative);
3310
3320
  else {
3311
3321
  const l = a;
3312
- n[l] = L(o, n[l]);
3322
+ n[l] = D(o, n[l]);
3313
3323
  }
3314
3324
  this._customParams = n, oe(this, n);
3315
3325
  } catch {
@@ -8583,4 +8593,4 @@ export {
8583
8593
  ai as i,
8584
8594
  m as r
8585
8595
  };
8586
- //# sourceMappingURL=editor-BfdrdqUU.js.map
8596
+ //# sourceMappingURL=editor-BkyoXXiA.js.map