@mce/bigesj 0.17.12 → 0.17.13
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 +4 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1076,7 +1076,7 @@ function convertAnimation(el, animation, type) {
|
|
|
1076
1076
|
name: animation.name ?? animation.title ?? animation.id,
|
|
1077
1077
|
delay,
|
|
1078
1078
|
duration: name ? duration * (iterations || 1) : 0,
|
|
1079
|
-
effectMode:
|
|
1079
|
+
effectMode: "parent",
|
|
1080
1080
|
keyframes: keyframes ?? [],
|
|
1081
1081
|
easing: animations.easing[easing],
|
|
1082
1082
|
meta: {
|
|
@@ -1132,8 +1132,8 @@ function parseAnimations(el) {
|
|
|
1132
1132
|
return {
|
|
1133
1133
|
delay: startTime,
|
|
1134
1134
|
duration: Math.max(0, endTime - startTime),
|
|
1135
|
-
hasOut: Boolean(_animOut),
|
|
1136
|
-
animations: animations.filter((v) => !!v?.keyframes)
|
|
1135
|
+
hasOut: Boolean(_animOut?.keyframes?.length),
|
|
1136
|
+
animations: animations.filter((v) => !!v?.keyframes?.length)
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
1139
|
//#endregion
|
|
@@ -5599,6 +5599,7 @@ async function convertElement(el, parent, context) {
|
|
|
5599
5599
|
}
|
|
5600
5600
|
if (el.editable === false || el.hidden === true) style.visibility = "hidden";
|
|
5601
5601
|
if (el.lock === true) meta.lock = true;
|
|
5602
|
+
if (!el.animations?.length && el.anim) el.animations = [el.anim];
|
|
5602
5603
|
if (el.animations?.length) {
|
|
5603
5604
|
const parsed = parseAnimations(el);
|
|
5604
5605
|
element.delay = parsed.delay;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mce/bigesj",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.17.
|
|
4
|
+
"version": "0.17.13",
|
|
5
5
|
"description": "Plugin for mce",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"modern-openxml": "^1.10.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"mce": "0.17.
|
|
52
|
+
"mce": "0.17.13"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"mce": "^0"
|