amis-editor-core 6.13.0-beta.0 → 6.13.0-beta.3
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/esm/component/SchemaRenderer.d.ts +2 -0
- package/esm/dnd/autoScroll.d.ts +11 -0
- package/esm/dnd/default.d.ts +2 -0
- package/esm/dnd/flex.d.ts +2 -0
- package/esm/dnd/position-h.d.ts +2 -0
- package/esm/index.js +2 -2
- package/esm/store/editor.d.ts +2 -28
- package/esm/variable.d.ts +1 -1
- package/lib/component/SchemaRenderer.d.ts +2 -0
- package/lib/dnd/autoScroll.d.ts +11 -0
- package/lib/dnd/default.d.ts +3 -1
- package/lib/dnd/flex.d.ts +3 -1
- package/lib/dnd/position-h.d.ts +2 -0
- package/lib/editor.js +1 -1
- package/lib/index.js +2 -2
- package/lib/store/editor.d.ts +2 -28
- package/lib/variable.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface AutoScrollOptions {
|
|
2
|
+
/** 滚动容器,默认为 document.documentElement */
|
|
3
|
+
container?: HTMLElement;
|
|
4
|
+
}
|
|
5
|
+
export declare function getScrollableParent(element: HTMLElement, iframe?: HTMLElement): HTMLElement;
|
|
6
|
+
export declare class AutoScroll {
|
|
7
|
+
options: AutoScrollOptions;
|
|
8
|
+
time: number;
|
|
9
|
+
constructor(options?: AutoScrollOptions);
|
|
10
|
+
checkScroll(e: MouseEvent | DragEvent): void;
|
|
11
|
+
}
|
package/esm/dnd/default.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EditorDNDManager } from './index';
|
|
2
2
|
import { EditorNodeType } from '../store/node';
|
|
3
3
|
import { DNDModeInterface } from './interface';
|
|
4
|
+
import { AutoScroll } from './autoScroll';
|
|
4
5
|
export declare class DefaultDNDMode implements DNDModeInterface {
|
|
5
6
|
readonly dnd: EditorDNDManager;
|
|
6
7
|
readonly region: EditorNodeType;
|
|
@@ -8,6 +9,7 @@ export declare class DefaultDNDMode implements DNDModeInterface {
|
|
|
8
9
|
readonly relativeContainer: HTMLElement;
|
|
9
10
|
dropOn?: string;
|
|
10
11
|
dropPosition?: 'top' | 'bottom' | 'left' | 'right' | 'center' | 'middle';
|
|
12
|
+
autoScroll?: AutoScroll;
|
|
11
13
|
constructor(dnd: EditorDNDManager, region: EditorNodeType);
|
|
12
14
|
layoutInfo: LayoutInfo | null;
|
|
13
15
|
/**
|
package/esm/dnd/flex.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EditorDNDManager } from '.';
|
|
2
2
|
import { EditorNodeType } from '../store/node';
|
|
3
3
|
import { DNDModeInterface } from './interface';
|
|
4
|
+
import { AutoScroll } from './autoScroll';
|
|
4
5
|
export declare class FlexDNDMode implements DNDModeInterface {
|
|
5
6
|
readonly dnd: EditorDNDManager;
|
|
6
7
|
readonly region: EditorNodeType;
|
|
@@ -11,6 +12,7 @@ export declare class FlexDNDMode implements DNDModeInterface {
|
|
|
11
12
|
dragNode?: any;
|
|
12
13
|
dragId: string;
|
|
13
14
|
store: any;
|
|
15
|
+
autoScroll?: AutoScroll;
|
|
14
16
|
constructor(dnd: EditorDNDManager, region: EditorNodeType, config: any);
|
|
15
17
|
/**
|
|
16
18
|
* 首次拖入,把 ghost 插入进来。让用户有个直观感受。
|
package/esm/dnd/position-h.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { DNDModeInterface } from './interface';
|
|
2
2
|
import { EditorNodeType } from '../store/node';
|
|
3
3
|
import { EditorDNDManager } from './index';
|
|
4
|
+
import { AutoScroll } from './autoScroll';
|
|
4
5
|
export declare class PositionHDNDMode implements DNDModeInterface {
|
|
5
6
|
readonly dnd: EditorDNDManager;
|
|
6
7
|
readonly region: EditorNodeType;
|
|
7
8
|
readonly dndContainer: HTMLElement;
|
|
8
9
|
dropBeforeId?: string;
|
|
10
|
+
autoScroll?: AutoScroll;
|
|
9
11
|
constructor(dnd: EditorDNDManager, region: EditorNodeType);
|
|
10
12
|
enter(e: DragEvent, ghost: HTMLElement): void;
|
|
11
13
|
leave(e: DragEvent, ghost: HTMLElement): void;
|