mce 0.15.32 → 0.15.33

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.
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  constrainToAxis: string;
5
5
  loading: string;
6
6
  drawing: string;
7
+ exporting: string;
7
8
  selecting: string;
8
9
  selectObject: string;
9
10
  commitChanges: string;
@@ -109,6 +110,8 @@ declare const _default: {
109
110
  alignTop: string;
110
111
  alignVerticalCenter: string;
111
112
  alignBottom: string;
112
- exporting: string;
113
+ distributeHorizontalSpacing: string;
114
+ distributeVerticalSpacing: string;
115
+ tidyUp: string;
113
116
  };
114
117
  export default _default;
@@ -110,5 +110,8 @@ declare const _default: {
110
110
  alignTop: string;
111
111
  alignVerticalCenter: string;
112
112
  alignBottom: string;
113
+ distributeHorizontalSpacing: string;
114
+ distributeVerticalSpacing: string;
115
+ tidyUp: string;
113
116
  };
114
117
  export default _default;
@@ -5,7 +5,7 @@ declare global {
5
5
  type AlignDirection = 'left' | 'horizontal-center' | 'right' | 'top' | 'vertical-center' | 'bottom';
6
6
  type DistributeSpacingDirection = 'horizontal' | 'vertical';
7
7
  interface Commands {
8
- zOrder: (target: Node | Node[], type: ZOrderType) => void;
8
+ zOrder: (type: ZOrderType, target?: Node | Node[]) => void;
9
9
  bringForward: (target?: Node) => void;
10
10
  sendBackward: (target?: Node) => void;
11
11
  bringToFront: (target?: Node | Node[]) => void;
@@ -3,7 +3,6 @@ declare global {
3
3
  namespace Mce {
4
4
  interface Editor {
5
5
  snapThreshold: ComputedRef<number>;
6
- snapLines: ComputedRef<Record<string, any>[]>;
7
6
  getSnapPoints: (resizing?: boolean) => {
8
7
  x: number[];
9
8
  y: number[];
@@ -1,8 +1,10 @@
1
+ import type { Element2D } from 'modern-canvas';
1
2
  declare global {
2
3
  namespace Mce {
3
- interface Editor {
4
+ interface Commands {
5
+ setSmartSelectionCurrentElement: (element?: Element2D) => void;
4
6
  }
5
7
  }
6
8
  }
7
- declare const _default: import("..").Plugin;
9
+ declare const _default: import("../plugin").Plugin;
8
10
  export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mce",
3
3
  "type": "module",
4
- "version": "0.15.32",
4
+ "version": "0.15.33",
5
5
  "description": "The headless canvas editor framework. only the ESM.",
6
6
  "author": "wxm",
7
7
  "license": "MIT",