react-path-tooltip
Advanced tools
Comparing version 1.0.21 to 1.0.22
@@ -11,4 +11,5 @@ import React from 'react'; | ||
textColor?: string; | ||
rtl?: string; | ||
} | ||
export declare const PathTooltip: React.FC<IProps>; | ||
export {}; |
@@ -13,2 +13,3 @@ "use strict"; | ||
const [textColor,] = react_1.useState(props["textColor"] || "white"); | ||
const [rtl,] = react_1.useState(props["rtl"] || "ltr"); | ||
const pathRef = props.pathRef; | ||
@@ -71,3 +72,3 @@ const svgRef = props.svgRef; | ||
react_1.default.createElement("polygon", { fill: bgColor, visibility: (hidden ? "hidden" : "visible"), points: points }), | ||
react_1.default.createElement("text", { ref: textRef, x: tooltipRect.x + 10, y: tooltipRect.y, cursor: "default", fontFamily: fontFamily, fontSize: fontSize, fill: textColor, visibility: (hidden ? "hidden" : "visible") }, props.tip.length > 35 - (1 * (fontSize - 11)) | ||
react_1.default.createElement("text", { ref: textRef, x: rtl ? tooltipRect.x + tooltipRect.w - 10 : tooltipRect.x + 10, y: tooltipRect.y, cursor: "default", fontFamily: fontFamily, fontSize: fontSize, fill: textColor, visibility: (hidden ? "hidden" : "visible") }, props.tip.length > 35 - (1 * (fontSize - 11)) | ||
? | ||
@@ -74,0 +75,0 @@ tips.map((tip, index) => { |
{ | ||
"name": "react-path-tooltip", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "displayName": "React Path Tooltip", |
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
10906
99