chore: code style
This commit is contained in:
parent
c021f71afc
commit
05bdb05a9e
|
@ -1,4 +1,4 @@
|
|||
import { interpolateToCurve } from './utils.js';
|
||||
import type { interpolateToCurve } from './utils.js';
|
||||
|
||||
export interface Point {
|
||||
x: number;
|
||||
|
|
|
@ -230,10 +230,7 @@ export const isSubstringInArray = function (str: string, arr: string[]): number
|
|||
* @param defaultCurve - The default curve to return
|
||||
* @returns The curve factory to use
|
||||
*/
|
||||
export function interpolateToCurve(
|
||||
interpolate: string | undefined,
|
||||
defaultCurve: CurveFactory
|
||||
) {
|
||||
export function interpolateToCurve(interpolate: string | undefined, defaultCurve: CurveFactory) {
|
||||
if (!interpolate) {
|
||||
return defaultCurve;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue