@emerson-eps/color-tables 0.2.13 → 0.2.14
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.
- package/dist/component/ColorSelector/ColorSelectorAccordion.js +2 -2
- package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorComponent.d.ts +1 -2
- package/dist/component/ColorSelector/ColorSelectorComponent.js +3 -3
- package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorWrapper.d.ts +6 -1
- package/dist/component/ColorSelector/ColorSelectorWrapper.js +7 -8
- package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -1
- package/dist/component/Legend/ColorLegend.js +2 -2
- package/dist/component/Legend/ColorLegend.js.map +1 -1
- package/dist/component/Legend/ContinuousLegend.d.ts +1 -1
- package/dist/component/Legend/ContinuousLegend.js.map +1 -1
- package/dist/component/Legend/DiscreteLegend.d.ts +1 -1
- package/dist/component/Legend/DiscreteLegend.js +1 -1
- package/dist/component/Legend/DiscreteLegend.js.map +1 -1
- package/dist/component/Utils/continousLegend.d.ts +1 -1
- package/dist/component/{Utils/ColorTableTypes.d.ts → colorTableTypes.d.ts} +0 -0
- package/dist/component/colorTableTypes.js +2 -0
- package/dist/component/colorTableTypes.js.map +1 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -3
- package/.storybook/main.js +0 -11
- package/.storybook/preview.js +0 -9
- package/.vscode/settings.json +0 -3
- package/dist/component/Utils/ColorTableTypes.js +0 -2
- package/dist/component/Utils/ColorTableTypes.js.map +0 -1
- package/dist/stories/ColorLegends/ColorSelector/Selector.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js +0 -11
- package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js +0 -47
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +0 -47
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +0 -39
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +0 -39
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +0 -42
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +0 -53
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +0 -42
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +0 -52
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +0 -1
- package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.js +0 -58
- package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.js.map +0 -1
- package/src/component/ColorSelector/ColorSelectorAccordion.tsx +0 -54
- package/src/component/ColorSelector/ColorSelectorComponent.tsx +0 -312
- package/src/component/ColorSelector/ColorSelectorWrapper.tsx +0 -119
- package/src/component/Legend/ColorLegend.tsx +0 -106
- package/src/component/Legend/ContinuousLegend.tsx +0 -233
- package/src/component/Legend/DiscreteLegend.tsx +0 -206
- package/src/component/Utils/ColorTableTypes.ts +0 -6
- package/src/component/Utils/continousLegend.ts +0 -73
- package/src/component/Utils/d3ColorScale.ts +0 -84
- package/src/component/Utils/discreteLegend.ts +0 -81
- package/src/component/color-tables.json +0 -203
- package/src/custom.d.ts +0 -1
- package/src/index.ts +0 -26
- package/src/stories/ColorLegends/ColorSelector/Selector.stories.jsx +0 -12
- package/src/stories/ColorLegends/ContinousLegends/MD.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/NTG.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/PermTot.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/Permeability.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/PoroTot.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/Porosity.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/SW.stories.jsx +0 -29
- package/src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx +0 -39
- package/src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.jsx +0 -39
- package/src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx +0 -31
- package/src/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.jsx +0 -31
- package/src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx +0 -34
- package/src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx +0 -45
- package/src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx +0 -34
- package/src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx +0 -46
- package/src/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.jsx +0 -51
- package/tsconfig.json +0 -23
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import * as d3 from "d3";
|
|
2
|
-
|
|
3
|
-
export const d3ColorScales = [
|
|
4
|
-
{
|
|
5
|
-
"name": "Spectral",
|
|
6
|
-
"discrete": false,
|
|
7
|
-
"colors": d3.interpolateSpectral
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"name": "RdYlBu",
|
|
11
|
-
"discrete": false,
|
|
12
|
-
"colors": d3.interpolateRdYlBu
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "Warm",
|
|
16
|
-
"discrete": false,
|
|
17
|
-
"colors": d3.interpolateWarm
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "Cool",
|
|
21
|
-
"discrete": false,
|
|
22
|
-
"colors": d3.interpolateCool
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "Viridis",
|
|
26
|
-
"discrete": false,
|
|
27
|
-
"colors": d3.interpolateViridis
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "Inferno",
|
|
31
|
-
"discrete": false,
|
|
32
|
-
"colors": d3.interpolateInferno
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"name": "Accent",
|
|
36
|
-
"discrete": true,
|
|
37
|
-
"colors": d3.schemeAccent
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"name": "Dark2",
|
|
41
|
-
"discrete": true,
|
|
42
|
-
"colors": d3.schemeDark2
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "Paired",
|
|
46
|
-
"discrete": true,
|
|
47
|
-
"colors": d3.schemePaired
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "Pastel1",
|
|
51
|
-
"discrete": true,
|
|
52
|
-
"colors": d3.schemePastel1
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "Pastel2",
|
|
56
|
-
"discrete": true,
|
|
57
|
-
"colors": d3.schemePastel2
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "Set1",
|
|
61
|
-
"discrete": true,
|
|
62
|
-
"colors": d3.schemeSet1
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "Set2",
|
|
66
|
-
"discrete": true,
|
|
67
|
-
"colors": d3.schemeSet3
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"name": "Set3",
|
|
71
|
-
"discrete": true,
|
|
72
|
-
"colors": d3.schemeSet3
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "Tableau10",
|
|
76
|
-
"discrete": true,
|
|
77
|
-
"colors": d3.schemeTableau10
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"name": "Category10",
|
|
81
|
-
"discrete": true,
|
|
82
|
-
"colors": d3.schemeCategory10
|
|
83
|
-
},
|
|
84
|
-
]
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
declare type ItemColor = {
|
|
2
|
-
color: any;
|
|
3
|
-
};
|
|
4
|
-
|
|
5
|
-
// eslint-disable-next-line
|
|
6
|
-
export default function discreteLegendUtil(itemColor: ItemColor[], isSelectorLegend?: boolean, horizontal?: any): any {
|
|
7
|
-
const legendValues: ItemColor[] = [];
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line
|
|
10
|
-
function legend(g: any) {
|
|
11
|
-
function drawLegend() {
|
|
12
|
-
// Code to fill the color
|
|
13
|
-
// Styling for color selector legend
|
|
14
|
-
g.selectAll("g.legendCells")
|
|
15
|
-
.data(itemColor)
|
|
16
|
-
.enter()
|
|
17
|
-
.append("g")
|
|
18
|
-
.append("rect")
|
|
19
|
-
.append("title")
|
|
20
|
-
.text(function (d: Record<string, unknown>) {
|
|
21
|
-
return d["name"];
|
|
22
|
-
})
|
|
23
|
-
.attr("class", "rectLabel")
|
|
24
|
-
.style("cursor", "pointer")
|
|
25
|
-
.style("pointer-events", "all");
|
|
26
|
-
g.selectAll("rect")
|
|
27
|
-
.attr("height", 1)
|
|
28
|
-
.attr("width", 1)
|
|
29
|
-
.style("fill", function (d: Record<string, unknown>) {
|
|
30
|
-
return d["color"];
|
|
31
|
-
});
|
|
32
|
-
if (horizontal && !isSelectorLegend) {
|
|
33
|
-
g.selectAll("rect")
|
|
34
|
-
.attr("x", function (_d: number, i: number) {
|
|
35
|
-
return i;
|
|
36
|
-
})
|
|
37
|
-
.attr("y", 0);
|
|
38
|
-
} else if (!horizontal && !isSelectorLegend) {
|
|
39
|
-
g.selectAll("rect")
|
|
40
|
-
.attr("y", function (_d: number, i: number) {
|
|
41
|
-
return i;
|
|
42
|
-
})
|
|
43
|
-
.attr("x", 0);
|
|
44
|
-
} else if (horizontal == true && isSelectorLegend) {
|
|
45
|
-
g.selectAll("rect")
|
|
46
|
-
.attr("x", function (_d: number, i: number) {
|
|
47
|
-
return i;
|
|
48
|
-
})
|
|
49
|
-
.attr("y", 0);
|
|
50
|
-
} else if (horizontal == false && isSelectorLegend) {
|
|
51
|
-
g.selectAll("rect")
|
|
52
|
-
.attr("y", function (_d: number, i: number) {
|
|
53
|
-
return i;
|
|
54
|
-
})
|
|
55
|
-
.attr("x", 0);
|
|
56
|
-
} else {
|
|
57
|
-
g.selectAll("rect")
|
|
58
|
-
.attr("x", function (_d: number, i: number) {
|
|
59
|
-
return i;
|
|
60
|
-
})
|
|
61
|
-
.attr("y", 0);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
drawLegend();
|
|
66
|
-
}
|
|
67
|
-
// eslint-disable-next-line
|
|
68
|
-
legend.inputScale = function (newScale: any) {
|
|
69
|
-
// eslint-disable-next-line
|
|
70
|
-
let scale: any = {};
|
|
71
|
-
scale = newScale;
|
|
72
|
-
|
|
73
|
-
scale.domain().forEach(function (el: any) {
|
|
74
|
-
const cellObject = { color: scale(el), label: el };
|
|
75
|
-
legendValues.push(cellObject);
|
|
76
|
-
});
|
|
77
|
-
return this;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
return legend;
|
|
81
|
-
}
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"name": "Physics",
|
|
4
|
-
"discrete": false,
|
|
5
|
-
"colors": [
|
|
6
|
-
[ 0.00, 255, 0, 0 ],
|
|
7
|
-
[ 0.25, 255, 255, 0 ],
|
|
8
|
-
[ 0.50, 0, 255, 0 ],
|
|
9
|
-
[ 0.75, 0, 255, 255 ],
|
|
10
|
-
[ 1.00, 0, 0, 255 ]
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"name": "Rainbow",
|
|
15
|
-
"discrete": false,
|
|
16
|
-
"colors": [
|
|
17
|
-
[ 0.00, 255, 0, 0 ],
|
|
18
|
-
[ 0.20, 255, 255, 0 ],
|
|
19
|
-
[ 0.40, 0, 255, 0 ],
|
|
20
|
-
[ 0.60, 0, 255, 255 ],
|
|
21
|
-
[ 0.80, 0, 0, 255 ],
|
|
22
|
-
[ 1.00, 255, 0, 255 ]
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "Porosity",
|
|
27
|
-
"discrete": false,
|
|
28
|
-
"colors": [
|
|
29
|
-
[ 0.00, 255, 246, 117 ],
|
|
30
|
-
[ 0.11, 255, 243, 53 ],
|
|
31
|
-
[ 0.18, 255, 241, 0 ],
|
|
32
|
-
[ 0.25, 155, 193, 0 ],
|
|
33
|
-
[ 0.32, 255, 155, 23 ],
|
|
34
|
-
[ 0.39, 255, 162, 61 ],
|
|
35
|
-
[ 0.46, 255, 126, 45 ],
|
|
36
|
-
[ 0.53, 227, 112, 24 ],
|
|
37
|
-
[ 0.60, 246, 96, 31 ],
|
|
38
|
-
[ 0.67, 229, 39, 48 ],
|
|
39
|
-
[ 0.74, 252, 177, 170 ],
|
|
40
|
-
[ 0.81, 236, 103, 146 ],
|
|
41
|
-
[ 0.88, 226, 44, 118 ],
|
|
42
|
-
[ 1.00, 126, 40, 111 ]
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "Permeability",
|
|
47
|
-
"discrete": false,
|
|
48
|
-
"colors": [
|
|
49
|
-
[ 0.00, 119, 63, 49 ],
|
|
50
|
-
[ 0.148, 135, 49, 45 ],
|
|
51
|
-
[ 0.246, 154, 89, 24 ],
|
|
52
|
-
[ 0.344, 191, 88, 22 ],
|
|
53
|
-
[ 0.441, 190, 142, 97 ],
|
|
54
|
-
[ 0.539, 255, 126, 45 ],
|
|
55
|
-
[ 0.637, 255, 162, 61 ],
|
|
56
|
-
[ 0.734, 255, 155, 23 ],
|
|
57
|
-
[ 0.832, 255, 241, 0 ],
|
|
58
|
-
[ 1.00, 255, 246, 117 ]
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "Seismic",
|
|
63
|
-
"discrete": false,
|
|
64
|
-
"colors": [
|
|
65
|
-
[ 0.00, 0, 0, 255 ],
|
|
66
|
-
[ 0.50, 255, 255, 255 ],
|
|
67
|
-
[ 1.00, 255, 2, 2 ]
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"name": "Time/Depth",
|
|
72
|
-
"discrete": false,
|
|
73
|
-
"colors": [
|
|
74
|
-
[ 0.00, 252, 174, 169 ],
|
|
75
|
-
[ 0.10, 226, 44, 118 ],
|
|
76
|
-
[ 0.168, 229, 39, 48 ],
|
|
77
|
-
[ 0.234, 150, 40, 34 ],
|
|
78
|
-
[ 0.301, 255, 126, 45 ],
|
|
79
|
-
[ 0.367, 255, 162, 61 ],
|
|
80
|
-
[ 0.434, 255, 241, 0 ],
|
|
81
|
-
[ 0.50, 219, 228, 163 ],
|
|
82
|
-
[ 0.566, 0, 143, 74 ],
|
|
83
|
-
[ 0.633, 0, 110, 78 ],
|
|
84
|
-
[ 0.699, 0, 124, 140 ],
|
|
85
|
-
[ 0.766, 116, 190, 230 ],
|
|
86
|
-
[ 0.832, 0, 143, 212 ],
|
|
87
|
-
[ 0.898, 0, 51, 116 ],
|
|
88
|
-
[ 1.00, 74, 19, 86 ]
|
|
89
|
-
]
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "Stratigraphy",
|
|
93
|
-
"discrete": true,
|
|
94
|
-
"colors": [
|
|
95
|
-
[ 0, 255, 120, 61 ],
|
|
96
|
-
[ 1, 255, 193, 0 ],
|
|
97
|
-
[ 2, 255, 155, 76 ],
|
|
98
|
-
[ 3, 255, 223, 161 ],
|
|
99
|
-
[ 4, 226, 44, 118 ],
|
|
100
|
-
[ 5, 255, 243, 53 ],
|
|
101
|
-
[ 6, 255, 212, 179 ],
|
|
102
|
-
[ 7, 255, 155, 23 ],
|
|
103
|
-
[ 8, 255, 246, 117 ],
|
|
104
|
-
[ 9, 255, 241, 0 ],
|
|
105
|
-
[ 10, 255, 211, 178 ],
|
|
106
|
-
[ 11, 255, 173, 128 ],
|
|
107
|
-
[ 12, 248, 152, 0 ],
|
|
108
|
-
[ 13, 154, 89, 24 ],
|
|
109
|
-
[ 14, 0, 138, 185 ],
|
|
110
|
-
[ 15, 82, 161, 40 ],
|
|
111
|
-
[ 16, 219, 228, 163 ],
|
|
112
|
-
[ 17, 0, 119, 64 ],
|
|
113
|
-
[ 18, 0, 110, 172 ],
|
|
114
|
-
[ 19, 116, 190, 230 ],
|
|
115
|
-
[ 20, 0, 155, 212 ],
|
|
116
|
-
[ 21, 0, 117, 190 ],
|
|
117
|
-
[ 22, 143, 40, 112 ],
|
|
118
|
-
[ 23, 220, 153, 190 ],
|
|
119
|
-
[ 24, 226, 44, 118 ],
|
|
120
|
-
[ 25, 126, 40, 111 ],
|
|
121
|
-
[ 26, 73, 69, 43 ],
|
|
122
|
-
[ 27, 203, 63, 42 ],
|
|
123
|
-
[ 28, 255, 198, 190 ],
|
|
124
|
-
[ 29, 135, 49, 45 ],
|
|
125
|
-
[ 30, 150, 136, 120 ],
|
|
126
|
-
[ 31, 198, 182, 175 ],
|
|
127
|
-
[ 32, 166, 154, 145 ],
|
|
128
|
-
[ 33, 191, 88, 22 ],
|
|
129
|
-
[ 34, 255, 212, 179 ],
|
|
130
|
-
[ 35, 251, 139, 105 ],
|
|
131
|
-
[ 36, 154, 89, 24 ],
|
|
132
|
-
[ 37, 186, 222, 200 ],
|
|
133
|
-
[ 38, 0, 124, 140 ],
|
|
134
|
-
[ 39, 87, 84, 83 ]
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"name": "Facies",
|
|
139
|
-
"discrete": true,
|
|
140
|
-
"colors": [
|
|
141
|
-
[ 0, 255, 193, 0 ],
|
|
142
|
-
[ 1, 255, 246, 117 ],
|
|
143
|
-
[ 2, 166, 194, 42 ],
|
|
144
|
-
[ 3, 149, 160, 24 ],
|
|
145
|
-
[ 4, 9, 143, 74 ],
|
|
146
|
-
[ 5, 125, 98, 15 ],
|
|
147
|
-
[ 6, 0, 108, 154 ],
|
|
148
|
-
[ 7, 0, 117, 190 ],
|
|
149
|
-
[ 8, 28, 22, 59 ],
|
|
150
|
-
[ 9, 39, 142, 199 ],
|
|
151
|
-
[ 10, 0, 138, 185 ],
|
|
152
|
-
[ 11, 52, 178, 188 ],
|
|
153
|
-
[ 12, 235, 63, 34 ],
|
|
154
|
-
[ 13, 74, 19, 86 ],
|
|
155
|
-
[ 14, 248, 152, 0 ],
|
|
156
|
-
[ 15, 1, 1, 1 ],
|
|
157
|
-
[ 16, 128, 128, 128 ]
|
|
158
|
-
]
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"name": "GasOilWater",
|
|
162
|
-
"discrete": true,
|
|
163
|
-
"colors": [
|
|
164
|
-
[ 0, 255, 46, 0],
|
|
165
|
-
[ 1, 0, 184, 0 ],
|
|
166
|
-
[ 2, 0, 25, 255 ],
|
|
167
|
-
[ 3, 179, 179, 179 ]
|
|
168
|
-
]
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"name": "GasWater",
|
|
172
|
-
"discrete": true,
|
|
173
|
-
"colors": [
|
|
174
|
-
[ 0, 255, 46, 0 ],
|
|
175
|
-
[ 1, 0, 25, 255 ],
|
|
176
|
-
[ 2, 179, 179, 179 ]
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"name": "OilWater",
|
|
181
|
-
"discrete": true,
|
|
182
|
-
"colors": [
|
|
183
|
-
[ 0, 0, 184, 0 ],
|
|
184
|
-
[ 1, 0, 25, 255 ],
|
|
185
|
-
[ 2, 179, 179, 179 ]
|
|
186
|
-
]
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "Accent",
|
|
190
|
-
"discrete": true,
|
|
191
|
-
"colors": [
|
|
192
|
-
[ 0, 127, 201, 127 ],
|
|
193
|
-
[ 1, 190, 174, 212 ],
|
|
194
|
-
[ 2, 253, 192, 134 ],
|
|
195
|
-
[ 4, 255, 255, 153 ],
|
|
196
|
-
[ 5, 56, 108, 176 ],
|
|
197
|
-
[ 6, 240, 2, 127 ],
|
|
198
|
-
[ 7, 191, 91, 23 ],
|
|
199
|
-
[ 8, 102, 102, 102 ]
|
|
200
|
-
]
|
|
201
|
-
}
|
|
202
|
-
]
|
|
203
|
-
|
package/src/custom.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module '@emerson-eps/color-tables';
|
package/src/index.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ColorSelectorAccordion } from './component/ColorSelector/ColorSelectorAccordion';
|
|
2
|
-
import { ColorSelectorComponent } from './component/ColorSelector/ColorSelectorComponent';
|
|
3
|
-
import { ColorSelectorWrapper } from './component/ColorSelector/ColorSelectorWrapper';
|
|
4
|
-
import { ContinuousLegend } from './component/Legend/ContinuousLegend';
|
|
5
|
-
import { DiscreteColorLegend } from './component/Legend/DiscreteLegend';
|
|
6
|
-
import { ColorLegend } from './component/Legend/ColorLegend';
|
|
7
|
-
import { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
|
|
8
|
-
import { d3ColorScales } from './component/Utils/d3ColorScale';
|
|
9
|
-
import { colorTablesObj, colorTablesArray } from './component/Utils/ColorTableTypes';
|
|
10
|
-
import * as colorTables from './component/color-tables.json';
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
ColorSelectorAccordion,
|
|
14
|
-
ColorSelectorComponent,
|
|
15
|
-
ColorSelectorWrapper,
|
|
16
|
-
ContinuousLegend,
|
|
17
|
-
DiscreteColorLegend,
|
|
18
|
-
ColorLegend,
|
|
19
|
-
colorsArray,
|
|
20
|
-
rgbValues,
|
|
21
|
-
RGBToHex,
|
|
22
|
-
d3ColorScales,
|
|
23
|
-
colorTablesObj,
|
|
24
|
-
colorTablesArray,
|
|
25
|
-
colorTables,
|
|
26
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { ColorSelectorAccordion } from "../../../component/ColorSelector/ColorSelectorAccordion";
|
|
3
|
-
export default {
|
|
4
|
-
component: ColorSelectorAccordion,
|
|
5
|
-
title: "Legends/ColorSelector",
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const Template = (args) => {
|
|
9
|
-
return <ColorSelectorAccordion />;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const selectorTemplate = Template.bind({});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = 2918;
|
|
10
|
-
const max = 4770;
|
|
11
|
-
const dataObjectName = "Wells / MD";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const horizontal = true;
|
|
14
|
-
const colorName = "Time/Depth";
|
|
15
|
-
|
|
16
|
-
const Template = (args) => {
|
|
17
|
-
return <ContinuousLegend {...args} />;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const MDTemplate = Template.bind({});
|
|
21
|
-
MDTemplate.args = {
|
|
22
|
-
min,
|
|
23
|
-
max,
|
|
24
|
-
dataObjectName,
|
|
25
|
-
position,
|
|
26
|
-
colorName,
|
|
27
|
-
colorTables,
|
|
28
|
-
horizontal,
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = 0;
|
|
10
|
-
const max = 1;
|
|
11
|
-
const dataObjectName = "Wells / NTG";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const horizontal = true;
|
|
14
|
-
const colorName = "Rainbow";
|
|
15
|
-
|
|
16
|
-
const Template = (args) => {
|
|
17
|
-
return <ContinuousLegend {...args} />;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const NTGTemplate = Template.bind({});
|
|
21
|
-
NTGTemplate.args = {
|
|
22
|
-
min,
|
|
23
|
-
max,
|
|
24
|
-
dataObjectName,
|
|
25
|
-
position,
|
|
26
|
-
colorName,
|
|
27
|
-
colorTables,
|
|
28
|
-
horizontal,
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = -999;
|
|
10
|
-
const max = 14023;
|
|
11
|
-
const dataObjectName = "Wells / PERMTOT";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const horizontal = true;
|
|
14
|
-
const colorName = "Porosity";
|
|
15
|
-
|
|
16
|
-
const Template = (args) => {
|
|
17
|
-
return <ContinuousLegend {...args} />;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const PermTotTemplate = Template.bind({});
|
|
21
|
-
PermTotTemplate.args = {
|
|
22
|
-
min,
|
|
23
|
-
max,
|
|
24
|
-
dataObjectName,
|
|
25
|
-
position,
|
|
26
|
-
colorName,
|
|
27
|
-
colorTables,
|
|
28
|
-
horizontal,
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = -999;
|
|
10
|
-
const max = 14023;
|
|
11
|
-
const dataObjectName = "Wells / PERM";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const horizontal = true;
|
|
14
|
-
const colorName = "Permeability";
|
|
15
|
-
|
|
16
|
-
const Template = (args) => {
|
|
17
|
-
return <ContinuousLegend {...args} />;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const PermeabilityTemplate = Template.bind({});
|
|
21
|
-
PermeabilityTemplate.args = {
|
|
22
|
-
min,
|
|
23
|
-
max,
|
|
24
|
-
dataObjectName,
|
|
25
|
-
position,
|
|
26
|
-
colorName,
|
|
27
|
-
colorTables,
|
|
28
|
-
horizontal,
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = 0;
|
|
10
|
-
const max = 0.35;
|
|
11
|
-
const dataObjectName = "Wells / POROTOT";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const horizontal = true;
|
|
14
|
-
const colorName = "Porosity";
|
|
15
|
-
|
|
16
|
-
const Template = (args) => {
|
|
17
|
-
return <ContinuousLegend {...args} />;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const PoroTotTemplate = Template.bind({});
|
|
21
|
-
PoroTotTemplate.args = {
|
|
22
|
-
min,
|
|
23
|
-
max,
|
|
24
|
-
dataObjectName,
|
|
25
|
-
position,
|
|
26
|
-
colorName,
|
|
27
|
-
colorTables,
|
|
28
|
-
horizontal,
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = 0;
|
|
10
|
-
const max = 0.35;
|
|
11
|
-
const dataObjectName = "Wells / PORO";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const horizontal = true;
|
|
14
|
-
const colorName = "Porosity";
|
|
15
|
-
|
|
16
|
-
const Template = (args) => {
|
|
17
|
-
return <ContinuousLegend {...args} />;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const PorosityTemplate = Template.bind({});
|
|
21
|
-
PorosityTemplate.args = {
|
|
22
|
-
min,
|
|
23
|
-
max,
|
|
24
|
-
dataObjectName,
|
|
25
|
-
position,
|
|
26
|
-
colorName,
|
|
27
|
-
colorTables,
|
|
28
|
-
horizontal,
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = 0;
|
|
10
|
-
const max = 1;
|
|
11
|
-
const dataObjectName = "Wells / SW";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const horizontal = true;
|
|
14
|
-
const colorName = "Rainbow";
|
|
15
|
-
|
|
16
|
-
const Template = (args) => {
|
|
17
|
-
return <ContinuousLegend {...args} />;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const SWTemplate = Template.bind({});
|
|
21
|
-
SWTemplate.args = {
|
|
22
|
-
min,
|
|
23
|
-
max,
|
|
24
|
-
dataObjectName,
|
|
25
|
-
position,
|
|
26
|
-
colorName,
|
|
27
|
-
colorTables,
|
|
28
|
-
horizontal,
|
|
29
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
};
|