mce 0.15.31 → 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.
- package/dist/components/Floatbar.vue.d.ts +1 -1
- package/dist/components/Selector.vue.d.ts +6 -0
- package/dist/components/SmartGuides.vue.d.ts +4 -1
- package/dist/components/SmartSelection.vue.d.ts +3 -0
- package/dist/components/shared/Dialog.vue.d.ts +1 -1
- package/dist/components/shared/Menu.vue.d.ts +1 -1
- package/dist/components/shared/Overlay.vue.d.ts +1 -1
- package/dist/components/shared/Tooltip.vue.d.ts +1 -1
- package/dist/components/shared/TransformControls.vue.d.ts +1 -0
- package/dist/composables/overlay.d.ts +2 -2
- package/dist/index.css +125 -80
- package/dist/index.js +2349 -2082
- package/dist/locale/en.d.ts +9 -5
- package/dist/locale/zh-Hans.d.ts +8 -4
- package/dist/plugins/arrange.d.ts +24 -2
- package/dist/plugins/selection.d.ts +24 -9
- package/dist/plugins/smartGuides.d.ts +0 -1
- package/dist/plugins/smartSelection.d.ts +4 -2
- package/dist/plugins/transform.d.ts +2 -0
- package/dist/typed-plugins.d.ts +0 -3
- package/package.json +1 -1
- package/dist/plugins/group.d.ts +0 -16
- package/dist/plugins/lock.d.ts +0 -14
- package/dist/plugins/visibility.d.ts +0 -14
package/dist/locale/en.d.ts
CHANGED
|
@@ -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;
|
|
@@ -57,7 +58,8 @@ declare const _default: {
|
|
|
57
58
|
duplicate: string;
|
|
58
59
|
delete: string;
|
|
59
60
|
selectAll: string;
|
|
60
|
-
|
|
61
|
+
selectInverse: string;
|
|
62
|
+
selectNone: string;
|
|
61
63
|
selectChildren: string;
|
|
62
64
|
selectParent: string;
|
|
63
65
|
selectPreviousSibling: string;
|
|
@@ -90,12 +92,12 @@ declare const _default: {
|
|
|
90
92
|
object: string;
|
|
91
93
|
groupSelection: string;
|
|
92
94
|
frameSelection: string;
|
|
93
|
-
|
|
95
|
+
ungroupSelection: string;
|
|
94
96
|
flip: string;
|
|
95
97
|
flipHorizontal: string;
|
|
96
98
|
flipVertical: string;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
+
showOrHideSelection: string;
|
|
100
|
+
lockOrUnlockSelection: string;
|
|
99
101
|
layerOrder: string;
|
|
100
102
|
bringToFront: string;
|
|
101
103
|
bringForward: string;
|
|
@@ -108,6 +110,8 @@ declare const _default: {
|
|
|
108
110
|
alignTop: string;
|
|
109
111
|
alignVerticalCenter: string;
|
|
110
112
|
alignBottom: string;
|
|
111
|
-
|
|
113
|
+
distributeHorizontalSpacing: string;
|
|
114
|
+
distributeVerticalSpacing: string;
|
|
115
|
+
tidyUp: string;
|
|
112
116
|
};
|
|
113
117
|
export default _default;
|
package/dist/locale/zh-Hans.d.ts
CHANGED
|
@@ -58,7 +58,8 @@ declare const _default: {
|
|
|
58
58
|
duplicate: string;
|
|
59
59
|
delete: string;
|
|
60
60
|
selectAll: string;
|
|
61
|
-
|
|
61
|
+
selectInverse: string;
|
|
62
|
+
selectNone: string;
|
|
62
63
|
selectChildren: string;
|
|
63
64
|
selectParent: string;
|
|
64
65
|
selectPreviousSibling: string;
|
|
@@ -91,12 +92,12 @@ declare const _default: {
|
|
|
91
92
|
object: string;
|
|
92
93
|
groupSelection: string;
|
|
93
94
|
frameSelection: string;
|
|
94
|
-
|
|
95
|
+
ungroupSelection: string;
|
|
95
96
|
flip: string;
|
|
96
97
|
flipHorizontal: string;
|
|
97
98
|
flipVertical: string;
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
showOrHideSelection: string;
|
|
100
|
+
lockOrUnlockSelection: string;
|
|
100
101
|
layerOrder: string;
|
|
101
102
|
bringToFront: string;
|
|
102
103
|
bringForward: string;
|
|
@@ -109,5 +110,8 @@ declare const _default: {
|
|
|
109
110
|
alignTop: string;
|
|
110
111
|
alignVerticalCenter: string;
|
|
111
112
|
alignBottom: string;
|
|
113
|
+
distributeHorizontalSpacing: string;
|
|
114
|
+
distributeVerticalSpacing: string;
|
|
115
|
+
tidyUp: string;
|
|
112
116
|
};
|
|
113
117
|
export default _default;
|
|
@@ -1,19 +1,41 @@
|
|
|
1
1
|
import type { Node } from 'modern-canvas';
|
|
2
2
|
declare global {
|
|
3
3
|
namespace Mce {
|
|
4
|
-
type
|
|
4
|
+
type ZOrderType = 'bringForward' | 'sendBackward' | 'bringToFront' | 'sendToBack';
|
|
5
|
+
type AlignDirection = 'left' | 'horizontal-center' | 'right' | 'top' | 'vertical-center' | 'bottom';
|
|
6
|
+
type DistributeSpacingDirection = 'horizontal' | 'vertical';
|
|
5
7
|
interface Commands {
|
|
8
|
+
zOrder: (type: ZOrderType, target?: Node | Node[]) => void;
|
|
6
9
|
bringForward: (target?: Node) => void;
|
|
7
10
|
sendBackward: (target?: Node) => void;
|
|
8
11
|
bringToFront: (target?: Node | Node[]) => void;
|
|
9
12
|
sendToBack: (target?: Node | Node[]) => void;
|
|
10
|
-
align: (direction:
|
|
13
|
+
align: (direction: AlignDirection) => void;
|
|
11
14
|
alignLeft: () => void;
|
|
12
15
|
alignRight: () => void;
|
|
13
16
|
alignTop: () => void;
|
|
14
17
|
alignBottom: () => void;
|
|
15
18
|
alignHorizontalCenter: () => void;
|
|
16
19
|
alignVerticalCenter: () => void;
|
|
20
|
+
distributeSpacing: (direction: DistributeSpacingDirection) => void;
|
|
21
|
+
distributeHorizontalSpacing: () => void;
|
|
22
|
+
distributeVerticalSpacing: () => void;
|
|
23
|
+
tidyUp: () => void;
|
|
24
|
+
}
|
|
25
|
+
interface Hotkeys {
|
|
26
|
+
bringForward: [event: KeyboardEvent];
|
|
27
|
+
sendBackward: [event: KeyboardEvent];
|
|
28
|
+
bringToFront: [event: KeyboardEvent];
|
|
29
|
+
sendToBack: [event: KeyboardEvent];
|
|
30
|
+
alignLeft: [event: KeyboardEvent];
|
|
31
|
+
alignRight: [event: KeyboardEvent];
|
|
32
|
+
alignTop: [event: KeyboardEvent];
|
|
33
|
+
alignBottom: [event: KeyboardEvent];
|
|
34
|
+
alignHorizontalCenter: [event: KeyboardEvent];
|
|
35
|
+
alignVerticalCenter: [event: KeyboardEvent];
|
|
36
|
+
distributeHorizontalSpacing: [event: KeyboardEvent];
|
|
37
|
+
distributeVerticalSpacing: [event: KeyboardEvent];
|
|
38
|
+
tidyUp: [event: KeyboardEvent];
|
|
17
39
|
}
|
|
18
40
|
}
|
|
19
41
|
}
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
+
import type { Node } from 'modern-canvas';
|
|
1
2
|
declare global {
|
|
2
3
|
namespace Mce {
|
|
3
|
-
|
|
4
|
-
selectAll: [event: KeyboardEvent];
|
|
5
|
-
deselectAll: [event: KeyboardEvent];
|
|
6
|
-
selectChildren: [event: KeyboardEvent];
|
|
7
|
-
selectParent: [event: KeyboardEvent];
|
|
8
|
-
selectPreviousSibling: [event: KeyboardEvent];
|
|
9
|
-
selectNextSibling: [event: KeyboardEvent];
|
|
10
|
-
}
|
|
4
|
+
type SelectTarget = 'none' | 'all' | 'inverse' | 'children' | 'parent' | 'previousSibling' | 'nextSibling' | Node[];
|
|
11
5
|
interface Commands {
|
|
6
|
+
select: (target: SelectTarget) => void;
|
|
12
7
|
selectAll: () => void;
|
|
13
|
-
|
|
8
|
+
selectInverse: () => void;
|
|
9
|
+
selectNone: () => void;
|
|
14
10
|
selectChildren: () => void;
|
|
15
11
|
selectParent: () => void;
|
|
16
12
|
selectPreviousSibling: () => void;
|
|
17
13
|
selectNextSibling: () => void;
|
|
14
|
+
groupSelection: () => void;
|
|
15
|
+
ungroupSelection: () => void;
|
|
16
|
+
frameSelection: () => void;
|
|
17
|
+
showOrHideSelection: (target?: 'show' | 'hide') => void;
|
|
18
|
+
lockOrUnlockSelection: (target?: 'lock' | 'unlock') => void;
|
|
19
|
+
}
|
|
20
|
+
interface Hotkeys {
|
|
21
|
+
selectAll: [event: KeyboardEvent];
|
|
22
|
+
selectInverse: [event: KeyboardEvent];
|
|
23
|
+
selectNone: [event: KeyboardEvent];
|
|
24
|
+
selectChildren: [event: KeyboardEvent];
|
|
25
|
+
selectParent: [event: KeyboardEvent];
|
|
26
|
+
selectPreviousSibling: [event: KeyboardEvent];
|
|
27
|
+
selectNextSibling: [event: KeyboardEvent];
|
|
28
|
+
groupSelection: [event: KeyboardEvent];
|
|
29
|
+
ungroupSelection: [event: KeyboardEvent];
|
|
30
|
+
frameSelection: [event: KeyboardEvent];
|
|
31
|
+
showOrHideSelection: [event: KeyboardEvent];
|
|
32
|
+
lockOrUnlockSelection: [event: KeyboardEvent];
|
|
18
33
|
}
|
|
19
34
|
}
|
|
20
35
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { Element2D } from 'modern-canvas';
|
|
1
2
|
declare global {
|
|
2
3
|
namespace Mce {
|
|
3
|
-
interface
|
|
4
|
+
interface Commands {
|
|
5
|
+
setSmartSelectionCurrentElement: (element?: Element2D) => void;
|
|
4
6
|
}
|
|
5
7
|
}
|
|
6
8
|
}
|
|
7
|
-
declare const _default: import("
|
|
9
|
+
declare const _default: import("../plugin").Plugin;
|
|
8
10
|
export default _default;
|
package/dist/typed-plugins.d.ts
CHANGED
|
@@ -34,7 +34,6 @@ import './plugins/drawingTool'
|
|
|
34
34
|
import './plugins/edit'
|
|
35
35
|
import './plugins/frame'
|
|
36
36
|
import './plugins/gif'
|
|
37
|
-
import './plugins/group'
|
|
38
37
|
import './plugins/history'
|
|
39
38
|
import './plugins/hover'
|
|
40
39
|
import './plugins/html'
|
|
@@ -42,7 +41,6 @@ import './plugins/image'
|
|
|
42
41
|
import './plugins/import'
|
|
43
42
|
import './plugins/json'
|
|
44
43
|
import './plugins/layers'
|
|
45
|
-
import './plugins/lock'
|
|
46
44
|
import './plugins/madeWith'
|
|
47
45
|
import './plugins/menu'
|
|
48
46
|
import './plugins/move'
|
|
@@ -69,7 +67,6 @@ import './plugins/transform'
|
|
|
69
67
|
import './plugins/ui'
|
|
70
68
|
import './plugins/url'
|
|
71
69
|
import './plugins/view'
|
|
72
|
-
import './plugins/visibility'
|
|
73
70
|
import './plugins/zoom'
|
|
74
71
|
|
|
75
72
|
export {}
|
package/package.json
CHANGED
package/dist/plugins/group.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Mce {
|
|
3
|
-
interface Commands {
|
|
4
|
-
groupSelection: () => void;
|
|
5
|
-
frameSelection: () => void;
|
|
6
|
-
ungroup: () => void;
|
|
7
|
-
}
|
|
8
|
-
interface Hotkeys {
|
|
9
|
-
groupSelection: [event: KeyboardEvent];
|
|
10
|
-
frameSelection: [event: KeyboardEvent];
|
|
11
|
-
ungroup: [event: KeyboardEvent];
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
declare const _default: import("..").Plugin;
|
|
16
|
-
export default _default;
|
package/dist/plugins/lock.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Mce {
|
|
3
|
-
interface Commands {
|
|
4
|
-
'lock': () => void;
|
|
5
|
-
'unlock': () => void;
|
|
6
|
-
'lock/unlock': () => void;
|
|
7
|
-
}
|
|
8
|
-
interface Hotkeys {
|
|
9
|
-
'lock/unlock': [event: KeyboardEvent];
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
declare const _default: import("..").Plugin;
|
|
14
|
-
export default _default;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Mce {
|
|
3
|
-
interface Commands {
|
|
4
|
-
'hide': () => void;
|
|
5
|
-
'show': () => void;
|
|
6
|
-
'hide/show': () => void;
|
|
7
|
-
}
|
|
8
|
-
interface Hotkeys {
|
|
9
|
-
'hide/show': [event: KeyboardEvent];
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
declare const _default: import("..").Plugin;
|
|
14
|
-
export default _default;
|