Skip to content

Commit

Permalink
Converted Connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Patty committed May 9, 2022
1 parent 0ca6f72 commit a81ab62
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
import React from "react";
import {calculateCurve} from '../../connectionCalculator'
import { calculateCurve } from "../../connectionCalculator";
import { Coordinate } from "../../types";
import styles from "./Connection.css";

interface ConnectionProps {
from: Coordinate;
to: Coordinate;
id: string;
lineRef: React.Ref<SVGPathElement>;
outputNodeId: string;
outputPortName: string;
inputNodeId: string;
inputPortName: string;
}

const Connection = ({
from,
to,
Expand All @@ -11,8 +23,8 @@ const Connection = ({
outputPortName,
inputNodeId,
inputPortName
}) => {
const curve = calculateCurve(from, to)
}: ConnectionProps) => {
const curve = calculateCurve(from, to);
return (
<svg className={styles.svg} data-flume-component="connection-svg">
<path
Expand Down

0 comments on commit a81ab62

Please sign in to comment.