Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-path-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-path-tooltip - npm Package Compare versions

Comparing version 1.0.21 to 1.0.22

1

dist/ReactPathTooltip.d.ts

@@ -11,4 +11,5 @@ import React from 'react';

textColor?: string;
rtl?: string;
}
export declare const PathTooltip: React.FC<IProps>;
export {};

3

dist/ReactPathTooltip.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc