@datagrok/curves 1.4.1 → 1.4.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/CHANGELOG.md +12 -0
- package/README.md +4 -1
- package/dist/package-test.js +1 -1
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +2 -2
- package/src/fit/render-utils.ts +2 -1
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/curves",
|
|
3
3
|
"friendlyName": "Curves",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.3",
|
|
5
5
|
"description": "Curves provides support for fitted curves (such as dose-response curves), including in-grid rendering, storing charts in cells, interactivity, and automatic fitting.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Dmytro Kovalyov",
|
|
8
8
|
"email": "dkovalyov@datagrok.ai"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@datagrok-libraries/statistics": "^1.3.
|
|
11
|
+
"@datagrok-libraries/statistics": "^1.3.5",
|
|
12
12
|
"@datagrok-libraries/utils": "^4.1.45",
|
|
13
13
|
"@types/wu": "^2.1.42",
|
|
14
14
|
"cash-dom": "^8.0.0",
|
package/src/fit/render-utils.ts
CHANGED
|
@@ -133,9 +133,10 @@ function drawPoints(g: CanvasRenderingContext2D, series: IFitSeries, options: Fi
|
|
|
133
133
|
p.outlier ? (p.outlierColor ? DG.Color.fromHtml(p.outlierColor) ? p.outlierColor : series.outlierColor! : series.outlierColor!) :
|
|
134
134
|
(p.color ? DG.Color.fromHtml(p.color) ? p.color : series.pointColor! : series.pointColor!);
|
|
135
135
|
const marker = p.marker ? p.marker as DG.MARKER_TYPE : series.markerType as DG.MARKER_TYPE;
|
|
136
|
+
const outlierMarker = p.outlierMarker ? p.outlierMarker as DG.MARKER_TYPE : series.outlierMarkerType as DG.MARKER_TYPE;
|
|
136
137
|
const size = !series.connectDots ? p.outlier ? FitConstants.OUTLIER_PX_SIZE * options.ratio! :
|
|
137
138
|
p.size ? p.size : FitConstants.POINT_PX_SIZE * options.ratio! : FitConstants.POINT_PX_SIZE * options.ratio!;
|
|
138
|
-
DG.Paint.marker(g, !series.connectDots ? p.outlier ?
|
|
139
|
+
DG.Paint.marker(g, !series.connectDots ? p.outlier ? outlierMarker : marker : marker,
|
|
139
140
|
options.viewport.xToScreen(p.x), options.viewport.yToScreen(p.y), color, size);
|
|
140
141
|
if (p.stdev && !p.outlier) {
|
|
141
142
|
g.strokeStyle = color;
|