@datagrok/curves 1.10.13 → 1.10.14

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.
@@ -11757,10 +11757,8 @@ function renderLegendSeries(g, series, renderOptions) {
11757
11757
  let pointsMarkerValue = series.points && series.points.length > 0 ? series.points[0].marker : null;
11758
11758
  pointsMarkerValue = series.points && series.points.every((p) => p.marker === pointsMarkerValue && p.marker != null) ? pointsMarkerValue : null;
11759
11759
  const marker = pointsMarkerValue != null ? pointsMarkerValue : series.markerType ? series.markerType : datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.MARKER_TYPE.CIRCLE;
11760
- datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.Paint.marker(g, marker, dataBox.maxX - textWidth - _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_LINE_RIGHT_PX_MARGIN -
11761
- _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_LINE_PX_WIDTH / 2, dataBox.y + _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_TOP_PX_MARGIN -
11762
- _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_LINE_BOTTOM_PX_MARGIN + (showColumnLabel ? _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_PX_HEIGHT *
11763
- (columnIdx + 1) : 0) + _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_PX_HEIGHT * drawnCurvesInLegend, pointColor, _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.POINT_PX_SIZE * ratio);
11760
+ const legendMarkerSize = Math.floor(_datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.POINT_PX_SIZE * ratio * 1.5);
11761
+ datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.Paint.marker(g, marker, dataBox.maxX - textWidth - _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_LINE_RIGHT_PX_MARGIN - _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_LINE_PX_WIDTH - legendMarkerSize, dataBox.y + _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_TOP_PX_MARGIN - _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_LINE_BOTTOM_PX_MARGIN + (showColumnLabel ? _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_PX_HEIGHT * (columnIdx + 1) : 0) + _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_PX_HEIGHT * drawnCurvesInLegend, pointColor, legendMarkerSize);
11764
11762
  g.fillStyle = fitLineColor;
11765
11763
  g.fillText(nameToRender, dataBox.maxX - textWidth, dataBox.y + _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_TOP_PX_MARGIN + (showColumnLabel ?
11766
11764
  _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_PX_HEIGHT * (columnIdx + 1) : 0) + _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_RECORD_PX_HEIGHT * drawnCurvesInLegend);