mce 0.15.22 → 0.15.23

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 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11959,7 +11959,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
11959
11959
  t,
11960
11960
  exec
11961
11961
  } = useEditor();
11962
- const isActive = computed(() => !viewportAabb.value.overlap(selectionAabb.value));
11962
+ const isActive = computed(() => {
11963
+ return selectionAabb.value.width && selectionAabb.value.height && !viewportAabb.value.overlap(selectionAabb.value);
11964
+ });
11963
11965
  return (_ctx, _cache) => {
11964
11966
  return isActive.value ? (openBlock(), createElementBlock("div", {
11965
11967
  key: 0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mce",
3
3
  "type": "module",
4
- "version": "0.15.22",
4
+ "version": "0.15.23",
5
5
  "description": "The headless canvas editor framework. only the ESM.",
6
6
  "author": "wxm",
7
7
  "license": "MIT",