@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.
- package/dist/{PixiFrameExporter-Ovg5_owp.js → PixiFrameExporter-DCDcutJ1.js} +2 -2
- package/dist/{PixiFrameExporter-Ovg5_owp.js.map → PixiFrameExporter-DCDcutJ1.js.map} +1 -1
- package/dist/{PixiFrameExporter-RBbYifm4.cjs → PixiFrameExporter-NQy9Zz24.cjs} +2 -2
- package/dist/{PixiFrameExporter-RBbYifm4.cjs.map → PixiFrameExporter-NQy9Zz24.cjs.map} +1 -1
- package/dist/editor--q100BnG.cjs +42 -0
- package/dist/editor--q100BnG.cjs.map +1 -0
- package/dist/{editor-BfdrdqUU.js → editor-BkyoXXiA.js} +24 -14
- package/dist/editor-BkyoXXiA.js.map +1 -0
- package/dist/{index-DM7D7H0K.cjs → index-CeRnmg4f.cjs} +3 -3
- package/dist/{index-DM7D7H0K.cjs.map → index-CeRnmg4f.cjs.map} +1 -1
- package/dist/{index-RIK4lle5.js → index-DAD3xVPE.js} +3 -3
- package/dist/{index-RIK4lle5.js.map → index-DAD3xVPE.js.map} +1 -1
- package/dist/mediables-vanilla.cjs +1 -1
- package/dist/mediables-vanilla.mjs +1 -1
- package/dist/mediables-vue.cjs +1 -1
- package/dist/mediables-vue.mjs +2 -2
- package/package.json +1 -1
- package/dist/editor-BIDFjsrP.cjs +0 -42
- package/dist/editor-BIDFjsrP.cjs.map +0 -1
- package/dist/editor-BfdrdqUU.js.map +0 -1
|
@@ -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
|
|
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
|
-
...
|
|
2493
|
+
...L
|
|
2494
2494
|
},
|
|
2495
2495
|
avatar: {
|
|
2496
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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 { ...
|
|
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
|
|
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:
|
|
3284
|
-
contrast:
|
|
3285
|
-
saturation:
|
|
3286
|
-
hue:
|
|
3287
|
-
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] =
|
|
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-
|
|
8596
|
+
//# sourceMappingURL=editor-BkyoXXiA.js.map
|