Skip to content

Commit

Permalink
feat: nicer connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
abrgr committed Sep 13, 2023
1 parent 2524be6 commit 0ecc28f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/svg-flow-graph/arrow-marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ export const ArrowMarker = ({ id }: { id: string }) => {
<marker
id={id}
viewBox="0 0 10 10"
markerWidth="5"
markerHeight="5"
markerWidth="3"
markerHeight="3"
refX="0"
refY="5"
markerUnits="strokeWidth"
Expand Down
4 changes: 2 additions & 2 deletions src/components/svg-flow-graph/embedded-arrow-marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const EmbeddedArrowMarker = ({
<marker
id={id}
viewBox="0 0 10 10"
markerWidth="10"
markerHeight="10"
markerWidth="7"
markerHeight="7"
refX="0"
refY="5"
markerUnits="strokeWidth"
Expand Down
4 changes: 2 additions & 2 deletions src/components/svg-flow-graph/embedded-circle-marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ export const EmbeddedCircleMarker = ({ id }: { id: string }) => {
<marker
id={id}
viewBox="0 0 10 10"
markerWidth="10"
markerHeight="10"
markerWidth="7"
markerHeight="7"
refX="0"
refY="5"
markerUnits="strokeWidth"
Expand Down
4 changes: 2 additions & 2 deletions src/components/svg-flow-graph/embedded-through-marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export const EmbeddedThroughMarker = ({
<marker
id={id}
viewBox="0 0 10 10"
markerWidth="10"
markerHeight="10"
markerWidth="7"
markerHeight="7"
refX="0"
refY="5"
markerUnits="strokeWidth"
Expand Down
2 changes: 1 addition & 1 deletion src/components/svg-flow-graph/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const sizeForState = (
headingHeight +
(itemCount > 0 ? headingBottomMargin : 0),
padding: {
top: padding + headingHeight,
top: padding + headingHeight + headingBottomMargin,
bottom: padding,
left: padding,
right: padding,
Expand Down

0 comments on commit 0ecc28f

Please sign in to comment.