@ajuhos/react-flow-chart
Advanced tools
Comparing version 0.0.64 to 0.0.65
{ | ||
"name": "@ajuhos/react-flow-chart", | ||
"version": "0.0.64", | ||
"version": "0.0.65", | ||
"description": "A flexible, stateless flow chart library for react.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -38,6 +38,6 @@ "use strict"; | ||
var link = _a.link, config = _a.config, linkColor = _a.linkColor, points = _a.points, isHovered = _a.isHovered, isSelected = _a.isSelected, startPos = _a.startPos, endPos = _a.endPos, onLinkMouseEnter = _a.onLinkMouseEnter, onLinkMouseLeave = _a.onLinkMouseLeave, onLinkClick = _a.onLinkClick; | ||
var marker = { markerEnd: 'url(#arrowHead)' }; | ||
var startColor = config.linkGradientDelta ? lightenDarkenColor(linkColor, config.linkGradientDelta) : linkColor; | ||
var endColor = config.linkGradientDelta ? lightenDarkenColor(linkColor, -config.linkGradientDelta) : linkColor; | ||
var gradientName = linkColor.slice(1); | ||
var marker = { markerEnd: "url(#" + gradientName + ")" }; | ||
return (React.createElement("svg", { style: { | ||
@@ -51,3 +51,3 @@ overflow: 'visible', | ||
React.createElement("defs", null, | ||
React.createElement("marker", { id: "arrowHead", orient: "auto-start-reverse", markerWidth: "2", markerHeight: "4", refX: "0.1", refY: "2" }, | ||
React.createElement("marker", { id: "arrowHead" + gradientName, orient: "auto-start-reverse", markerWidth: "2", markerHeight: "4", refX: "0.1", refY: "2" }, | ||
React.createElement("path", { d: "M0,0 V4 L2,2 Z", fill: endColor })), | ||
@@ -54,0 +54,0 @@ React.createElement("linearGradient", { id: "gradient" + gradientName + "A", x1: "0%", y1: "0%", x2: "0%", y2: "100%" }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195467