mce 0.18.4 → 0.18.5

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.
@@ -10,38 +10,16 @@ type __VLS_Slots = Slots & {
10
10
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
11
11
  editor: typeof Editor;
12
12
  resizeStrategy: import("vue").PropType<import("../composables").ResizeStrategy>;
13
- activeStrategy: {
14
- type: import("vue").PropType<import("../composables").ActiveStrategy>;
15
- default: import("../composables").ActiveStrategy;
16
- };
17
- doubleclickStrategy: {
18
- type: import("vue").PropType<import("../composables").DoubleclickStrategy>;
19
- default: import("../composables").DoubleclickStrategy;
20
- };
21
- hoverStrategy: {
22
- type: import("vue").PropType<import("../composables").HoverStrategy>;
23
- default: import("../composables").HoverStrategy;
24
- };
13
+ activeStrategy: import("vue").PropType<import("../composables").ActiveStrategy>;
14
+ doubleclickStrategy: import("vue").PropType<import("../composables").DoubleclickStrategy>;
15
+ hoverStrategy: import("vue").PropType<import("../composables").HoverStrategy>;
25
16
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
17
  editor: typeof Editor;
27
18
  resizeStrategy: import("vue").PropType<import("../composables").ResizeStrategy>;
28
- activeStrategy: {
29
- type: import("vue").PropType<import("../composables").ActiveStrategy>;
30
- default: import("../composables").ActiveStrategy;
31
- };
32
- doubleclickStrategy: {
33
- type: import("vue").PropType<import("../composables").DoubleclickStrategy>;
34
- default: import("../composables").DoubleclickStrategy;
35
- };
36
- hoverStrategy: {
37
- type: import("vue").PropType<import("../composables").HoverStrategy>;
38
- default: import("../composables").HoverStrategy;
39
- };
40
- }>> & Readonly<{}>, {
41
- activeStrategy: import("../composables").ActiveStrategy;
42
- doubleclickStrategy: import("../composables").DoubleclickStrategy;
43
- hoverStrategy: import("../composables").HoverStrategy;
44
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
19
+ activeStrategy: import("vue").PropType<import("../composables").ActiveStrategy>;
20
+ doubleclickStrategy: import("vue").PropType<import("../composables").DoubleclickStrategy>;
21
+ hoverStrategy: import("vue").PropType<import("../composables").HoverStrategy>;
22
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
45
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
46
24
  declare const _default: typeof __VLS_export;
47
25
  export default _default;
@@ -100,8 +100,8 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
100
100
  movable: boolean;
101
101
  rotatable: boolean;
102
102
  resizable: boolean;
103
- tag: string | any;
104
103
  resizeStrategy: "free" | "lockAspectRatio";
104
+ tag: string | any;
105
105
  lockAspectRatioStrategy: "all" | "diagonal";
106
106
  handleShape: "rect" | "circle";
107
107
  handles: ("move" | "resize-b" | "resize-r" | "resize-l" | "resize-t" | "resize-br" | "resize-tr" | "resize-tl" | "resize-bl" | "rotate-br" | "rotate-tr" | "rotate-tl" | "rotate-bl" | "round-br" | "round-tr" | "round-tl" | "round-bl")[];
@@ -133,8 +133,8 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
133
133
  movable: boolean;
134
134
  rotatable: boolean;
135
135
  resizable: boolean;
136
- tag: string | any;
137
136
  resizeStrategy: "free" | "lockAspectRatio";
137
+ tag: string | any;
138
138
  lockAspectRatioStrategy: "all" | "diagonal";
139
139
  handleShape: "rect" | "circle";
140
140
  handles: ("move" | "resize-b" | "resize-r" | "resize-l" | "resize-t" | "resize-br" | "resize-tr" | "resize-tl" | "resize-bl" | "rotate-br" | "rotate-tr" | "rotate-tl" | "rotate-bl" | "round-br" | "round-tr" | "round-tl" | "round-bl")[];
@@ -166,7 +166,7 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
166
166
  onStart?: ((context: Mce.TransformContext) => any) | undefined;
167
167
  onEnd?: ((context: Mce.TransformContext) => any) | undefined;
168
168
  "onUpdate:modelValue"?: ((value: Partial<Mce.TransformValue> | undefined) => any) | undefined;
169
- }>, "transforming" | "start" | "activeHandle" | ("offset" | "scale" | "threshold" | "ui" | "movable" | "rotatable" | "resizable" | "tag" | "resizeStrategy" | "lockAspectRatioStrategy" | "handleShape" | "handles")> & {
169
+ }>, "transforming" | "start" | "activeHandle" | ("offset" | "scale" | "threshold" | "ui" | "movable" | "rotatable" | "resizable" | "resizeStrategy" | "tag" | "lockAspectRatioStrategy" | "handleShape" | "handles")> & {
170
170
  start: (event?: MouseEvent, index?: number) => boolean;
171
171
  activeHandle: ("move" | "resize-b" | "resize-r" | "resize-l" | "resize-t" | "resize-br" | "resize-tr" | "resize-tl" | "resize-bl" | "rotate-br" | "rotate-tr" | "rotate-tl" | "rotate-bl" | "round-br" | "round-tr" | "round-tl" | "round-bl") | undefined;
172
172
  transforming: boolean;
@@ -285,8 +285,8 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
285
285
  movable: boolean;
286
286
  rotatable: boolean;
287
287
  resizable: boolean;
288
- tag: string | any;
289
288
  resizeStrategy: "free" | "lockAspectRatio";
289
+ tag: string | any;
290
290
  lockAspectRatioStrategy: "all" | "diagonal";
291
291
  handleShape: "rect" | "circle";
292
292
  handles: ("move" | "resize-b" | "resize-r" | "resize-l" | "resize-t" | "resize-br" | "resize-tr" | "resize-tl" | "resize-bl" | "rotate-br" | "rotate-tr" | "rotate-tl" | "rotate-bl" | "round-br" | "round-tr" | "round-tl" | "round-bl")[];
@@ -318,8 +318,8 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
318
318
  movable: boolean;
319
319
  rotatable: boolean;
320
320
  resizable: boolean;
321
- tag: string | any;
322
321
  resizeStrategy: "free" | "lockAspectRatio";
322
+ tag: string | any;
323
323
  lockAspectRatioStrategy: "all" | "diagonal";
324
324
  handleShape: "rect" | "circle";
325
325
  handles: ("move" | "resize-b" | "resize-r" | "resize-l" | "resize-t" | "resize-br" | "resize-tr" | "resize-tl" | "resize-bl" | "rotate-br" | "rotate-tr" | "rotate-tl" | "rotate-bl" | "round-br" | "round-tr" | "round-tl" | "round-bl")[];
@@ -351,7 +351,7 @@ declare const __VLS_base: import("vue").DefineComponent<{}, {
351
351
  onStart?: ((context: Mce.TransformContext) => any) | undefined;
352
352
  onEnd?: ((context: Mce.TransformContext) => any) | undefined;
353
353
  "onUpdate:modelValue"?: ((value: Partial<Mce.TransformValue> | undefined) => any) | undefined;
354
- }>, "transforming" | "start" | "activeHandle" | ("offset" | "scale" | "threshold" | "ui" | "movable" | "rotatable" | "resizable" | "tag" | "resizeStrategy" | "lockAspectRatioStrategy" | "handleShape" | "handles")> & {
354
+ }>, "transforming" | "start" | "activeHandle" | ("offset" | "scale" | "threshold" | "ui" | "movable" | "rotatable" | "resizable" | "resizeStrategy" | "tag" | "lockAspectRatioStrategy" | "handleShape" | "handles")> & {
355
355
  start: (event?: MouseEvent, index?: number) => boolean;
356
356
  activeHandle: ("move" | "resize-b" | "resize-r" | "resize-l" | "resize-t" | "resize-br" | "resize-tr" | "resize-tl" | "resize-bl" | "rotate-br" | "rotate-tr" | "rotate-tl" | "rotate-bl" | "round-br" | "round-tr" | "round-tl" | "round-bl") | undefined;
357
357
  transforming: boolean;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -76,8 +76,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
76
76
  movable: boolean;
77
77
  rotatable: boolean;
78
78
  resizable: boolean;
79
- tag: string | any;
80
79
  resizeStrategy: "free" | "lockAspectRatio";
80
+ tag: string | any;
81
81
  lockAspectRatioStrategy: "all" | "diagonal";
82
82
  handleShape: "rect" | "circle";
83
83
  handles: Handle[];
@@ -15,6 +15,7 @@ export interface IconAliases {
15
15
  mouseLeftClick: IconValue;
16
16
  mouseRightClick: IconValue;
17
17
  check: IconValue;
18
+ plus: IconValue;
18
19
  collapse: IconValue;
19
20
  frame: IconValue;
20
21
  group: IconValue;
package/dist/index.css CHANGED
@@ -1458,6 +1458,81 @@
1458
1458
  .m-text-editor__editor {
1459
1459
  pointer-events: auto !important;
1460
1460
  cursor: move;
1461
+ }.m-workflow {
1462
+ position: absolute;
1463
+ inset: 0;
1464
+ pointer-events: none;
1465
+ z-index: 2;
1466
+ }
1467
+ .m-workflow__preview {
1468
+ position: absolute;
1469
+ inset: 0;
1470
+ width: 100%;
1471
+ height: 100%;
1472
+ overflow: visible;
1473
+ pointer-events: none;
1474
+ }
1475
+ .m-workflow__preview path {
1476
+ fill: none;
1477
+ stroke: rgb(var(--m-theme-primary, 30 200 230));
1478
+ stroke-width: 2;
1479
+ stroke-linecap: round;
1480
+ }
1481
+ .m-workflow__port {
1482
+ position: absolute;
1483
+ display: flex;
1484
+ align-items: center;
1485
+ justify-content: center;
1486
+ width: 18px;
1487
+ height: 18px;
1488
+ margin: -9px 0 0 -9px;
1489
+ border-radius: 50%;
1490
+ background: rgb(var(--m-theme-primary, 30 200 230));
1491
+ color: #fff;
1492
+ font-size: 12px;
1493
+ cursor: crosshair;
1494
+ pointer-events: auto;
1495
+ user-select: none;
1496
+ box-shadow: 0 0 0 2px #fff;
1497
+ }
1498
+ .m-workflow__backdrop {
1499
+ position: fixed;
1500
+ inset: 0;
1501
+ pointer-events: auto;
1502
+ }
1503
+ .m-workflow__menu {
1504
+ position: absolute;
1505
+ min-width: 200px;
1506
+ padding: 6px;
1507
+ background: #fff;
1508
+ border-radius: 12px;
1509
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
1510
+ pointer-events: auto;
1511
+ }
1512
+ .m-workflow__menu-title {
1513
+ padding: 6px 10px;
1514
+ font-size: 12px;
1515
+ color: #9ca3af;
1516
+ }
1517
+ .m-workflow__menu-item {
1518
+ display: flex;
1519
+ align-items: center;
1520
+ justify-content: space-between;
1521
+ width: 100%;
1522
+ padding: 8px 10px;
1523
+ border: 0;
1524
+ border-radius: 8px;
1525
+ background: transparent;
1526
+ font-size: 14px;
1527
+ color: #1f2937;
1528
+ cursor: pointer;
1529
+ }
1530
+ .m-workflow__menu-item:hover {
1531
+ background: #f3f4f6;
1532
+ }
1533
+ .m-workflow__menu-kbd {
1534
+ font-size: 12px;
1535
+ color: #9ca3af;
1461
1536
  }.m-floatbar .m-overlay-content {
1462
1537
  overflow: visible;
1463
1538
  }.m-float-panel {
package/dist/index.d.ts CHANGED
@@ -18,5 +18,6 @@ export * from './plugin';
18
18
  export * from './plugins';
19
19
  export * from './scene';
20
20
  export * from './types';
21
+ export * from './utils/create';
21
22
  export type { Camera2D, Element2D, Engine } from 'modern-canvas';
22
23
  export type { Document, Element, NormalizedElement } from 'modern-idoc';