@motionone/utils
Advanced tools
Comparing version 10.17.1 to 10.18.0
@@ -7,7 +7,5 @@ 'use strict'; | ||
function getEasingForSegment(easing, i) { | ||
return isEasingList.isEasingList(easing) | ||
? easing[wrap.wrap(0, easing.length, i)] | ||
: easing; | ||
return isEasingList.isEasingList(easing) ? easing[wrap.wrap(0, easing.length, i)] : easing; | ||
} | ||
exports.getEasingForSegment = getEasingForSegment; |
@@ -5,7 +5,5 @@ import { isEasingList } from './is-easing-list.es.js'; | ||
function getEasingForSegment(easing, i) { | ||
return isEasingList(easing) | ||
? easing[wrap(0, easing.length, i)] | ||
: easing; | ||
return isEasingList(easing) ? easing[wrap(0, easing.length, i)] : easing; | ||
} | ||
export { getEasingForSegment }; |
import { isEasingList } from "./is-easing-list"; | ||
import { wrap } from "./wrap"; | ||
export function getEasingForSegment(easing, i) { | ||
return isEasingList(easing) | ||
? easing[wrap(0, easing.length, i)] | ||
: easing; | ||
return isEasingList(easing) ? easing[wrap(0, easing.length, i)] : easing; | ||
} | ||
//# sourceMappingURL=easing.js.map |
{ | ||
"name": "@motionone/utils", | ||
"version": "10.17.1", | ||
"version": "10.18.0", | ||
"description": "A collection of utility functions for animations.", | ||
@@ -21,3 +21,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "e801ab1f0f04dd57a6a5fa692e0cd36d7ffbb8a1" | ||
"gitHead": "f357769434210262a664b8b736b61e1a615e95a7" | ||
} |
@@ -1,2 +0,4 @@ | ||
export declare function getEasingForSegment<T>(easing: T | T[], i: number): any; | ||
import { Easing, EasingFunction } from "@motionone/types"; | ||
export declare function getEasingForSegment(easing: Easing | Easing[], i: number): Easing; | ||
export declare function getEasingForSegment(easing: EasingFunction | EasingFunction[], i: number): EasingFunction; | ||
//# sourceMappingURL=easing.d.ts.map |
import { Easing, EasingFunction, EasingGenerator } from "@motionone/types"; | ||
export declare const isEasingList: (easing: EasingGenerator | Easing | Easing[] | undefined | EasingFunction) => easing is Easing[]; | ||
export declare const isEasingList: (easing: EasingGenerator | Easing | Easing[] | undefined | EasingFunction | EasingFunction[]) => easing is Easing[]; | ||
//# sourceMappingURL=is-easing-list.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
32127
461