mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 00:40:22 +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 {
|
export interface Point {
|
||||||
x: number;
|
x: number;
|
||||||
|
@@ -230,10 +230,7 @@ export const isSubstringInArray = function (str: string, arr: string[]): number
|
|||||||
* @param defaultCurve - The default curve to return
|
* @param defaultCurve - The default curve to return
|
||||||
* @returns The curve factory to use
|
* @returns The curve factory to use
|
||||||
*/
|
*/
|
||||||
export function interpolateToCurve(
|
export function interpolateToCurve(interpolate: string | undefined, defaultCurve: CurveFactory) {
|
||||||
interpolate: string | undefined,
|
|
||||||
defaultCurve: CurveFactory
|
|
||||||
) {
|
|
||||||
if (!interpolate) {
|
if (!interpolate) {
|
||||||
return defaultCurve;
|
return defaultCurve;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user