@emerson-eps/color-tables 0.1.18 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/ColorTableTypes.d.ts +1 -1
- package/dist/component/Legend/ContinuousLegend.d.ts +3 -5
- package/dist/component/Legend/ContinuousLegend.js +17 -10
- package/dist/component/Legend/ContinuousLegend.js.map +1 -1
- package/dist/component/Legend/DiscreteLegend.d.ts +2 -2
- package/dist/component/Legend/DiscreteLegend.js +16 -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 +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 +10 -10
- package/src/component/ColorTableTypes.ts +1 -1
- package/src/component/Legend/ContinuousLegend.tsx +21 -18
- package/src/component/Legend/DiscreteLegend.tsx +18 -12
- 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/tsconfig.json +0 -2
- package/dist/component/WelllayerTemplateTypes.d.ts +0 -13
- package/dist/component/WelllayerTemplateTypes.js +0 -2
- package/dist/component/WelllayerTemplateTypes.js.map +0 -1
- package/dist/component/welllayer_template.json +0 -89
- package/src/component/WelllayerTemplateTypes.ts +0 -15
- package/src/component/welllayer_template.json +0 -89
|
@@ -1,15 +1,13 @@
|
|
|
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
|
-
position
|
|
9
|
-
|
|
10
|
-
template: templateArray;
|
|
7
|
+
position?: number[] | null;
|
|
8
|
+
colorName: string;
|
|
11
9
|
colorTables: colorTablesArray;
|
|
12
|
-
horizontal
|
|
10
|
+
horizontal?: boolean | null;
|
|
13
11
|
};
|
|
14
12
|
export declare const ContinuousLegend: React.FC<legendProps>;
|
|
15
13
|
export {};
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { useRef } from "react";
|
|
2
3
|
import { RGBToHex, colorsArray } from "../Utils/continousLegend";
|
|
3
4
|
import { select, scaleLinear, scaleSequential, axisBottom } from "d3";
|
|
4
|
-
export const ContinuousLegend = ({ min, max, dataObjectName, position,
|
|
5
|
+
export const ContinuousLegend = ({ min, max, dataObjectName, position, colorName, colorTables, horizontal, }) => {
|
|
6
|
+
const divRef = useRef(null);
|
|
5
7
|
React.useEffect(() => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
if (divRef.current) {
|
|
9
|
+
continuousLegend();
|
|
10
|
+
}
|
|
11
|
+
;
|
|
12
|
+
return function cleanup() {
|
|
13
|
+
select(divRef.current).select("svg").remove();
|
|
14
|
+
};
|
|
15
|
+
}, [min, max, colorName, colorTables, horizontal]);
|
|
16
|
+
function continuousLegend() {
|
|
9
17
|
const itemColor = [];
|
|
10
18
|
// Return the matched colors array from color.tables.json file
|
|
11
|
-
const colorTableColors = colorsArray(
|
|
19
|
+
const colorTableColors = colorsArray(colorName, colorTables);
|
|
12
20
|
colorTableColors.forEach((value) => {
|
|
13
21
|
// return the color and offset needed to draw the legend
|
|
14
22
|
itemColor.push({
|
|
@@ -16,10 +24,9 @@ export const ContinuousLegend = ({ min, max, dataObjectName, position, name, tem
|
|
|
16
24
|
color: RGBToHex(value).color,
|
|
17
25
|
});
|
|
18
26
|
});
|
|
19
|
-
select(selected_id).select("svg").remove();
|
|
20
27
|
const colorScale = scaleSequential().domain([min, max]);
|
|
21
28
|
// append a defs (for definition) element to your SVG
|
|
22
|
-
const svgLegend = select(
|
|
29
|
+
const svgLegend = select(divRef.current)
|
|
23
30
|
.append("svg")
|
|
24
31
|
.style("background-color", "#ffffffcc")
|
|
25
32
|
.style("border-radius", "5px");
|
|
@@ -78,10 +85,10 @@ export const ContinuousLegend = ({ min, max, dataObjectName, position, name, tem
|
|
|
78
85
|
}
|
|
79
86
|
return (React.createElement("div", { style: {
|
|
80
87
|
position: "absolute",
|
|
81
|
-
right: position[0],
|
|
82
|
-
top: position[1],
|
|
88
|
+
right: position ? position[0] : ' ',
|
|
89
|
+
top: position ? position[1] : ' ',
|
|
83
90
|
} },
|
|
84
|
-
React.createElement("div", { id: "legend" })));
|
|
91
|
+
React.createElement("div", { id: "legend", ref: divRef })));
|
|
85
92
|
};
|
|
86
93
|
ContinuousLegend.defaultProps = {
|
|
87
94
|
position: [5, 10],
|
|
@@ -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,MAAM,EAAE,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,MAAM,MAAM,GAAG,MAAM,C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CAAC;QAE5C,mBAAmB;QACnB,MAAM,IAAI,GAAG,WAAW,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;QAE/D,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,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,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;YACnC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;SACpC;QAED,6BAAK,EAAE,EAAC,QAAQ,EAAC,GAAG,EAAE,MAAM,GAAQ,CAClC,CACT,CAAC;AACN,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;CACpB,CAAC"}
|
|
@@ -5,10 +5,10 @@ declare type colorLegendProps = {
|
|
|
5
5
|
objects: Record<string, [number[], number]>;
|
|
6
6
|
};
|
|
7
7
|
dataObjectName: string;
|
|
8
|
-
position
|
|
8
|
+
position?: number[] | null;
|
|
9
9
|
colorName: string;
|
|
10
10
|
colorTables: colorTablesArray;
|
|
11
|
-
horizontal
|
|
11
|
+
horizontal?: boolean | null;
|
|
12
12
|
};
|
|
13
13
|
export declare const DiscreteColorLegend: React.FC<colorLegendProps>;
|
|
14
14
|
export declare function colorTableData(colorName: string, colorTables: colorTablesArray): [number, number, number, number][];
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { useRef } from "react";
|
|
2
3
|
import legendUtil from "../Utils/discreteLegend";
|
|
3
4
|
import { scaleOrdinal, select } from "d3";
|
|
4
5
|
export const DiscreteColorLegend = ({ discreteData, dataObjectName, position, colorName, colorTables, horizontal, }) => {
|
|
6
|
+
const divRef = useRef(null);
|
|
5
7
|
React.useEffect(() => {
|
|
6
|
-
|
|
8
|
+
if (divRef.current) {
|
|
9
|
+
discreteLegend();
|
|
10
|
+
}
|
|
11
|
+
return function cleanup() {
|
|
12
|
+
select(divRef.current).select("div").remove();
|
|
13
|
+
select(divRef.current).select("svg").remove();
|
|
14
|
+
};
|
|
7
15
|
}, [discreteData, colorName, colorTables, horizontal]);
|
|
8
|
-
function discreteLegend(
|
|
16
|
+
function discreteLegend() {
|
|
9
17
|
const itemName = [];
|
|
10
18
|
const itemColor = [];
|
|
11
19
|
const colorsArray = colorTableData(colorName, colorTables);
|
|
@@ -34,24 +42,22 @@ export const DiscreteColorLegend = ({ discreteData, dataObjectName, position, co
|
|
|
34
42
|
}
|
|
35
43
|
const ordinalValues = scaleOrdinal().domain(itemName);
|
|
36
44
|
const colorLegend = legendUtil(itemColor).inputScale(ordinalValues);
|
|
37
|
-
select(legend).select("div").remove();
|
|
38
|
-
select(legend).select("svg").remove();
|
|
39
45
|
const legendLength = itemColor.length;
|
|
40
46
|
const calcLegendHeight = 22 * legendLength + 4 * legendLength;
|
|
41
|
-
const selectedLegend = select(
|
|
47
|
+
const selectedLegend = select(divRef.current);
|
|
42
48
|
selectedLegend
|
|
43
49
|
.append("div")
|
|
44
50
|
.text(dataObjectName)
|
|
45
51
|
.attr("y", 7)
|
|
46
52
|
.style("color", "#6F6F6F")
|
|
47
53
|
.style("margin", "10px 10px");
|
|
48
|
-
if (
|
|
54
|
+
if (horizontal)
|
|
49
55
|
selectedLegend.style("height", 150 + "px");
|
|
50
56
|
const svgLegend = selectedLegend
|
|
51
57
|
.append("svg")
|
|
52
58
|
.style("margin", "10px 10px")
|
|
53
59
|
.call(colorLegend);
|
|
54
|
-
if (colorLegend && horizontal) {
|
|
60
|
+
if (colorLegend && !horizontal) {
|
|
55
61
|
svgLegend
|
|
56
62
|
.attr("height", calcLegendHeight + "px")
|
|
57
63
|
.attr("width", 220 + "px");
|
|
@@ -65,12 +71,12 @@ export const DiscreteColorLegend = ({ discreteData, dataObjectName, position, co
|
|
|
65
71
|
}
|
|
66
72
|
return (React.createElement("div", { style: {
|
|
67
73
|
position: "absolute",
|
|
68
|
-
right: position[0],
|
|
69
|
-
top: position[1],
|
|
74
|
+
right: position ? position[0] : ' ',
|
|
75
|
+
top: position ? position[1] : ' ',
|
|
70
76
|
backgroundColor: "#ffffffcc",
|
|
71
77
|
borderRadius: "5px",
|
|
72
78
|
} },
|
|
73
|
-
React.createElement("div", { id: "legend" })));
|
|
79
|
+
React.createElement("div", { id: "legend", ref: divRef })));
|
|
74
80
|
};
|
|
75
81
|
// Based on name return the colors array from color.tables.json file
|
|
76
82
|
export function colorTableData(colorName, colorTables) {
|
|
@@ -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;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;Q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QAED,6BAAK,EAAE,EAAC,QAAQ,EAAC,GAAG,EAAE,MAAM,GAAQ,CAClC,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,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E,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;IACb,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAA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F,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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emerson-eps/color-tables",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "Standard library of color tables for geological domain",
|
|
5
5
|
"release": {
|
|
6
6
|
"branches": [
|
|
@@ -16,15 +16,12 @@
|
|
|
16
16
|
"semantic-release": "semantic-release"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@testing-library/jest-dom": "^5.16.1",
|
|
20
|
-
"@testing-library/react": "^11.2.7",
|
|
21
|
-
"@testing-library/user-event": "^12.8.3",
|
|
22
19
|
"d3": "^7.2.0",
|
|
23
20
|
"d3-color": "^3.0.1",
|
|
24
21
|
"d3-interpolate": "^3.0.1",
|
|
25
22
|
"react": "^17.0.2",
|
|
26
23
|
"react-dom": "^17.0.2",
|
|
27
|
-
"react-scripts": "
|
|
24
|
+
"react-scripts": "^5.0.0",
|
|
28
25
|
"web-vitals": "^1.1.2"
|
|
29
26
|
},
|
|
30
27
|
"repository": {
|
|
@@ -52,13 +49,16 @@
|
|
|
52
49
|
},
|
|
53
50
|
"devDependencies": {
|
|
54
51
|
"@babel/core": "^7.16.0",
|
|
55
|
-
"@storybook/addon-actions": "^6.4.
|
|
56
|
-
"@storybook/addon-essentials": "^6.4.
|
|
57
|
-
"@storybook/addon-links": "^6.4.
|
|
58
|
-
"@storybook/react": "^6.4.
|
|
52
|
+
"@storybook/addon-actions": "^6.4.17",
|
|
53
|
+
"@storybook/addon-essentials": "^6.4.17",
|
|
54
|
+
"@storybook/addon-links": "^6.4.17",
|
|
55
|
+
"@storybook/react": "^6.4.17",
|
|
56
|
+
"@testing-library/jest-dom": "^5.16.1",
|
|
57
|
+
"@testing-library/react": "^12.1.2",
|
|
58
|
+
"@testing-library/user-event": "^13.5.0",
|
|
59
59
|
"@types/d3": "^7.1.0",
|
|
60
60
|
"babel-loader": "^8.1.0",
|
|
61
|
-
"semantic-release": "^
|
|
61
|
+
"semantic-release": "^19.0.2",
|
|
62
62
|
"ts-loader": "^9.2.6",
|
|
63
63
|
"typescript": "^4.5.4"
|
|
64
64
|
}
|