mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-21 16:29:40 +02:00
chore: code style
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user