@xzdarcy/react-timeline-editor
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -6,3 +6,3 @@ import React, { FC } from 'react'; | ||
/** 动画时间轴组件参数 */ | ||
export declare type CursorProps = CommonProp & { | ||
export type CursorProps = CommonProp & { | ||
/** 距离左侧滚动距离 */ | ||
@@ -9,0 +9,0 @@ scrollLeft: number; |
@@ -8,3 +8,3 @@ import { FC } from "react"; | ||
} | ||
export declare type DragLineProps = DragLineData & { | ||
export type DragLineProps = DragLineData & { | ||
scrollLeft: number; | ||
@@ -11,0 +11,0 @@ }; |
@@ -6,3 +6,3 @@ import React, { FC } from 'react'; | ||
import './edit_action.less'; | ||
export declare type EditActionProps = CommonProp & { | ||
export type EditActionProps = CommonProp & { | ||
row: TimelineRow; | ||
@@ -9,0 +9,0 @@ action: TimelineAction; |
@@ -6,3 +6,3 @@ import React from 'react'; | ||
import './edit_area.less'; | ||
export declare type EditAreaProps = CommonProp & { | ||
export type EditAreaProps = CommonProp & { | ||
/** 距离左侧滚动距离 */ | ||
@@ -9,0 +9,0 @@ scrollLeft: number; |
@@ -6,3 +6,3 @@ import React, { FC } from 'react'; | ||
import './edit_row.less'; | ||
export declare type EditRowProps = CommonProp & { | ||
export type EditRowProps = CommonProp & { | ||
areaRef: React.MutableRefObject<HTMLDivElement>; | ||
@@ -9,0 +9,0 @@ rowData?: TimelineRow; |
/// <reference types="react" /> | ||
declare type EventData = { | ||
type EventData = { | ||
lastLeft: number; | ||
@@ -8,9 +8,9 @@ left: number; | ||
}; | ||
export declare type RndDragStartCallback = () => void; | ||
export declare type RndDragCallback = (data: EventData, scrollDelta?: number) => boolean | void; | ||
export declare type RndDragEndCallback = (data: Pick<EventData, 'left' | 'width'>) => void; | ||
export declare type Direction = "left" | "right"; | ||
export declare type RndResizeStartCallback = (dir: Direction) => void; | ||
export declare type RndResizeCallback = (dir: Direction, data: EventData) => boolean | void; | ||
export declare type RndResizeEndCallback = (dir: Direction, data: Pick<EventData, 'left' | 'width'>) => void; | ||
export type RndDragStartCallback = () => void; | ||
export type RndDragCallback = (data: EventData, scrollDelta?: number) => boolean | void; | ||
export type RndDragEndCallback = (data: Pick<EventData, 'left' | 'width'>) => void; | ||
export type Direction = "left" | "right"; | ||
export type RndResizeStartCallback = (dir: Direction) => void; | ||
export type RndResizeCallback = (dir: Direction, data: EventData) => boolean | void; | ||
export type RndResizeEndCallback = (dir: Direction, data: Pick<EventData, 'left' | 'width'>) => void; | ||
export interface RowRndApi { | ||
@@ -17,0 +17,0 @@ updateWidth: (size: number) => void; |
@@ -6,3 +6,3 @@ import { FC } from 'react'; | ||
/** 动画时间轴组件参数 */ | ||
export declare type TimeAreaProps = CommonProp & { | ||
export type TimeAreaProps = CommonProp & { | ||
/** 左侧滚动距离 */ | ||
@@ -9,0 +9,0 @@ scrollLeft: number; |
{ | ||
"name": "@xzdarcy/react-timeline-editor", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"author": "xzdarcy", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
225528
6406