react-gauge-component
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -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", |
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
81201