sense-react-timeline-editor 1.1.15 → 1.1.18
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/edit_area/edit_action.d.ts +29 -4
- package/dist/components/edit_area/edit_row.d.ts +29 -4
- package/dist/index.esm.js +453 -389
- package/dist/index.js +453 -389
- package/package.json +1 -1
|
@@ -7,6 +7,13 @@ export declare type EditActionProps = CommonProp & {
|
|
|
7
7
|
row: TimelineRow;
|
|
8
8
|
action: TimelineAction;
|
|
9
9
|
dragLineData?: DragLineData;
|
|
10
|
+
insertPreview?: {
|
|
11
|
+
actionId: string;
|
|
12
|
+
rowId: string;
|
|
13
|
+
start: number;
|
|
14
|
+
end: number;
|
|
15
|
+
shiftByActionId: Record<string, number>;
|
|
16
|
+
} | null;
|
|
10
17
|
setEditorData: (params: TimelineRow[]) => void;
|
|
11
18
|
handleTime: (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => number;
|
|
12
19
|
areaRef: React.MutableRefObject<HTMLDivElement>;
|
|
@@ -14,10 +21,28 @@ export declare type EditActionProps = CommonProp & {
|
|
|
14
21
|
deltaScrollLeft?: (delta: number) => void;
|
|
15
22
|
/** 允许拖拽创建新轨道 */
|
|
16
23
|
allowCreateTrack?: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
setInsertPreview?: (preview: {
|
|
25
|
+
actionId: string;
|
|
26
|
+
rowId: string;
|
|
27
|
+
start: number;
|
|
28
|
+
end: number;
|
|
29
|
+
shiftByActionId: Record<string, number>;
|
|
30
|
+
} | null) => void;
|
|
31
|
+
trackPreview?: {
|
|
32
|
+
kind: 'row';
|
|
33
|
+
rowId: string;
|
|
34
|
+
} | {
|
|
35
|
+
kind: 'new-row';
|
|
36
|
+
insertIndex: number;
|
|
37
|
+
sourceRow: TimelineRow;
|
|
38
|
+
} | null;
|
|
39
|
+
setTrackPreview?: (preview: {
|
|
40
|
+
kind: 'row';
|
|
41
|
+
rowId: string;
|
|
42
|
+
} | {
|
|
43
|
+
kind: 'new-row';
|
|
44
|
+
insertIndex: number;
|
|
45
|
+
sourceRow: TimelineRow;
|
|
21
46
|
} | null) => void;
|
|
22
47
|
/** time-editor-container的ref引用 */
|
|
23
48
|
containerRef?: React.MutableRefObject<HTMLDivElement>;
|
|
@@ -8,6 +8,13 @@ export declare type EditRowProps = CommonProp & {
|
|
|
8
8
|
rowData?: TimelineRow;
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
10
|
dragLineData?: DragLineData;
|
|
11
|
+
insertPreview?: {
|
|
12
|
+
actionId: string;
|
|
13
|
+
rowId: string;
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
shiftByActionId: Record<string, number>;
|
|
17
|
+
} | null;
|
|
11
18
|
setEditorData: (params: TimelineRow[]) => void;
|
|
12
19
|
/** 距离左侧滚动距离 */
|
|
13
20
|
scrollLeft: number;
|
|
@@ -15,10 +22,28 @@ export declare type EditRowProps = CommonProp & {
|
|
|
15
22
|
deltaScrollLeft: (scrollLeft: number) => void;
|
|
16
23
|
/** 允许拖拽创建新轨道 */
|
|
17
24
|
allowCreateTrack?: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
setInsertPreview?: (preview: {
|
|
26
|
+
actionId: string;
|
|
27
|
+
rowId: string;
|
|
28
|
+
start: number;
|
|
29
|
+
end: number;
|
|
30
|
+
shiftByActionId: Record<string, number>;
|
|
31
|
+
} | null) => void;
|
|
32
|
+
trackPreview?: {
|
|
33
|
+
kind: 'row';
|
|
34
|
+
rowId: string;
|
|
35
|
+
} | {
|
|
36
|
+
kind: 'new-row';
|
|
37
|
+
insertIndex: number;
|
|
38
|
+
sourceRow: TimelineRow;
|
|
39
|
+
} | null;
|
|
40
|
+
setTrackPreview?: (preview: {
|
|
41
|
+
kind: 'row';
|
|
42
|
+
rowId: string;
|
|
43
|
+
} | {
|
|
44
|
+
kind: 'new-row';
|
|
45
|
+
insertIndex: number;
|
|
46
|
+
sourceRow: TimelineRow;
|
|
22
47
|
} | null) => void;
|
|
23
48
|
/** time-editor-container 的 ref 引用 */
|
|
24
49
|
containerRef?: React.MutableRefObject<HTMLDivElement>;
|