fix(react): edge styles

This commit is contained in:
moklick
2024-01-04 13:53:36 +01:00
parent 9e0f974525
commit e6bee0aae6
5 changed files with 23 additions and 10 deletions
+13
View File
@@ -1,5 +1,18 @@
# @xyflow/react
## 12.0.0-next.3
### Minor changes
- fix edges styles when using base.css
## 12.0.0-next.2
### Minor changes
- fix connection line rendering
- fix multi handle
## 12.0.0-next.1
### Minor changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@xyflow/react",
"version": "12.0.0-next.1",
"version": "12.0.0-next.3",
"description": "React Flow - A highly customizable React library for building node-based editors and interactive flow charts.",
"keywords": [
"react",
@@ -9,8 +9,8 @@ type EdgeUpdateAnchorsProps = {
edge: Edge;
isUpdatable: boolean | 'source' | 'target';
edgeUpdaterRadius: EdgeWrapperProps['edgeUpdaterRadius'];
sourceHandleId: EdgeWrapperProps['sourceHandleId'];
targetHandleId: EdgeWrapperProps['targetHandleId'];
sourceHandleId: Edge['sourceHandle'];
targetHandleId: Edge['targetHandle'];
onEdgeUpdate: EdgeWrapperProps['onEdgeUpdate'];
onEdgeUpdateStart: EdgeWrapperProps['onEdgeUpdateStart'];
onEdgeUpdateEnd: EdgeWrapperProps['onEdgeUpdateEnd'];
+7 -1
View File
@@ -106,6 +106,12 @@
.xy-flow__edges {
position: absolute;
svg {
overflow: visible;
position: absolute;
pointer-events: none;
}
}
.xy-flow__edge {
@@ -156,7 +162,7 @@
}
}
.xy-flow__connectionline {
svg.xy-flow__connectionline {
z-index: 1001;
overflow: visible;
position: absolute;
-6
View File
@@ -43,12 +43,6 @@
--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, 0.08);
}
.xy-flow__edges svg {
overflow: visible;
position: absolute;
pointer-events: none;
}
.xy-flow__edge {
&.updating {
.xy-flow__edge-path {