@emerson-eps/color-tables 0.1.17 → 0.1.21
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/ColorTableTypes.d.ts +1 -1
- package/dist/component/Legend/ContinuousLegend.d.ts +1 -3
- package/dist/component/Legend/ContinuousLegend.js +15 -8
- package/dist/component/Legend/ContinuousLegend.js.map +1 -1
- package/dist/component/Legend/DiscreteLegend.d.ts +2 -2
- package/dist/component/Legend/DiscreteLegend.js +12 -6
- package/dist/component/Legend/DiscreteLegend.js.map +1 -1
- package/dist/component/Utils/continousLegend.d.ts +2 -3
- package/dist/component/Utils/continousLegend.js +9 -9
- package/dist/component/Utils/continousLegend.js.map +1 -1
- package/dist/component/Utils/discreteLegend.d.ts +2 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stories/ColorLegends/ContinousLgends/MD.stories.js +2 -2
- package/dist/stories/ColorLegends/ContinousLgends/MD.stories.js.map +1 -1
- package/dist/stories/ColorLegends/ContinousLgends/NTG.stories.js +2 -2
- package/dist/stories/ColorLegends/ContinousLgends/NTG.stories.js.map +1 -1
- package/dist/stories/ColorLegends/ContinousLgends/PermTot.stories.js +2 -2
- package/dist/stories/ColorLegends/ContinousLgends/PermTot.stories.js.map +1 -1
- package/dist/stories/ColorLegends/ContinousLgends/Permeability.stories.js +2 -2
- package/dist/stories/ColorLegends/ContinousLgends/Permeability.stories.js.map +1 -1
- package/dist/stories/ColorLegends/ContinousLgends/PoroTot.stories.js +2 -2
- package/dist/stories/ColorLegends/ContinousLgends/PoroTot.stories.js.map +1 -1
- package/dist/stories/ColorLegends/ContinousLgends/Porosity.stories.js +2 -2
- package/dist/stories/ColorLegends/ContinousLgends/Porosity.stories.js.map +1 -1
- package/dist/stories/ColorLegends/ContinousLgends/SW.stories.js +2 -2
- package/dist/stories/ColorLegends/ContinousLgends/SW.stories.js.map +1 -1
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +1 -1
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +1 -1
- package/package.json +10 -10
- package/src/component/ColorTableTypes.ts +1 -1
- package/src/component/Legend/ContinuousLegend.tsx +17 -14
- package/src/component/Legend/DiscreteLegend.tsx +14 -8
- package/src/component/Utils/continousLegend.ts +9 -17
- package/src/component/Utils/discreteLegend.ts +1 -1
- package/src/index.ts +1 -2
- package/src/stories/ColorLegends/ContinousLgends/MD.stories.jsx +2 -2
- package/src/stories/ColorLegends/ContinousLgends/NTG.stories.jsx +2 -2
- package/src/stories/ColorLegends/ContinousLgends/PermTot.stories.jsx +2 -2
- package/src/stories/ColorLegends/ContinousLgends/Permeability.stories.jsx +2 -2
- package/src/stories/ColorLegends/ContinousLgends/PoroTot.stories.jsx +2 -2
- package/src/stories/ColorLegends/ContinousLgends/Porosity.stories.jsx +2 -2
- package/src/stories/ColorLegends/ContinousLgends/SW.stories.jsx +2 -2
- package/src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx +0 -1
- package/src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx +0 -1
- package/tsconfig.json +0 -2
- package/dist/component/WelllayerTemplateTypes.d.ts +0 -13
- package/dist/component/WelllayerTemplateTypes.js +0 -2
- package/dist/component/WelllayerTemplateTypes.js.map +0 -1
- package/dist/component/welllayer_template.json +0 -89
- package/src/component/WelllayerTemplateTypes.ts +0 -15
- package/src/component/welllayer_template.json +0 -89
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { useRef } from "react";
|
|
2
3
|
import { RGBToHex, colorsArray } from "../Utils/continousLegend";
|
|
3
4
|
import { select, scaleLinear, scaleSequential, axisBottom } from "d3";
|
|
4
|
-
import { templateArray } from "../WelllayerTemplateTypes";
|
|
5
5
|
import { colorTablesArray } from "../ColorTableTypes";
|
|
6
6
|
|
|
7
7
|
declare type legendProps = {
|
|
@@ -9,8 +9,7 @@ declare type legendProps = {
|
|
|
9
9
|
max: number;
|
|
10
10
|
dataObjectName: string;
|
|
11
11
|
position: number[];
|
|
12
|
-
|
|
13
|
-
template: templateArray;
|
|
12
|
+
colorName: string;
|
|
14
13
|
colorTables: colorTablesArray;
|
|
15
14
|
horizontal: boolean;
|
|
16
15
|
}
|
|
@@ -25,19 +24,24 @@ export const ContinuousLegend: React.FC<legendProps> = ({
|
|
|
25
24
|
max,
|
|
26
25
|
dataObjectName,
|
|
27
26
|
position,
|
|
28
|
-
|
|
29
|
-
template,
|
|
27
|
+
colorName,
|
|
30
28
|
colorTables,
|
|
31
29
|
horizontal,
|
|
32
30
|
}: legendProps) => {
|
|
31
|
+
const divRef = useRef<HTMLDivElement>(null);
|
|
33
32
|
React.useEffect(() => {
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
if (divRef.current) {
|
|
34
|
+
continuousLegend();
|
|
35
|
+
};
|
|
36
|
+
return function cleanup() {
|
|
37
|
+
select(divRef.current).select("svg").remove();
|
|
38
|
+
};
|
|
39
|
+
}, [min, max, colorName, colorTables, horizontal]);
|
|
36
40
|
|
|
37
|
-
function continuousLegend(
|
|
41
|
+
function continuousLegend() {
|
|
38
42
|
const itemColor: ItemColor[] = [];
|
|
39
43
|
// Return the matched colors array from color.tables.json file
|
|
40
|
-
const colorTableColors = colorsArray(
|
|
44
|
+
const colorTableColors = colorsArray(colorName, colorTables);
|
|
41
45
|
colorTableColors.forEach((value: [number, number, number, number]) => {
|
|
42
46
|
// return the color and offset needed to draw the legend
|
|
43
47
|
itemColor.push({
|
|
@@ -45,10 +49,9 @@ export const ContinuousLegend: React.FC<legendProps> = ({
|
|
|
45
49
|
color: RGBToHex(value).color,
|
|
46
50
|
});
|
|
47
51
|
});
|
|
48
|
-
select(selected_id).select("svg").remove();
|
|
49
52
|
const colorScale = scaleSequential().domain([min, max]);
|
|
50
53
|
// append a defs (for definition) element to your SVG
|
|
51
|
-
const svgLegend = select(
|
|
54
|
+
const svgLegend = select(divRef.current)
|
|
52
55
|
.append("svg")
|
|
53
56
|
.style("background-color", "#ffffffcc")
|
|
54
57
|
.style("border-radius", "5px");
|
|
@@ -72,10 +75,10 @@ export const ContinuousLegend: React.FC<legendProps> = ({
|
|
|
72
75
|
.data(itemColor)
|
|
73
76
|
.enter()
|
|
74
77
|
.append("stop")
|
|
75
|
-
.attr("offset", function (data
|
|
78
|
+
.attr("offset", function (data) {
|
|
76
79
|
return data.offset + "%";
|
|
77
80
|
})
|
|
78
|
-
.attr("stop-color", function (data
|
|
81
|
+
.attr("stop-color", function (data) {
|
|
79
82
|
return data.color;
|
|
80
83
|
});
|
|
81
84
|
|
|
@@ -119,7 +122,7 @@ export const ContinuousLegend: React.FC<legendProps> = ({
|
|
|
119
122
|
top: position[1],
|
|
120
123
|
}}
|
|
121
124
|
>
|
|
122
|
-
<div id="legend"></div>
|
|
125
|
+
<div id="legend" ref={divRef}></div>
|
|
123
126
|
</div>
|
|
124
127
|
);
|
|
125
128
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { useRef } from "react";
|
|
2
3
|
import legendUtil from "../Utils/discreteLegend";
|
|
3
4
|
import { scaleOrdinal, select } from "d3";
|
|
4
5
|
import { colorTablesArray, colorTablesObj } from "../ColorTableTypes";
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
declare type ItemColor = {
|
|
7
8
|
color: string;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
declare type colorLegendProps = {
|
|
11
12
|
discreteData: { objects: Record<string, [number[], number]> };
|
|
12
13
|
dataObjectName: string;
|
|
13
14
|
position: number[];
|
|
@@ -24,10 +25,17 @@ export const DiscreteColorLegend: React.FC<colorLegendProps> = ({
|
|
|
24
25
|
colorTables,
|
|
25
26
|
horizontal,
|
|
26
27
|
}: colorLegendProps) => {
|
|
28
|
+
const divRef = useRef<HTMLDivElement>(null);
|
|
27
29
|
React.useEffect(() => {
|
|
28
|
-
|
|
30
|
+
if (divRef.current) {
|
|
31
|
+
discreteLegend();
|
|
32
|
+
}
|
|
33
|
+
return function cleanup() {
|
|
34
|
+
select(divRef.current).select("div").remove();
|
|
35
|
+
select(divRef.current).select("svg").remove();
|
|
36
|
+
};
|
|
29
37
|
}, [discreteData, colorName, colorTables, horizontal]);
|
|
30
|
-
function discreteLegend(
|
|
38
|
+
function discreteLegend() {
|
|
31
39
|
const itemName: string[] = [];
|
|
32
40
|
const itemColor: ItemColor[] = [];
|
|
33
41
|
const colorsArray: [number, number, number, number][] = colorTableData(
|
|
@@ -59,11 +67,9 @@ export const DiscreteColorLegend: React.FC<colorLegendProps> = ({
|
|
|
59
67
|
}
|
|
60
68
|
const ordinalValues = scaleOrdinal().domain(itemName);
|
|
61
69
|
const colorLegend = legendUtil(itemColor).inputScale(ordinalValues);
|
|
62
|
-
select(legend).select("div").remove();
|
|
63
|
-
select(legend).select("svg").remove();
|
|
64
70
|
const legendLength = itemColor.length;
|
|
65
71
|
const calcLegendHeight = 22 * legendLength + 4 * legendLength;
|
|
66
|
-
const selectedLegend = select(
|
|
72
|
+
const selectedLegend = select(divRef.current);
|
|
67
73
|
selectedLegend
|
|
68
74
|
.append("div")
|
|
69
75
|
.text(dataObjectName)
|
|
@@ -96,7 +102,7 @@ export const DiscreteColorLegend: React.FC<colorLegendProps> = ({
|
|
|
96
102
|
borderRadius: "5px",
|
|
97
103
|
}}
|
|
98
104
|
>
|
|
99
|
-
<div id="legend"></div>
|
|
105
|
+
<div id="legend" ref={divRef}></div>
|
|
100
106
|
</div>
|
|
101
107
|
);
|
|
102
108
|
};
|
|
@@ -4,37 +4,26 @@ import {
|
|
|
4
4
|
colorTablesArray,
|
|
5
5
|
colorTablesObj,
|
|
6
6
|
} from "../ColorTableTypes";
|
|
7
|
-
import {
|
|
8
|
-
templateArray,
|
|
9
|
-
propertiesObj,
|
|
10
|
-
} from "../WelllayerTemplateTypes";
|
|
11
7
|
|
|
12
8
|
// Based on objectName return the colors array from color.tables.json file
|
|
13
9
|
export function colorsArray(
|
|
14
|
-
|
|
15
|
-
template: templateArray,
|
|
10
|
+
colorName: string,
|
|
16
11
|
colorTables: colorTablesArray
|
|
17
12
|
): [number, number, number, number][] {
|
|
18
|
-
const properties = template[0]["properties"];
|
|
19
|
-
const propertiesData = properties.filter(
|
|
20
|
-
(value: propertiesObj) => value.objectName == objectName
|
|
21
|
-
);
|
|
22
13
|
const colorTableData = colorTables.filter(
|
|
23
14
|
(value: colorTablesObj) =>
|
|
24
|
-
value.name.toLowerCase() ==
|
|
25
|
-
propertiesData[0].colorTable.toLowerCase()
|
|
15
|
+
value.name.toLowerCase() == colorName.toLowerCase()
|
|
26
16
|
);
|
|
27
|
-
return colorTableData[0].colors;
|
|
17
|
+
return colorTableData.length > 0 ? colorTableData[0].colors : [];
|
|
28
18
|
}
|
|
29
19
|
|
|
30
20
|
// return the colors based on the point
|
|
31
21
|
export function rgbValues(
|
|
32
|
-
objectName: string,
|
|
33
22
|
point: number,
|
|
34
|
-
|
|
23
|
+
colorName: string,
|
|
35
24
|
colorTables: colorTablesArray
|
|
36
25
|
): number[] | { r: number; g: number; b: number; opacity: number } | undefined {
|
|
37
|
-
const colorTableColors = colorsArray(
|
|
26
|
+
const colorTableColors = colorsArray(colorName, colorTables);
|
|
38
27
|
// compare the point and first value from colorTableColors
|
|
39
28
|
const colorArrays = colorTableColors.find(
|
|
40
29
|
(value: [number, number, number, number]) => {
|
|
@@ -57,10 +46,13 @@ export function rgbValues(
|
|
|
57
46
|
const secondColorArray = colorTableColors[index];
|
|
58
47
|
|
|
59
48
|
if ((firstColorArray || secondColorArray) != undefined) {
|
|
49
|
+
const t0 = firstColorArray[0];
|
|
50
|
+
const t1 = secondColorArray[0];
|
|
51
|
+
const t = (point - t0) / (t1 - t0); // t = 0.0 gives first color, t = 1.0 gives second color.
|
|
60
52
|
const interpolatedValues = interpolateRgb(
|
|
61
53
|
RGBToHex(firstColorArray).color,
|
|
62
54
|
RGBToHex(secondColorArray).color
|
|
63
|
-
)(
|
|
55
|
+
)(t);
|
|
64
56
|
return color(interpolatedValues)?.rgb();
|
|
65
57
|
}
|
|
66
58
|
return undefined;
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { ContinuousLegend } from './component/Legend/ContinuousLegend';
|
|
2
|
-
export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
|
|
3
2
|
export { colorsArray, rgbValues, RGBToHex} from './component/Utils/continousLegend';
|
|
3
|
+
export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
|
|
4
4
|
export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
|
|
5
|
-
export { propertiesObj, templateArray } from './component/WelllayerTemplateTypes';
|
|
6
5
|
import * as colorTables from './component/color-tables.json';
|
|
7
6
|
export default colorTables;
|
|
@@ -4,7 +4,6 @@ export default {
|
|
|
4
4
|
component: ContinuousLegend,
|
|
5
5
|
title: "Legends/ContinousLegend",
|
|
6
6
|
};
|
|
7
|
-
import template from "../../../component/welllayer_template.json";
|
|
8
7
|
import colorTables from "../../../component/color-tables.json";
|
|
9
8
|
|
|
10
9
|
const min = 2918;
|
|
@@ -13,6 +12,7 @@ const dataObjectName = "Wells / MD";
|
|
|
13
12
|
const position = [16, 10];
|
|
14
13
|
const name = "MD";
|
|
15
14
|
const horizontal = true;
|
|
15
|
+
const colorName = "Time/Depth";
|
|
16
16
|
|
|
17
17
|
const Template = (args) => {
|
|
18
18
|
return <ContinuousLegend {...args} />;
|
|
@@ -25,7 +25,7 @@ MDTemplate.args = {
|
|
|
25
25
|
dataObjectName,
|
|
26
26
|
position,
|
|
27
27
|
name,
|
|
28
|
-
|
|
28
|
+
colorName,
|
|
29
29
|
colorTables,
|
|
30
30
|
horizontal,
|
|
31
31
|
};
|
|
@@ -4,7 +4,6 @@ export default {
|
|
|
4
4
|
component: ContinuousLegend,
|
|
5
5
|
title: "Legends/ContinousLegend",
|
|
6
6
|
};
|
|
7
|
-
import template from "../../../component/welllayer_template.json";
|
|
8
7
|
import colorTables from "../../../component/color-tables.json";
|
|
9
8
|
|
|
10
9
|
const min = 0;
|
|
@@ -13,6 +12,7 @@ const dataObjectName = "Wells / NTG";
|
|
|
13
12
|
const position = [16, 10];
|
|
14
13
|
const name = "NTG";
|
|
15
14
|
const horizontal = true;
|
|
15
|
+
const colorName = "Rainbow";
|
|
16
16
|
|
|
17
17
|
const Template = (args) => {
|
|
18
18
|
return <ContinuousLegend {...args} />;
|
|
@@ -25,7 +25,7 @@ NTGTemplate.args = {
|
|
|
25
25
|
dataObjectName,
|
|
26
26
|
position,
|
|
27
27
|
name,
|
|
28
|
-
|
|
28
|
+
colorName,
|
|
29
29
|
colorTables,
|
|
30
30
|
horizontal,
|
|
31
31
|
};
|
|
@@ -4,7 +4,6 @@ export default {
|
|
|
4
4
|
component: ContinuousLegend,
|
|
5
5
|
title: "Legends/ContinousLegend",
|
|
6
6
|
};
|
|
7
|
-
import template from "../../../component/welllayer_template.json";
|
|
8
7
|
import colorTables from "../../../component/color-tables.json";
|
|
9
8
|
|
|
10
9
|
const min = -999;
|
|
@@ -13,6 +12,7 @@ const dataObjectName = "Wells / PERMTOT";
|
|
|
13
12
|
const position = [16, 10];
|
|
14
13
|
const name = "PERM_TOT";
|
|
15
14
|
const horizontal = true;
|
|
15
|
+
const colorName = "Porosity";
|
|
16
16
|
|
|
17
17
|
const Template = (args) => {
|
|
18
18
|
return <ContinuousLegend {...args} />;
|
|
@@ -25,7 +25,7 @@ PermTotTemplate.args = {
|
|
|
25
25
|
dataObjectName,
|
|
26
26
|
position,
|
|
27
27
|
name,
|
|
28
|
-
|
|
28
|
+
colorName,
|
|
29
29
|
colorTables,
|
|
30
30
|
horizontal,
|
|
31
31
|
};
|
|
@@ -4,7 +4,6 @@ export default {
|
|
|
4
4
|
component: ContinuousLegend,
|
|
5
5
|
title: "Legends/ContinousLegend",
|
|
6
6
|
};
|
|
7
|
-
import template from "../../../component/welllayer_template.json";
|
|
8
7
|
import colorTables from "../../../component/color-tables.json";
|
|
9
8
|
|
|
10
9
|
const min = -999;
|
|
@@ -13,6 +12,7 @@ const dataObjectName = "Wells / PERM";
|
|
|
13
12
|
const position = [16, 10];
|
|
14
13
|
const name = "PERM";
|
|
15
14
|
const horizontal = true;
|
|
15
|
+
const colorName = "Permeability";
|
|
16
16
|
|
|
17
17
|
const Template = (args) => {
|
|
18
18
|
return <ContinuousLegend {...args} />;
|
|
@@ -25,7 +25,7 @@ PermeabilityTemplate.args = {
|
|
|
25
25
|
dataObjectName,
|
|
26
26
|
position,
|
|
27
27
|
name,
|
|
28
|
-
|
|
28
|
+
colorName,
|
|
29
29
|
colorTables,
|
|
30
30
|
horizontal,
|
|
31
31
|
};
|
|
@@ -4,7 +4,6 @@ export default {
|
|
|
4
4
|
component: ContinuousLegend,
|
|
5
5
|
title: "Legends/ContinousLegend",
|
|
6
6
|
};
|
|
7
|
-
import template from "../../../component/welllayer_template.json";
|
|
8
7
|
import colorTables from "../../../component/color-tables.json";
|
|
9
8
|
|
|
10
9
|
const min = 0;
|
|
@@ -13,6 +12,7 @@ const dataObjectName = "Wells / POROTOT";
|
|
|
13
12
|
const position = [16, 10];
|
|
14
13
|
const name = "PORO";
|
|
15
14
|
const horizontal = true;
|
|
15
|
+
const colorName = "Porosity";
|
|
16
16
|
|
|
17
17
|
const Template = (args) => {
|
|
18
18
|
return <ContinuousLegend {...args} />;
|
|
@@ -25,7 +25,7 @@ PoroTotTemplate.args = {
|
|
|
25
25
|
dataObjectName,
|
|
26
26
|
position,
|
|
27
27
|
name,
|
|
28
|
-
|
|
28
|
+
colorName,
|
|
29
29
|
colorTables,
|
|
30
30
|
horizontal,
|
|
31
31
|
};
|
|
@@ -4,7 +4,6 @@ export default {
|
|
|
4
4
|
component: ContinuousLegend,
|
|
5
5
|
title: "Legends/ContinousLegend",
|
|
6
6
|
};
|
|
7
|
-
import template from "../../../component/welllayer_template.json";
|
|
8
7
|
import colorTables from "../../../component/color-tables.json";
|
|
9
8
|
|
|
10
9
|
const min = 0;
|
|
@@ -13,6 +12,7 @@ const dataObjectName = "Wells / PORO";
|
|
|
13
12
|
const position = [16, 10];
|
|
14
13
|
const name = "PORO";
|
|
15
14
|
const horizontal = true;
|
|
15
|
+
const colorName = "Porosity";
|
|
16
16
|
|
|
17
17
|
const Template = (args) => {
|
|
18
18
|
return <ContinuousLegend {...args} />;
|
|
@@ -25,7 +25,7 @@ PorosityTemplate.args = {
|
|
|
25
25
|
dataObjectName,
|
|
26
26
|
position,
|
|
27
27
|
name,
|
|
28
|
-
|
|
28
|
+
colorName,
|
|
29
29
|
colorTables,
|
|
30
30
|
horizontal,
|
|
31
31
|
};
|
|
@@ -4,7 +4,6 @@ export default {
|
|
|
4
4
|
component: ContinuousLegend,
|
|
5
5
|
title: "Legends/ContinousLegend",
|
|
6
6
|
};
|
|
7
|
-
import template from "../../../component/welllayer_template.json";
|
|
8
7
|
import colorTables from "../../../component/color-tables.json";
|
|
9
8
|
|
|
10
9
|
const min = 0;
|
|
@@ -13,6 +12,7 @@ const dataObjectName = "Wells / SW";
|
|
|
13
12
|
const position = [16, 10];
|
|
14
13
|
const name = "SW";
|
|
15
14
|
const horizontal = true;
|
|
15
|
+
const colorName = "Physics";
|
|
16
16
|
|
|
17
17
|
const Template = (args) => {
|
|
18
18
|
return <ContinuousLegend {...args} />;
|
|
@@ -25,7 +25,7 @@ SWTemplate.args = {
|
|
|
25
25
|
dataObjectName,
|
|
26
26
|
position,
|
|
27
27
|
name,
|
|
28
|
-
|
|
28
|
+
Physics,
|
|
29
29
|
colorTables,
|
|
30
30
|
horizontal,
|
|
31
31
|
};
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare type propertiesObj = {
|
|
2
|
-
objectName: string;
|
|
3
|
-
colorTable: string;
|
|
4
|
-
context: string;
|
|
5
|
-
colorInterpolation: string;
|
|
6
|
-
};
|
|
7
|
-
declare type propertiesArr = Array<propertiesObj>;
|
|
8
|
-
declare type template = {
|
|
9
|
-
name: string;
|
|
10
|
-
properties: propertiesArr;
|
|
11
|
-
};
|
|
12
|
-
export declare type templateArray = Array<template>;
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WelllayerTemplateTypes.js","sourceRoot":"","sources":["../../src/component/WelllayerTemplateTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"name": "Welllayer Template",
|
|
4
|
-
"properties": [
|
|
5
|
-
{
|
|
6
|
-
"objectName": "PORO",
|
|
7
|
-
"colorTable": "Porosity",
|
|
8
|
-
"context": "wells-layer",
|
|
9
|
-
"scale": "linear"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"objectName": "PERM",
|
|
13
|
-
"colorTable": "Permeability",
|
|
14
|
-
"context": "wells-layer",
|
|
15
|
-
"scale": "linear"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"objectName": "MD",
|
|
19
|
-
"colorTable": "Time/Depth",
|
|
20
|
-
"context": "wells-layer",
|
|
21
|
-
"scale": "linear"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"objectName": "PORO_TOT",
|
|
25
|
-
"colorTable": "Porosity",
|
|
26
|
-
"context": "wells-layer",
|
|
27
|
-
"scale": "linear"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"objectName": "NTG",
|
|
31
|
-
"colorTable": "Rainbow",
|
|
32
|
-
"context": "wells-layer",
|
|
33
|
-
"scale": "linear"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"objectName": "PERM_TOT",
|
|
37
|
-
"colorTable": "Permeability",
|
|
38
|
-
"context": "wells-layer",
|
|
39
|
-
"scale": "linear"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"objectName": "SW",
|
|
43
|
-
"colorTable": "Physics",
|
|
44
|
-
"context": "wells-layer",
|
|
45
|
-
"scale": "linear"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"objectName": "ZONELOG",
|
|
49
|
-
"colorTable": "Stratigraphy",
|
|
50
|
-
"context": "wells-layer"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"objectName": "RDE_ORIG",
|
|
54
|
-
"colorTable": "Stratigraphy",
|
|
55
|
-
"context": "wells-layer"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"objectName": "FACIES",
|
|
59
|
-
"colorTable": "Facies",
|
|
60
|
-
"context": "wells-layer"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"objectName": "ZONE_MAIN",
|
|
64
|
-
"colorTable": "Stratigraphy",
|
|
65
|
-
"context": "wells-layer"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"objectName": "RDE",
|
|
69
|
-
"colorTable": "Accent",
|
|
70
|
-
"context": "wells-layer"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"objectName": "FaultDistance_HUM",
|
|
74
|
-
"colorTable": "Gas-Oil-Water",
|
|
75
|
-
"context": "wells-layer"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"objectName": "FAULT_PROXIMITY_FLAG",
|
|
79
|
-
"colorTable": "Gas-Water",
|
|
80
|
-
"context": "wells-layer"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"objectName": "FACIES_NoCalcite",
|
|
84
|
-
"colorTable": "Facies",
|
|
85
|
-
"context": "wells-layer"
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
]
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare type propertiesObj = {
|
|
2
|
-
objectName: string;
|
|
3
|
-
colorTable: string;
|
|
4
|
-
context: string;
|
|
5
|
-
colorInterpolation: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
type propertiesArr = Array<propertiesObj>;
|
|
9
|
-
|
|
10
|
-
declare type template = {
|
|
11
|
-
name: string;
|
|
12
|
-
properties: propertiesArr;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type templateArray = Array<template>;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"name": "Welllayer Template",
|
|
4
|
-
"properties": [
|
|
5
|
-
{
|
|
6
|
-
"objectName" : "PORO",
|
|
7
|
-
"colorTable" : "Porosity",
|
|
8
|
-
"context" : "wells-layer",
|
|
9
|
-
"scale": "linear"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"objectName" : "PERM",
|
|
13
|
-
"colorTable" : "Permeability",
|
|
14
|
-
"context" : "wells-layer",
|
|
15
|
-
"scale": "linear"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"objectName" : "MD",
|
|
19
|
-
"colorTable" : "Time/Depth",
|
|
20
|
-
"context" : "wells-layer",
|
|
21
|
-
"scale": "linear"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"objectName" : "PORO_TOT",
|
|
25
|
-
"colorTable" : "Porosity",
|
|
26
|
-
"context" : "wells-layer",
|
|
27
|
-
"scale": "linear"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"objectName" : "NTG",
|
|
31
|
-
"colorTable" : "Rainbow",
|
|
32
|
-
"context" : "wells-layer",
|
|
33
|
-
"scale": "linear"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"objectName" : "PERM_TOT",
|
|
37
|
-
"colorTable" : "Permeability",
|
|
38
|
-
"context" : "wells-layer",
|
|
39
|
-
"scale": "linear"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"objectName" : "SW",
|
|
43
|
-
"colorTable" : "Physics",
|
|
44
|
-
"context" : "wells-layer",
|
|
45
|
-
"scale": "linear"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"objectName" : "ZONELOG",
|
|
49
|
-
"colorTable" : "Stratigraphy",
|
|
50
|
-
"context" : "wells-layer"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"objectName" : "RDE_ORIG",
|
|
54
|
-
"colorTable" : "Stratigraphy",
|
|
55
|
-
"context" : "wells-layer"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"objectName" : "FACIES",
|
|
59
|
-
"colorTable" : "Facies",
|
|
60
|
-
"context" : "wells-layer"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"objectName" : "ZONE_MAIN",
|
|
64
|
-
"colorTable" : "Stratigraphy",
|
|
65
|
-
"context" : "wells-layer"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"objectName" : "RDE",
|
|
69
|
-
"colorTable" : "Accent",
|
|
70
|
-
"context" : "wells-layer"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"objectName" : "FaultDistance_HUM",
|
|
74
|
-
"colorTable" : "Gas-Oil-Water",
|
|
75
|
-
"context" : "wells-layer"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"objectName" : "FAULT_PROXIMITY_FLAG",
|
|
79
|
-
"colorTable" : "Gas-Water",
|
|
80
|
-
"context" : "wells-layer"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"objectName" : "FACIES_NoCalcite",
|
|
84
|
-
"colorTable" : "Facies",
|
|
85
|
-
"context" : "wells-layer"
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
]
|