@losting/timeline
Advanced tools
Comparing version 2.1.0-0 to 2.1.0
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
0
70741
867