@emerson-eps/color-tables 0.2.4 → 0.2.7

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 (72) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/dist/component/ColorSelector/ColorSelectorAccordion.js +3 -3
  3. package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -1
  4. package/dist/component/ColorSelector/ColorSelectorComponent.js +51 -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/ColorTableTypes.d.ts +2 -2
  9. package/dist/component/Legend/ColorLegend.d.ts +4 -1
  10. package/dist/component/Legend/ColorLegend.js +16 -7
  11. package/dist/component/Legend/ColorLegend.js.map +1 -1
  12. package/dist/component/Legend/ContinuousLegend.d.ts +2 -2
  13. package/dist/component/Legend/ContinuousLegend.js +188 -153
  14. package/dist/component/Legend/ContinuousLegend.js.map +1 -1
  15. package/dist/component/Legend/DiscreteLegend.d.ts +2 -2
  16. package/dist/component/Legend/DiscreteLegend.js +162 -116
  17. package/dist/component/Legend/DiscreteLegend.js.map +1 -1
  18. package/dist/component/Utils/continousLegend.js +14 -12
  19. package/dist/component/Utils/continousLegend.js.map +1 -1
  20. package/dist/component/Utils/d3ColorScale.js +1 -1
  21. package/dist/component/Utils/d3ColorScale.js.map +1 -1
  22. package/dist/component/Utils/discreteLegend.d.ts +3 -3
  23. package/dist/component/Utils/discreteLegend.js +121 -64
  24. package/dist/component/Utils/discreteLegend.js.map +1 -1
  25. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js +2 -2
  26. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js.map +1 -1
  27. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +27 -16
  28. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +1 -1
  29. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +27 -16
  30. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +1 -1
  31. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +27 -16
  32. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +1 -1
  33. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +27 -16
  34. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +1 -1
  35. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +27 -16
  36. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +1 -1
  37. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +27 -16
  38. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +1 -1
  39. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +27 -16
  40. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +1 -1
  41. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js +25 -14
  42. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +1 -1
  43. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +25 -14
  44. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +1 -1
  45. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +25 -14
  46. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +1 -1
  47. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +25 -14
  48. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +1 -1
  49. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +25 -14
  50. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +1 -1
  51. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +25 -14
  52. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +1 -1
  53. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +25 -14
  54. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +1 -1
  55. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +25 -14
  56. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +1 -1
  57. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js +25 -14
  58. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js.map +1 -1
  59. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js +27 -16
  60. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js.map +1 -1
  61. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js +29 -18
  62. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js.map +1 -1
  63. package/package.json +2 -1
  64. package/src/component/ColorSelector/ColorSelectorAccordion.tsx +2 -2
  65. package/src/component/ColorSelector/ColorSelectorComponent.tsx +17 -12
  66. package/src/component/ColorSelector/ColorSelectorWrapper.tsx +4 -4
  67. package/src/component/ColorTableTypes.ts +1 -1
  68. package/src/component/Legend/ColorLegend.tsx +13 -3
  69. package/src/component/Legend/ContinuousLegend.tsx +52 -54
  70. package/src/component/Legend/DiscreteLegend.tsx +118 -79
  71. package/src/component/Utils/discreteLegend.ts +125 -75
  72. package/tsconfig.json +1 -1
@@ -0,0 +1,3 @@
1
+ {
2
+ "git.ignoreLimitWarning": true
3
+ }
@@ -1,12 +1,12 @@
1
1
  import * as React from "react";
2
2
  import { Accordion } from "@equinor/eds-core-react";
3
3
  import { ColorSelectorWrapper } from "./ColorSelectorWrapper";
4
- export const ColorSelectorAccordion = (props) => {
4
+ export var ColorSelectorAccordion = function (props) {
5
5
  return (React.createElement("div", { className: "Container", style: { width: "316px",
6
6
  position: "absolute",
7
7
  zIndex: 1,
8
- top: 150,
9
- right: 5,
8
+ top: props.isHorizontal ? 100 : 30,
9
+ right: props.isHorizontal ? 5 : 165,
10
10
  } },
11
11
  React.createElement(Accordion, null,
12
12
  React.createElement(Accordion.Item, { isExpanded: true },
@@ -1 +1 @@
1
- {"version":3,"file":"ColorSelectorAccordion.js","sourceRoot":"","sources":["../../../src/component/ColorSelector/ColorSelectorAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAG,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,KAAU,EAAE,EAAE;IACjD,OAAO,CACH,6BAAK,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAC,KAAK,EAAE,OAAO;YACjD,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,CAAC;YACT,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,CAAC;SACP;QACG,oBAAC,SAAS;YACN,oBAAC,SAAS,CAAC,IAAI,IAAC,UAAU;gBACtB,oBAAC,SAAS,CAAC,MAAM,uBAEE;gBACnB,oBAAC,SAAS,CAAC,KAAK;oBACZ,oBAAC,SAAS;wBACN,oBAAC,SAAS,CAAC,IAAI;4BACX,oBAAC,SAAS,CAAC,MAAM,+BAEE;4BACnB,oBAAC,SAAS,CAAC,KAAK;gCACZ,oBAAC,oBAAoB,IAAC,mBAAmB,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACjF,CACL,CACT;oBACZ,oBAAC,SAAS;wBACN,oBAAC,SAAS,CAAC,IAAI;4BACX,oBAAC,SAAS,CAAC,MAAM,yBAEE;4BACnB,oBAAC,SAAS,CAAC,KAAK;gCACZ,oBAAC,oBAAoB,IAAC,WAAW,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACjF,CACL,CACT;oBACZ,oBAAC,SAAS;wBACN,oBAAC,SAAS,CAAC,IAAI;4BACX,oBAAC,SAAS,CAAC,MAAM,6BAEE;4BACnB,oBAAC,SAAS,CAAC,KAAK,yBAEE,CACL,CACT,CACE,CACL,CACT,CACV,CACT,CAAC;AACN,CAAC,CAAC"}
1
+ {"version":3,"file":"ColorSelectorAccordion.js","sourceRoot":"","sources":["../../../src/component/ColorSelector/ColorSelectorAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAG,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,CAAC,IAAM,sBAAsB,GAAG,UAAC,KAAU;IAC7C,OAAO,CACH,6BAAK,SAAS,EAAC,WAAW,EAAC,KAAK,EAAE,EAAC,KAAK,EAAE,OAAO;YACjD,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,CAAC;YACT,GAAG,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;YAClC,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;SAClC;QACG,oBAAC,SAAS;YACN,oBAAC,SAAS,CAAC,IAAI,IAAC,UAAU;gBACtB,oBAAC,SAAS,CAAC,MAAM,uBAEE;gBACnB,oBAAC,SAAS,CAAC,KAAK;oBACZ,oBAAC,SAAS;wBACN,oBAAC,SAAS,CAAC,IAAI;4BACX,oBAAC,SAAS,CAAC,MAAM,+BAEE;4BACnB,oBAAC,SAAS,CAAC,KAAK;gCACZ,oBAAC,oBAAoB,IAAC,mBAAmB,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACjF,CACL,CACT;oBACZ,oBAAC,SAAS;wBACN,oBAAC,SAAS,CAAC,IAAI;4BACX,oBAAC,SAAS,CAAC,MAAM,yBAEE;4BACnB,oBAAC,SAAS,CAAC,KAAK;gCACZ,oBAAC,oBAAoB,IAAC,WAAW,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,GAAG,CACjF,CACL,CACT;oBACZ,oBAAC,SAAS;wBACN,oBAAC,SAAS,CAAC,IAAI;4BACX,oBAAC,SAAS,CAAC,MAAM,6BAEE;4BACnB,oBAAC,SAAS,CAAC,KAAK,yBAEE,CACL,CACT,CACE,CACL,CACT,CACV,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -6,33 +6,37 @@ import { select, range } from "d3";
6
6
  import * as d3 from "d3";
7
7
  import discreteLegendUtil from "../Utils/discreteLegend";
8
8
  import { color } from "d3-color";
9
- export const ColorSelectorComponent = ({
10
- // position,
11
- colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable, valueIndex, colorScaleData,
12
- // getColorMapname,
13
- }) => {
14
- const divRef = useRef(null);
9
+ export var ColorSelectorComponent = function (_a) {
10
+ var
11
+ // position,
12
+ colorsObject = _a.colorsObject, legendColor = _a.legendColor, legendColorName = _a.legendColorName, useContColorTable = _a.useContColorTable, useDiscColorTable = _a.useDiscColorTable, valueIndex = _a.valueIndex, colorScaleData = _a.colorScaleData;
13
+ var divRef = useRef(null);
15
14
  // create an array of steps based on the color scale
16
15
  // returns an array of evenly-spaced numbers. Returns the integers from zero to the specified end minus one.
17
16
  // d3.range(start, stop, step)
17
+ var data;
18
+ var extent;
18
19
  if (legendColor) {
19
- var data = range(10).map(d => ({ color: legendColor(d / 10), value: d }));
20
+ data = range(10).map(function (d) { return ({
21
+ color: legendColor(d / 10),
22
+ value: d,
23
+ }); });
20
24
  // get the array's min and max value
21
- var extent = d3.extent(data, d => d.value);
25
+ extent = d3.extent(data, function (d) { return d === null || d === void 0 ? void 0 : d.value; });
22
26
  }
23
- const handleChange = React.useCallback(() => {
27
+ var handleChange = React.useCallback(function () {
24
28
  // continous legend with colortable colors
25
29
  if (colorsObject && Object.keys(colorsObject).length > 0 && useContColorTable) {
26
30
  colorScaleData(colorsObject, true);
27
31
  }
28
32
  // continous legend with d3 colors
29
33
  else if (data && !useContColorTable) {
30
- let arrayData = [];
31
- data.forEach((colorsObject) => {
34
+ var arrayData_1 = [];
35
+ data.forEach(function (colorsObject) {
32
36
  var _a, _b, _c;
33
- arrayData.push([0 + "." + colorsObject.value, (_a = color(colorsObject.color)) === null || _a === void 0 ? void 0 : _a.rgb().r, (_b = color(colorsObject.color)) === null || _b === void 0 ? void 0 : _b.rgb().g, (_c = color(colorsObject.color)) === null || _c === void 0 ? void 0 : _c.rgb().b]);
37
+ arrayData_1.push([0 + "." + colorsObject.value, (_a = color(colorsObject.color)) === null || _a === void 0 ? void 0 : _a.rgb().r, (_b = color(colorsObject.color)) === null || _b === void 0 ? void 0 : _b.rgb().g, (_c = color(colorsObject.color)) === null || _c === void 0 ? void 0 : _c.rgb().b]);
34
38
  });
35
- colorScaleData(arrayData, true);
39
+ colorScaleData({ arrayData: arrayData_1, legendColorName: legendColorName }, true);
36
40
  }
37
41
  // discrete legend with colortable colors
38
42
  else if (colorsObject && Object.keys(colorsObject).length > 0 && useDiscColorTable) {
@@ -40,10 +44,10 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
40
44
  }
41
45
  // discrete legend with d3 colors
42
46
  else {
43
- colorScaleData({ colorsObject, legendColorName }, false);
47
+ colorScaleData({ colorsObject: colorsObject, legendColorName: legendColorName }, false);
44
48
  }
45
49
  }, []);
46
- React.useEffect(() => {
50
+ React.useEffect(function () {
47
51
  // continuous legend using color table colors
48
52
  if (useContColorTable == true && divRef.current) {
49
53
  contColortableLegend();
@@ -79,8 +83,8 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
79
83
  }, [useContColorTable]);
80
84
  // continuous legend using color table colors (using linear gradiend)
81
85
  function contColortableLegend() {
82
- const itemColor = [];
83
- colorsObject.color.forEach((value) => {
86
+ var itemColor = [];
87
+ colorsObject.color.forEach(function (value) {
84
88
  // return the color and offset needed to draw the legend
85
89
  itemColor.push({
86
90
  offset: RGBToHex(value).offset,
@@ -88,13 +92,13 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
88
92
  });
89
93
  });
90
94
  // append a defs (for definition) element to your SVG
91
- const svgLegend = select(divRef.current)
95
+ var svgLegend = select(divRef.current)
92
96
  .append("svg")
93
97
  .style("height", "30px");
94
- const defs = svgLegend.append("defs");
95
- let currentIndex = "linear-gradient-" + valueIndex;
98
+ var defs = svgLegend.append("defs");
99
+ var currentIndex = "linear-gradient-" + valueIndex;
96
100
  // append a linearGradient element to the defs and give it a unique id
97
- const linearGradient = defs
101
+ var linearGradient = defs
98
102
  .append("linearGradient")
99
103
  .attr("id", currentIndex)
100
104
  .attr("x1", "0%")
@@ -134,19 +138,19 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
134
138
  }
135
139
  // continuous legend using d3 colors (using linear gradiend)
136
140
  function contD3Legend() {
137
- const itemColor = [];
138
- d3ColorScales.forEach((value) => {
141
+ var itemColor = [];
142
+ d3ColorScales.forEach(function (value) {
139
143
  // return the color and offset needed to draw the legend
140
144
  itemColor.push(value.colors);
141
145
  });
142
146
  // append a defs (for definition) element to your SVG
143
- const svgLegend = select(divRef.current)
147
+ var svgLegend = select(divRef.current)
144
148
  .append("svg")
145
149
  .style("height", "50px");
146
- const defs = svgLegend.append("defs");
147
- let currentIndex = "linear-gradient-" + valueIndex;
150
+ var defs = svgLegend.append("defs");
151
+ var currentIndex = "linear-gradient-" + valueIndex;
148
152
  // append a linearGradient element to the defs and give it a unique id
149
- const linearGradient = defs
153
+ var linearGradient = defs
150
154
  .append("linearGradient")
151
155
  .attr("id", currentIndex)
152
156
  .attr("x1", "0%")
@@ -157,8 +161,8 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
157
161
  linearGradient.selectAll("stop")
158
162
  .data(data)
159
163
  .enter().append("stop")
160
- .attr("offset", d => ((d.value - extent[0]) / (extent[1] - extent[0]) * 100) + "%")
161
- .attr("stop-color", d => d.color);
164
+ .attr("offset", function (d) { return ((d.value - extent[0]) / (extent[1] - extent[0]) * 100) + "%"; })
165
+ .attr("stop-color", function (d) { return d.color; });
162
166
  // append title
163
167
  svgLegend
164
168
  .append("text")
@@ -179,14 +183,14 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
179
183
  }
180
184
  // discrete legend using color table colors
181
185
  function discColorTableLegend() {
182
- const itemColor = [];
183
- const itemName = [];
184
- colorsObject.color.forEach((element, key) => {
186
+ var itemColor = [];
187
+ var itemName = [];
188
+ colorsObject.color.forEach(function (element, key) {
185
189
  itemColor.push({ color: RGBToHex(element) });
186
190
  itemName.push(key);
187
191
  });
188
192
  function RGBToHex(rgb) {
189
- let r = rgb[1].toString(16), g = rgb[2].toString(16), b = rgb[3].toString(16);
193
+ var r = rgb[1].toString(16), g = rgb[2].toString(16), b = rgb[3].toString(16);
190
194
  if (r.length == 1)
191
195
  r = "0" + r;
192
196
  if (g.length == 1)
@@ -196,10 +200,10 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
196
200
  return "#" + r + g + b;
197
201
  }
198
202
  //const ordinalValues = scaleOrdinal().domain(itemName);
199
- let count = itemName.length;
200
- const colorLegend = discreteLegendUtil(itemColor, true);
203
+ var count = itemName.length;
204
+ var colorLegend = discreteLegendUtil(itemColor, true);
201
205
  //const calcLegendHeight = 22 * itemColor.length + 4 * itemColor.length;
202
- const selectedLegend = select(divRef.current);
206
+ var selectedLegend = select(divRef.current);
203
207
  // colorname as label for the legend (ex: facies)
204
208
  selectedLegend
205
209
  .append("label")
@@ -215,7 +219,7 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
215
219
  .append("svg")
216
220
  .style("margin-top", "13px")
217
221
  .style("margin-left", "70px")
218
- .attr("viewBox", `0 0 ${count} 1`)
222
+ .attr("viewBox", "0 0 ".concat(count, " 1"))
219
223
  .attr("preserveAspectRatio", "none")
220
224
  .style("width", "109px")
221
225
  .style("height", "20px")
@@ -223,17 +227,17 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
223
227
  }
224
228
  // discrete legend using d3 colors
225
229
  function discD3legend() {
226
- const itemName = [];
227
- const itemColor = [];
228
- colorsObject.forEach((element, key) => {
230
+ var itemName = [];
231
+ var itemColor = [];
232
+ colorsObject.forEach(function (element, key) {
229
233
  itemColor.push({ color: element });
230
234
  itemName.push(key);
231
235
  });
232
236
  //const ordinalValues = scaleOrdinal(colorsObject).domain(itemName);
233
- let count = itemName.length;
234
- const discreteLegend = discreteLegendUtil(itemColor, true);
237
+ var count = itemName.length;
238
+ var discreteLegend = discreteLegendUtil(itemColor, true);
235
239
  select("svg").append("g").attr("transform", "translate(50,70)").attr("class", "legend").call(discreteLegend);
236
- const selectedLegend = select(divRef.current);
240
+ var selectedLegend = select(divRef.current);
237
241
  selectedLegend
238
242
  .append("text")
239
243
  .text(legendColorName ? legendColorName : '')
@@ -248,7 +252,7 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
248
252
  .style("margin-top", "13px")
249
253
  .style("margin-left", "70px")
250
254
  .style("background", "grey")
251
- .attr("viewBox", `0 0 ${count} 1`)
255
+ .attr("viewBox", "0 0 ".concat(count, " 1"))
252
256
  .attr("preserveAspectRatio", "none")
253
257
  .style("width", "109px")
254
258
  .style("height", "20px")
@@ -259,7 +263,9 @@ colorsObject, legendColor, legendColorName, useContColorTable, useDiscColorTable
259
263
  };
260
264
  // Based on name return the colors array from color.tables.json file
261
265
  export function colorTableData(colorName, colorTables) {
262
- const colorTableData = colorTables.filter((value) => value.name.toLowerCase() == colorName.toLowerCase());
266
+ var colorTableData = colorTables.filter(function (value) {
267
+ return value.name.toLowerCase() == colorName.toLowerCase();
268
+ });
263
269
  return colorTableData.length > 0 ? colorTableData[0].colors : [];
264
270
  }
265
271
  //# sourceMappingURL=ColorSelectorComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColorSelectorComponent.js","sourceRoot":"","sources":["../../../src/component/ColorSelector/ColorSelectorComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAC,MAAM,IAAI,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAmBjC,MAAM,CAAC,MAAM,sBAAsB,GAA0B,CAAC;AAC1D,YAAY;AACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,cAAc;AACd,mBAAmB;EACT,EAAE,EAAE;IAEd,MAAM,MAAM,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC5C,oDAAoD;IAChD,4GAA4G;IAC5G,8BAA8B;IAClC,IAAI,WAAW,EAAE;QACb,IAAI,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAA,EAAE,CAAC,CAAC,EAAC,KAAK,EAAC,WAAW,CAAC,CAAC,GAAC,EAAE,CAAC,EAAE,KAAK,EAAC,CAAC,EAAC,CAAC,CAAC,CAAA;QAClE,oCAAoC;QACpC,IAAI,MAAM,GAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;KACnD;IAED,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE;QACxC,0CAA0C;QAC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EAAE,EAAC,EAChC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAQ,CAC5C,CACT,CAAC;AACN,CAAC,CAAC;AAEF,oEAAoE;AACpE,MAAM,UAAU,cAAc,CAC1B,SAAiB,EACjB,WAA6B;IAE7B,MAAM,cAAc,GAAG,WAAW,CAAC,MAAM,CACrC,CAAC,KAAqB,EAAE,EAAE,CACtB,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,SAAS,CAAC,WAAW,EAAE,CAC1D,CAAC;IACF,OAAO,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;AACrE,CAAC"}
1
+ {"version":3,"file":"ColorSelectorComponent.js","sourceRoot":"","sources":["../../../src/component/ColorSelector/ColorSelectorComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,EAAC,MAAM,IAAI,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,OAAO,kBAAkB,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAmBjC,MAAM,CAAC,IAAM,sBAAsB,GAA0B,UAAC,EAUhD;;IATV,YAAY;IACZ,YAAY,kBAAA,EACZ,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,iBAAiB,uBAAA,EACjB,iBAAiB,uBAAA,EACjB,UAAU,gBAAA,EACV,cAAc,oBAAA;IAId,IAAM,MAAM,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAC5C,oDAAoD;IAChD,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C;aAC7B,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QACjC,cAAc;aACT,MAAM,CAAC,KAAK,CAAC;aACb,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC;aAC3B,KAAK,CAAC,aAAa,EAAE,MAAM,CAAC;aAC5B,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC;aAC3B,IAAI,CAAC,SAAS,EAAE,cAAO,KAAK,OAAI,CAAC;aACjC,IAAI,CAAC,qBAAqB,EAAE,MAAM,CAAC;aAEnC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC;aACvB,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC;aACvB,IAAI,CAAC,cAAc,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,CACH;QACI,6BAAK,EAAE,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,EAAE,EAAC,EAChC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAQ,CAC5C,CACT,CAAC;AACN,CAAC,CAAC;AAEF,oEAAoE;AACpE,MAAM,UAAU,cAAc,CAC1B,SAAiB,EACjB,WAA6B;IAE7B,IAAM,cAAc,GAAG,WAAW,CAAC,MAAM,CACrC,UAAC,KAAqB;QAClB,OAAA,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,SAAS,CAAC,WAAW,EAAE;IAAnD,CAAmD,CAC1D,CAAC;IACF,OAAO,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;AACrE,CAAC"}
@@ -2,58 +2,59 @@ import * as React from "react";
2
2
  import * as colorTables from "../color-tables.json";
3
3
  import { d3ColorScales } from "../Utils/d3ColorScale";
4
4
  import { ColorSelectorComponent } from "./ColorSelectorComponent";
5
- const position = [16, 206];
6
- const continuosColorData = [];
7
- const continuosD3ColorData = [];
8
- const discreteColorData = [];
9
- const discreteD3ColorData = [];
5
+ var position = [16, 206];
6
+ var continuosColorData = [];
7
+ var continuosD3ColorData = [];
8
+ var discreteColorData = [];
9
+ var discreteD3ColorData = [];
10
10
  // Continuous legend using color table data
11
- var colorTableContinuousData = colorTables.filter((element) => {
11
+ var colorTableContinuousData = colorTables.filter(function (element) {
12
12
  return element.discrete == false;
13
13
  });
14
- colorTableContinuousData.forEach((element) => {
14
+ colorTableContinuousData.forEach(function (element) {
15
15
  continuosColorData.push({ color: element.colors, name: element.name });
16
16
  });
17
17
  // Continuous legend using d3 data
18
- var d3continuousData = d3ColorScales.filter((element) => {
18
+ var d3continuousData = d3ColorScales.filter(function (element) {
19
19
  return element.discrete == false;
20
20
  });
21
- d3continuousData.forEach((element) => {
21
+ d3continuousData.forEach(function (element) {
22
22
  continuosD3ColorData.push({ color: element.colors, name: element.name });
23
23
  });
24
24
  // Discrete legend using color table data
25
- var discreteData = colorTables.filter((element) => {
25
+ var discreteData = colorTables.filter(function (element) {
26
26
  return element.discrete == true;
27
27
  });
28
- discreteData.forEach((element) => {
28
+ discreteData.forEach(function (element) {
29
29
  discreteColorData.push({ color: element.colors, name: element.name });
30
30
  });
31
31
  // Discrete legend using d3 data
32
- var d3discreteData = d3ColorScales.filter((element) => {
32
+ var d3discreteData = d3ColorScales.filter(function (element) {
33
33
  return element.discrete == true;
34
34
  });
35
- d3discreteData.forEach((element) => {
35
+ d3discreteData.forEach(function (element) {
36
36
  discreteD3ColorData.push({ color: element.colors, name: element.name });
37
37
  });
38
- export const ColorSelectorWrapper = ({ useColorTableColors, useD3Colors, colorScaleObject, }) => {
39
- let continuousLegend;
40
- let discreteLegend;
38
+ export var ColorSelectorWrapper = function (_a) {
39
+ var useColorTableColors = _a.useColorTableColors, useD3Colors = _a.useD3Colors, colorScaleObject = _a.colorScaleObject;
40
+ var continuousLegend;
41
+ var discreteLegend;
41
42
  // return continuous and discrete legend which uses colortable data
42
43
  if (useColorTableColors) {
43
- continuousLegend = continuosColorData.map((value, key) => {
44
+ continuousLegend = continuosColorData.map(function (value, key) {
44
45
  return React.createElement("div", null,
45
46
  React.createElement(ColorSelectorComponent, { position: position + key, colorsObject: value, useContColorTable: true, valueIndex: key, colorScaleData: colorScaleObject.colorScaleObject }));
46
47
  });
47
- discreteLegend = discreteColorData.map((val, key) => {
48
+ discreteLegend = discreteColorData.map(function (val, key) {
48
49
  return React.createElement(ColorSelectorComponent, { position: position + key, colorsObject: discreteColorData[key], legendColorName: val.name, useDiscColorTable: true, colorScaleData: colorScaleObject.colorScaleObject });
49
50
  });
50
51
  }
51
52
  // return continuous and discrete legend which uses d3 data
52
53
  if (useD3Colors) {
53
- continuousLegend = continuosD3ColorData.map((val, key) => {
54
+ continuousLegend = continuosD3ColorData.map(function (val, key) {
54
55
  return React.createElement(ColorSelectorComponent, { position: position + key, legendColor: val.color, legendColorName: val.name, useContColorTable: false, valueIndex: key + "0", colorScaleData: colorScaleObject.colorScaleObject });
55
56
  });
56
- discreteLegend = d3discreteData.map((val, key) => {
57
+ discreteLegend = d3discreteData.map(function (val, key) {
57
58
  return React.createElement(ColorSelectorComponent, { position: position + key, colorsObject: val.colors, legendColorName: val.name, useDiscColorTable: false, colorScaleData: colorScaleObject.colorScaleObject });
58
59
  });
59
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ColorSelectorWrapper.js","sourceRoot":"","sources":["../../../src/component/ColorSelector/ColorSelectorWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,WAAW,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAEhE,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;AAC3B,MAAM,kBAAkB,GAAQ,EAAE,CAAC;AACnC,MAAM,oBAAoB,GAAQ,EAAE,CAAC;AACrC,MAAM,i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,EAAE,GAAQ;YAC3D,OAAO,oBAAC,sBAAsB,IAClB,QAAQ,EAAE,QAAQ,GAAG,GAAG,EACxB,WAAW,EAAE,GAAG,CAAC,KAAK,EACtB,eAAe,EAAE,GAAG,CAAC,IAAI,EACzB,iBAAiB,EAAE,KAAK,EACxB,UAAU,EAAE,GAAG,GAAG,GAAG,EACrB,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,GAC3D,CAAA;QACN,CAAC,CAAC,CAAC;QAEH,cAAc,GAAG,cAAc,CAAC,GAAG,CAAC,UAAC,GAAQ,EAAE,GAAQ;YACnD,OAAO,oBAAC,sBAAsB,IAClB,QAAQ,EAAE,QAAQ,GAAG,GAAG,EACxB,YAAY,EAAE,GAAG,CAAC,MAAM,EACxB,eAAe,EAAE,GAAG,CAAC,IAAI,EACzB,iBAAiB,EAAE,KAAK,EACxB,cAAc,EAAE,gBAAgB,CAAC,gBAAgB,GACnD,CAAA;QACd,CAAC,CAAC,CAAC;KACN;IAED,OAAO,CACH,6BAAK,SAAS,EAAC,eAAe,EAC1B,KAAK,EAAE,EAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAC;QAEpG,gBAAgB;QAChB,cAAc,CACb,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
- export declare type colorTablesObj = {
1
+ export interface colorTablesObj {
2
2
  name: string;
3
3
  discrete: boolean;
4
4
  colors: [number, number, number, number][];
5
- };
5
+ }
6
6
  export declare type colorTablesArray = Array<colorTablesObj>;
@@ -7,7 +7,10 @@ interface ColorLegendProps {
7
7
  position?: number[] | null;
8
8
  colorName: string;
9
9
  horizontal?: boolean | null;
10
- discreteData: any;
10
+ discreteData: {
11
+ objects: Record<string, [number[], number]>;
12
+ };
13
+ getColorMapname?: any;
11
14
  }
12
15
  declare const ColorLegend: React.FC<ColorLegendProps>;
13
16
  export default ColorLegend;
@@ -4,15 +4,24 @@ import { ContinuousLegend } from "./ContinuousLegend";
4
4
  import { useCallback } from "react";
5
5
  import { ColorSelectorAccordion } from "../ColorSelector/ColorSelectorAccordion";
6
6
  // Todo: Adapt it for other layers too
7
- const ColorLegend = ({ position, horizontal, colorTables, min, max, dataObjectName, colorName, discreteData }) => {
8
- const [isToggled, setIsToggled] = React.useState(false);
9
- const handleClick = useCallback(() => {
7
+ var ColorLegend = function (_a) {
8
+ var position = _a.position, horizontal = _a.horizontal, colorTables = _a.colorTables, min = _a.min, max = _a.max, dataObjectName = _a.dataObjectName, colorName = _a.colorName, discreteData = _a.discreteData, getColorMapname = _a.getColorMapname;
9
+ var _b = React.useState(false), isToggled = _b[0], setIsToggled = _b[1];
10
+ var handleClick = useCallback(function () {
10
11
  setIsToggled(true);
11
12
  }, []);
12
- const [updateLegend, setUpdateLegendColor] = React.useState([]);
13
- const [isCont, setIsCont] = React.useState(true);
13
+ var _c = React.useState([]), updateLegend = _c[0], setUpdateLegendColor = _c[1];
14
+ var _d = React.useState(true), isCont = _d[0], setIsCont = _d[1];
14
15
  // Get new colorscale from colorselector and update legend
15
- const colorScaleObject = React.useCallback((data, value) => {
16
+ var colorScaleObject = React.useCallback(function (data, value) {
17
+ // update color map layer
18
+ if (data.name && getColorMapname) {
19
+ getColorMapname(data.name);
20
+ }
21
+ // d3 color name
22
+ else if (getColorMapname) {
23
+ getColorMapname(data.legendColorName);
24
+ }
16
25
  setUpdateLegendColor(data);
17
26
  setIsCont(value);
18
27
  }, []);
@@ -20,7 +29,7 @@ const ColorLegend = ({ position, horizontal, colorTables, min, max, dataObjectNa
20
29
  React.createElement("div", { onClick: handleClick },
21
30
  isCont && (React.createElement(ContinuousLegend, { min: min, max: max, dataObjectName: dataObjectName, position: position, colorName: colorName, colorTables: colorTables, horizontal: horizontal, updateLegend: updateLegend })),
22
31
  !isCont && (React.createElement(DiscreteColorLegend, { discreteData: discreteData, dataObjectName: dataObjectName, position: position, colorName: colorName, colorTables: colorTables, horizontal: horizontal, updateLegend: updateLegend }))),
23
- React.createElement("div", null, isToggled && (React.createElement(ColorSelectorAccordion, { colorScaleObject: colorScaleObject })))));
32
+ React.createElement("div", null, isToggled && (React.createElement(ColorSelectorAccordion, { colorScaleObject: colorScaleObject, isHorizontal: horizontal })))));
24
33
  };
25
34
  export default ColorLegend;
26
35
  //# sourceMappingURL=ColorLegend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColorLegend.js","sourceRoot":"","sources":["../../../src/component/Legend/ColorLegend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAajF,sCAAsC;AACtC,MAAM,WAAW,GAA+B,CAAC,EAC7C,QAAQ,EACR,UAAU,EACV,WAAW,EACX,GAAG,EACH,GAAG,EACH,cAAc,EACd,SAAS,EACT,YAAY,EACG,EAAE,EAAE;IAEnB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxD,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,EAAE;QACjC,YAAY,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,CAAC,YAAY,EAAE,oBAAoB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,EAAS,CAAC,CAAC;IACvE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAEjD,0DAA0D;IAC1D,MAAM,gBAAgB,GAAG,KAAK,CAAC,WAAW,CAAC,C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E,YAAY,GAC5B,CACL;YACA,CAAC,MAAM,IAAI,CACR,oBAAC,mBAAmB,IAChB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,GAC5B,CACL,CACC;QACN,iCACK,SAAS,IAAI,CACV,oBAAC,sBAAsB,IAAC,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,GAAI,CAC3F,CACC,CACJ,CAET,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { colorTablesArray } from "../ColorTableTypes";
3
- declare type legendProps = {
3
+ interface legendProps {
4
4
  min: number;
5
5
  max: number;
6
6
  dataObjectName: string;
@@ -9,6 +9,6 @@ declare type legendProps = {
9
9
  colorTables: colorTablesArray | string;
10
10
  horizontal?: boolean | null;
11
11
  updateLegend?: any;
12
- };
12
+ }
13
13
  export declare const ContinuousLegend: React.FC<legendProps>;
14
14
  export {};