mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-28 08:59:18 -05:00
feat: updates connector width to more sensible values
This commit is contained in:
@@ -71,6 +71,7 @@ export const Connector = ({ connector }: Props) => {
|
||||
stroke={connector.color}
|
||||
strokeWidth={connectorWidthPx}
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
fill="none"
|
||||
/>
|
||||
{anchorPositions.map((anchor) => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user