Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@losting/timeline

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@losting/timeline - npm Package Compare versions

Comparing version 2.1.0-0 to 2.1.0

2

package.json
{
"name": "@losting/timeline",
"version": "2.1.0-0",
"version": "2.1.0",
"description": "canvas timeline",

@@ -5,0 +5,0 @@ "type": "module",

@@ -5,3 +5,3 @@ /*

* @LastEditors: thelostword
* @LastEditTime: 2022-11-14 17:00:56
* @LastEditTime: 2022-11-15 11:25:58
* @FilePath: \timeline\types\timeline.d.ts

@@ -14,18 +14,9 @@ */

};
declare type Area = AreaItem[];
declare type DrawArgs = {
currentTime?: number;
zoom?: number;
areas?: Area;
_privateFlag?: boolean;
areas?: AreaItem[];
};
declare type Draw = (args: DrawArgs) => void;
declare type ScaleHeight = {
height6: number;
height5: number;
height4: number;
height3: number;
height2: number;
height1: number;
};
declare type TimeLineOption = {

@@ -48,2 +39,10 @@ fill?: boolean;

export { Area, AreaItem, Draw, DrawArgs, ScaleHeight, TimeLineOption };
declare type CallFunction = (params:number) => void;
declare class Timeline {
constructor(id: string, option?: TimeLineOption);
draw(option: DrawArgs ): void;
on(type: 'timeUpdate', call: CallFunction): void;
}
export = Timeline;
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