mce 0.15.12 → 0.15.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
CHANGED
|
@@ -10512,7 +10512,7 @@ const _rotate = definePlugin((editor) => {
|
|
|
10512
10512
|
} = editor;
|
|
10513
10513
|
function rotate(deg) {
|
|
10514
10514
|
elementSelection.value.forEach((el) => {
|
|
10515
|
-
el.style.rotate
|
|
10515
|
+
el.style.rotate = (el.style.rotate + deg) % 360;
|
|
10516
10516
|
});
|
|
10517
10517
|
}
|
|
10518
10518
|
return {
|
|
@@ -15277,7 +15277,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
15277
15277
|
hovered = result;
|
|
15278
15278
|
}
|
|
15279
15279
|
}
|
|
15280
|
-
if (!(isElement(hovered) && !isTopLevelFrame(hovered))) {
|
|
15280
|
+
if (!(isElement(hovered) && !isLock(hovered) && !isTopLevelFrame(hovered))) {
|
|
15281
15281
|
hovered = void 0;
|
|
15282
15282
|
cursor = void 0;
|
|
15283
15283
|
}
|
|
@@ -15292,7 +15292,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
15292
15292
|
allowRootFrame = false
|
|
15293
15293
|
} = options;
|
|
15294
15294
|
function isIncluded(node) {
|
|
15295
|
-
return isElement(node) && (allowRootFrame || !isTopLevelFrame(node));
|
|
15295
|
+
return isElement(node) && !isLock(node) && (allowRootFrame || !isTopLevelFrame(node));
|
|
15296
15296
|
}
|
|
15297
15297
|
const drawing = state.value === "drawing";
|
|
15298
15298
|
const hand = state.value === "hand";
|
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.13",
|
|
5
5
|
"description": "The headless canvas editor framework. only the ESM.",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"diff": "^8.0.2",
|
|
62
62
|
"file-saver": "^2.0.5",
|
|
63
63
|
"lodash-es": "^4.17.22",
|
|
64
|
-
"modern-canvas": "^0.14.
|
|
64
|
+
"modern-canvas": "^0.14.28",
|
|
65
65
|
"modern-font": "^0.4.4",
|
|
66
66
|
"modern-idoc": "^0.10.8",
|
|
67
67
|
"modern-text": "^1.10.7",
|