@oliasoft-open-source/charts-library 3.8.0-beta-2 → 3.8.0-beta-3

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.
package/dist/index.js CHANGED
@@ -25826,14 +25826,18 @@ const customPointEllipsisPlugin = (options) => {
25826
25826
  }
25827
25827
  const { ellipseOptions } = (_b3 = dataset == null ? void 0 : dataset.data) == null ? void 0 : _b3[index2];
25828
25828
  const {
25829
- radiusX: ellipseRadiusX = radiusX,
25830
- radiusY: ellipseRadiusY = radiusY,
25829
+ radiusX: ellipseRadiusX = radiusX ?? 0,
25830
+ radiusY: ellipseRadiusY = radiusY ?? 0,
25831
25831
  rotation: ellipseRotation = rotation,
25832
25832
  lineWidth: ellipseLineWidth = lineWidth,
25833
25833
  color: ellipseColor = color2
25834
25834
  } = ellipseOptions ?? {};
25835
- const customRadiusX = Number(ellipseRadiusX);
25836
- const customRadiusY = Number(ellipseRadiusY);
25835
+ const borderPointPixel = {
25836
+ x: chart2.scales.x.getPixelForValue(Math.abs(ellipseRadiusX)),
25837
+ y: chart2.scales.y.getPixelForValue(Math.abs(ellipseRadiusY))
25838
+ };
25839
+ const customRadiusX = Math.abs(borderPointPixel.x - x2);
25840
+ const customRadiusY = Math.abs(borderPointPixel.y - y2);
25837
25841
  const customRotation = to$2(Number(ellipseRotation), "deg", "rad");
25838
25842
  ctx.save();
25839
25843
  ctx.strokeStyle = ellipseColor ?? color2 ?? dataset.borderColor ?? COLORS[datasetIndex];