removed animated dash edge for text
This commit is contained in:
parent
6854c25dae
commit
cdbc516b85
2 changed files with 2 additions and 13 deletions
|
|
@ -261,11 +261,7 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
|||
id,
|
||||
data: cloneDeep(edge.data),
|
||||
style: { stroke: "#555" },
|
||||
className:
|
||||
targetHandleObject.type === "Text"
|
||||
? "stroke-gray-800 "
|
||||
: "stroke-gray-900 ",
|
||||
animated: targetHandleObject.type === "Text",
|
||||
className: "stroke-gray-900 ",
|
||||
selected: false,
|
||||
},
|
||||
newEdges.map((edge) => ({ ...edge, selected: false }))
|
||||
|
|
@ -329,9 +325,6 @@ const useFlowStore = create<FlowStoreType>((set, get) => ({
|
|||
.type === "Text"
|
||||
? "stroke-foreground "
|
||||
: "stroke-foreground ") + " stroke-connection",
|
||||
animated:
|
||||
(scapeJSONParse(connection.targetHandle!) as targetHandleType)
|
||||
.type === "Text",
|
||||
markerEnd: isIoIn || isIoOut ? { ...commonMarkerProps } : undefined,
|
||||
},
|
||||
oldEdges
|
||||
|
|
|
|||
|
|
@ -324,11 +324,7 @@ export function updateEdges(edges: Edge[]) {
|
|||
const targetHandleObject: targetHandleType = scapeJSONParse(
|
||||
edge.targetHandle!
|
||||
);
|
||||
edge.className =
|
||||
(targetHandleObject.type === "Text"
|
||||
? "stroke-gray-800 "
|
||||
: "stroke-gray-900 ") + " stroke-connection";
|
||||
edge.animated = targetHandleObject.type === "Text";
|
||||
edge.className = "stroke-gray-900 stroke-connection";
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue