@datagrok/curves 1.0.1 → 1.1.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/detectors.js CHANGED
@@ -6,13 +6,15 @@
6
6
  * Follow this naming convention to ensure that your detectors are properly loaded.
7
7
  */
8
8
  const FIT_SEM_TYPE = 'fit';
9
+ const TAG_FIT_CHART_FORMAT = '.fitChartFormat';
10
+ const TAG_FIT_CHART_FORMAT_3DX = '3dx';
9
11
  class CurvesPackageDetectors extends DG.Package {
10
12
  //tags: semTypeDetector
11
13
  //input: column col
12
14
  //output: string semType
13
15
  detectXMLCurveChart(col) {
14
16
  if (DG.Detector.sampleCategories(col, (s) => s.startsWith('<chart>') && s.endsWith('</chart>'), 1)) {
15
- col.setTag('.fitChartFormat', '3dx');
17
+ col.setTag(TAG_FIT_CHART_FORMAT, TAG_FIT_CHART_FORMAT_3DX);
16
18
  col.semType = FIT_SEM_TYPE;
17
19
  return col.semType;
18
20
  }