@emerson-eps/color-tables 0.1.19 → 0.1.20
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/Legend/ContinuousLegend.d.ts +1 -3
- package/dist/component/Legend/ContinuousLegend.js +3 -3
- package/dist/component/Legend/ContinuousLegend.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/index.d.ts +0 -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 +1 -1
- package/src/component/Legend/ContinuousLegend.tsx +6 -9
- package/src/component/Utils/continousLegend.ts +9 -17
- package/src/index.ts +0 -1
- 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/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,13 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { templateArray } from "../WelllayerTemplateTypes";
|
|
3
2
|
import { colorTablesArray } from "../ColorTableTypes";
|
|
4
3
|
declare type legendProps = {
|
|
5
4
|
min: number;
|
|
6
5
|
max: number;
|
|
7
6
|
dataObjectName: string;
|
|
8
7
|
position: number[];
|
|
9
|
-
|
|
10
|
-
template: templateArray;
|
|
8
|
+
colorName: string;
|
|
11
9
|
colorTables: colorTablesArray;
|
|
12
10
|
horizontal: boolean;
|
|
13
11
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { RGBToHex, colorsArray } from "../Utils/continousLegend";
|
|
3
3
|
import { select, scaleLinear, scaleSequential, axisBottom } from "d3";
|
|
4
|
-
export const ContinuousLegend = ({ min, max, dataObjectName, position,
|
|
4
|
+
export const ContinuousLegend = ({ min, max, dataObjectName, position, colorName, colorTables, horizontal, }) => {
|
|
5
5
|
React.useEffect(() => {
|
|
6
6
|
continuousLegend("#legend");
|
|
7
|
-
}, [min, max,
|
|
7
|
+
}, [min, max, colorName, colorTables, horizontal]);
|
|
8
8
|
function continuousLegend(selected_id) {
|
|
9
9
|
const itemColor = [];
|
|
10
10
|
// Return the matched colors array from color.tables.json file
|
|
11
|
-
const colorTableColors = colorsArray(
|
|
11
|
+
const colorTableColors = colorsArray(colorName, colorTables);
|
|
12
12
|
colorTableColors.forEach((value) => {
|
|
13
13
|
// return the color and offset needed to draw the legend
|
|
14
14
|
itemColor.push({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContinuousLegend.js","sourceRoot":"","sources":["../../../src/component/Legend/ContinuousLegend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ContinuousLegend.js","sourceRoot":"","sources":["../../../src/component/Legend/ContinuousLegend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAkBtE,MAAM,CAAC,MAAM,gBAAgB,GAA0B,CAAC,EACpD,GAAG,EACH,GAAG,EACH,cAAc,EACd,QAAQ,EACR,SAAS,EACT,WAAW,EACX,UAAU,GACA,EAAE,EAAE;IACd,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAChC,CAAC,EAAE,CAA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C,CAAC,UAAU,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;QAEjE,SAAS;aACJ,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC;aACrB,MAAM,CAAC,GAAG,CAAC;aACX,IAAI,CAAC,WAAW,EAAE,mBAAmB,CAAC;aACtC,KAAK,CAAC,WAAW,EAAE,MAAM,CAAC;aAC1B,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC;aAC3B,IAAI,CAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IAED,OAAO,CACH,6BACI,KAAK,EAAE;YACH,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;YAClB,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;SACnB;QAED,6BAAK,EAAE,EAAC,QAAQ,GAAO,CACrB,CACT,CAAC;AACN,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;CACpB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { colorTablesArray } from "../ColorTableTypes";
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function rgbValues(objectName: string, point: number, template: templateArray, colorTables: colorTablesArray): number[] | {
|
|
2
|
+
export declare function colorsArray(colorName: string, colorTables: colorTablesArray): [number, number, number, number][];
|
|
3
|
+
export declare function rgbValues(point: number, colorName: string, colorTables: colorTablesArray): number[] | {
|
|
5
4
|
r: number;
|
|
6
5
|
g: number;
|
|
7
6
|
b: number;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { color } from "d3-color";
|
|
2
2
|
import { interpolateRgb } from "d3-interpolate";
|
|
3
3
|
// Based on objectName return the colors array from color.tables.json file
|
|
4
|
-
export function colorsArray(
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const colorTableData = colorTables.filter((value) => value.name.toLowerCase() ==
|
|
8
|
-
propertiesData[0].colorTable.toLowerCase());
|
|
9
|
-
return colorTableData[0].colors;
|
|
4
|
+
export function colorsArray(colorName, colorTables) {
|
|
5
|
+
const colorTableData = colorTables.filter((value) => value.name.toLowerCase() == colorName.toLowerCase());
|
|
6
|
+
return colorTableData.length > 0 ? colorTableData[0].colors : [];
|
|
10
7
|
}
|
|
11
8
|
// return the colors based on the point
|
|
12
|
-
export function rgbValues(
|
|
9
|
+
export function rgbValues(point, colorName, colorTables) {
|
|
13
10
|
var _a;
|
|
14
|
-
const colorTableColors = colorsArray(
|
|
11
|
+
const colorTableColors = colorsArray(colorName, colorTables);
|
|
15
12
|
// compare the point and first value from colorTableColors
|
|
16
13
|
const colorArrays = colorTableColors.find((value) => {
|
|
17
14
|
return point == value[0];
|
|
@@ -29,7 +26,10 @@ export function rgbValues(objectName, point, template, colorTables) {
|
|
|
29
26
|
const firstColorArray = colorTableColors[index - 1];
|
|
30
27
|
const secondColorArray = colorTableColors[index];
|
|
31
28
|
if ((firstColorArray || secondColorArray) != undefined) {
|
|
32
|
-
const
|
|
29
|
+
const t0 = firstColorArray[0];
|
|
30
|
+
const t1 = secondColorArray[0];
|
|
31
|
+
const t = (point - t0) / (t1 - t0); // t = 0.0 gives first color, t = 1.0 gives second color.
|
|
32
|
+
const interpolatedValues = interpolateRgb(RGBToHex(firstColorArray).color, RGBToHex(secondColorArray).color)(t);
|
|
33
33
|
return (_a = color(interpolatedValues)) === null || _a === void 0 ? void 0 : _a.rgb();
|
|
34
34
|
}
|
|
35
35
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"continousLegend.js","sourceRoot":"","sources":["../../../src/component/Utils/continousLegend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"continousLegend.js","sourceRoot":"","sources":["../../../src/component/Utils/continousLegend.ts"],"names":[],"mappings":"A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,KAAK,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AACtD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { ContinuousLegend } from './component/Legend/ContinuousLegend';
|
|
2
2
|
export { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
|
|
3
3
|
export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
|
|
4
|
-
export { propertiesObj, templateArray } from './component/WelllayerTemplateTypes';
|
|
5
4
|
export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
|
|
6
5
|
import * as colorTables from './component/color-tables.json';
|
|
7
6
|
export default colorTables;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExF,OAAO,KAAK,WAAW,MAAM,+BAA+B,CAAC;AAC7D,eAAe,WAAW,CAAC"}
|
|
@@ -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
|
const min = 2918;
|
|
10
9
|
const max = 4770;
|
|
@@ -12,6 +11,7 @@ const dataObjectName = "Wells / MD";
|
|
|
12
11
|
const position = [16, 10];
|
|
13
12
|
const name = "MD";
|
|
14
13
|
const horizontal = true;
|
|
14
|
+
const colorName = "Time/Depth";
|
|
15
15
|
const Template = (args) => {
|
|
16
16
|
return React.createElement(ContinuousLegend, Object.assign({}, args));
|
|
17
17
|
};
|
|
@@ -22,7 +22,7 @@ MDTemplate.args = {
|
|
|
22
22
|
dataObjectName,
|
|
23
23
|
position,
|
|
24
24
|
name,
|
|
25
|
-
|
|
25
|
+
colorName,
|
|
26
26
|
colorTables,
|
|
27
27
|
horizontal,
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MD.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/MD.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,
|
|
1
|
+
{"version":3,"file":"MD.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/MD.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,cAAc,GAAG,YAAY,CAAC;AACpC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,YAAY,CAAC;AAE/B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACd,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -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
|
const min = 0;
|
|
10
9
|
const max = 1;
|
|
@@ -12,6 +11,7 @@ const dataObjectName = "Wells / NTG";
|
|
|
12
11
|
const position = [16, 10];
|
|
13
12
|
const name = "NTG";
|
|
14
13
|
const horizontal = true;
|
|
14
|
+
const colorName = "Rainbow";
|
|
15
15
|
const Template = (args) => {
|
|
16
16
|
return React.createElement(ContinuousLegend, Object.assign({}, args));
|
|
17
17
|
};
|
|
@@ -22,7 +22,7 @@ NTGTemplate.args = {
|
|
|
22
22
|
dataObjectName,
|
|
23
23
|
position,
|
|
24
24
|
name,
|
|
25
|
-
|
|
25
|
+
colorName,
|
|
26
26
|
colorTables,
|
|
27
27
|
horizontal,
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NTG.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/NTG.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,
|
|
1
|
+
{"version":3,"file":"NTG.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/NTG.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,IAAI,GAAG,KAAK,CAAC;AACnB,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACf,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -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
|
const min = -999;
|
|
10
9
|
const max = 14023;
|
|
@@ -12,6 +11,7 @@ const dataObjectName = "Wells / PERMTOT";
|
|
|
12
11
|
const position = [16, 10];
|
|
13
12
|
const name = "PERM_TOT";
|
|
14
13
|
const horizontal = true;
|
|
14
|
+
const colorName = "Porosity";
|
|
15
15
|
const Template = (args) => {
|
|
16
16
|
return React.createElement(ContinuousLegend, Object.assign({}, args));
|
|
17
17
|
};
|
|
@@ -22,7 +22,7 @@ PermTotTemplate.args = {
|
|
|
22
22
|
dataObjectName,
|
|
23
23
|
position,
|
|
24
24
|
name,
|
|
25
|
-
|
|
25
|
+
colorName,
|
|
26
26
|
colorTables,
|
|
27
27
|
horizontal,
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermTot.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/PermTot.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,
|
|
1
|
+
{"version":3,"file":"PermTot.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/PermTot.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC;AACjB,MAAM,GAAG,GAAG,KAAK,CAAC;AAClB,MAAM,cAAc,GAAG,iBAAiB,CAAC;AACzC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACnB,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -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
|
const min = -999;
|
|
10
9
|
const max = 14023;
|
|
@@ -12,6 +11,7 @@ const dataObjectName = "Wells / PERM";
|
|
|
12
11
|
const position = [16, 10];
|
|
13
12
|
const name = "PERM";
|
|
14
13
|
const horizontal = true;
|
|
14
|
+
const colorName = "Permeability";
|
|
15
15
|
const Template = (args) => {
|
|
16
16
|
return React.createElement(ContinuousLegend, Object.assign({}, args));
|
|
17
17
|
};
|
|
@@ -22,7 +22,7 @@ PermeabilityTemplate.args = {
|
|
|
22
22
|
dataObjectName,
|
|
23
23
|
position,
|
|
24
24
|
name,
|
|
25
|
-
|
|
25
|
+
colorName,
|
|
26
26
|
colorTables,
|
|
27
27
|
horizontal,
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permeability.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/Permeability.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,
|
|
1
|
+
{"version":3,"file":"Permeability.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/Permeability.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC;AACjB,MAAM,GAAG,GAAG,KAAK,CAAC;AAClB,MAAM,cAAc,GAAG,cAAc,CAAC;AACtC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,IAAI,GAAG,MAAM,CAAC;AACpB,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,oBAAoB,CAAC,IAAI,GAAG;IACxB,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -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
|
const min = 0;
|
|
10
9
|
const max = 0.35;
|
|
@@ -12,6 +11,7 @@ const dataObjectName = "Wells / POROTOT";
|
|
|
12
11
|
const position = [16, 10];
|
|
13
12
|
const name = "PORO";
|
|
14
13
|
const horizontal = true;
|
|
14
|
+
const colorName = "Porosity";
|
|
15
15
|
const Template = (args) => {
|
|
16
16
|
return React.createElement(ContinuousLegend, Object.assign({}, args));
|
|
17
17
|
};
|
|
@@ -22,7 +22,7 @@ PoroTotTemplate.args = {
|
|
|
22
22
|
dataObjectName,
|
|
23
23
|
position,
|
|
24
24
|
name,
|
|
25
|
-
|
|
25
|
+
colorName,
|
|
26
26
|
colorTables,
|
|
27
27
|
horizontal,
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PoroTot.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/PoroTot.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,
|
|
1
|
+
{"version":3,"file":"PoroTot.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/PoroTot.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,cAAc,GAAG,iBAAiB,CAAC;AACzC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,IAAI,GAAG,MAAM,CAAC;AACpB,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACnB,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -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
|
const min = 0;
|
|
10
9
|
const max = 0.35;
|
|
@@ -12,6 +11,7 @@ const dataObjectName = "Wells / PORO";
|
|
|
12
11
|
const position = [16, 10];
|
|
13
12
|
const name = "PORO";
|
|
14
13
|
const horizontal = true;
|
|
14
|
+
const colorName = "Porosity";
|
|
15
15
|
const Template = (args) => {
|
|
16
16
|
return React.createElement(ContinuousLegend, Object.assign({}, args));
|
|
17
17
|
};
|
|
@@ -22,7 +22,7 @@ PorosityTemplate.args = {
|
|
|
22
22
|
dataObjectName,
|
|
23
23
|
position,
|
|
24
24
|
name,
|
|
25
|
-
|
|
25
|
+
colorName,
|
|
26
26
|
colorTables,
|
|
27
27
|
horizontal,
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Porosity.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/Porosity.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,
|
|
1
|
+
{"version":3,"file":"Porosity.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/Porosity.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,cAAc,GAAG,cAAc,CAAC;AACtC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,IAAI,GAAG,MAAM,CAAC;AACpB,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACpB,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -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
|
const min = 0;
|
|
10
9
|
const max = 1;
|
|
@@ -12,6 +11,7 @@ const dataObjectName = "Wells / SW";
|
|
|
12
11
|
const position = [16, 10];
|
|
13
12
|
const name = "SW";
|
|
14
13
|
const horizontal = true;
|
|
14
|
+
const colorName = "Physics";
|
|
15
15
|
const Template = (args) => {
|
|
16
16
|
return React.createElement(ContinuousLegend, Object.assign({}, args));
|
|
17
17
|
};
|
|
@@ -22,7 +22,7 @@ SWTemplate.args = {
|
|
|
22
22
|
dataObjectName,
|
|
23
23
|
position,
|
|
24
24
|
name,
|
|
25
|
-
|
|
25
|
+
Physics,
|
|
26
26
|
colorTables,
|
|
27
27
|
horizontal,
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SW.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/SW.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,
|
|
1
|
+
{"version":3,"file":"SW.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/ContinousLgends/SW.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,gBAAgB,EAAC,MAAM,4CAA4C,CAAC;AAC5E,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,yBAAyB;CACnC,CAAC;AACF,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,GAAG,GAAG,CAAC,CAAC;AACd,MAAM,cAAc,GAAG,YAAY,CAAC;AACpC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,gBAAgB,oBAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5C,UAAU,CAAC,IAAI,GAAG;IACd,GAAG;IACH,GAAG;IACH,cAAc;IACd,QAAQ;IACR,IAAI;IACJ,OAAO;IACP,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Facies.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"Facies.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,MAAM,YAAY,GAAG;IACjB,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC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E,EAAE,CAAC,CAAC;IAChB,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACrB,CAAC;AACF,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,QAAQ,CAAC;AAE3B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACf,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { RGBToHex, colorsArray } from "../Utils/continousLegend";
|
|
3
3
|
import { select, scaleLinear, scaleSequential, axisBottom } from "d3";
|
|
4
|
-
import { templateArray } from "../WelllayerTemplateTypes";
|
|
5
4
|
import { colorTablesArray } from "../ColorTableTypes";
|
|
6
5
|
|
|
7
6
|
declare type legendProps = {
|
|
@@ -9,8 +8,7 @@ declare type legendProps = {
|
|
|
9
8
|
max: number;
|
|
10
9
|
dataObjectName: string;
|
|
11
10
|
position: number[];
|
|
12
|
-
|
|
13
|
-
template: templateArray;
|
|
11
|
+
colorName: string;
|
|
14
12
|
colorTables: colorTablesArray;
|
|
15
13
|
horizontal: boolean;
|
|
16
14
|
}
|
|
@@ -25,19 +23,18 @@ export const ContinuousLegend: React.FC<legendProps> = ({
|
|
|
25
23
|
max,
|
|
26
24
|
dataObjectName,
|
|
27
25
|
position,
|
|
28
|
-
|
|
29
|
-
template,
|
|
26
|
+
colorName,
|
|
30
27
|
colorTables,
|
|
31
28
|
horizontal,
|
|
32
29
|
}: legendProps) => {
|
|
33
30
|
React.useEffect(() => {
|
|
34
31
|
continuousLegend("#legend");
|
|
35
|
-
}, [min, max,
|
|
32
|
+
}, [min, max, colorName, colorTables, horizontal]);
|
|
36
33
|
|
|
37
34
|
function continuousLegend(selected_id: string) {
|
|
38
35
|
const itemColor: ItemColor[] = [];
|
|
39
36
|
// Return the matched colors array from color.tables.json file
|
|
40
|
-
const colorTableColors = colorsArray(
|
|
37
|
+
const colorTableColors = colorsArray(colorName, colorTables);
|
|
41
38
|
colorTableColors.forEach((value: [number, number, number, number]) => {
|
|
42
39
|
// return the color and offset needed to draw the legend
|
|
43
40
|
itemColor.push({
|
|
@@ -72,10 +69,10 @@ export const ContinuousLegend: React.FC<legendProps> = ({
|
|
|
72
69
|
.data(itemColor)
|
|
73
70
|
.enter()
|
|
74
71
|
.append("stop")
|
|
75
|
-
.attr("offset", function (data
|
|
72
|
+
.attr("offset", function (data) {
|
|
76
73
|
return data.offset + "%";
|
|
77
74
|
})
|
|
78
|
-
.attr("stop-color", function (data
|
|
75
|
+
.attr("stop-color", function (data) {
|
|
79
76
|
return data.color;
|
|
80
77
|
});
|
|
81
78
|
|
|
@@ -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
2
|
export { colorsArray, rgbValues, RGBToHex} from './component/Utils/continousLegend';
|
|
3
3
|
export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
|
|
4
|
-
export { propertiesObj, templateArray } from './component/WelllayerTemplateTypes';
|
|
5
4
|
export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
|
|
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
|
};
|
|
@@ -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
|
-
]
|