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

react-gauge-component

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-gauge-component - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

6

dist/GaugeComponent/hooks/labels.js

@@ -240,9 +240,9 @@ "use strict";

y = gauge.dimensions.current.outerRadius * 1.45 + textPadding;
fontRatio = gauge.dimensions.current.width * 0.003 * fontRatio;
}
if (gauge.props.pointer.type == Pointer_1.PointerType.Arrow) {
y = gauge.dimensions.current.outerRadius * 0.79 + textPadding;
fontRatio = gauge.dimensions.current.width * 0.004 * fontRatio;
}
var fontSizeNumber = parseInt(valueFontSize, 10) * fontRatio + 5;
var widthFactor = gauge.props.type == GaugeComponentProps_1.GaugeType.Radial ? 0.003 : 0.003;
fontRatio = gauge.dimensions.current.width * widthFactor * fontRatio;
var fontSizeNumber = parseInt(valueFontSize, 10) * fontRatio;
valueTextStyle.fontSize = fontSizeNumber + "px";

@@ -249,0 +249,0 @@ (0, exports.addText)(text, x, y, gauge, valueTextStyle, constants_1.default.valueLabelClassname);

{
"name": "react-gauge-component",
"version": "0.9.2",
"version": "0.9.3",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "dist/index.js",

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