feat: updates connector width to more sensible values

This commit is contained in:
Mark Mankarious
2023-08-18 17:29:03 +01:00
parent 555244c206
commit 851ae21283
3 changed files with 4 additions and 3 deletions

View File

@@ -71,6 +71,7 @@ export const Connector = ({ connector }: Props) => {
stroke={connector.color}
strokeWidth={connectorWidthPx}
strokeLinecap="round"
strokeLinejoin="round"
fill="none"
/>
{anchorPositions.map((anchor) => {

View File

@@ -50,8 +50,8 @@ export const ConnectorControls = ({ id }: Props) => {
<Section title="Width">
<Slider
marks
step={5}
min={5}
step={10}
min={10}
max={100}
value={connector.width}
onChange={(e, newWidth) => {

View File

@@ -19,7 +19,7 @@ export const NODE_DEFAULTS = {
};
export const CONNECTOR_DEFAULTS: ConnectorDefaults = {
width: 15,
width: 20,
// The boundaries of the search area for the pathfinder algorithm
// is the grid that encompasses the two nodes + the offset below.
searchOffset: { x: 3, y: 3 }