@codingfactory/mediables-vue 2.13.0 → 2.16.0
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-BnAievFi.cjs → PixiFrameExporter-BOijjcAa.cjs} +2 -2
- package/dist/{PixiFrameExporter-BnAievFi.cjs.map → PixiFrameExporter-BOijjcAa.cjs.map} +1 -1
- package/dist/{PixiFrameExporter-DwbBy1Iu.js → PixiFrameExporter-cu2jpN20.js} +2 -2
- package/dist/{PixiFrameExporter-DwbBy1Iu.js.map → PixiFrameExporter-cu2jpN20.js.map} +1 -1
- package/dist/components/MediaManagementView.vue.d.ts +3 -1
- package/dist/composables/useAlbums.d.ts +10 -1
- package/dist/composables/useMediaTrash.d.ts +10 -0
- package/dist/editor-DLvndiXG.cjs +2 -0
- package/dist/editor-DLvndiXG.cjs.map +1 -0
- package/dist/{editor-BoDU3YXD.js → editor-OIsQEaJg.js} +18 -2
- package/dist/editor-OIsQEaJg.js.map +1 -0
- package/dist/{index-BGC4rPDc.js → index-Bff5fDnU.js} +13576 -12835
- package/dist/{index-CljyFIEv.cjs.map → index-Bff5fDnU.js.map} +1 -1
- package/dist/index-zFuo-sDY.cjs +357 -0
- package/dist/index-zFuo-sDY.cjs.map +1 -0
- package/dist/index.d.ts +2 -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 +71 -68
- package/dist/render-page/assets/{index-jZGmiMRr.js → index-DQB8PyEU.js} +11 -2
- package/dist/render-page/index.html +1 -1
- package/dist/stores/albumStore.d.ts +17 -0
- package/dist/style.css +1 -1
- package/dist/types/mediaLibraryPicker.d.ts +30 -0
- package/package.json +1 -1
- package/dist/editor-BoDU3YXD.js.map +0 -1
- package/dist/editor-D-cJRASf.cjs +0 -2
- package/dist/editor-D-cJRASf.cjs.map +0 -1
- package/dist/index-BGC4rPDc.js.map +0 -1
- package/dist/index-CljyFIEv.cjs +0 -357
|
@@ -211,9 +211,25 @@ class ct extends de {
|
|
|
211
211
|
* @returns {Object|null}
|
|
212
212
|
*/
|
|
213
213
|
getSerializableDocument() {
|
|
214
|
+
var r;
|
|
214
215
|
if (!this._state.editorDocument) return null;
|
|
215
216
|
const e = this._clonePlain(this._state.editorDocument);
|
|
216
|
-
|
|
217
|
+
e.layers = this._clonePlain(this._state.layers), e.activeLayerId = this._state.activeLayerId;
|
|
218
|
+
const t = e.layers.findIndex((i) => i && (i.role === "subject" || i.type === "image" && i.role !== "overlay"));
|
|
219
|
+
if (t !== -1) {
|
|
220
|
+
const i = e.layers[t], s = this._normalizeDegrees(((r = this._state.transform) == null ? void 0 : r.rotation) ?? 0), n = i.transform && typeof i.transform == "object" ? i.transform : { x: 0, y: 0, scaleX: 1, scaleY: 1, rotation: 0 };
|
|
221
|
+
i.transform = {
|
|
222
|
+
...n,
|
|
223
|
+
rotation: s
|
|
224
|
+
};
|
|
225
|
+
const o = this._state.crop && typeof this._state.crop == "object" ? this._state.crop : null, l = o != null && o.appliedRect && typeof o.appliedRect == "object" ? o.appliedRect : null;
|
|
226
|
+
l && (i.crop = {
|
|
227
|
+
rect: { ...l },
|
|
228
|
+
shape: o.appliedShape || "free",
|
|
229
|
+
aspect: o.appliedAspect || "free"
|
|
230
|
+
}), e.layers[t] = i;
|
|
231
|
+
}
|
|
232
|
+
return e;
|
|
217
233
|
}
|
|
218
234
|
/**
|
|
219
235
|
* @returns {{ documentId: string|null, documentRevisionId: string|null, documentRevisionNumber: number|null }|null}
|
|
@@ -10859,4 +10875,4 @@ export {
|
|
|
10859
10875
|
Ft as y,
|
|
10860
10876
|
Pt as z
|
|
10861
10877
|
};
|
|
10862
|
-
//# sourceMappingURL=editor-
|
|
10878
|
+
//# sourceMappingURL=editor-OIsQEaJg.js.map
|