@tmagic/stage 1.3.0-alpha.2 → 1.3.0-alpha.21
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/tmagic-stage.js +91 -78
- package/dist/tmagic-stage.js.map +1 -1
- package/dist/tmagic-stage.umd.cjs +91 -78
- package/dist/tmagic-stage.umd.cjs.map +1 -1
- package/package.json +8 -8
- package/src/ActionManager.ts +18 -4
- package/src/MoveableActionsAble.ts +36 -54
- package/src/MoveableOptionsManager.ts +11 -5
- package/src/StageCore.ts +12 -3
- package/src/StageDragResize.ts +2 -2
- package/src/StageHighlight.ts +18 -11
- package/src/StageMultiDragResize.ts +2 -2
- package/src/moveable-able.css +108 -0
- package/src/types.ts +5 -3
- package/types/ActionManager.d.ts +3 -1
- package/types/MoveableActionsAble.d.ts +2 -4
- package/types/MoveableOptionsManager.d.ts +2 -0
- package/types/StageCore.d.ts +5 -2
- package/types/StageHighlight.d.ts +1 -1
- package/types/types.d.ts +5 -3
package/types/types.d.ts
CHANGED
|
@@ -38,7 +38,6 @@ export interface StageCoreConfig {
|
|
|
38
38
|
containerHighlightDuration?: number;
|
|
39
39
|
containerHighlightType?: ContainerHighlightType;
|
|
40
40
|
moveableOptions?: CustomizeMoveableOptions;
|
|
41
|
-
multiMoveableOptions?: CustomizeMoveableOptions;
|
|
42
41
|
/** runtime 的HTML地址,可以是一个HTTP地址,如果和编辑器不同域,需要设置跨域,也可以是一个相对或绝对路径 */
|
|
43
42
|
runtimeUrl?: string;
|
|
44
43
|
render?: (renderer: StageCore) => Promise<HTMLElement> | HTMLElement;
|
|
@@ -52,7 +51,6 @@ export interface ActionManagerConfig {
|
|
|
52
51
|
containerHighlightDuration?: number;
|
|
53
52
|
containerHighlightType?: ContainerHighlightType;
|
|
54
53
|
moveableOptions?: CustomizeMoveableOptions;
|
|
55
|
-
multiMoveableOptions?: CustomizeMoveableOptions;
|
|
56
54
|
disabledDragStart?: boolean;
|
|
57
55
|
canSelect?: CanSelect;
|
|
58
56
|
isContainer: IsContainer;
|
|
@@ -68,7 +66,11 @@ export interface MoveableOptionsManagerConfig {
|
|
|
68
66
|
getRootContainer: GetRootContainer;
|
|
69
67
|
}
|
|
70
68
|
export interface CustomizeMoveableOptionsCallbackConfig {
|
|
69
|
+
targetEl?: HTMLElement;
|
|
71
70
|
targetElId?: string;
|
|
71
|
+
targetEls?: HTMLElement[];
|
|
72
|
+
targetElIds?: string[];
|
|
73
|
+
isMulti: boolean;
|
|
72
74
|
}
|
|
73
75
|
export interface StageRenderConfig {
|
|
74
76
|
runtimeUrl?: string;
|
|
@@ -91,7 +93,7 @@ export interface StageDragResizeConfig {
|
|
|
91
93
|
export interface StageMultiDragResizeConfig {
|
|
92
94
|
container: HTMLElement;
|
|
93
95
|
dragResizeHelper: DragResizeHelper;
|
|
94
|
-
|
|
96
|
+
moveableOptions?: CustomizeMoveableOptions;
|
|
95
97
|
getRootContainer: GetRootContainer;
|
|
96
98
|
getRenderDocument: GetRenderDocument;
|
|
97
99
|
markContainerEnd: MarkContainerEnd;
|