@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.
package/dist/package.js CHANGED
@@ -10243,10 +10243,8 @@ function renderLegendSeries(g, series, renderOptions) {
10243
10243
  let pointsMarkerValue = series.points && series.points.length > 0 ? series.points[0].marker : null;
10244
10244
  pointsMarkerValue = series.points && series.points.every((p) => p.marker === pointsMarkerValue && p.marker != null) ? pointsMarkerValue : null;
10245
10245
  const marker = pointsMarkerValue != null ? pointsMarkerValue : series.markerType ? series.markerType : datagrok_api_dg__WEBPACK_IMPORTED_MODULE_0__.MARKER_TYPE.CIRCLE;
10246
- 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 -
10247
- _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 -
10248
- _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 *
10249
- (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);
10246
+ const legendMarkerSize = Math.floor(_datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.POINT_PX_SIZE * ratio * 1.5);
10247
+ 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);
10250
10248
  g.fillStyle = fitLineColor;
10251
10249
  g.fillText(nameToRender, dataBox.maxX - textWidth, dataBox.y + _datagrok_libraries_statistics_src_fit_const__WEBPACK_IMPORTED_MODULE_3__.FitConstants.LEGEND_TOP_PX_MARGIN + (showColumnLabel ?
10252
10250
  _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);