carousel-component
Advanced tools
Comparing version 3.0.0 to 3.2.1
@@ -0,1 +1,4 @@ | ||
/** | ||
* @public | ||
*/ | ||
export declare type CarouselData<T = any> = { | ||
@@ -5,4 +8,13 @@ component: string | Function; | ||
}; | ||
/** | ||
* @public | ||
*/ | ||
export declare function setStyle(num: number, width: number, count: number): void; | ||
/** | ||
* @public | ||
*/ | ||
export declare function runAnimation(ul: HTMLElement, timeout: number, keyframes: string, num: number, next: () => void): void; | ||
/** | ||
* @public | ||
*/ | ||
export declare function appendLeftAndRightData<T>(data: CarouselData<T>[], actualCount: number): void; |
var animationKeyframesIdName = "carousel-animation-keyframes"; | ||
/** | ||
* @public | ||
*/ | ||
export function setStyle(num, width, count) { | ||
@@ -12,2 +15,5 @@ var style = document.getElementById(animationKeyframesIdName); | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export function runAnimation(ul, timeout, keyframes, num, next) { | ||
@@ -24,2 +30,5 @@ ul.style.animation = ""; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export function appendLeftAndRightData(data, actualCount) { | ||
@@ -26,0 +35,0 @@ var leftItems = data.slice(data.length - actualCount); |
{ | ||
"name": "carousel-component", | ||
"version": "3.0.0", | ||
"version": "3.2.1", | ||
"main": "dist/index.js", | ||
@@ -17,6 +17,13 @@ "types": "dist/index.d.ts", | ||
"homepage": "https://github.com/plantain-00/carousel-component#readme", | ||
"files": [ | ||
"dist" | ||
], | ||
"dependencies": { | ||
"@types/node": "*", | ||
"tslib": "1" | ||
}, | ||
"peerDependencies": { | ||
"@types/node": "*", | ||
"tslib": "1" | ||
} | ||
} |
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
92
0
3499
4
5