@emerson-eps/color-tables 0.0.3 → 0.1.4
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/.storybook/main.js +11 -0
- package/.storybook/preview.js +9 -0
- package/package.json +40 -8
- package/src/component/ColorTableTypes.ts +6 -0
- package/src/component/Legend/ContinuousLegend.tsx +131 -0
- package/src/component/Legend/DiscreteLegend.tsx +126 -0
- package/src/component/Utils/continousLegend.ts +81 -0
- package/src/component/Utils/discreteLegend.ts +69 -0
- package/src/component/WelllayerTemplateTypes.ts +15 -0
- package/{color-tables.json → src/component/color-tables.json} +12 -12
- package/src/component/welllayer_template.json +89 -0
- package/src/index.js +2 -0
- package/src/setupTests.js +5 -0
- package/src/stories/ColorLegends/ContinousLgends/MD.stories.jsx +31 -0
- package/src/stories/ColorLegends/ContinousLgends/NTG.stories.jsx +31 -0
- package/src/stories/ColorLegends/ContinousLgends/PermTot.stories.jsx +31 -0
- package/src/stories/ColorLegends/ContinousLgends/Permeability.stories.jsx +31 -0
- package/src/stories/ColorLegends/ContinousLgends/PoroTot.stories.jsx +31 -0
- package/src/stories/ColorLegends/ContinousLgends/Porosity.stories.jsx +31 -0
- package/src/stories/ColorLegends/ContinousLgends/SW.stories.jsx +31 -0
- package/src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx +41 -0
- package/src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.jsx +41 -0
- package/src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx +33 -0
- package/src/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.jsx +33 -0
- package/src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx +36 -0
- package/src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx +47 -0
- package/src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx +36 -0
- package/src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx +48 -0
- package/.github/workflows/node.js.yml +0 -34
- package/LICENSE +0 -373
- package/README.md +0 -8
|
@@ -0,0 +1,89 @@
|
|
|
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" : "Stratigraphy",
|
|
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
|
+
]
|
package/src/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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 template from "../../../component/welllayer_template.json";
|
|
8
|
+
import colorTables from "../../../component/color-tables.json";
|
|
9
|
+
|
|
10
|
+
const min = 2918;
|
|
11
|
+
const max = 4770;
|
|
12
|
+
const dataObjectName = "Wells / MD";
|
|
13
|
+
const position = [16, 10];
|
|
14
|
+
const name = "MD";
|
|
15
|
+
const horizontal = true;
|
|
16
|
+
|
|
17
|
+
const Template = (args) => {
|
|
18
|
+
return <ContinuousLegend {...args} />;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const MDTemplate = Template.bind({});
|
|
22
|
+
MDTemplate.args = {
|
|
23
|
+
min,
|
|
24
|
+
max,
|
|
25
|
+
dataObjectName,
|
|
26
|
+
position,
|
|
27
|
+
name,
|
|
28
|
+
template,
|
|
29
|
+
colorTables,
|
|
30
|
+
horizontal,
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 template from "../../../component/welllayer_template.json";
|
|
8
|
+
import colorTables from "../../../component/color-tables.json";
|
|
9
|
+
|
|
10
|
+
const min = 0;
|
|
11
|
+
const max = 1;
|
|
12
|
+
const dataObjectName = "Wells / NTG";
|
|
13
|
+
const position = [16, 10];
|
|
14
|
+
const name = "NTG";
|
|
15
|
+
const horizontal = true;
|
|
16
|
+
|
|
17
|
+
const Template = (args) => {
|
|
18
|
+
return <ContinuousLegend {...args} />;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const NTGTemplate = Template.bind({});
|
|
22
|
+
NTGTemplate.args = {
|
|
23
|
+
min,
|
|
24
|
+
max,
|
|
25
|
+
dataObjectName,
|
|
26
|
+
position,
|
|
27
|
+
name,
|
|
28
|
+
template,
|
|
29
|
+
colorTables,
|
|
30
|
+
horizontal,
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 template from "../../../component/welllayer_template.json";
|
|
8
|
+
import colorTables from "../../../component/color-tables.json";
|
|
9
|
+
|
|
10
|
+
const min = -999;
|
|
11
|
+
const max = 14023;
|
|
12
|
+
const dataObjectName = "Wells / PERMTOT";
|
|
13
|
+
const position = [16, 10];
|
|
14
|
+
const name = "PERM_TOT";
|
|
15
|
+
const horizontal = true;
|
|
16
|
+
|
|
17
|
+
const Template = (args) => {
|
|
18
|
+
return <ContinuousLegend {...args} />;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const PermTotTemplate = Template.bind({});
|
|
22
|
+
PermTotTemplate.args = {
|
|
23
|
+
min,
|
|
24
|
+
max,
|
|
25
|
+
dataObjectName,
|
|
26
|
+
position,
|
|
27
|
+
name,
|
|
28
|
+
template,
|
|
29
|
+
colorTables,
|
|
30
|
+
horizontal,
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 template from "../../../component/welllayer_template.json";
|
|
8
|
+
import colorTables from "../../../component/color-tables.json";
|
|
9
|
+
|
|
10
|
+
const min = -999;
|
|
11
|
+
const max = 14023;
|
|
12
|
+
const dataObjectName = "Wells / PERM";
|
|
13
|
+
const position = [16, 10];
|
|
14
|
+
const name = "PERM";
|
|
15
|
+
const horizontal = true;
|
|
16
|
+
|
|
17
|
+
const Template = (args) => {
|
|
18
|
+
return <ContinuousLegend {...args} />;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const PermeabilityTemplate = Template.bind({});
|
|
22
|
+
PermeabilityTemplate.args = {
|
|
23
|
+
min,
|
|
24
|
+
max,
|
|
25
|
+
dataObjectName,
|
|
26
|
+
position,
|
|
27
|
+
name,
|
|
28
|
+
template,
|
|
29
|
+
colorTables,
|
|
30
|
+
horizontal,
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 template from "../../../component/welllayer_template.json";
|
|
8
|
+
import colorTables from "../../../component/color-tables.json";
|
|
9
|
+
|
|
10
|
+
const min = 0;
|
|
11
|
+
const max = 0.35;
|
|
12
|
+
const dataObjectName = "Wells / POROTOT";
|
|
13
|
+
const position = [16, 10];
|
|
14
|
+
const name = "PORO";
|
|
15
|
+
const horizontal = true;
|
|
16
|
+
|
|
17
|
+
const Template = (args) => {
|
|
18
|
+
return <ContinuousLegend {...args} />;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const PoroTotTemplate = Template.bind({});
|
|
22
|
+
PoroTotTemplate.args = {
|
|
23
|
+
min,
|
|
24
|
+
max,
|
|
25
|
+
dataObjectName,
|
|
26
|
+
position,
|
|
27
|
+
name,
|
|
28
|
+
template,
|
|
29
|
+
colorTables,
|
|
30
|
+
horizontal,
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 template from "../../../component/welllayer_template.json";
|
|
8
|
+
import colorTables from "../../../component/color-tables.json";
|
|
9
|
+
|
|
10
|
+
const min = 0;
|
|
11
|
+
const max = 0.35;
|
|
12
|
+
const dataObjectName = "Wells / PORO";
|
|
13
|
+
const position = [16, 10];
|
|
14
|
+
const name = "PORO";
|
|
15
|
+
const horizontal = true;
|
|
16
|
+
|
|
17
|
+
const Template = (args) => {
|
|
18
|
+
return <ContinuousLegend {...args} />;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const PorosityTemplate = Template.bind({});
|
|
22
|
+
PorosityTemplate.args = {
|
|
23
|
+
min,
|
|
24
|
+
max,
|
|
25
|
+
dataObjectName,
|
|
26
|
+
position,
|
|
27
|
+
name,
|
|
28
|
+
template,
|
|
29
|
+
colorTables,
|
|
30
|
+
horizontal,
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 template from "../../../component/welllayer_template.json";
|
|
8
|
+
import colorTables from "../../../component/color-tables.json";
|
|
9
|
+
|
|
10
|
+
const min = 0;
|
|
11
|
+
const max = 1;
|
|
12
|
+
const dataObjectName = "Wells / SW";
|
|
13
|
+
const position = [16, 10];
|
|
14
|
+
const name = "SW";
|
|
15
|
+
const horizontal = true;
|
|
16
|
+
|
|
17
|
+
const Template = (args) => {
|
|
18
|
+
return <ContinuousLegend {...args} />;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const SWTemplate = Template.bind({});
|
|
22
|
+
SWTemplate.args = {
|
|
23
|
+
min,
|
|
24
|
+
max,
|
|
25
|
+
dataObjectName,
|
|
26
|
+
position,
|
|
27
|
+
name,
|
|
28
|
+
template,
|
|
29
|
+
colorTables,
|
|
30
|
+
horizontal,
|
|
31
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: DiscreteColorLegend,
|
|
8
|
+
title: "Legends/DiscreteColorLegend",
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const discreteData = {
|
|
12
|
+
"OS": [[], 0],
|
|
13
|
+
"LSF": [[], 1],
|
|
14
|
+
"USF": [[], 2],
|
|
15
|
+
"MB": [[], 3],
|
|
16
|
+
"TB": [[], 4],
|
|
17
|
+
"TC": [[], 5],
|
|
18
|
+
"TFS": [[], 6],
|
|
19
|
+
"TFM": [[], 7],
|
|
20
|
+
"MSH": [[], 8],
|
|
21
|
+
"CAL": [[], 9]
|
|
22
|
+
};
|
|
23
|
+
const name = "FACIES";
|
|
24
|
+
const dataObjectName = "Wells / FACIES";
|
|
25
|
+
const position = [16, 10];
|
|
26
|
+
const horizontal = true;
|
|
27
|
+
|
|
28
|
+
const Template = (args) => {
|
|
29
|
+
return <DiscreteColorLegend {...args} />;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const FaciesTemplate = Template.bind({});
|
|
33
|
+
FaciesTemplate.args = {
|
|
34
|
+
discreteData,
|
|
35
|
+
name,
|
|
36
|
+
dataObjectName,
|
|
37
|
+
position,
|
|
38
|
+
template,
|
|
39
|
+
colorTables,
|
|
40
|
+
horizontal,
|
|
41
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: DiscreteColorLegend,
|
|
8
|
+
title: "Legends/DiscreteColorLegend",
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const discreteData = {
|
|
12
|
+
"F_OFFSHORE": [[], 0],
|
|
13
|
+
"F_LOWER_SHOREFACE": [[], 1],
|
|
14
|
+
"F_UPPER_SHOREFACE": [[], 2],
|
|
15
|
+
"F_MOUTH_BAR": [[], 3],
|
|
16
|
+
"F_TIDAL_BAR": [[], 4],
|
|
17
|
+
"F_TIDAL_CHANNEL": [[], 5],
|
|
18
|
+
"F_TIDAL_FLAT_SANDY": [[], 6],
|
|
19
|
+
"F_TIDAL_FLAT_MUDDY": [[], 7],
|
|
20
|
+
"F_MARSH": [[], 8],
|
|
21
|
+
"F_CALCITE": [[], 9]
|
|
22
|
+
};
|
|
23
|
+
const name = "FACIES_NoCalcite";
|
|
24
|
+
const dataObjectName = "Wells / FACIES_NoCalcite";
|
|
25
|
+
const position = [16, 10];
|
|
26
|
+
const horizontal = true;
|
|
27
|
+
|
|
28
|
+
const Template = (args) => {
|
|
29
|
+
return <DiscreteColorLegend {...args} />;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const FaciesNoCalciteTemplate = Template.bind({});
|
|
33
|
+
FaciesNoCalciteTemplate.args = {
|
|
34
|
+
discreteData,
|
|
35
|
+
name,
|
|
36
|
+
dataObjectName,
|
|
37
|
+
position,
|
|
38
|
+
template,
|
|
39
|
+
colorTables,
|
|
40
|
+
horizontal,
|
|
41
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: DiscreteColorLegend,
|
|
8
|
+
title: "Legends/DiscreteColorLegend",
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const discreteData = {
|
|
12
|
+
"no": [[], 0],
|
|
13
|
+
"yes": [[], 1]
|
|
14
|
+
};
|
|
15
|
+
const name = "FaultDistance_HUM";
|
|
16
|
+
const dataObjectName = "Wells / FaultDistance_HUM";
|
|
17
|
+
const position = [16, 10];
|
|
18
|
+
const horizontal = true;
|
|
19
|
+
|
|
20
|
+
const Template = (args) => {
|
|
21
|
+
return <DiscreteColorLegend {...args} />;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const FaultDistanceHumTemplate = Template.bind({});
|
|
25
|
+
FaultDistanceHumTemplate.args = {
|
|
26
|
+
discreteData,
|
|
27
|
+
name,
|
|
28
|
+
dataObjectName,
|
|
29
|
+
position,
|
|
30
|
+
template,
|
|
31
|
+
colorTables,
|
|
32
|
+
horizontal,
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: DiscreteColorLegend,
|
|
8
|
+
title: "Legends/DiscreteColorLegend",
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const discreteData = {
|
|
12
|
+
"no": [[], 0],
|
|
13
|
+
"yes": [[], 1]
|
|
14
|
+
};
|
|
15
|
+
const name = "FAULT_PROXIMITY_FLAG";
|
|
16
|
+
const dataObjectName = "Wells / FAULT_PROXIMITY_FLAG";
|
|
17
|
+
const position = [16, 10];
|
|
18
|
+
const horizontal = true;
|
|
19
|
+
|
|
20
|
+
const Template = (args) => {
|
|
21
|
+
return <DiscreteColorLegend {...args} />;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const FaultProximityFlagTemplate = Template.bind({});
|
|
25
|
+
FaultProximityFlagTemplate.args = {
|
|
26
|
+
discreteData,
|
|
27
|
+
name,
|
|
28
|
+
dataObjectName,
|
|
29
|
+
position,
|
|
30
|
+
template,
|
|
31
|
+
colorTables,
|
|
32
|
+
horizontal,
|
|
33
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: DiscreteColorLegend,
|
|
8
|
+
title: "Legends/DiscreteColorLegend",
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const discreteData = {
|
|
12
|
+
"OFFSHORE": [[], 1],
|
|
13
|
+
"LSF": [[], 2],
|
|
14
|
+
"USF": [[], 3],
|
|
15
|
+
"TIDAL": [[], 4],
|
|
16
|
+
"ONSHORE": [[], 5]
|
|
17
|
+
};
|
|
18
|
+
const name = "RDE";
|
|
19
|
+
const dataObjectName = "Wells / RDE";
|
|
20
|
+
const position = [16, 10];
|
|
21
|
+
const horizontal = true;
|
|
22
|
+
|
|
23
|
+
const Template = (args) => {
|
|
24
|
+
return <DiscreteColorLegend {...args} />;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const RDETemplate = Template.bind({});
|
|
28
|
+
RDETemplate.args = {
|
|
29
|
+
discreteData,
|
|
30
|
+
name,
|
|
31
|
+
dataObjectName,
|
|
32
|
+
position,
|
|
33
|
+
template,
|
|
34
|
+
colorTables,
|
|
35
|
+
horizontal,
|
|
36
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: DiscreteColorLegend,
|
|
8
|
+
title: "Legends/DiscreteColorLegend",
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const discreteData = {
|
|
12
|
+
"F_OFFSHORE": [[], 0],
|
|
13
|
+
"F_LOWER_SHOREFACE": [[], 1],
|
|
14
|
+
"F_UPPER_SHOREFACE": [[], 2],
|
|
15
|
+
"F_MOUTH_BAR": [[], 3],
|
|
16
|
+
"F_TIDAL_BAR": [[], 4],
|
|
17
|
+
"F_TIDAL_CHANNEL": [[], 5],
|
|
18
|
+
"F_TIDAL_FLAT_SANDY": [[], 6],
|
|
19
|
+
"F_TIDAL_FLAT_MUDDY": [[], 7],
|
|
20
|
+
"F_MARSH": [[], 8],
|
|
21
|
+
"F_CALCITE": [[], 9],
|
|
22
|
+
"R_OFFSHORE": [[], 10],
|
|
23
|
+
"R_SHOREFACE": [[], 11],
|
|
24
|
+
"R_TIDAL": [[], 12],
|
|
25
|
+
"R_ONSHORE": [[], 13],
|
|
26
|
+
"R_USF": [[], 14],
|
|
27
|
+
"R_LSF": [[], 15]
|
|
28
|
+
};
|
|
29
|
+
const name = "RDE_ORIG";
|
|
30
|
+
const dataObjectName = "Wells / RDE_ORIG";
|
|
31
|
+
const position = [16, 10];
|
|
32
|
+
const horizontal = true;
|
|
33
|
+
|
|
34
|
+
const Template = (args) => {
|
|
35
|
+
return <DiscreteColorLegend {...args} />;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const RDEOrigTemplate = Template.bind({});
|
|
39
|
+
RDEOrigTemplate.args = {
|
|
40
|
+
discreteData,
|
|
41
|
+
name,
|
|
42
|
+
dataObjectName,
|
|
43
|
+
position,
|
|
44
|
+
template,
|
|
45
|
+
colorTables,
|
|
46
|
+
horizontal,
|
|
47
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: DiscreteColorLegend,
|
|
8
|
+
title: "Legends/DiscreteColorLegend",
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const discreteData = {
|
|
12
|
+
"0": [[], 0],
|
|
13
|
+
"4": [[], 4],
|
|
14
|
+
"UPPER": [[], 1],
|
|
15
|
+
"MID": [[], 2],
|
|
16
|
+
"LOWER": [[], 3]
|
|
17
|
+
};
|
|
18
|
+
const name = "ZONE_MAIN";
|
|
19
|
+
const dataObjectName = "Wells / ZONE_MAIN";
|
|
20
|
+
const position = [16, 10];
|
|
21
|
+
const horizontal = true;
|
|
22
|
+
|
|
23
|
+
const Template = (args) => {
|
|
24
|
+
return <DiscreteColorLegend {...args} />;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const ZoneMainTemplate = Template.bind({});
|
|
28
|
+
ZoneMainTemplate.args = {
|
|
29
|
+
discreteData,
|
|
30
|
+
name,
|
|
31
|
+
dataObjectName,
|
|
32
|
+
position,
|
|
33
|
+
template,
|
|
34
|
+
colorTables,
|
|
35
|
+
horizontal,
|
|
36
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
component: DiscreteColorLegend,
|
|
8
|
+
title: "Legends/DiscreteColorLegend",
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const discreteData = {
|
|
12
|
+
"Above_BCU": [[], 0],
|
|
13
|
+
"ABOVE": [[], 1],
|
|
14
|
+
"H12": [[], 2],
|
|
15
|
+
"H11": [[], 3],
|
|
16
|
+
"H10": [[], 4],
|
|
17
|
+
"H9": [[], 5],
|
|
18
|
+
"H8": [[], 6],
|
|
19
|
+
"H7": [[], 7],
|
|
20
|
+
"H6": [[], 8],
|
|
21
|
+
"H5": [[], 9],
|
|
22
|
+
"H4": [[], 10],
|
|
23
|
+
"H3": [[], 11],
|
|
24
|
+
"H2": [[], 12],
|
|
25
|
+
"H1": [[], 13],
|
|
26
|
+
"BELOW": [[], 14]
|
|
27
|
+
};
|
|
28
|
+
const name = "ZONELOG";
|
|
29
|
+
const dataObjectName = "Wells / ZONELOG";
|
|
30
|
+
const position = [16, 10];
|
|
31
|
+
const horizontal = true;
|
|
32
|
+
|
|
33
|
+
const Template = (args) => {
|
|
34
|
+
return <DiscreteColorLegend {...args} />;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const ZonelogTemplate = Template.bind({});
|
|
38
|
+
ZonelogTemplate.args = {
|
|
39
|
+
discreteData,
|
|
40
|
+
name,
|
|
41
|
+
dataObjectName,
|
|
42
|
+
position,
|
|
43
|
+
template,
|
|
44
|
+
colorTables,
|
|
45
|
+
horizontal,
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
2
|
-
|
|
3
|
-
name: Node.js CI
|
|
4
|
-
|
|
5
|
-
on:
|
|
6
|
-
push:
|
|
7
|
-
branches: [main]
|
|
8
|
-
pull_request:
|
|
9
|
-
branches: [main]
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
build:
|
|
13
|
-
name: Build
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- name: Checkout
|
|
17
|
-
uses: actions/checkout@v2
|
|
18
|
-
with:
|
|
19
|
-
fetch-depth: 0
|
|
20
|
-
- name: Setup Node.js
|
|
21
|
-
uses: actions/setup-node@v2
|
|
22
|
-
with:
|
|
23
|
-
node-version: 14.x
|
|
24
|
-
registry-url: "https://registry.npmjs.org"
|
|
25
|
-
- name: Install dependencies
|
|
26
|
-
run: npm ci
|
|
27
|
-
- name: Build
|
|
28
|
-
run: npm run build --if-present
|
|
29
|
-
- name: Release
|
|
30
|
-
if: ${{ github.ref == 'refs/heads/main' }}
|
|
31
|
-
env:
|
|
32
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
33
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
34
|
-
run: npm run semantic-release
|