@oliasoft-open-source/charts-library 4.3.10 → 4.3.11

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
@@ -25403,7 +25403,7 @@ const generateAnnotations = (annotationsData) => {
25403
25403
  var _a2, _b2, _c2, _d2, _e2, _f2;
25404
25404
  const scaleID = (ann == null ? void 0 : ann.annotationAxis) ?? void 0;
25405
25405
  const color2 = (ann == null ? void 0 : ann.color) ?? COLORS[idx];
25406
- const type = (ann == null ? void 0 : ann.type) || AnnotationType.LINE;
25406
+ const type = (ann == null ? void 0 : ann.type) ?? AnnotationType.LINE;
25407
25407
  const adjustScaleRange2 = ann == null ? void 0 : ann.adjustScaleRange;
25408
25408
  const borderColor = {
25409
25409
  [AnnotationType.LINE]: color2,
@@ -40311,6 +40311,10 @@ const useScatterChartConfig = (chart2, chartRef) => {
40311
40311
  onHover
40312
40312
  },
40313
40313
  scales: getScatterChartScales(chart2 == null ? void 0 : chart2.options),
40314
+ animation: chartStyling.performanceMode ? false : {
40315
+ duration: ANIMATION_DURATION.FAST,
40316
+ onComplete: interactions == null ? void 0 : interactions.onAnimationComplete
40317
+ },
40314
40318
  plugins: {
40315
40319
  legend: { ...legend2, display: false },
40316
40320
  // hide default legend
@@ -40362,7 +40366,8 @@ const defaultChartOptions = (options) => ({
40362
40366
  const defaultInteractions = (interactions) => ({
40363
40367
  onLegendClick: interactions == null ? void 0 : interactions.onLegendClick,
40364
40368
  onHover: interactions == null ? void 0 : interactions.onHover,
40365
- onUnhover: interactions == null ? void 0 : interactions.onUnhover
40369
+ onUnhover: interactions == null ? void 0 : interactions.onUnhover,
40370
+ onAnimationComplete: interactions == null ? void 0 : interactions.onAnimationComplete
40366
40371
  });
40367
40372
  const defaultChartData = (data) => {
40368
40373
  return {