sense-react-timeline-editor 1.1.18 → 1.1.19

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.
@@ -22,13 +22,7 @@ export interface MultiDragState {
22
22
  /** 拖拽的主 action ID */
23
23
  primaryActionId?: string | null;
24
24
  /** 所有选中 action 的初始位置信息 */
25
- initialPositions: Map<string, {
26
- rowId: string;
27
- start: number;
28
- end: number;
29
- left: number;
30
- width: number;
31
- }>;
25
+ initialPositions: Map<string, StoredActionPosition>;
32
26
  /** 当前拖拽的偏移量 */
33
27
  dragOffset: {
34
28
  dx: number;
@@ -51,8 +45,16 @@ export interface MultiDragState {
51
45
  start: number;
52
46
  end: number;
53
47
  }
48
+ declare type StoredActionPosition = {
49
+ rowId: string;
50
+ rowIndex: number;
51
+ start: number;
52
+ end: number;
53
+ left: number;
54
+ width: number;
55
+ };
54
56
  export declare const useRowDrag: (options: UseRowDragOptions) => {
55
- onDragStart: ({ action, row }: {
57
+ onDragStart: ({ action }: {
56
58
  action: TimelineAction;
57
59
  row: TimelineRow;
58
60
  }) => void;
@@ -79,6 +81,8 @@ export declare const useRowDrag: (options: UseRowDragOptions) => {
79
81
  dx?: number;
80
82
  dy?: number;
81
83
  up: number;
84
+ action?: TimelineAction;
85
+ row?: TimelineRow;
82
86
  }) => void;
83
87
  getPreviewPosition: (actionId: string) => {
84
88
  left: number;
@@ -88,3 +92,4 @@ export declare const useRowDrag: (options: UseRowDragOptions) => {
88
92
  getMultiDragState: () => MultiDragState;
89
93
  isMultiDrag: boolean;
90
94
  };
95
+ export {};