@emerson-eps/color-tables 0.2.3 → 0.2.6

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 (92) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/dist/component/ColorSelector/ColorSelectorAccordion.d.ts +2 -0
  3. package/dist/component/ColorSelector/{ColorTableSelectorWrapper.js → ColorSelectorAccordion.js} +12 -7
  4. package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -0
  5. package/dist/component/ColorSelector/ColorSelectorComponent.d.ts +14 -5
  6. package/dist/component/ColorSelector/ColorSelectorComponent.js +260 -51
  7. package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
  8. package/dist/component/ColorSelector/ColorSelectorWrapper.d.ts +8 -0
  9. package/dist/component/ColorSelector/ColorSelectorWrapper.js +65 -0
  10. package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -0
  11. package/dist/component/Legend/ColorLegend.d.ts +16 -0
  12. package/dist/component/Legend/ColorLegend.js +35 -0
  13. package/dist/component/Legend/ColorLegend.js.map +1 -0
  14. package/dist/component/Legend/ContinuousLegend.d.ts +1 -0
  15. package/dist/component/Legend/ContinuousLegend.js +190 -83
  16. package/dist/component/Legend/ContinuousLegend.js.map +1 -1
  17. package/dist/component/Legend/DiscreteLegend.d.ts +2 -0
  18. package/dist/component/Legend/DiscreteLegend.js +173 -71
  19. package/dist/component/Legend/DiscreteLegend.js.map +1 -1
  20. package/dist/component/Utils/continousLegend.js +14 -12
  21. package/dist/component/Utils/continousLegend.js.map +1 -1
  22. package/dist/component/Utils/d3ColorScale.js +1 -1
  23. package/dist/component/Utils/d3ColorScale.js.map +1 -1
  24. package/dist/component/Utils/discreteLegend.d.ts +1 -1
  25. package/dist/component/Utils/discreteLegend.js +117 -41
  26. package/dist/component/Utils/discreteLegend.js.map +1 -1
  27. package/dist/component/color-tables.json +4 -4
  28. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.d.ts +2 -2
  29. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js +5 -5
  30. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js.map +1 -1
  31. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +27 -16
  32. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +1 -1
  33. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +27 -16
  34. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +1 -1
  35. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +27 -16
  36. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +1 -1
  37. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +27 -16
  38. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +1 -1
  39. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +27 -16
  40. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +1 -1
  41. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +27 -16
  42. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +1 -1
  43. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +27 -16
  44. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +1 -1
  45. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js +35 -24
  46. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +1 -1
  47. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +25 -14
  48. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +1 -1
  49. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +25 -14
  50. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +1 -1
  51. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +25 -14
  52. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +1 -1
  53. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +25 -14
  54. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +1 -1
  55. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +25 -14
  56. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +1 -1
  57. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +25 -14
  58. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +1 -1
  59. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +25 -14
  60. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +1 -1
  61. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.d.ts +7 -0
  62. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js +52 -0
  63. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js.map +1 -0
  64. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.d.ts +7 -0
  65. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js +38 -0
  66. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js.map +1 -0
  67. package/dist/stories/ColorLegends/SingleComponent/Single.stories.d.ts +7 -0
  68. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js +58 -0
  69. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js.map +1 -0
  70. package/package.json +2 -1
  71. package/src/component/ColorSelector/{ColorTableSelectorWrapper.tsx → ColorSelectorAccordion.tsx} +11 -6
  72. package/src/component/ColorSelector/ColorSelectorComponent.tsx +315 -95
  73. package/src/component/ColorSelector/ColorSelectorWrapper.tsx +118 -0
  74. package/src/component/Legend/ColorLegend.tsx +91 -0
  75. package/src/component/Legend/ContinuousLegend.tsx +159 -80
  76. package/src/component/Legend/DiscreteLegend.tsx +168 -63
  77. package/src/component/Utils/continousLegend.ts +1 -1
  78. package/src/component/Utils/discreteLegend.ts +128 -53
  79. package/src/component/color-tables.json +4 -4
  80. package/src/stories/ColorLegends/ColorSelector/Selector.stories.jsx +3 -3
  81. package/src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx +39 -39
  82. package/src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx +1 -1
  83. package/src/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.jsx +44 -0
  84. package/src/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.jsx +30 -0
  85. package/src/stories/ColorLegends/SingleComponent/Single.stories.jsx +51 -0
  86. package/tsconfig.json +1 -1
  87. package/dist/component/ColorSelector/ColorTableSelectorWrapper.d.ts +0 -2
  88. package/dist/component/ColorSelector/ColorTableSelectorWrapper.js.map +0 -1
  89. package/dist/component/ColorSelector/legendComponent.d.ts +0 -14
  90. package/dist/component/ColorSelector/legendComponent.js +0 -228
  91. package/dist/component/ColorSelector/legendComponent.js.map +0 -1
  92. package/src/component/ColorSelector/legendComponent.tsx +0 -289
@@ -1 +1 @@
1
- {"version":3,"file":"DiscreteLegend.js","sourceRoot":"","sources":["../../../src/component/Legend/DiscreteLegend.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAgB1C,MAAM,CAAC,MAAM,mBAAmB,GAA+B,CAAC,EAC5D,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,SAAS,EACT,WAAW,EACX,UAAU,GACK,EAAE,EAAE;IACnB,MAAM,MAAM,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC5C,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,IAAI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,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EACvB,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC5B,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC;QAAE,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;IAC/B,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC;QAAE,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;IAC/B,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC;QAAE,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;IAC/B,OAAO,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC3B,CAAC;AAED,mBAAmB,CAAC,YAAY,GAAG;IAC/B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;CACpB,CAAC"}
@@ -2,15 +2,17 @@ import { color } from "d3-color";
2
2
  import { interpolateRgb } from "d3-interpolate";
3
3
  // Based on objectName return the colors array from color.tables.json file
4
4
  export function colorsArray(colorName, colorTables) {
5
- const colorTableData = colorTables.filter((value) => value.name.toLowerCase() == colorName.toLowerCase());
5
+ var colorTableData = colorTables.filter(function (value) {
6
+ return value.name.toLowerCase() == colorName.toLowerCase();
7
+ });
6
8
  return colorTableData.length > 0 ? colorTableData[0].colors : [];
7
9
  }
8
10
  // return the colors based on the point
9
11
  export function rgbValues(point, colorName, colorTables) {
10
12
  var _a;
11
- const colorTableColors = colorsArray(colorName, colorTables);
13
+ var colorTableColors = colorsArray(colorName, colorTables);
12
14
  // compare the point and first value from colorTableColors
13
- const colorArrays = colorTableColors.find((value) => {
15
+ var colorArrays = colorTableColors.find(function (value) {
14
16
  return point == value[0];
15
17
  });
16
18
  // if point and value in color table matches then return particular colors
@@ -20,16 +22,16 @@ export function rgbValues(point, colorName, colorTables) {
20
22
  // if no match then need to do interpolation
21
23
  else {
22
24
  // Get index of first match of colortable point greater than point
23
- const index = colorTableColors.findIndex((value) => {
25
+ var index = colorTableColors.findIndex(function (value) {
24
26
  return value[0] > point;
25
27
  });
26
- const firstColorArray = colorTableColors[index - 1];
27
- const secondColorArray = colorTableColors[index];
28
+ var firstColorArray = colorTableColors[index - 1];
29
+ var secondColorArray = colorTableColors[index];
28
30
  if ((firstColorArray || secondColorArray) != undefined) {
29
- const t0 = firstColorArray[0];
30
- const t1 = secondColorArray[0];
31
- const t = (point - t0) / (t1 - t0); // t = 0.0 gives first color, t = 1.0 gives second color.
32
- const interpolatedValues = interpolateRgb(RGBToHex(firstColorArray).color, RGBToHex(secondColorArray).color)(t);
31
+ var t0 = firstColorArray[0];
32
+ var t1 = secondColorArray[0];
33
+ var t = (point - t0) / (t1 - t0); // t = 0.0 gives first color, t = 1.0 gives second color.
34
+ var interpolatedValues = interpolateRgb(RGBToHex(firstColorArray).color, RGBToHex(secondColorArray).color)(t);
33
35
  return (_a = color(interpolatedValues)) === null || _a === void 0 ? void 0 : _a.rgb();
34
36
  }
35
37
  return undefined;
@@ -37,14 +39,14 @@ export function rgbValues(point, colorName, colorTables) {
37
39
  }
38
40
  // return the hex color code and offset
39
41
  export function RGBToHex(rgb) {
40
- let r = Math.round(rgb[1]).toString(16), g = Math.round(rgb[2]).toString(16), b = Math.round(rgb[3]).toString(16);
42
+ var r = Math.round(rgb[1]).toString(16), g = Math.round(rgb[2]).toString(16), b = Math.round(rgb[3]).toString(16);
41
43
  if (r.length == 1)
42
44
  r = "0" + r;
43
45
  if (g.length == 1)
44
46
  g = "0" + g;
45
47
  if (b.length == 1)
46
48
  b = "0" + b;
47
- const offset = rgb[0] * 100.0;
49
+ var offset = rgb[0] * 100.0;
48
50
  return { color: "#" + r + g + b, offset: offset };
49
51
  }
50
52
  //# sourceMappingURL=continousLegend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"continousLegend.js","sourceRoot":"","sources":["../../../src/component/Utils/continousLegend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,M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M,IAAI,CAAC;QAAE,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;IAC/B,IAAM,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IAE9B,OAAO,EAAE,KAAK,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AACtD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import * as d3 from "d3";
2
- export const d3ColorScales = [
2
+ export var d3ColorScales = [
3
3
  {
4
4
  "name": "Spectral",
5
5
  "discrete": false,
@@ -1 +1 @@
1
- {"version":3,"file":"d3ColorScale.js","sourceRoot":"","sources":["../../../src/component/Utils/d3ColorScale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B;QACE,MAAM,EAAE,UAAU;QAClB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE,CAAC,mBAAmB;KACjC;IACD;QACE,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE,CAAC,iBAAiB;KAC/B;IACD;QACE,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE,CAAC,eAAe;KAC7B;IACD;QACE,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE,CAAC,eAAe;KAC7B;IACD;QACE,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE,CAAC,kBAAkB;KAChC;IACD;QACE,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE,CAAC,kBAAkB;KAChC;IACD;QACE,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,YAAY;KAC1B;IACD;QACE,MAAM,EAAE,OAAO;QACf,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,WAAW;KACzB;IACD;QACE,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,YAAY;KAC1B;IACD;QACE,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,aAAa;KAC3B;IACD;QACE,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,aAAa;KAC3B;IACD;QACE,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,UAAU;KACxB;IACD;QACE,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,UAAU;KACxB;IACD;QACE,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,UAAU;KACxB;IACD;QACE,MAAM,EAAE,WAAW;QACnB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,eAAe;KAC7B;IACD;QACE,MAAM,EAAE,YAAY;QACpB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,gBAAgB;KAC9B;CACF,CAAA"}
1
+ {"version":3,"file":"d3ColorScale.js","sourceRoot":"","sources":["../../../src/component/Utils/d3ColorScale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,MAAM,CAAC,IAAM,aAAa,GAAG;IAC3B;QACE,MAAM,EAAE,UAAU;QAClB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE,CAAC,mBAAmB;KACjC;IACD;QACE,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,EAAE,CAAC,iBAAiB;KAC/B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eAAe;KAC7B;IACD;QACE,MAAM,EAAE,YAAY;QACpB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,EAAE,CAAC,gBAAgB;KAC9B;CACF,CAAA"}
@@ -1,5 +1,5 @@
1
1
  declare type ItemColor = {
2
2
  color: any;
3
3
  };
4
- export default function discreteLegendUtil(itemColor: ItemColor[], ColorSelector?: string): any;
4
+ export default function discreteLegendUtil(itemColor: ItemColor[], isSelectorLegend?: boolean, horizontal?: any): any;
5
5
  export {};
@@ -1,67 +1,143 @@
1
1
  // eslint-disable-next-line
2
- export default function discreteLegendUtil(itemColor, ColorSelector) {
3
- let legendValues = [];
4
- const cellWidth = 22;
5
- const cellHeight = 22;
6
- const cellPadding = 4;
2
+ export default function discreteLegendUtil(itemColor, isSelectorLegend, horizontal) {
3
+ // var cellWidth = 22;
4
+ // var cellHeight = 22;
5
+ // if (isSelectorLegend) {
6
+ // cellWidth = 25;
7
+ // cellHeight = 22;
8
+ // }
9
+ var legendValues = [];
7
10
  // eslint-disable-next-line
8
11
  function legend(g) {
9
12
  function drawLegend() {
10
- itemColor.forEach((item, index) => {
11
- legendValues[index].color = item.color;
12
- });
13
13
  // Code to fill the color
14
+ // Styling for color selector legend
15
+ //if (isSelectorLegend) {
14
16
  g.selectAll("g.legendCells")
17
+ .data(itemColor)
18
+ .enter()
19
+ .append("g")
15
20
  .append("rect")
16
- .attr("height", cellHeight)
17
- .attr("width", cellWidth)
21
+ .attr("class", "rectLabel")
22
+ .style("cursor", "pointer")
23
+ .style("pointer-events", "all");
24
+ g.selectAll("rect")
25
+ .attr("height", 1)
26
+ .attr("width", 1)
18
27
  .style("fill", function (d) {
19
28
  return d["color"];
20
29
  });
21
- if (!ColorSelector) {
22
- g.selectAll("g.legendCells.rect").style("stroke", "black").style("stroke-width", "1px");
30
+ if (horizontal && !isSelectorLegend) {
31
+ g.selectAll("rect")
32
+ .attr("x", function (d, i) {
33
+ console.log(d);
34
+ return i;
35
+ })
36
+ .attr("y", 0);
37
+ }
38
+ else if (!horizontal && !isSelectorLegend) {
39
+ g.selectAll("rect")
40
+ .attr("y", function (d, i) {
41
+ console.log(d);
42
+ return i;
43
+ })
44
+ .attr("x", 0);
23
45
  }
24
- // Display the label
25
- if (!ColorSelector) {
26
- g.selectAll("g.legendCells")
27
- .append("text")
28
- .attr("class", "breakLabels")
29
- .style("fill", "#6F6F6F")
30
- .attr("x", cellWidth + cellPadding)
31
- .attr("y", 5 + cellHeight / 2)
32
- .text(function (d) {
33
- return d["label"];
34
- });
46
+ else if (horizontal == true && isSelectorLegend) {
47
+ g.selectAll("rect")
48
+ .attr("x", function (d, i) {
49
+ console.log(d);
50
+ return i;
51
+ })
52
+ .attr("y", 0);
35
53
  }
36
- // Alighment of cell in straight line
37
- if (!ColorSelector) {
38
- g.selectAll("g.legendCells").attr("transform", function (_d, i) {
39
- return ("translate(0," + i * (cellHeight + cellPadding) + ")");
40
- });
54
+ else if (horizontal == false && isSelectorLegend) {
55
+ g.selectAll("rect")
56
+ .attr("y", function (d, i) {
57
+ console.log(d);
58
+ return i;
59
+ })
60
+ .attr("x", 0);
41
61
  }
42
- if (ColorSelector) {
43
- g.selectAll("g.legendCells")
44
- .attr("transform", function (d) {
45
- return "translate(" + (d.label * cellWidth) + ",0)";
46
- });
62
+ else {
63
+ g.selectAll("rect")
64
+ .attr("x", function (d, i) {
65
+ console.log(d);
66
+ return i;
67
+ })
68
+ .attr("y", 0);
47
69
  }
70
+ // Display the labels for legend
71
+ // g.selectAll("g")
72
+ // .style("background", "grey")
73
+ // .append("text")
74
+ // .attr("class", "breakLabels")
75
+ // .style("font-size", "0.4")
76
+ // //.attr("x", cellWidth + cellPadding)
77
+ // //.attr("y", 5 + cellHeight / 2)
78
+ // .attr("x", function (d: any, i: any) {
79
+ // //console.log(d)
80
+ // return i + "." + 25
81
+ // })
82
+ // .attr("y", 1.5)
83
+ // .text(function (d: any, i: any) {
84
+ // //console.log(d)
85
+ // return i;
86
+ // })
87
+ //}
88
+ // styling for main legend
89
+ // else {
90
+ // itemColor.forEach((item, index) => {
91
+ // legendValues[index].color = item.color;
92
+ // });
93
+ // g.selectAll("g.legendCells")
94
+ // .append("text")
95
+ // .attr("class", "breakLabels")
96
+ // .style("fill", "#6F6F6F")
97
+ // .attr("x", cellWidth + cellPadding)
98
+ // .attr("y", 5 + cellHeight / 2)
99
+ // .text(function (d: Record<string, unknown>, i:any) {
100
+ // return d['label'];
101
+ // });
102
+ // g.selectAll("g.legendCells")
103
+ // .style("cursor", "pointer")
104
+ // .append("rect")
105
+ // .attr("height", cellHeight)
106
+ // .attr("width", cellWidth)
107
+ // .style("fill", function (d: Record<string, unknown>) {
108
+ // //console.log('d', d)
109
+ // return d["color"];
110
+ // })
111
+ // // Alighment of cell in straight line
112
+ // g.selectAll("g.legendCells").attr(
113
+ // "transform",
114
+ // function (_d: Record<string, unknown>, i: number) {
115
+ // return (
116
+ // "translate(0," + i * (cellHeight + cellPadding) + ")"
117
+ // //"translate(0," + i + ")"
118
+ // );
119
+ // }
120
+ // );
121
+ // }
48
122
  }
49
123
  // display the discrete legend
50
- g.selectAll("g.legendCells")
51
- .data(legendValues)
52
- .enter()
53
- .append("g")
54
- .attr("class", "legendCells");
124
+ // if (!isSelectorLegend) {
125
+ // // console.log('itemcolor', itemColor)
126
+ // g.selectAll("g.legendCells")
127
+ // .data(legendValues)
128
+ // .enter()
129
+ // .append("g")
130
+ // .attr("class", "legendCells")
131
+ // }
55
132
  drawLegend();
56
133
  }
57
134
  // eslint-disable-next-line
58
135
  legend.inputScale = function (newScale) {
59
136
  // eslint-disable-next-line
60
- let scale = {};
137
+ var scale = {};
61
138
  scale = newScale;
62
- legendValues = [];
63
139
  scale.domain().forEach(function (el) {
64
- const cellObject = { color: scale(el), label: el };
140
+ var cellObject = { color: scale(el), label: el };
65
141
  legendValues.push(cellObject);
66
142
  });
67
143
  return this;
@@ -1 +1 @@
1
- {"version":3,"file":"discreteLegend.js","sourceRoot":"","sources":["../../../src/component/Utils/discreteLeg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ACnD,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -59,7 +59,7 @@
59
59
  ]
60
60
  },
61
61
  {
62
- "name": "Seismic BlueWhiteRed",
62
+ "name": "Seismic",
63
63
  "discrete": false,
64
64
  "colors": [
65
65
  [0.00, 0, 0, 255],
@@ -158,7 +158,7 @@
158
158
  ]
159
159
  },
160
160
  {
161
- "name": "Gas-Oil-Water",
161
+ "name": "GasOilWater",
162
162
  "discrete": true,
163
163
  "colors": [
164
164
  [0, 255, 46, 0],
@@ -168,7 +168,7 @@
168
168
  ]
169
169
  },
170
170
  {
171
- "name": "Gas-Water",
171
+ "name": "GasWater",
172
172
  "discrete": true,
173
173
  "colors": [
174
174
  [0, 255, 46, 0],
@@ -177,7 +177,7 @@
177
177
  ]
178
178
  },
179
179
  {
180
- "name": "Oil-Water",
180
+ "name": "OilWater",
181
181
  "discrete": true,
182
182
  "colors": [
183
183
  [0, 0, 184, 0],
@@ -1,7 +1,7 @@
1
1
  declare namespace _default {
2
- export { ColorSelectorWrapper as component };
2
+ export { ColorSelectorAccordion as component };
3
3
  export const title: string;
4
4
  }
5
5
  export default _default;
6
6
  export const selectorTemplate: any;
7
- import { ColorSelectorWrapper } from "../../../component/ColorSelector/ColorTableSelectorWrapper";
7
+ import { ColorSelectorAccordion } from "../../../component/ColorSelector/ColorSelectorAccordion";
@@ -1,11 +1,11 @@
1
1
  import * as React from "react";
2
- import { ColorSelectorWrapper } from "../../../component/ColorSelector/ColorTableSelectorWrapper";
2
+ import { ColorSelectorAccordion } from "../../../component/ColorSelector/ColorSelectorAccordion";
3
3
  export default {
4
- component: ColorSelectorWrapper,
4
+ component: ColorSelectorAccordion,
5
5
  title: "Legends/ColorSelector",
6
6
  };
7
- const Template = (args) => {
8
- return React.createElement(ColorSelectorWrapper, null);
7
+ var Template = function (args) {
8
+ return React.createElement(ColorSelectorAccordion, null);
9
9
  };
10
- export const selectorTemplate = Template.bind({});
10
+ export var selectorTemplate = Template.bind({});
11
11
  //# sourceMappingURL=Selector.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Selector.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ColorSelector/Selector.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AAClG,eAAe;IACX,SAAS,EAAE,oBAAoB;IAC/B,KAAK,EAAE,uBAAuB;CACjC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,oBAAoB,OAAG,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"Selector.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ColorSelector/Selector.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AACjG,eAAe;IACX,SAAS,EAAE,sBAAsB;IACjC,KAAK,EAAE,uBAAuB;CACjC,CAAC;AAEF,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,sBAAsB,OAAG,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,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
  export default {
@@ -5,23 +16,23 @@ export default {
5
16
  title: "Legends/ContinousLegend",
6
17
  };
7
18
  import colorTables from "../../../component/color-tables.json";
8
- const min = 2918;
9
- const max = 4770;
10
- const dataObjectName = "Wells / MD";
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 = 2918;
20
+ var max = 4770;
21
+ var dataObjectName = "Wells / MD";
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 MDTemplate = Template.bind({});
28
+ export var MDTemplate = Template.bind({});
18
29
  MDTemplate.args = {
19
- min,
20
- max,
21
- dataObjectName,
22
- position,
23
- colorName,
24
- colorTables,
25
- horizontal,
30
+ min: min,
31
+ max: max,
32
+ dataObjectName: dataObjectName,
33
+ position: position,
34
+ colorName: colorName,
35
+ colorTables: colorTables,
36
+ horizontal: horizontal,
26
37
  };
27
38
  //# sourceMappingURL=MD.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MD.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLegends/MD.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,cAA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C,UAAU,CAAC,IAAI,GAAG;IACd,GAAG,KAAA;IACH,GAAG,KAAA;IACH,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 { ContinuousLegend } from "../../../component/Legend/ContinuousLegend";
3
14
  export default {
@@ -5,23 +16,23 @@ export default {
5
16
  title: "Legends/ContinousLegend",
6
17
  };
7
18
  import colorTables from "../../../component/color-tables.json";
8
- const min = 0;
9
- const max = 1;
10
- const dataObjectName = "Wells / NTG";
11
- const position = [16, 10];
12
- const horizontal = true;
13
- const colorName = "Rainbow";
14
- const Template = (args) => {
15
- return React.createElement(ContinuousLegend, Object.assign({}, args));
19
+ var min = 0;
20
+ var max = 1;
21
+ var dataObjectName = "Wells / NTG";
22
+ var position = [16, 10];
23
+ var horizontal = true;
24
+ var colorName = "Rainbow";
25
+ var Template = function (args) {
26
+ return React.createElement(ContinuousLegend, __assign({}, args));
16
27
  };
17
- export const NTGTemplate = Template.bind({});
28
+ export var NTGTemplate = Template.bind({});
18
29
  NTGTemplate.args = {
19
- min,
20
- max,
21
- dataObjectName,
22
- position,
23
- colorName,
24
- colorTables,
25
- horizontal,
30
+ min: min,
31
+ max: max,
32
+ dataObjectName: dataObjectName,
33
+ position: position,
34
+ colorName: colorName,
35
+ colorTables: colorTables,
36
+ horizontal: horizontal,
26
37
  };
27
38
  //# sourceMappingURL=NTG.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NTG.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLegends/NTG.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACf,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
1
+ {"version":3,"file":"NTG.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLegends/NTG.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,IAAM,GAAG,GAAG,CAAC,CAAC;AACd,IAAM,GAAG,GAAG,CAAC,CAAC;AACd,IAAM,cAAc,GAAG,aAAa,CAAC;AACrC,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,gBAAgB,eAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACf,GAAG,KAAA;IACH,GAAG,KAAA;IACH,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 { ContinuousLegend } from "../../../component/Legend/ContinuousLegend";
3
14
  export default {
@@ -5,23 +16,23 @@ export default {
5
16
  title: "Legends/ContinousLegend",
6
17
  };
7
18
  import colorTables from "../../../component/color-tables.json";
8
- const min = -999;
9
- const max = 14023;
10
- const dataObjectName = "Wells / PERMTOT";
11
- const position = [16, 10];
12
- const horizontal = true;
13
- const colorName = "Porosity";
14
- const Template = (args) => {
15
- return React.createElement(ContinuousLegend, Object.assign({}, args));
19
+ var min = -999;
20
+ var max = 14023;
21
+ var dataObjectName = "Wells / PERMTOT";
22
+ var position = [16, 10];
23
+ var horizontal = true;
24
+ var colorName = "Porosity";
25
+ var Template = function (args) {
26
+ return React.createElement(ContinuousLegend, __assign({}, args));
16
27
  };
17
- export const PermTotTemplate = Template.bind({});
28
+ export var PermTotTemplate = Template.bind({});
18
29
  PermTotTemplate.args = {
19
- min,
20
- max,
21
- dataObjectName,
22
- position,
23
- colorName,
24
- colorTables,
25
- horizontal,
30
+ min: min,
31
+ max: max,
32
+ dataObjectName: dataObjectName,
33
+ position: position,
34
+ colorName: colorName,
35
+ colorTables: colorTables,
36
+ horizontal: horizontal,
26
37
  };
27
38
  //# sourceMappingURL=PermTot.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PermTot.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLegends/PermTot.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC;AACjB,MAAM,GAAG,GAAG,KAAK,CAAC;AAClB,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,UAAU,CAAC;AAE7B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACnB,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
1
+ {"version":3,"file":"PermTot.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLegends/PermTot.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,IAAM,GAAG,GAAG,CAAC,GAAG,CAAC;AACjB,IAAM,GAAG,GAAG,KAAK,CAAC;AAClB,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,UAAU,CAAC;AAE7B,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,gBAAgB,eAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACnB,GAAG,KAAA;IACH,GAAG,KAAA;IACH,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,SAAS,WAAA;IACT,WAAW,aAAA;IACX,UAAU,YAAA;CACb,CAAC"}