tvcharts 0.8.5 → 0.8.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -223,7 +223,7 @@ export function optimalCandlestickWidth(barSpacing, pixelRatio) {
|
|
|
223
223
|
if (barSpacing >= barSpacingSpecialCaseFrom && barSpacing <= barSpacingSpecialCaseTo) {
|
|
224
224
|
return Math.floor(barSpacingSpecialCaseCoeff * pixelRatio);
|
|
225
225
|
} else if (barSpacing > barSpacingSpecialCaseTo && barSpacing <= 7.5) {
|
|
226
|
-
return Math.floor(Math.max(barSpacing * 0.
|
|
226
|
+
return Math.floor(Math.max(barSpacing * 0.72, 1));
|
|
227
227
|
}
|
|
228
228
|
// coeff should be 1 on small barspacing and go to 0.8 while groing bar spacing
|
|
229
229
|
var barSpacingReducingCoeff = 0.2;
|
|
@@ -61,7 +61,6 @@ var CartesianAxisPointer = /** @class */function (_super) {
|
|
|
61
61
|
var pixelValue = axis.toGlobalCoord(axis.dataToCoord(value, true));
|
|
62
62
|
if (axisPointerType && axisPointerType !== 'none') {
|
|
63
63
|
var elStyle = viewHelper.buildElStyle(axisPointerModel);
|
|
64
|
-
console.log('%c [ elStyle ]-53', 'font-size:13px; background:pink; color:#bf2c9f;', elStyle, axisPointerModel);
|
|
65
64
|
var pointerOption = pointerShapeBuilder[axisPointerType](axis, pixelValue, otherExtent);
|
|
66
65
|
pointerOption.style = elStyle;
|
|
67
66
|
elOption.graphicKey = pointerOption.type;
|