@emerson-eps/color-tables 0.2.4 → 0.2.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.
Files changed (61) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/dist/component/ColorSelector/ColorSelectorAccordion.js +1 -1
  3. package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -1
  4. package/dist/component/ColorSelector/ColorSelectorComponent.js +46 -45
  5. package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
  6. package/dist/component/ColorSelector/ColorSelectorWrapper.js +21 -20
  7. package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -1
  8. package/dist/component/Legend/ColorLegend.js +7 -6
  9. package/dist/component/Legend/ColorLegend.js.map +1 -1
  10. package/dist/component/Legend/ContinuousLegend.js +185 -147
  11. package/dist/component/Legend/ContinuousLegend.js.map +1 -1
  12. package/dist/component/Legend/DiscreteLegend.js +154 -113
  13. package/dist/component/Legend/DiscreteLegend.js.map +1 -1
  14. package/dist/component/Utils/continousLegend.js +14 -12
  15. package/dist/component/Utils/continousLegend.js.map +1 -1
  16. package/dist/component/Utils/d3ColorScale.js +1 -1
  17. package/dist/component/Utils/d3ColorScale.js.map +1 -1
  18. package/dist/component/Utils/discreteLegend.js +1 -1
  19. package/dist/component/Utils/discreteLegend.js.map +1 -1
  20. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js +2 -2
  21. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js.map +1 -1
  22. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +27 -16
  23. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +1 -1
  24. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +27 -16
  25. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +1 -1
  26. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +27 -16
  27. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +1 -1
  28. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +27 -16
  29. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +1 -1
  30. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +27 -16
  31. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +1 -1
  32. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +27 -16
  33. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +1 -1
  34. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +27 -16
  35. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +1 -1
  36. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js +25 -14
  37. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +1 -1
  38. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +25 -14
  39. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +1 -1
  40. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +25 -14
  41. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +1 -1
  42. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +25 -14
  43. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +1 -1
  44. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +25 -14
  45. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +1 -1
  46. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +25 -14
  47. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +1 -1
  48. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +25 -14
  49. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +1 -1
  50. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +25 -14
  51. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +1 -1
  52. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js +25 -14
  53. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js.map +1 -1
  54. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js +27 -16
  55. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js.map +1 -1
  56. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js +29 -18
  57. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js.map +1 -1
  58. package/package.json +2 -1
  59. package/src/component/Legend/ContinuousLegend.tsx +5 -2
  60. package/src/component/Legend/DiscreteLegend.tsx +2 -1
  61. package/tsconfig.json +1 -1
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import React from "react";
2
13
  import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
14
  import colorTables from "../../../component/color-tables.json";
@@ -5,7 +16,7 @@ export default {
5
16
  component: DiscreteColorLegend,
6
17
  title: "Legends/DiscreteColorLegend",
7
18
  };
8
- const discreteData = {
19
+ var discreteData = {
9
20
  "F_OFFSHORE": [[], 0],
10
21
  "F_LOWER_SHOREFACE": [[], 1],
11
22
  "F_UPPER_SHOREFACE": [[], 2],
@@ -23,20 +34,20 @@ const discreteData = {
23
34
  "R_USF": [[], 14],
24
35
  "R_LSF": [[], 15]
25
36
  };
26
- const dataObjectName = "Wells / RDE_ORIG";
27
- const position = [16, 10];
28
- const horizontal = true;
29
- const colorName = "Stratigraphy";
30
- const Template = (args) => {
31
- return React.createElement(DiscreteColorLegend, Object.assign({}, args));
37
+ var dataObjectName = "Wells / RDE_ORIG";
38
+ var position = [16, 10];
39
+ var horizontal = true;
40
+ var colorName = "Stratigraphy";
41
+ var Template = function (args) {
42
+ return React.createElement(DiscreteColorLegend, __assign({}, args));
32
43
  };
33
- export const RDEOrigTemplate = Template.bind({});
44
+ export var RDEOrigTemplate = Template.bind({});
34
45
  RDEOrigTemplate.args = {
35
- discreteData,
36
- dataObjectName,
37
- position,
38
- colorName,
39
- colorTables,
40
- horizontal,
46
+ discreteData: discreteData,
47
+ dataObjectName: dataObjectName,
48
+ position: position,
49
+ colorName: colorName,
50
+ colorTables: colorTables,
51
+ horizontal: horizontal,
41
52
  };
42
53
  //# sourceMappingURL=RDE_Orig.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RDE_Orig.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,MAAM,YAAY,GAAG;IACjB,YAAY,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACrB,mBAAmB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,mBAAmB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACtB,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACtB,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1B,oBAAoB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC7B,oBAAoB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC7B,S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d,QAAQ,UAAA;IACR,SAAS,WAAA;IACT,WAAW,aAAA;IACX,UAAU,YAAA;CACb,CAAC"}
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import React from "react";
2
13
  import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
14
  import colorTables from "../../../component/color-tables.json";
@@ -5,27 +16,27 @@ export default {
5
16
  component: DiscreteColorLegend,
6
17
  title: "Legends/DiscreteColorLegend",
7
18
  };
8
- const discreteData = {
19
+ var discreteData = {
9
20
  "0": [[], 0],
10
21
  "4": [[], 4],
11
22
  "UPPER": [[], 1],
12
23
  "MID": [[], 2],
13
24
  "LOWER": [[], 3]
14
25
  };
15
- const dataObjectName = "Wells / ZONE_MAIN";
16
- const position = [16, 10];
17
- const horizontal = true;
18
- const colorName = "Stratigraphy";
19
- const Template = (args) => {
20
- return React.createElement(DiscreteColorLegend, Object.assign({}, args));
26
+ var dataObjectName = "Wells / ZONE_MAIN";
27
+ var position = [16, 10];
28
+ var horizontal = true;
29
+ var colorName = "Stratigraphy";
30
+ var Template = function (args) {
31
+ return React.createElement(DiscreteColorLegend, __assign({}, args));
21
32
  };
22
- export const ZoneMainTemplate = Template.bind({});
33
+ export var ZoneMainTemplate = Template.bind({});
23
34
  ZoneMainTemplate.args = {
24
- discreteData,
25
- dataObjectName,
26
- position,
27
- colorName,
28
- colorTables,
29
- horizontal,
35
+ discreteData: discreteData,
36
+ dataObjectName: dataObjectName,
37
+ position: position,
38
+ colorName: colorName,
39
+ colorTables: colorTables,
40
+ horizontal: horizontal,
30
41
  };
31
42
  //# sourceMappingURL=ZoneMain.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ZoneMain.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,MAAM,YAAY,GAAG;IACjB,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACnB,CAAC;AACF,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAC3C,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACpB,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
1
+ {"version":3,"file":"ZoneMain.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,IAAM,YAAY,GAAG;IACjB,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACnB,CAAC;AACF,IAAM,cAAc,GAAG,mBAAmB,CAAC;AAC3C,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,mBAAmB,eAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACpB,YAAY,cAAA;IACZ,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,SAAS,WAAA;IACT,WAAW,aAAA;IACX,UAAU,YAAA;CACb,CAAC"}
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import React from "react";
2
13
  import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
14
  import colorTables from "../../../component/color-tables.json";
@@ -5,7 +16,7 @@ export default {
5
16
  component: DiscreteColorLegend,
6
17
  title: "Legends/DiscreteColorLegend",
7
18
  };
8
- const discreteData = {
19
+ var discreteData = {
9
20
  "Above_BCU": [[], 0],
10
21
  "ABOVE": [[], 1],
11
22
  "H12": [[], 2],
@@ -22,20 +33,20 @@ const discreteData = {
22
33
  "H1": [[], 13],
23
34
  "BELOW": [[], 14]
24
35
  };
25
- const dataObjectName = "Wells / ZONELOG";
26
- const position = [16, 10];
27
- const horizontal = true;
28
- const colorName = "Stratigraphy";
29
- const Template = (args) => {
30
- return React.createElement(DiscreteColorLegend, Object.assign({}, args));
36
+ var dataObjectName = "Wells / ZONELOG";
37
+ var position = [16, 10];
38
+ var horizontal = true;
39
+ var colorName = "Stratigraphy";
40
+ var Template = function (args) {
41
+ return React.createElement(DiscreteColorLegend, __assign({}, args));
31
42
  };
32
- export const ZonelogTemplate = Template.bind({});
43
+ export var ZonelogTemplate = Template.bind({});
33
44
  ZonelogTemplate.args = {
34
- discreteData,
35
- dataObjectName,
36
- position,
37
- colorName,
38
- colorTables,
39
- horizontal,
45
+ discreteData: discreteData,
46
+ dataObjectName: dataObjectName,
47
+ position: position,
48
+ colorName: colorName,
49
+ colorTables: colorTables,
50
+ horizontal: horizontal,
40
51
  };
41
52
  //# sourceMappingURL=Zonelog.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Zonelog.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,MAAM,YA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IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,mBAAmB,eAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACnB,YAAY,cAAA;IACZ,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,SAAS,WAAA;IACT,WAAW,aAAA;IACX,UAAU,YAAA;CACb,CAAC"}
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import React from "react";
2
13
  import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
14
  import colorTables from "../../../component/color-tables.json";
@@ -5,7 +16,7 @@ export default {
5
16
  component: DiscreteColorLegend,
6
17
  title: "Legends/DiscreteLegendWithSelector",
7
18
  };
8
- const discreteData = {
19
+ var discreteData = {
9
20
  "Above_BCU": [[], 0],
10
21
  "ABOVE": [[], 1],
11
22
  "H12": [[], 2],
@@ -22,20 +33,20 @@ const discreteData = {
22
33
  "H1": [[], 13],
23
34
  "BELOW": [[], 14]
24
35
  };
25
- const dataObjectName = "Wells / ZONELOG";
26
- const position = [16, 10];
27
- const horizontal = true;
28
- const colorName = "Stratigraphy";
29
- const Template = (args) => {
30
- return React.createElement(DiscreteColorLegend, Object.assign({}, args));
36
+ var dataObjectName = "Wells / ZONELOG";
37
+ var position = [16, 10];
38
+ var horizontal = true;
39
+ var colorName = "Stratigraphy";
40
+ var Template = function (args) {
41
+ return React.createElement(DiscreteColorLegend, __assign({}, args));
31
42
  };
32
- export const discreteLegendWithSelector = Template.bind({});
43
+ export var discreteLegendWithSelector = Template.bind({});
33
44
  discreteLegendWithSelector.args = {
34
- discreteData,
35
- dataObjectName,
36
- position,
37
- horizontal,
38
- colorName,
39
- colorTables,
45
+ discreteData: discreteData,
46
+ dataObjectName: dataObjectName,
47
+ position: position,
48
+ horizontal: horizontal,
49
+ colorName: colorName,
50
+ colorTables: colorTables,
40
51
  };
41
52
  //# sourceMappingURL=DiscreteLegendWithSelector.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiscreteLegendWithSelector.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,oCAAoC;CAC9C,CAAC;AAEF,MAAM,YAAY,GAAG;IACjB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CACpB,CAAC;AACF,MAAM,cAAc,GAAG,iBAAiB,CAAC;AACzC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5D,0BAA0B,CAAC,IAAI,GAAG;IAC9B,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,UAAU;IACV,SAAS;IACT,WAAW;CACd,CAAC"}
1
+ {"version":3,"file":"DiscreteLegendWithSelector.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,oCAAoC;CAC9C,CAAC;AAEF,IAAM,YAAY,GAAG;IACjB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CACpB,CAAC;AACF,IAAM,cAAc,GAAG,iBAAiB,CAAC;AACzC,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,mBAAmB,eAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,0BAA0B,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5D,0BAA0B,CAAC,IAAI,GAAG;IAC9B,YAAY,cAAA;IACZ,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,UAAU,YAAA;IACV,SAAS,WAAA;IACT,WAAW,aAAA;CACd,CAAC"}
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import React from "react";
2
13
  import { ContinuousLegend } from "../../../component/Legend/ContinuousLegend";
3
14
  import colorTables from "../../../component/color-tables.json";
@@ -5,23 +16,23 @@ export default {
5
16
  component: ContinuousLegend,
6
17
  title: "Legends/LegendWithSelector",
7
18
  };
8
- const min = 0;
9
- const max = 0.35;
10
- const dataObjectName = "Legend";
11
- const position = [16, 10];
12
- const horizontal = true;
13
- const colorName = "Time/Depth";
14
- const Template = (args) => {
15
- return React.createElement(ContinuousLegend, Object.assign({}, args));
19
+ var min = 0;
20
+ var max = 0.35;
21
+ var dataObjectName = "Legend";
22
+ var position = [16, 10];
23
+ var horizontal = true;
24
+ var colorName = "Time/Depth";
25
+ var Template = function (args) {
26
+ return React.createElement(ContinuousLegend, __assign({}, args));
16
27
  };
17
- export const legendWithSelector = Template.bind({});
28
+ export var legendWithSelector = Template.bind({});
18
29
  legendWithSelector.args = {
19
- min,
20
- max,
21
- dataObjectName,
22
- position,
23
- horizontal,
24
- colorName,
25
- colorTables,
30
+ min: min,
31
+ max: max,
32
+ dataObjectName: dataObjectName,
33
+ position: position,
34
+ horizontal: horizontal,
35
+ colorName: colorName,
36
+ colorTables: colorTables,
26
37
  };
27
38
  //# sourceMappingURL=LegendWithSelector.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendWithSelector.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,4BAA4B;CACtC,CAAC;AAEF,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,cAAc,GAAG,QAAQ,CAAC;AAChC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,YAAY,CAAC;AAE/B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,GAAG;IACtB,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,UAAU;IACV,SAAS;IACT,WAAW;CACd,CAAC"}
1
+ {"version":3,"file":"LegendWithSelector.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,4BAA4B;CACtC,CAAC;AAEF,IAAM,GAAG,GAAG,CAAC,CAAC;AACd,IAAM,GAAG,GAAG,IAAI,CAAC;AACjB,IAAM,cAAc,GAAG,QAAQ,CAAC;AAChC,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,YAAY,CAAC;AAE/B,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,gBAAgB,eAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,GAAG;IACtB,GAAG,KAAA;IACH,GAAG,KAAA;IACH,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,UAAU,YAAA;IACV,SAAS,WAAA;IACT,WAAW,aAAA;CACd,CAAC"}
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import React from "react";
2
13
  import colorTables from "../../../component/color-tables.json";
3
14
  import ColorLegend from "../../../component/Legend/ColorLegend";
@@ -6,14 +17,14 @@ export default {
6
17
  title: "Legends/SingleComponent",
7
18
  };
8
19
  // prop for continous legend
9
- const min = 0;
10
- const max = 0.35;
11
- const dataObjectName = "Legend";
12
- const position = [16, 10];
13
- const horizontal = true;
14
- const colorName = "Physics";
20
+ var min = 0;
21
+ var max = 0.35;
22
+ var dataObjectName = "Legend";
23
+ var position = [16, 10];
24
+ var horizontal = true;
25
+ var colorName = "Physics";
15
26
  // prop for discrete data
16
- const discreteData = {
27
+ var discreteData = {
17
28
  "Above_BCU": [[], 0],
18
29
  "ABOVE": [[], 1],
19
30
  "H12": [[], 2],
@@ -30,18 +41,18 @@ const discreteData = {
30
41
  "H1": [[], 13],
31
42
  "BELOW": [[], 14]
32
43
  };
33
- const Template = (args) => {
34
- return React.createElement(ColorLegend, Object.assign({}, args));
44
+ var Template = function (args) {
45
+ return React.createElement(ColorLegend, __assign({}, args));
35
46
  };
36
- export const legendWithSelector = Template.bind({});
47
+ export var legendWithSelector = Template.bind({});
37
48
  legendWithSelector.args = {
38
- min,
39
- max,
40
- dataObjectName,
41
- position,
42
- horizontal,
43
- colorName,
44
- colorTables,
45
- discreteData,
49
+ min: min,
50
+ max: max,
51
+ dataObjectName: dataObjectName,
52
+ position: position,
53
+ horizontal: horizontal,
54
+ colorName: colorName,
55
+ colorTables: colorTables,
56
+ discreteData: discreteData,
46
57
  };
47
58
  //# sourceMappingURL=Single.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Single.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/SingleComponent/Single.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAEhE,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,yBAAyB;CACnC,CAAC;AAEF,4BAA4B;AAC5B,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,cAAc,GAAG,QAAQ,CAAC;AAChC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,yBAAyB;AACzB,MAAM,YAAY,GAAG;IACjB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,WAAW,oBAAK,IAAI,EAAI,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,GAAG;IACtB,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,UAAU;IACV,SAAS;IACT,WAAW;IACX,YAAY;CACf,CAAC"}
1
+ {"version":3,"file":"Single.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/SingleComponent/Single.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAEhE,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,yBAAyB;CACnC,CAAC;AAEF,4BAA4B;AAC5B,IAAM,GAAG,GAAG,CAAC,CAAC;AACd,IAAM,GAAG,GAAG,IAAI,CAAC;AACjB,IAAM,cAAc,GAAG,QAAQ,CAAC;AAChC,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,yBAAyB;AACzB,IAAM,YAAY,GAAG;IACjB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CACpB,CAAC;AAEF,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,WAAW,eAAK,IAAI,EAAI,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,GAAG;IACtB,GAAG,KAAA;IACH,GAAG,KAAA;IACH,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,UAAU,YAAA;IACV,SAAS,WAAA;IACT,WAAW,aAAA;IACX,YAAY,cAAA;CACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emerson-eps/color-tables",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Standard library of color tables for geological domain",
5
5
  "release": {
6
6
  "branches": [
@@ -60,6 +60,7 @@
60
60
  "@types/d3": "^7.1.0",
61
61
  "@types/styled-components": "^5.1.23",
62
62
  "babel-loader": "^8.1.0",
63
+ "html-webpack-plugin": "^5.5.0",
63
64
  "semantic-release": "^19.0.2",
64
65
  "ts-loader": "^9.2.6",
65
66
  "typescript": "^4.5.4"
@@ -52,12 +52,14 @@ export const ContinuousLegend: React.FC<legendProps> = ({
52
52
  let res = await fetch(colorTables);
53
53
  dataSet = await res.json()
54
54
  }
55
- // Return the matched colors array from color.tables.json file
55
+ //Return the matched colors array from color.tables.json file
56
56
  let legendColors = typeof colorTables === "string" ?
57
57
  colorsArray(colorName, dataSet)
58
58
  :
59
59
  colorsArray(colorName, colorTables);
60
60
 
61
+ //let legendColors = colorsArray(colorName, colorTables);
62
+
61
63
  // Update color of legend based on color selector scales
62
64
  // data is passed on click upon color scales
63
65
  if (updateLegend) {
@@ -195,7 +197,8 @@ export const ContinuousLegend: React.FC<legendProps> = ({
195
197
  .style("font-weight", "700")
196
198
  .call(VerticalAxisLeg);
197
199
  }
198
- } catch (error) {
200
+ }
201
+ catch (error) {
199
202
  console.error(error);
200
203
  }
201
204
  }
@@ -151,7 +151,8 @@ export const DiscreteColorLegend: React.FC<colorLegendProps> = ({
151
151
  .attr("height", "50px")
152
152
  .attr("width", "150px");
153
153
  }
154
- } catch (error) {
154
+ }
155
+ catch (error) {
155
156
  console.error(error);
156
157
  }
157
158
  }
package/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "outDir": "dist",
4
4
  "module": "es6",
5
- "target": "es6",
5
+ "target": "es5",
6
6
  "sourceMap": true,
7
7
  "allowJs": true,
8
8
  "jsx": "react",