New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ajmaln/react-timeline-editor

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ajmaln/react-timeline-editor - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

dist/components/edit_area/hooks/use_hover_ghost.d.ts

3

dist/components/cursor/cursor.d.ts

@@ -20,3 +20,6 @@ import React, { FC } from 'react';

scrollSync: React.MutableRefObject<ScrollSync>;
/** Internal */
onCursorMoveStart?: () => void;
onCursorMoveEnd?: () => void;
};
export declare const Cursor: FC<CursorProps>;

@@ -15,3 +15,5 @@ import React, { FC } from 'react';

deltaScrollLeft?: (delta: number) => void;
onActionDragStart?: () => void;
onActionDragEnd?: () => void;
};
export declare const EditAction: FC<EditActionProps>;

@@ -11,2 +11,4 @@ import React from 'react';

scrollTop: number;
/** 编辑器数据 */
isCursorDragging: boolean;
/** 滚动回调,用于同步滚动 */

@@ -28,2 +30,4 @@ onScroll: (params: OnScrollParams) => void;

scrollTop: number;
/** 编辑器数据 */
isCursorDragging: boolean;
/** 滚动回调,用于同步滚动 */

@@ -30,0 +34,0 @@ onScroll: (params: OnScrollParams) => void;

@@ -9,2 +9,5 @@ import React, { FC } from 'react';

rowData?: TimelineRow;
isLastRow: boolean;
isCursorDragging: boolean;
rowIndex: number;
style?: React.CSSProperties;

@@ -11,0 +14,0 @@ dragLineData: DragLineData;

@@ -83,2 +83,6 @@ import React, { ReactNode } from 'react';

/**
* @description 自定义ghost渲染
*/
getGhostRender?: (row: TimelineRow) => ReactNode;
/**
* @description 自定义scale渲染

@@ -148,2 +152,10 @@ */

/**
* @description 点击行回调
*/
onGhostClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>, param: {
row: TimelineRow;
start: number;
end: number;
}) => void;
/**
* @description 点击动作回调

@@ -224,2 +236,4 @@ */

listener: Emitter<EventTypes>;
/** 运行器是否正在播放 */
engine: ITimelineEngine;
/** 是否正在播放 */

@@ -230,3 +244,6 @@ isPlaying: boolean;

/** 设置当前播放时间 */
setTime: (time: number) => void;
setTime: (time: number, params?: {
left?: number;
updateTime?: boolean;
}) => void;
/** 获取当前播放时间 */

@@ -233,0 +250,0 @@ getTime: () => number;

3

package.json
{
"name": "@ajmaln/react-timeline-editor",
"version": "0.2.1",
"version": "0.2.2",
"author": "xzdarcy",

@@ -40,2 +40,3 @@ "license": "MIT",

"dependencies": {
"@floating-ui/react": "^0.26.14",
"@interactjs/types": "^1.10.11",

@@ -42,0 +43,0 @@ "@types/react-virtualized": "^9.21.14",

# React Timeline Editor
[![npm version](https://img.shields.io/npm/v/@xzdarcy/react-timeline-editor.svg?style=flat-square)](https://www.npmjs.com/package/@xzdarcy/react-timeline-editor)
[![npm downloads](https://img.shields.io/npm/dm/@xzdarcy/react-timeline-editor.svg?style=flat-square)](https://www.npmjs.com/package/@xzdarcy/react-timeline-editor)
[![npm version](https://img.shields.io/npm/v/@ajmaln/react-timeline-editor.svg?style=flat-square)](https://www.npmjs.com/package/@ajmaln/react-timeline-editor)
[![npm downloads](https://img.shields.io/npm/dm/@ajmaln/react-timeline-editor.svg?style=flat-square)](https://www.npmjs.com/package/@ajmaln/react-timeline-editor)

@@ -11,7 +11,7 @@ **[React Timeline Editor](https://zdarcy.com/)** is a react component used to quickly build a timeline animation editor.

```bash
npm install @xzdarcy/react-timeline-editor
npm install @ajmaln/react-timeline-editor
```
```ts
import { Timeline, TimelineEffect, TimelineRow } from '@xzdarcy/react-timeline-editor';
import { Timeline, TimelineEffect, TimelineRow } from '@ajmaln/react-timeline-editor';
import React from 'react';

@@ -18,0 +18,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc