mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-27 16:39:06 -05:00
feat: updates connector styling
This commit is contained in:
@@ -78,6 +78,15 @@ export const Connector = ({ connector }: Props) => {
|
||||
zoom={zoom}
|
||||
fill="none"
|
||||
>
|
||||
<polyline
|
||||
points={pathString}
|
||||
stroke={theme.palette.common.white}
|
||||
strokeWidth={connectorWidthPx * 1.4}
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeDasharray={strokeDashArray}
|
||||
fill="none"
|
||||
/>
|
||||
<polyline
|
||||
points={pathString}
|
||||
stroke={connector.color}
|
||||
@@ -87,15 +96,23 @@ export const Connector = ({ connector }: Props) => {
|
||||
strokeDasharray={strokeDashArray}
|
||||
fill="none"
|
||||
/>
|
||||
|
||||
{anchorPositions.map((anchor) => {
|
||||
return (
|
||||
<Circle
|
||||
position={CoordsUtils.add(anchor, drawOffset)}
|
||||
radius={10 * zoom}
|
||||
stroke={theme.palette.common.black}
|
||||
fill={theme.palette.common.white}
|
||||
strokeWidth={4 * zoom}
|
||||
/>
|
||||
<>
|
||||
<Circle
|
||||
position={CoordsUtils.add(anchor, drawOffset)}
|
||||
radius={18 * zoom}
|
||||
fill={theme.palette.common.white}
|
||||
/>
|
||||
<Circle
|
||||
position={CoordsUtils.add(anchor, drawOffset)}
|
||||
radius={12 * zoom}
|
||||
stroke={theme.palette.common.black}
|
||||
fill={theme.palette.common.white}
|
||||
strokeWidth={6 * zoom}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
})}
|
||||
</IsoTileArea>
|
||||
|
||||
Reference in New Issue
Block a user