@datagrok/curves 1.2.2 → 1.2.4
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 +22 -0
- package/README.md +3 -1
- package/detectors.js +1 -2
- package/dist/package-test.js +116 -71
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +108 -63
- package/dist/package.js.map +1 -1
- package/package.json +4 -3
- package/src/fit/fit-demo.js +1 -0
- package/src/fit/fit-demo.js.map +1 -1
- package/src/fit/fit-demo.ts +1 -0
- package/src/fit/fit-renderer.js +102 -58
- package/src/fit/fit-renderer.js.map +1 -1
- package/src/fit/fit-renderer.ts +100 -52
- package/src/tests/detector-tests.js +2 -2
- package/src/tests/detector-tests.js.map +1 -1
- package/src/tests/detector-tests.ts +2 -2
- package/src/tests/transform-tests.js +7 -7
- package/src/tests/transform-tests.js.map +1 -1
- package/src/tests/transform-tests.ts +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Curves changelog
|
|
2
2
|
|
|
3
|
+
## 1.2.5 (2023-08-12)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* [#2106](https://github.com/datagrok-ai/public/issues/2106): Updated the documentation about parameter order and plot title
|
|
8
|
+
* [#2105](https://github.com/datagrok-ai/public/issues/2105): Made Curves by default as a DG categorical color
|
|
9
|
+
* [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved curves properties and rendering:
|
|
10
|
+
* Added x- and y-axes labels rendering
|
|
11
|
+
* Added title rendering if the cell size is enough
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved curves properties and rendering:
|
|
16
|
+
* Fixed log curves rendering
|
|
17
|
+
* Fixed sizes for axes rendering
|
|
18
|
+
|
|
19
|
+
## 1.2.3 (2023-08-07)
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* [#2104](https://github.com/datagrok-ai/public/issues/2104): Fixed fit detector
|
|
24
|
+
|
|
3
25
|
## 1.2.2 (2023-08-04)
|
|
4
26
|
|
|
5
27
|
### Features
|
package/README.md
CHANGED
|
@@ -80,7 +80,8 @@ Each series has its own parameters, such as:
|
|
|
80
80
|
- `showCurveConfidenceInterval` - defines whether to show the confidence intervals or not
|
|
81
81
|
- `fitFunction` - controls the series fit function, which could be either a sigmoid function or a
|
|
82
82
|
[custom-defined function](/README.md#creating-custom-fit-function).
|
|
83
|
-
- `parameters` - controls the series parameters, if set explicitly - the fitting process won't be executed
|
|
83
|
+
- `parameters` - controls the series parameters, if set explicitly - the fitting process won't be executed. The parameter order of the
|
|
84
|
+
sigmoid function is: `max, tan, IC50, min`.
|
|
84
85
|
- `parameterBounds` - defines the acceptable range of each parameter, which is taken into account during the fitting. See also `parameters`
|
|
85
86
|
- `showPoints` - defines the data display mode, which could be either `points`, `candlesticks`, `both`, or none
|
|
86
87
|
- `clickToToggle` - defines whether clicking on the point toggles its outlier status and causes curve refitting or not
|
|
@@ -90,6 +91,7 @@ Each series has its own parameters, such as:
|
|
|
90
91
|
Each chart has its own parameters as well, such as:
|
|
91
92
|
|
|
92
93
|
- `minX`, `minY`, `maxX`, `maxY` - controls the minimum x and y values of the plot
|
|
94
|
+
- `title` - defines the plot title. If the plot size is enough, will render it
|
|
93
95
|
- `xAxisName`, `yAxisName` - defines the x and y axis names. If the plot size is enough, will render it
|
|
94
96
|
- `logX`, `logY` - defines whether the x and y data should be logarithmic or not
|
|
95
97
|
- `showStatistics` - defines the statistics that would be shown on the plot (such as the area under the curve
|
package/detectors.js
CHANGED
|
@@ -26,8 +26,7 @@ class CurvesPackageDetectors extends DG.Package {
|
|
|
26
26
|
//output: string semType
|
|
27
27
|
detectFit(col) {
|
|
28
28
|
if (DG.Detector.sampleCategories(col, (s) => {
|
|
29
|
-
return s.includes('series') && s.includes('points') && s.includes('
|
|
30
|
-
s.includes('pointColor') && s.includes('showCurveConfidenceInterval');
|
|
29
|
+
return s.includes('series') && s.includes('points') && s.includes('fitFunction');
|
|
31
30
|
}, 1)) {
|
|
32
31
|
col.semType = FIT_SEM_TYPE;
|
|
33
32
|
return col.semType;
|