@reekon-tools/boldr-utils 1.9.3 → 1.9.5

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.
@@ -1,5 +1,5 @@
1
1
  export declare const GeneralColors: {
2
- readonly darkGrey: "#1D1F21";
2
+ readonly darkGrey: "#181A1C";
3
3
  readonly grey1: "#2B2C2E";
4
4
  readonly grey2: "#424345";
5
5
  readonly grey3: "#626364";
@@ -58,7 +58,7 @@ export declare const GreenColors: {
58
58
  */
59
59
  export declare const tailwindColors: {
60
60
  readonly general: {
61
- readonly 'dark-grey': "#1D1F21";
61
+ readonly 'dark-grey': "#181A1C";
62
62
  readonly 'grey-1': "#2B2C2E";
63
63
  readonly 'grey-2': "#424345";
64
64
  readonly 'grey-3': "#626364";
@@ -1,5 +1,5 @@
1
1
  export const GeneralColors = {
2
- darkGrey: '#1D1F21',
2
+ darkGrey: '#181A1C',
3
3
  grey1: '#2B2C2E',
4
4
  grey2: '#424345',
5
5
  grey3: '#626364',
@@ -336,7 +336,8 @@ export interface Row {
336
336
  }
337
337
  export declare enum MeasurementType {
338
338
  Angle = "angle",// value is signed degrees
339
- Length = "length"
339
+ Length = "length",// value is micrometers
340
+ Number = "number"
340
341
  }
341
342
  export declare enum MeasurementSource {
342
343
  Tape = "tape",
@@ -52,15 +52,20 @@ export var ColumnType;
52
52
  // change them. Absent `type` means Length (every doc written before typing
53
53
  // existed).
54
54
  //
55
- // Deliberately binary. Where a reading CAME FROM (tape blade, laser, level
56
- // sensor, manual entry) is orthogonal metadata — see MeasurementSource.
57
- // Future calculation results (area, volume, point-to-point) are expected to
58
- // become their own entity with measurements feeding into them, not new
59
- // values here.
55
+ // Where a reading CAME FROM (tape blade, laser, level sensor, manual entry) is
56
+ // orthogonal metadata — see MeasurementSource. Future calculation results
57
+ // (area, volume, point-to-point) are expected to become their own entity with
58
+ // measurements feeding into them, not new values here.
59
+ //
60
+ // Angle and Number are both BARE SCALARS: `value` is stored as typed and never
61
+ // goes through convertMicrometers. Only Length is micrometers. A consumer that
62
+ // branches `type === Angle ? … : <treat as length>` is wrong now that a third
63
+ // member exists — test for Length (or for the scalar pair) explicitly.
60
64
  export var MeasurementType;
61
65
  (function (MeasurementType) {
62
66
  MeasurementType["Angle"] = "angle";
63
67
  MeasurementType["Length"] = "length";
68
+ MeasurementType["Number"] = "number";
64
69
  })(MeasurementType || (MeasurementType = {}));
65
70
  // Provenance of a measurement: what produced the reading. Optional
66
71
  // display/analytics metadata only — formatting, conversion, and column
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reekon-tools/boldr-utils",
3
- "version": "1.9.3",
3
+ "version": "1.9.5",
4
4
  "description": "Shared utilities for formulas and measurement conversion used in Reekon apps",
5
5
  "author": "REEKON Tools",
6
6
  "license": "MIT",