mce 0.15.39 → 0.15.41
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 +8 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2955,7 +2955,7 @@ class TextEditor extends HTMLElement {
|
|
|
2955
2955
|
} else {
|
|
2956
2956
|
this._textarea.addEventListener("mousedown", this.pointerDown.bind(this));
|
|
2957
2957
|
}
|
|
2958
|
-
["
|
|
2958
|
+
["keydown", "keypress", "keyup", "input", "focus", "blur", "selectionchange", "selectionstart"].forEach((key) => {
|
|
2959
2959
|
this._textarea.addEventListener(key, () => this._updateSelectionByDom());
|
|
2960
2960
|
});
|
|
2961
2961
|
}
|
|
@@ -12345,7 +12345,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
12345
12345
|
width: width * scale[0],
|
|
12346
12346
|
height: height * scale[1],
|
|
12347
12347
|
rotate,
|
|
12348
|
-
borderRadius
|
|
12348
|
+
borderRadius: borderRadius * scale[0]
|
|
12349
12349
|
};
|
|
12350
12350
|
},
|
|
12351
12351
|
set: (val) => {
|
|
@@ -12357,7 +12357,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
12357
12357
|
width: val.width / scale[0],
|
|
12358
12358
|
height: val.height / scale[1],
|
|
12359
12359
|
rotate: val.rotate,
|
|
12360
|
-
borderRadius: val.borderRadius
|
|
12360
|
+
borderRadius: val.borderRadius / scale[0]
|
|
12361
12361
|
};
|
|
12362
12362
|
}
|
|
12363
12363
|
});
|
|
@@ -15410,7 +15410,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
15410
15410
|
height: style.height + offsetStyle.height,
|
|
15411
15411
|
rotate: (style.rotate + offsetStyle.rotate + 360) % 360
|
|
15412
15412
|
};
|
|
15413
|
-
const
|
|
15413
|
+
const { left, top, right, bottom } = el.globalAabb;
|
|
15414
15414
|
const shape = el.shape;
|
|
15415
15415
|
resizeElement(
|
|
15416
15416
|
el,
|
|
@@ -15424,10 +15424,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
15424
15424
|
el.updateGlobalTransform();
|
|
15425
15425
|
const aabb = el.globalAabb;
|
|
15426
15426
|
const offset2 = {
|
|
15427
|
-
left: aabb.left -
|
|
15428
|
-
top: aabb.top -
|
|
15429
|
-
right: aabb.right -
|
|
15430
|
-
bottom: aabb.bottom -
|
|
15427
|
+
left: aabb.left - left,
|
|
15428
|
+
top: aabb.top - top,
|
|
15429
|
+
right: aabb.right - right,
|
|
15430
|
+
bottom: aabb.bottom - bottom
|
|
15431
15431
|
};
|
|
15432
15432
|
let after = false;
|
|
15433
15433
|
info.value.yItems.forEach((item) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.41",
|
|
5
5
|
"description": "A headless infinite canvas editor framework built on WebGL rendering, supports exporting to image, video, and PPT. Only the ESM.",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"diff": "^8.0.3",
|
|
62
62
|
"file-saver": "^2.0.5",
|
|
63
63
|
"lodash-es": "^4.17.23",
|
|
64
|
-
"modern-canvas": "^0.14.
|
|
64
|
+
"modern-canvas": "^0.14.45",
|
|
65
65
|
"modern-font": "^0.4.4",
|
|
66
66
|
"modern-idoc": "^0.10.18",
|
|
67
67
|
"modern-text": "^1.10.15",
|