@emerson-eps/color-tables 0.1.16 → 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/Legend/DiscreteLegend.d.ts +2 -4
- package/dist/component/Legend/DiscreteLegend.js +13 -10
- 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/index.d.ts +1 -2
- package/dist/index.js +1 -2
- 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 +2 -4
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +1 -1
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +2 -4
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +1 -1
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +2 -4
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +1 -1
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +2 -4
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +1 -1
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +2 -4
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +1 -1
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +2 -4
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +1 -1
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +2 -4
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +1 -1
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +2 -4
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +1 -1
- package/package.json +5 -5
- package/src/component/Legend/ContinuousLegend.tsx +6 -9
- package/src/component/Legend/DiscreteLegend.tsx +15 -21
- package/src/component/Utils/continousLegend.ts +9 -17
- package/src/component/Utils/discreteLegend.ts +2 -2
- package/src/index.ts +1 -3
- 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 +2 -4
- package/src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.jsx +2 -4
- package/src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx +2 -4
- package/src/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.jsx +2 -4
- package/src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx +2 -4
- package/src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx +2 -4
- package/src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx +2 -4
- package/src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx +2 -4
- package/tsconfig.json +2 -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,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,CAAC,GAAG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,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,17 +1,15 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { templateArray } from "../WelllayerTemplateTypes";
|
|
3
2
|
import { colorTablesArray } from "../ColorTableTypes";
|
|
4
3
|
declare type colorLegendProps = {
|
|
5
4
|
discreteData: {
|
|
6
5
|
objects: Record<string, [number[], number]>;
|
|
7
6
|
};
|
|
8
7
|
dataObjectName: string;
|
|
9
|
-
name: string;
|
|
10
8
|
position: number[];
|
|
11
|
-
|
|
9
|
+
colorName: string;
|
|
12
10
|
colorTables: colorTablesArray;
|
|
13
11
|
horizontal: boolean;
|
|
14
12
|
};
|
|
15
13
|
export declare const DiscreteColorLegend: React.FC<colorLegendProps>;
|
|
16
|
-
export declare function colorTableData(
|
|
14
|
+
export declare function colorTableData(colorName: string, colorTables: colorTablesArray): [number, number, number, number][];
|
|
17
15
|
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import legendUtil from "../Utils/discreteLegend";
|
|
3
3
|
import { scaleOrdinal, select } from "d3";
|
|
4
|
-
export const DiscreteColorLegend = ({ discreteData,
|
|
4
|
+
export const DiscreteColorLegend = ({ discreteData, dataObjectName, position, colorName, colorTables, horizontal, }) => {
|
|
5
5
|
React.useEffect(() => {
|
|
6
6
|
discreteLegend("#legend");
|
|
7
|
-
}, [discreteData,
|
|
7
|
+
}, [discreteData, colorName, colorTables, horizontal]);
|
|
8
8
|
function discreteLegend(legend) {
|
|
9
9
|
const itemName = [];
|
|
10
10
|
const itemColor = [];
|
|
11
|
-
const colorsArray = colorTableData(
|
|
11
|
+
const colorsArray = colorTableData(colorName, colorTables);
|
|
12
12
|
Object.keys(discreteData).forEach((key) => {
|
|
13
13
|
// eslint-disable-next-line
|
|
14
14
|
let code = discreteData[key][1];
|
|
@@ -34,10 +34,17 @@ export const DiscreteColorLegend = ({ discreteData, name, dataObjectName, positi
|
|
|
34
34
|
}
|
|
35
35
|
const ordinalValues = scaleOrdinal().domain(itemName);
|
|
36
36
|
const colorLegend = legendUtil(itemColor).inputScale(ordinalValues);
|
|
37
|
+
select(legend).select("div").remove();
|
|
37
38
|
select(legend).select("svg").remove();
|
|
38
39
|
const legendLength = itemColor.length;
|
|
39
40
|
const calcLegendHeight = 22 * legendLength + 4 * legendLength;
|
|
40
41
|
const selectedLegend = select(legend);
|
|
42
|
+
selectedLegend
|
|
43
|
+
.append("div")
|
|
44
|
+
.text(dataObjectName)
|
|
45
|
+
.attr("y", 7)
|
|
46
|
+
.style("color", "#6F6F6F")
|
|
47
|
+
.style("margin", "10px 10px");
|
|
41
48
|
if (!horizontal)
|
|
42
49
|
selectedLegend.style("height", 150 + "px");
|
|
43
50
|
const svgLegend = selectedLegend
|
|
@@ -63,16 +70,12 @@ export const DiscreteColorLegend = ({ discreteData, name, dataObjectName, positi
|
|
|
63
70
|
backgroundColor: "#ffffffcc",
|
|
64
71
|
borderRadius: "5px",
|
|
65
72
|
} },
|
|
66
|
-
React.createElement("label", { style: { color: "#6F6F6F", margin: "10px 10px" } }, dataObjectName),
|
|
67
73
|
React.createElement("div", { id: "legend" })));
|
|
68
74
|
};
|
|
69
75
|
// Based on name return the colors array from color.tables.json file
|
|
70
|
-
export function colorTableData(
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
const colorTableData = colorTables.filter((value) => value.name.toLowerCase() ==
|
|
74
|
-
propertiesData[0].colorTable.toLowerCase());
|
|
75
|
-
return colorTableData[0].colors;
|
|
76
|
+
export function colorTableData(colorName, colorTables) {
|
|
77
|
+
const colorTableData = colorTables.filter((value) => value.name.toLowerCase() == colorName.toLowerCase());
|
|
78
|
+
return colorTableData.length > 0 ? colorTableData[0].colors : [];
|
|
76
79
|
}
|
|
77
80
|
DiscreteColorLegend.defaultProps = {
|
|
78
81
|
position: [5, 10],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DiscreteLegend.js","sourceRoot":"","sources":["../../../src/component/Legend/DiscreteLegend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"DiscreteLegend.js","sourceRoot":"","sources":["../../../src/component/Legend/DiscreteLegend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAgB1C,MAAM,CAAC,MAAM,mBAAmB,GAA+B,CAAC,EAC5D,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,SAAS,EACT,WAAW,EACX,UAAU,GACK,EAAE,EAAE;IACnB,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACjB,cAAc,CAAC,SAAS,CAAC,CAAC;IA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,EAAE,GAAG,GAAG,IAAI,CAAC,CAAC;SAClC;aAAM;YACH,SAAS;iBACJ,KAAK,CAAC,WAAW,EAAE,eAAe,CAAC;iBACnC,IAAI,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;iBACtC,IAAI,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC,CAAC;SAChD;IACL,CAAC;IACD,OAAO,CACH,6BACI,KAAK,EAAE;YACH,QAAQ,EAAE,UAAU;YACpB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;YAClB,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;YAChB,eAAe,EAAE,WAAW;YAC5B,YAAY,EAAE,KAAK;SACtB;QAED,6BAAK,EAAE,EAAC,QAAQ,GAAO,CACrB,CACT,CAAC;AACN,CAAC,CAAC;AAEF,oEAAoE;AACpE,MAAM,UAAU,cAAc,CAC1B,SAAiB,EACjB,WAA6B;IAE7B,MAAM,cAAc,GAAG,WAAW,CAAC,MAAM,CACrC,CAAC,KAAqB,EAAE,EAAE,CACtB,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,SAAS,CAAC,WAAW,EAAE,CAC1D,CAAC;IACF,OAAO,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;AACrE,CAAC;AAED,mBAAmB,CAAC,YAAY,GAAG;IAC/B,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":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAMhD,0EAA0E;AAC1E,MAAM,UAAU,WAAW,CACvB,SAAiB,EACjB,WAA6B;IAE7B,MAAM,cAAc,GAAG,WAAW,CAAC,MAAM,CACrC,CAAC,KAAqB,EAAE,EAAE,CACtB,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,SAAS,CAAC,WAAW,EAAE,CAC1D,CAAC;IACF,OAAO,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;AACrE,CAAC;AAED,uCAAuC;AACvC,MAAM,UAAU,SAAS,CACrB,KAAa,EACb,SAAiB,EACjB,WAA6B;;IAE7B,MAAM,gBAAgB,GAAG,WAAW,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IAC7D,0DAA0D;IAC1D,MAAM,WAAW,GAAG,gBAAgB,CAAC,IAAI,CACrC,CAAC,KAAuC,EAAE,EAAE;QACxC,OAAO,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7B,CAAC,CACJ,CAAC;IAEF,0EAA0E;IAC1E,IAAI,WAAW,EAAE;QACb,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KAC/B;IACD,4CAA4C;SACvC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IAAI,CAAC,CAAC,MAAM,IAAI,CAAC;QAAE,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;IAC/B,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC;QAAE,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;IAC/B,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC;QAAE,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;IAC/B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IAE9B,OAAO,EAAE,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
|
-
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;
|
package/dist/index.js
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';
|
|
4
|
-
|
|
3
|
+
export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
|
|
5
4
|
import * as colorTables from './component/color-tables.json';
|
|
6
5
|
export default colorTables;
|
|
7
6
|
//# sourceMappingURL=index.js.map
|
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,
|
|
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,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
-
import template from "../../../component/welllayer_template.json";
|
|
4
3
|
import colorTables from "../../../component/color-tables.json";
|
|
5
4
|
export default {
|
|
6
5
|
component: DiscreteColorLegend,
|
|
@@ -18,20 +17,19 @@ const discreteData = {
|
|
|
18
17
|
"MSH": [[], 8],
|
|
19
18
|
"CAL": [[], 9]
|
|
20
19
|
};
|
|
21
|
-
const name = "FACIES";
|
|
22
20
|
const dataObjectName = "Wells / FACIES";
|
|
23
21
|
const position = [16, 10];
|
|
24
22
|
const horizontal = true;
|
|
23
|
+
const colorName = "Facies";
|
|
25
24
|
const Template = (args) => {
|
|
26
25
|
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
27
26
|
};
|
|
28
27
|
export const FaciesTemplate = Template.bind({});
|
|
29
28
|
FaciesTemplate.args = {
|
|
30
29
|
discreteData,
|
|
31
|
-
name,
|
|
32
30
|
dataObjectName,
|
|
33
31
|
position,
|
|
34
|
-
|
|
32
|
+
colorName,
|
|
35
33
|
colorTables,
|
|
36
34
|
horizontal,
|
|
37
35
|
};
|
|
@@ -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;AAC7E,OAAO,
|
|
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;IACb,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACjB,CAAC;AACF,MAAM,cAAc,GAAG,gBAAgB,CAAC;AACxC,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,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,cAAc,CAAC,IAAI,GAAG;IAClB,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
-
import template from "../../../component/welllayer_template.json";
|
|
4
3
|
import colorTables from "../../../component/color-tables.json";
|
|
5
4
|
export default {
|
|
6
5
|
component: DiscreteColorLegend,
|
|
@@ -18,20 +17,19 @@ const discreteData = {
|
|
|
18
17
|
"F_MARSH": [[], 8],
|
|
19
18
|
"F_CALCITE": [[], 9]
|
|
20
19
|
};
|
|
21
|
-
const name = "FACIES_NoCalcite";
|
|
22
20
|
const dataObjectName = "Wells / FACIES_NoCalcite";
|
|
23
21
|
const position = [16, 10];
|
|
24
22
|
const horizontal = true;
|
|
23
|
+
const colorName = "Facies";
|
|
25
24
|
const Template = (args) => {
|
|
26
25
|
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
27
26
|
};
|
|
28
27
|
export const FaciesNoCalciteTemplate = Template.bind({});
|
|
29
28
|
FaciesNoCalciteTemplate.args = {
|
|
30
29
|
discreteData,
|
|
31
|
-
name,
|
|
32
30
|
dataObjectName,
|
|
33
31
|
position,
|
|
34
|
-
|
|
32
|
+
colorName,
|
|
35
33
|
colorTables,
|
|
36
34
|
horizontal,
|
|
37
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FaciesNoCalcite.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,
|
|
1
|
+
{"version":3,"file":"FaciesNoCalcite.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.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,YAAY,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACrB,mBAAmB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,mBAAmB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5B,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACtB,aAAa,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACtB,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1B,oBAAoB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC7B,oBAAoB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC7B,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACvB,CAAC;AACF,MAAM,cAAc,GAAG,0BAA0B,CAAC;AAClD,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,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzD,uBAAuB,CAAC,IAAI,GAAG;IAC3B,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
-
import template from "../../../component/welllayer_template.json";
|
|
4
3
|
import colorTables from "../../../component/color-tables.json";
|
|
5
4
|
export default {
|
|
6
5
|
component: DiscreteColorLegend,
|
|
@@ -10,20 +9,19 @@ const discreteData = {
|
|
|
10
9
|
"no": [[], 0],
|
|
11
10
|
"yes": [[], 1]
|
|
12
11
|
};
|
|
13
|
-
const name = "FaultDistance_HUM";
|
|
14
12
|
const dataObjectName = "Wells / FaultDistance_HUM";
|
|
15
13
|
const position = [16, 10];
|
|
16
14
|
const horizontal = true;
|
|
15
|
+
const colorName = "Gas-Oil-Water";
|
|
17
16
|
const Template = (args) => {
|
|
18
17
|
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
19
18
|
};
|
|
20
19
|
export const FaultDistanceHumTemplate = Template.bind({});
|
|
21
20
|
FaultDistanceHumTemplate.args = {
|
|
22
21
|
discreteData,
|
|
23
|
-
name,
|
|
24
22
|
dataObjectName,
|
|
25
23
|
position,
|
|
26
|
-
|
|
24
|
+
colorName,
|
|
27
25
|
colorTables,
|
|
28
26
|
horizontal,
|
|
29
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FaultDistanceHum.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,
|
|
1
|
+
{"version":3,"file":"FaultDistanceHum.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.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;IACb,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACjB,CAAC;AACF,MAAM,cAAc,GAAG,2BAA2B,CAAC;AACnD,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,eAAe,CAAC;AAElC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1D,wBAAwB,CAAC,IAAI,GAAG;IAC5B,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
-
import template from "../../../component/welllayer_template.json";
|
|
4
3
|
import colorTables from "../../../component/color-tables.json";
|
|
5
4
|
export default {
|
|
6
5
|
component: DiscreteColorLegend,
|
|
@@ -10,20 +9,19 @@ const discreteData = {
|
|
|
10
9
|
"no": [[], 0],
|
|
11
10
|
"yes": [[], 1]
|
|
12
11
|
};
|
|
13
|
-
const name = "FAULT_PROXIMITY_FLAG";
|
|
14
12
|
const dataObjectName = "Wells / FAULT_PROXIMITY_FLAG";
|
|
15
13
|
const position = [16, 10];
|
|
16
14
|
const horizontal = true;
|
|
15
|
+
const colorName = "Time/Depth";
|
|
17
16
|
const Template = (args) => {
|
|
18
17
|
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
19
18
|
};
|
|
20
19
|
export const FaultProximityFlagTemplate = Template.bind({});
|
|
21
20
|
FaultProximityFlagTemplate.args = {
|
|
22
21
|
discreteData,
|
|
23
|
-
name,
|
|
24
22
|
dataObjectName,
|
|
25
23
|
position,
|
|
26
|
-
|
|
24
|
+
colorName,
|
|
27
25
|
colorTables,
|
|
28
26
|
horizontal,
|
|
29
27
|
};
|