@datagrok/curves 1.9.0 → 1.10.0

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Curves changelog
2
2
 
3
+ ## 1.10.0 (2025-07-29)
4
+
5
+ ### Features
6
+ * 4plDoseResponse: Added 4PL dose-response curve fitting function
7
+ * Data-to-curves: fully covered script with history, datasync and 2 tier support
8
+ * Raw PNG renderer
3
9
 
4
10
  ## 1.6.0 - 1.8.0 (2025-03-31)
5
11
 
package/detectors.js CHANGED
@@ -8,6 +8,9 @@
8
8
  const FIT_SEM_TYPE = 'fit';
9
9
  const TAG_FIT_CHART_FORMAT = '.fitChartFormat';
10
10
  const TAG_FIT_CHART_FORMAT_3DX = '3dx';
11
+ const RAW_PNG_SEM_TYPE = 'rawPng';
12
+ const likelyPNGColNames = ['image', 'png', 'thumbnail', 'img'];
13
+ /// <reference path="../../globals.d.ts" />
11
14
  class CurvesPackageDetectors extends DG.Package {
12
15
  //tags: semTypeDetector
13
16
  //input: column col
@@ -33,4 +36,17 @@ class CurvesPackageDetectors extends DG.Package {
33
36
  }
34
37
  return null;
35
38
  }
39
+
40
+ //tags: semTypeDetector
41
+ //input: column col
42
+ //output: string semType
43
+ detectRawPng(col) {
44
+ const colName = col.name.toLowerCase();
45
+ if (col.type === DG.COLUMN_TYPE.STRING &&
46
+ likelyPNGColNames.some((name) => colName.includes(name)) && DG.Detector.sampleCategories(col, (s) => {
47
+ return s && s.length > 1000 && s.startsWith('iVBORw0KGgo');
48
+ }, 1))
49
+ return RAW_PNG_SEM_TYPE;
50
+ return null;
51
+ }
36
52
  }