-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: workflow continue on error (#11474)
- Loading branch information
Showing
60 changed files
with
1,481 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
web/app/components/workflow/custom-edge-linear-gradient-render.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
type CustomEdgeLinearGradientRenderProps = { | ||
id: string | ||
startColor: string | ||
stopColor: string | ||
position: { | ||
x1: number | ||
x2: number | ||
y1: number | ||
y2: number | ||
} | ||
} | ||
const CustomEdgeLinearGradientRender = ({ | ||
id, | ||
startColor, | ||
stopColor, | ||
position, | ||
}: CustomEdgeLinearGradientRenderProps) => { | ||
const { | ||
x1, | ||
x2, | ||
y1, | ||
y2, | ||
} = position | ||
return ( | ||
<defs> | ||
<linearGradient | ||
id={id} | ||
gradientUnits='userSpaceOnUse' | ||
x1={x1} | ||
y1={y1} | ||
x2={x2} | ||
y2={y2} | ||
> | ||
<stop | ||
offset='0%' | ||
style={{ | ||
stopColor: startColor, | ||
stopOpacity: 1, | ||
}} | ||
/> | ||
<stop | ||
offset='100%' | ||
style={{ | ||
stopColor, | ||
stopOpacity: 1, | ||
}} | ||
/> | ||
</linearGradient> | ||
</defs> | ||
) | ||
} | ||
|
||
export default CustomEdgeLinearGradientRender |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.