@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,67 +1,141 @@
1
- declare type ItemColor = {
2
- color: any;
3
- }
1
+ declare type ItemColor = {
2
+ color: any;
3
+ };
4
4
 
5
5
  // eslint-disable-next-line
6
- export default function discreteLegendUtil(itemColor: ItemColor[], ColorSelector?: string): any {
7
- let legendValues: ItemColor[] = [];
8
- const cellWidth = 22;
9
- const cellHeight: any = 22;
10
- const cellPadding = 4;
6
+ export default function discreteLegendUtil(itemColor: ItemColor[], isSelectorLegend?: boolean, horizontal?: any): any {
7
+ // var cellWidth = 22;
8
+ // var cellHeight = 22;
9
+
10
+ // if (isSelectorLegend) {
11
+ // cellWidth = 25;
12
+ // cellHeight = 22;
13
+ // }
14
+
15
+ const legendValues: ItemColor[] = [];
11
16
 
12
17
  // eslint-disable-next-line
13
- function legend(g: any) {
18
+ function legend(g: any) {
14
19
  function drawLegend() {
15
- itemColor.forEach((item, index) => {
16
- legendValues[index].color = item.color;
17
- });
18
20
  // Code to fill the color
21
+ // Styling for color selector legend
22
+ //if (isSelectorLegend) {
19
23
  g.selectAll("g.legendCells")
24
+ .data(itemColor)
25
+ .enter()
26
+ .append("g")
20
27
  .append("rect")
21
- .attr("height", cellHeight)
22
- .attr("width", cellWidth)
28
+ .attr("class", "rectLabel")
29
+ .style("cursor", "pointer")
30
+ .style("pointer-events", "all");
31
+ g.selectAll("rect")
32
+ .attr("height", 1)
33
+ .attr("width", 1)
23
34
  .style("fill", function (d: Record<string, unknown>) {
24
35
  return d["color"];
25
36
  });
26
- if (!ColorSelector) {
27
- g.selectAll("g.legendCells.rect").style("stroke", "black").style("stroke-width", "1px")
28
- }
29
- // Display the label
30
- if (!ColorSelector) {
31
- g.selectAll("g.legendCells")
32
- .append("text")
33
- .attr("class", "breakLabels")
34
- .style("fill", "#6F6F6F")
35
- .attr("x", cellWidth + cellPadding)
36
- .attr("y", 5 + cellHeight / 2)
37
- .text(function (d: Record<string, unknown>) {
38
- return d["label"];
39
- });
40
- }
41
- // Alighment of cell in straight line
42
- if (!ColorSelector) {
43
- g.selectAll("g.legendCells").attr(
44
- "transform",
45
- function (_d: Record<string, unknown>, i: number) {
46
- return (
47
- "translate(0," + i * (cellHeight + cellPadding) + ")"
48
- );
49
- }
50
- );
51
- }
52
- if (ColorSelector) {
53
- g.selectAll("g.legendCells")
54
- .attr("transform", function(d: any) {
55
- return "translate(" + (d.label * cellWidth) + ",0)" }
56
- );
37
+ if (horizontal && !isSelectorLegend) {
38
+ g.selectAll("rect")
39
+ .attr("x", function (d: number, i: number) {
40
+ console.log(d)
41
+ return i;
42
+ })
43
+ .attr("y", 0);
44
+ } else if (!horizontal && !isSelectorLegend) {
45
+ g.selectAll("rect")
46
+ .attr("y", function (d: number, i: number) {
47
+ console.log(d)
48
+ return i;
49
+ })
50
+ .attr("x", 0);
51
+ } else if (horizontal == true && isSelectorLegend) {
52
+ g.selectAll("rect")
53
+ .attr("x", function (d: number, i: number) {
54
+ console.log(d)
55
+ return i;
56
+ })
57
+ .attr("y", 0);
58
+ } else if (horizontal == false && isSelectorLegend) {
59
+ g.selectAll("rect")
60
+ .attr("y", function (d: number, i: number) {
61
+ console.log(d)
62
+ return i;
63
+ })
64
+ .attr("x", 0);
65
+ } else {
66
+ g.selectAll("rect")
67
+ .attr("x", function (d: number, i: number) {
68
+ console.log(d)
69
+ return i;
70
+ })
71
+ .attr("y", 0);
57
72
  }
73
+
74
+ // Display the labels for legend
75
+ // g.selectAll("g")
76
+ // .style("background", "grey")
77
+ // .append("text")
78
+ // .attr("class", "breakLabels")
79
+ // .style("font-size", "0.4")
80
+ // //.attr("x", cellWidth + cellPadding)
81
+ // //.attr("y", 5 + cellHeight / 2)
82
+ // .attr("x", function (d: any, i: any) {
83
+ // //console.log(d)
84
+ // return i + "." + 25
85
+ // })
86
+ // .attr("y", 1.5)
87
+ // .text(function (d: any, i: any) {
88
+ // //console.log(d)
89
+ // return i;
90
+ // })
91
+ //}
92
+ // styling for main legend
93
+ // else {
94
+ // itemColor.forEach((item, index) => {
95
+ // legendValues[index].color = item.color;
96
+ // });
97
+ // g.selectAll("g.legendCells")
98
+ // .append("text")
99
+ // .attr("class", "breakLabels")
100
+ // .style("fill", "#6F6F6F")
101
+ // .attr("x", cellWidth + cellPadding)
102
+ // .attr("y", 5 + cellHeight / 2)
103
+ // .text(function (d: Record<string, unknown>, i:any) {
104
+ // return d['label'];
105
+ // });
106
+ // g.selectAll("g.legendCells")
107
+ // .style("cursor", "pointer")
108
+ // .append("rect")
109
+ // .attr("height", cellHeight)
110
+ // .attr("width", cellWidth)
111
+ // .style("fill", function (d: Record<string, unknown>) {
112
+ // //console.log('d', d)
113
+ // return d["color"];
114
+ // })
115
+
116
+ // // Alighment of cell in straight line
117
+ // g.selectAll("g.legendCells").attr(
118
+ // "transform",
119
+ // function (_d: Record<string, unknown>, i: number) {
120
+ // return (
121
+ // "translate(0," + i * (cellHeight + cellPadding) + ")"
122
+ // //"translate(0," + i + ")"
123
+ // );
124
+ // }
125
+ // );
126
+ // }
58
127
  }
128
+
59
129
  // display the discrete legend
60
- g.selectAll("g.legendCells")
61
- .data(legendValues)
62
- .enter()
63
- .append("g")
64
- .attr("class", "legendCells");
130
+ // if (!isSelectorLegend) {
131
+ // // console.log('itemcolor', itemColor)
132
+ // g.selectAll("g.legendCells")
133
+ // .data(legendValues)
134
+ // .enter()
135
+ // .append("g")
136
+ // .attr("class", "legendCells")
137
+ // }
138
+
65
139
  drawLegend();
66
140
  }
67
141
  // eslint-disable-next-line
@@ -69,12 +143,13 @@ export default function discreteLegendUtil(itemColor: ItemColor[], ColorSelector
69
143
  // eslint-disable-next-line
70
144
  let scale: any = {};
71
145
  scale = newScale;
72
- legendValues = [];
73
- scale.domain().forEach(function (el: string) {
146
+
147
+ scale.domain().forEach(function (el: any) {
74
148
  const cellObject = { color: scale(el), label: el };
75
149
  legendValues.push(cellObject);
76
150
  });
77
151
  return this;
78
152
  };
153
+
79
154
  return legend;
80
- }
155
+ }
@@ -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,12 +1,12 @@
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
7
 
8
8
  const Template = (args) => {
9
- return <ColorSelectorWrapper />;
9
+ return <ColorSelectorAccordion />;
10
10
  };
11
11
 
12
12
  export const selectorTemplate = Template.bind({});
@@ -1,39 +1,39 @@
1
- import React from "react";
2
- import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
3
- import colorTables from "../../../component/color-tables.json";
4
-
5
- export default {
6
- component: DiscreteColorLegend,
7
- title: "Legends/DiscreteColorLegend",
8
- };
9
-
10
- const discreteData = {
11
- "OS": [[], 0],
12
- "LSF": [[], 1],
13
- "USF": [[], 2],
14
- "MB": [[], 3],
15
- "TB": [[], 4],
16
- "TC": [[], 5],
17
- "TFS": [[], 6],
18
- "TFM": [[], 7],
19
- "MSH": [[], 8],
20
- "CAL": [[], 9]
21
- };
22
- const dataObjectName = "Wells / FACIES";
23
- const position = [16, 10];
24
- const horizontal = true;
25
- const colorName = "Facies";
26
-
27
- const Template = (args) => {
28
- return <DiscreteColorLegend {...args} />;
29
- };
30
-
31
- export const FaciesTemplate = Template.bind({});
32
- FaciesTemplate.args = {
33
- discreteData,
34
- dataObjectName,
35
- position,
36
- colorName,
37
- colorTables,
38
- horizontal,
39
- };
1
+ import React from "react";
2
+ import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
+ import colorTables from "../../../component/color-tables.json";
4
+
5
+ export default {
6
+ component: DiscreteColorLegend,
7
+ title: "Legends/DiscreteColorLegend",
8
+ };
9
+
10
+ const discreteData = {
11
+ OS: [[], 0],
12
+ LSF: [[], 1],
13
+ USF: [[], 2],
14
+ MB: [[], 3],
15
+ TB: [[], 4],
16
+ TC: [[], 5],
17
+ TFS: [[], 6],
18
+ TFM: [[], 7],
19
+ MSH: [[], 8],
20
+ CAL: [[], 9],
21
+ };
22
+ const dataObjectName = "Wells / FACIES";
23
+ const position = [16, 10];
24
+ const horizontal = true;
25
+ const colorName = "Facies";
26
+
27
+ const Template = args => {
28
+ return <DiscreteColorLegend {...args} />;
29
+ };
30
+
31
+ export const FaciesTemplate = Template.bind({});
32
+ FaciesTemplate.args = {
33
+ discreteData,
34
+ dataObjectName,
35
+ position,
36
+ colorName,
37
+ colorTables,
38
+ horizontal,
39
+ };
@@ -14,7 +14,7 @@ const discreteData = {
14
14
  const dataObjectName = "Wells / FaultDistance_HUM";
15
15
  const position = [16, 10];
16
16
  const horizontal = true;
17
- const colorName = "Gas-Oil-Water";
17
+ const colorName = "GasOilWater";
18
18
 
19
19
  const Template = (args) => {
20
20
  return <DiscreteColorLegend {...args} />;
@@ -0,0 +1,44 @@
1
+ import React from "react";
2
+ import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
3
+ import colorTables from "../../../component/color-tables.json";
4
+
5
+ export default {
6
+ component: DiscreteColorLegend,
7
+ title: "Legends/DiscreteLegendWithSelector",
8
+ };
9
+
10
+ const discreteData = {
11
+ "Above_BCU": [[], 0],
12
+ "ABOVE": [[], 1],
13
+ "H12": [[], 2],
14
+ "H11": [[], 3],
15
+ "H10": [[], 4],
16
+ "H9": [[], 5],
17
+ "H8": [[], 6],
18
+ "H7": [[], 7],
19
+ "H6": [[], 8],
20
+ "H5": [[], 9],
21
+ "H4": [[], 10],
22
+ "H3": [[], 11],
23
+ "H2": [[], 12],
24
+ "H1": [[], 13],
25
+ "BELOW": [[], 14]
26
+ };
27
+ const dataObjectName = "Wells / ZONELOG";
28
+ const position = [16, 10];
29
+ const horizontal = true;
30
+ const colorName = "Stratigraphy";
31
+
32
+ const Template = (args) => {
33
+ return <DiscreteColorLegend {...args} />;
34
+ };
35
+
36
+ export const discreteLegendWithSelector = Template.bind({});
37
+ discreteLegendWithSelector.args = {
38
+ discreteData,
39
+ dataObjectName,
40
+ position,
41
+ horizontal,
42
+ colorName,
43
+ colorTables,
44
+ };
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import { ContinuousLegend } from "../../../component/Legend/ContinuousLegend";
3
+ import colorTables from "../../../component/color-tables.json";
4
+
5
+ export default {
6
+ component: ContinuousLegend,
7
+ title: "Legends/LegendWithSelector",
8
+ };
9
+
10
+ const min = 0;
11
+ const max = 0.35;
12
+ const dataObjectName = "Legend";
13
+ const position = [16, 10];
14
+ const horizontal = true;
15
+ const colorName = "Time/Depth";
16
+
17
+ const Template = (args) => {
18
+ return <ContinuousLegend {...args} />;
19
+ };
20
+
21
+ export const legendWithSelector = Template.bind({});
22
+ legendWithSelector.args = {
23
+ min,
24
+ max,
25
+ dataObjectName,
26
+ position,
27
+ horizontal,
28
+ colorName,
29
+ colorTables,
30
+ };
@@ -0,0 +1,51 @@
1
+ import React from "react";
2
+ import colorTables from "../../../component/color-tables.json";
3
+ import ColorLegend from "../../../component/Legend/ColorLegend";
4
+
5
+ export default {
6
+ component: ColorLegend,
7
+ title: "Legends/SingleComponent",
8
+ };
9
+
10
+ // prop for continous legend
11
+ const min = 0;
12
+ const max = 0.35;
13
+ const dataObjectName = "Legend";
14
+ const position = [16, 10];
15
+ const horizontal = true;
16
+ const colorName = "Physics";
17
+
18
+ // prop for discrete data
19
+ const discreteData = {
20
+ "Above_BCU": [[], 0],
21
+ "ABOVE": [[], 1],
22
+ "H12": [[], 2],
23
+ "H11": [[], 3],
24
+ "H10": [[], 4],
25
+ "H9": [[], 5],
26
+ "H8": [[], 6],
27
+ "H7": [[], 7],
28
+ "H6": [[], 8],
29
+ "H5": [[], 9],
30
+ "H4": [[], 10],
31
+ "H3": [[], 11],
32
+ "H2": [[], 12],
33
+ "H1": [[], 13],
34
+ "BELOW": [[], 14]
35
+ };
36
+
37
+ const Template = (args) => {
38
+ return <ColorLegend {...args} />;
39
+ };
40
+
41
+ export const legendWithSelector = Template.bind({});
42
+ legendWithSelector.args = {
43
+ min,
44
+ max,
45
+ dataObjectName,
46
+ position,
47
+ horizontal,
48
+ colorName,
49
+ colorTables,
50
+ discreteData,
51
+ };
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",
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ColorSelectorWrapper: () => JSX.Element;
@@ -1 +0,0 @@
1
- {"version":3,"file":"ColorTableSelectorWrapper.js","sourceRoot":"","sources":["../../../src/component/ColorSelector/ColorTableSelectorWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAG,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACrC,OAAO,CACH,6BAAK,KAAK,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC;QACxB,oBAAC,SAAS;YACN,oBAAC,SAAS,CAAC,IAAI;gBACX,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,aAAa,IAAC,mBAAmB,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,GAAG,CACjD,CACL,CACT;oBACZ,oBAAC,SAAS;wBACN,oBAAC,SAAS,CAAC,IAAI;4BACX,oBAAC,SAAS,CAAC,MAAM,yBAEE;4BACnB,oBAAC,SAAS,CAAC,KAAK;gCACZ,oBAAC,aAAa,IAAC,mBAAmB,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,GAAG,CACjD,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,14 +0,0 @@
1
- import * as React from "react";
2
- import { colorTablesArray } from "../ColorTableTypes";
3
- interface legendProps {
4
- position: number[];
5
- colorsObject?: any;
6
- legendColor?: any;
7
- legendColorName: string;
8
- useContColorTable?: boolean;
9
- useDiscColorTable?: boolean;
10
- valueIndex?: any;
11
- }
12
- export declare const LegendComponent: React.FC<legendProps>;
13
- export declare function colorTableData(colorName: string, colorTables: colorTablesArray): [number, number, number, number][];
14
- export {};