@mce/bigesj 0.12.2 → 0.12.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 +3 -7
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1033,16 +1033,12 @@ async function convertElement(el, parent, context) {
|
|
|
1033
1033
|
const style = { ...el.style ?? el };
|
|
1034
1034
|
delete style.bottom;
|
|
1035
1035
|
delete style.right;
|
|
1036
|
+
const { children: _children, ...raw } = el;
|
|
1036
1037
|
const meta = {
|
|
1038
|
+
raw,
|
|
1037
1039
|
inPptIs: "Shape",
|
|
1038
1040
|
inEditorIs: "Element"
|
|
1039
1041
|
};
|
|
1040
|
-
if (el.id) {
|
|
1041
|
-
meta.rawId = el.id;
|
|
1042
|
-
}
|
|
1043
|
-
if (el.name) {
|
|
1044
|
-
meta.rawName = el.name;
|
|
1045
|
-
}
|
|
1046
1042
|
const element = {
|
|
1047
1043
|
id: idGenerator(),
|
|
1048
1044
|
name: el.name ?? el.title ?? el.id,
|
|
@@ -1271,7 +1267,7 @@ async function convertDoc(doc, gap = 0) {
|
|
|
1271
1267
|
element.style.top = top;
|
|
1272
1268
|
top += Number(element.style.height) + gap;
|
|
1273
1269
|
}
|
|
1274
|
-
element.name =
|
|
1270
|
+
element.name = `页面 ${index + 1}`;
|
|
1275
1271
|
return element;
|
|
1276
1272
|
});
|
|
1277
1273
|
const minmax = children.reduce((child) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mce/bigesj",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.4",
|
|
5
5
|
"description": "Plugin for mce",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"fflate": "^0.8.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"mce": "0.12.
|
|
51
|
+
"mce": "0.12.4"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"mce": "^0"
|