@mce/bigesj 0.15.20 → 0.15.22

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1693,15 +1693,15 @@ async function convertDoc(doc, gap = 0) {
1693
1693
  })
1694
1694
  );
1695
1695
  let top = 0;
1696
- children = children.sort((a, b) => a.index - b.index).map((v, index) => {
1696
+ children = children.sort((a, b) => a.index - b.index).map((v) => {
1697
1697
  const element = v.element;
1698
1698
  if (element.style) {
1699
1699
  element.style.top = top;
1700
1700
  top += Number(element.style.height) + gap;
1701
1701
  }
1702
- element.name = `画板 ${index + 1}`;
1702
+ element.name = `画板 ${v.index + 1}`;
1703
1703
  return element;
1704
- });
1704
+ }).reverse();
1705
1705
  const minmax = children.reduce((child) => {
1706
1706
  const left = child.style?.left ?? 0;
1707
1707
  const top2 = child.style?.top ?? 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mce/bigesj",
3
3
  "type": "module",
4
- "version": "0.15.20",
4
+ "version": "0.15.22",
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.15.20"
52
+ "mce": "0.15.22"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "mce": "^0"