@emerson-eps/color-tables 0.1.9 → 0.1.14
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 +6 -0
- package/dist/component/ColorTableTypes.js +2 -0
- package/dist/component/ColorTableTypes.js.map +1 -0
- package/dist/component/Legend/ContinuousLegend.d.ts +15 -0
- package/dist/component/Legend/ContinuousLegend.js +89 -0
- package/dist/component/Legend/ContinuousLegend.js.map +1 -0
- package/dist/component/Legend/DiscreteLegend.d.ts +17 -0
- package/dist/component/Legend/DiscreteLegend.js +80 -0
- package/dist/component/Legend/DiscreteLegend.js.map +1 -0
- package/dist/component/Utils/continousLegend.d.ts +13 -0
- package/dist/component/Utils/continousLegend.js +50 -0
- package/dist/component/Utils/continousLegend.js.map +1 -0
- package/dist/component/Utils/discreteLegend.d.ts +5 -0
- package/dist/component/Utils/discreteLegend.js +60 -0
- package/dist/component/Utils/discreteLegend.js.map +1 -0
- package/dist/component/WelllayerTemplateTypes.d.ts +13 -0
- package/dist/component/WelllayerTemplateTypes.js +2 -0
- package/dist/component/WelllayerTemplateTypes.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLgends/MD.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLgends/MD.stories.js +29 -0
- package/dist/stories/ColorLegends/ContinousLgends/MD.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLgends/NTG.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLgends/NTG.stories.js +29 -0
- package/dist/stories/ColorLegends/ContinousLgends/NTG.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLgends/PermTot.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLgends/PermTot.stories.js +29 -0
- package/dist/stories/ColorLegends/ContinousLgends/PermTot.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLgends/Permeability.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLgends/Permeability.stories.js +29 -0
- package/dist/stories/ColorLegends/ContinousLgends/Permeability.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLgends/PoroTot.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLgends/PoroTot.stories.js +29 -0
- package/dist/stories/ColorLegends/ContinousLgends/PoroTot.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLgends/Porosity.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLgends/Porosity.stories.js +29 -0
- package/dist/stories/ColorLegends/ContinousLgends/Porosity.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLgends/SW.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLgends/SW.stories.js +29 -0
- package/dist/stories/ColorLegends/ContinousLgends/SW.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js +38 -0
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +38 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +30 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +30 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +33 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +44 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +33 -0
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +43 -0
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +1 -0
- package/package.json +8 -7
- package/src/component/Legend/ContinuousLegend.tsx +3 -5
- package/src/component/Legend/DiscreteLegend.tsx +1 -3
- package/src/component/color-tables.json +15 -1
- package/src/component/welllayer_template.json +1 -1
- package/src/custom.d.ts +1 -0
- package/src/index.ts +5 -1
- package/src/stories/ColorLegends/ContinousLgends/MD.stories.jsx +1 -1
- package/src/stories/ColorLegends/ContinousLgends/NTG.stories.jsx +1 -1
- package/src/stories/ColorLegends/ContinousLgends/PermTot.stories.jsx +1 -1
- package/src/stories/ColorLegends/ContinousLgends/Permeability.stories.jsx +1 -1
- package/src/stories/ColorLegends/ContinousLgends/PoroTot.stories.jsx +1 -1
- package/src/stories/ColorLegends/ContinousLgends/Porosity.stories.jsx +1 -1
- package/src/stories/ColorLegends/ContinousLgends/SW.stories.jsx +1 -1
- package/src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx +1 -1
- package/src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.jsx +1 -1
- package/src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx +1 -1
- package/src/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.jsx +1 -1
- package/src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx +1 -1
- package/src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx +1 -1
- package/src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx +1 -1
- package/src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx +1 -1
- package/tsconfig.json +24 -0
- package/src/setupTests.js +0 -5
- package/src/tsconfig.json +0 -25
|
@@ -0,0 +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,QAAQ,MAAM,4CAA4C,CAAC;AAClE,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;AAExB,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,QAAQ;IACR,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ContinuousLegend } from "../../../component/Legend/ContinuousLegend";
|
|
3
|
+
export default {
|
|
4
|
+
component: ContinuousLegend,
|
|
5
|
+
title: "Legends/ContinousLegend",
|
|
6
|
+
};
|
|
7
|
+
import template from "../../../component/welllayer_template.json";
|
|
8
|
+
import colorTables from "../../../component/color-tables.json";
|
|
9
|
+
const min = 0;
|
|
10
|
+
const max = 0.35;
|
|
11
|
+
const dataObjectName = "Wells / PORO";
|
|
12
|
+
const position = [16, 10];
|
|
13
|
+
const name = "PORO";
|
|
14
|
+
const horizontal = true;
|
|
15
|
+
const Template = (args) => {
|
|
16
|
+
return React.createElement(ContinuousLegend, Object.assign({}, args));
|
|
17
|
+
};
|
|
18
|
+
export const PorosityTemplate = Template.bind({});
|
|
19
|
+
PorosityTemplate.args = {
|
|
20
|
+
min,
|
|
21
|
+
max,
|
|
22
|
+
dataObjectName,
|
|
23
|
+
position,
|
|
24
|
+
name,
|
|
25
|
+
template,
|
|
26
|
+
colorTables,
|
|
27
|
+
horizontal,
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=Porosity.stories.js.map
|
|
@@ -0,0 +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,QAAQ,MAAM,4CAA4C,CAAC;AAClE,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;AAExB,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,QAAQ;IACR,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ContinuousLegend } from "../../../component/Legend/ContinuousLegend";
|
|
3
|
+
export default {
|
|
4
|
+
component: ContinuousLegend,
|
|
5
|
+
title: "Legends/ContinousLegend",
|
|
6
|
+
};
|
|
7
|
+
import template from "../../../component/welllayer_template.json";
|
|
8
|
+
import colorTables from "../../../component/color-tables.json";
|
|
9
|
+
const min = 0;
|
|
10
|
+
const max = 1;
|
|
11
|
+
const dataObjectName = "Wells / SW";
|
|
12
|
+
const position = [16, 10];
|
|
13
|
+
const name = "SW";
|
|
14
|
+
const horizontal = true;
|
|
15
|
+
const Template = (args) => {
|
|
16
|
+
return React.createElement(ContinuousLegend, Object.assign({}, args));
|
|
17
|
+
};
|
|
18
|
+
export const SWTemplate = Template.bind({});
|
|
19
|
+
SWTemplate.args = {
|
|
20
|
+
min,
|
|
21
|
+
max,
|
|
22
|
+
dataObjectName,
|
|
23
|
+
position,
|
|
24
|
+
name,
|
|
25
|
+
template,
|
|
26
|
+
colorTables,
|
|
27
|
+
horizontal,
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=SW.stories.js.map
|
|
@@ -0,0 +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,QAAQ,MAAM,4CAA4C,CAAC;AAClE,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;AAExB,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,QAAQ;IACR,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
export default {
|
|
6
|
+
component: DiscreteColorLegend,
|
|
7
|
+
title: "Legends/DiscreteColorLegend",
|
|
8
|
+
};
|
|
9
|
+
const discreteData = {
|
|
10
|
+
"OS": [[], 0],
|
|
11
|
+
"LSF": [[], 1],
|
|
12
|
+
"USF": [[], 2],
|
|
13
|
+
"MB": [[], 3],
|
|
14
|
+
"TB": [[], 4],
|
|
15
|
+
"TC": [[], 5],
|
|
16
|
+
"TFS": [[], 6],
|
|
17
|
+
"TFM": [[], 7],
|
|
18
|
+
"MSH": [[], 8],
|
|
19
|
+
"CAL": [[], 9]
|
|
20
|
+
};
|
|
21
|
+
const name = "FACIES";
|
|
22
|
+
const dataObjectName = "Wells / FACIES";
|
|
23
|
+
const position = [16, 10];
|
|
24
|
+
const horizontal = true;
|
|
25
|
+
const Template = (args) => {
|
|
26
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
27
|
+
};
|
|
28
|
+
export const FaciesTemplate = Template.bind({});
|
|
29
|
+
FaciesTemplate.args = {
|
|
30
|
+
discreteData,
|
|
31
|
+
name,
|
|
32
|
+
dataObjectName,
|
|
33
|
+
position,
|
|
34
|
+
template,
|
|
35
|
+
colorTables,
|
|
36
|
+
horizontal,
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=Facies.stories.js.map
|
|
@@ -0,0 +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,QAAQ,MAAM,4CAA4C,CAAC;AAClE,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,IAAI,GAAG,QAAQ,CAAC;AACtB,MAAM,cAAc,GAAG,gBAAgB,CAAC;AACxC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,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,IAAI;IACJ,cAAc;IACd,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
export default {
|
|
6
|
+
component: DiscreteColorLegend,
|
|
7
|
+
title: "Legends/DiscreteColorLegend",
|
|
8
|
+
};
|
|
9
|
+
const discreteData = {
|
|
10
|
+
"F_OFFSHORE": [[], 0],
|
|
11
|
+
"F_LOWER_SHOREFACE": [[], 1],
|
|
12
|
+
"F_UPPER_SHOREFACE": [[], 2],
|
|
13
|
+
"F_MOUTH_BAR": [[], 3],
|
|
14
|
+
"F_TIDAL_BAR": [[], 4],
|
|
15
|
+
"F_TIDAL_CHANNEL": [[], 5],
|
|
16
|
+
"F_TIDAL_FLAT_SANDY": [[], 6],
|
|
17
|
+
"F_TIDAL_FLAT_MUDDY": [[], 7],
|
|
18
|
+
"F_MARSH": [[], 8],
|
|
19
|
+
"F_CALCITE": [[], 9]
|
|
20
|
+
};
|
|
21
|
+
const name = "FACIES_NoCalcite";
|
|
22
|
+
const dataObjectName = "Wells / FACIES_NoCalcite";
|
|
23
|
+
const position = [16, 10];
|
|
24
|
+
const horizontal = true;
|
|
25
|
+
const Template = (args) => {
|
|
26
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
27
|
+
};
|
|
28
|
+
export const FaciesNoCalciteTemplate = Template.bind({});
|
|
29
|
+
FaciesNoCalciteTemplate.args = {
|
|
30
|
+
discreteData,
|
|
31
|
+
name,
|
|
32
|
+
dataObjectName,
|
|
33
|
+
position,
|
|
34
|
+
template,
|
|
35
|
+
colorTables,
|
|
36
|
+
horizontal,
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=FaciesNoCalcite.stories.js.map
|
|
@@ -0,0 +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,QAAQ,MAAM,4CAA4C,CAAC;AAClE,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,IAAI,GAAG,kBAAkB,CAAC;AAChC,MAAM,cAAc,GAAG,0BAA0B,CAAC;AAClD,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,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,IAAI;IACJ,cAAc;IACd,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
export default {
|
|
6
|
+
component: DiscreteColorLegend,
|
|
7
|
+
title: "Legends/DiscreteColorLegend",
|
|
8
|
+
};
|
|
9
|
+
const discreteData = {
|
|
10
|
+
"no": [[], 0],
|
|
11
|
+
"yes": [[], 1]
|
|
12
|
+
};
|
|
13
|
+
const name = "FaultDistance_HUM";
|
|
14
|
+
const dataObjectName = "Wells / FaultDistance_HUM";
|
|
15
|
+
const position = [16, 10];
|
|
16
|
+
const horizontal = true;
|
|
17
|
+
const Template = (args) => {
|
|
18
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
19
|
+
};
|
|
20
|
+
export const FaultDistanceHumTemplate = Template.bind({});
|
|
21
|
+
FaultDistanceHumTemplate.args = {
|
|
22
|
+
discreteData,
|
|
23
|
+
name,
|
|
24
|
+
dataObjectName,
|
|
25
|
+
position,
|
|
26
|
+
template,
|
|
27
|
+
colorTables,
|
|
28
|
+
horizontal,
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=FaultDistanceHum.stories.js.map
|
|
@@ -0,0 +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,QAAQ,MAAM,4CAA4C,CAAC;AAClE,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,IAAI,GAAG,mBAAmB,CAAC;AACjC,MAAM,cAAc,GAAG,2BAA2B,CAAC;AACnD,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,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,IAAI;IACJ,cAAc;IACd,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
export default {
|
|
6
|
+
component: DiscreteColorLegend,
|
|
7
|
+
title: "Legends/DiscreteColorLegend",
|
|
8
|
+
};
|
|
9
|
+
const discreteData = {
|
|
10
|
+
"no": [[], 0],
|
|
11
|
+
"yes": [[], 1]
|
|
12
|
+
};
|
|
13
|
+
const name = "FAULT_PROXIMITY_FLAG";
|
|
14
|
+
const dataObjectName = "Wells / FAULT_PROXIMITY_FLAG";
|
|
15
|
+
const position = [16, 10];
|
|
16
|
+
const horizontal = true;
|
|
17
|
+
const Template = (args) => {
|
|
18
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
19
|
+
};
|
|
20
|
+
export const FaultProximityFlagTemplate = Template.bind({});
|
|
21
|
+
FaultProximityFlagTemplate.args = {
|
|
22
|
+
discreteData,
|
|
23
|
+
name,
|
|
24
|
+
dataObjectName,
|
|
25
|
+
position,
|
|
26
|
+
template,
|
|
27
|
+
colorTables,
|
|
28
|
+
horizontal,
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=FaultProximityFlag.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FaultProximityFlag.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,QAAQ,MAAM,4CAA4C,CAAC;AAClE,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,IAAI,GAAG,sBAAsB,CAAC;AACpC,MAAM,cAAc,GAAG,8BAA8B,CAAC;AACtD,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5D,0BAA0B,CAAC,IAAI,GAAG;IAC9B,YAAY;IACZ,IAAI;IACJ,cAAc;IACd,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
export default {
|
|
6
|
+
component: DiscreteColorLegend,
|
|
7
|
+
title: "Legends/DiscreteColorLegend",
|
|
8
|
+
};
|
|
9
|
+
const discreteData = {
|
|
10
|
+
"OFFSHORE": [[], 1],
|
|
11
|
+
"LSF": [[], 2],
|
|
12
|
+
"USF": [[], 3],
|
|
13
|
+
"TIDAL": [[], 4],
|
|
14
|
+
"ONSHORE": [[], 5]
|
|
15
|
+
};
|
|
16
|
+
const name = "RDE";
|
|
17
|
+
const dataObjectName = "Wells / RDE";
|
|
18
|
+
const position = [16, 10];
|
|
19
|
+
const horizontal = true;
|
|
20
|
+
const Template = (args) => {
|
|
21
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
22
|
+
};
|
|
23
|
+
export const RDETemplate = Template.bind({});
|
|
24
|
+
RDETemplate.args = {
|
|
25
|
+
discreteData,
|
|
26
|
+
name,
|
|
27
|
+
dataObjectName,
|
|
28
|
+
position,
|
|
29
|
+
template,
|
|
30
|
+
colorTables,
|
|
31
|
+
horizontal,
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=RDE.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RDE.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,QAAQ,MAAM,4CAA4C,CAAC;AAClE,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,MAAM,YAAY,GAAG;IACjB,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACnB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACrB,CAAC;AACF,MAAM,IAAI,GAAG,KAAK,CAAC;AACnB,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,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,IAAI;IACJ,cAAc;IACd,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
export default {
|
|
6
|
+
component: DiscreteColorLegend,
|
|
7
|
+
title: "Legends/DiscreteColorLegend",
|
|
8
|
+
};
|
|
9
|
+
const discreteData = {
|
|
10
|
+
"F_OFFSHORE": [[], 0],
|
|
11
|
+
"F_LOWER_SHOREFACE": [[], 1],
|
|
12
|
+
"F_UPPER_SHOREFACE": [[], 2],
|
|
13
|
+
"F_MOUTH_BAR": [[], 3],
|
|
14
|
+
"F_TIDAL_BAR": [[], 4],
|
|
15
|
+
"F_TIDAL_CHANNEL": [[], 5],
|
|
16
|
+
"F_TIDAL_FLAT_SANDY": [[], 6],
|
|
17
|
+
"F_TIDAL_FLAT_MUDDY": [[], 7],
|
|
18
|
+
"F_MARSH": [[], 8],
|
|
19
|
+
"F_CALCITE": [[], 9],
|
|
20
|
+
"R_OFFSHORE": [[], 10],
|
|
21
|
+
"R_SHOREFACE": [[], 11],
|
|
22
|
+
"R_TIDAL": [[], 12],
|
|
23
|
+
"R_ONSHORE": [[], 13],
|
|
24
|
+
"R_USF": [[], 14],
|
|
25
|
+
"R_LSF": [[], 15]
|
|
26
|
+
};
|
|
27
|
+
const name = "RDE_ORIG";
|
|
28
|
+
const dataObjectName = "Wells / RDE_ORIG";
|
|
29
|
+
const position = [16, 10];
|
|
30
|
+
const horizontal = true;
|
|
31
|
+
const Template = (args) => {
|
|
32
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
33
|
+
};
|
|
34
|
+
export const RDEOrigTemplate = Template.bind({});
|
|
35
|
+
RDEOrigTemplate.args = {
|
|
36
|
+
discreteData,
|
|
37
|
+
name,
|
|
38
|
+
dataObjectName,
|
|
39
|
+
position,
|
|
40
|
+
template,
|
|
41
|
+
colorTables,
|
|
42
|
+
horizontal,
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=RDE_Orig.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RDE_Orig.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,QAAQ,MAAM,4CAA4C,CAAC;AAClE,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;IACpB,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACtB,aAAa,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACvB,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACnB,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACrB,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACjB,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CACpB,CAAC;AACF,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAC1C,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACnB,YAAY;IACZ,IAAI;IACJ,cAAc;IACd,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
export default {
|
|
6
|
+
component: DiscreteColorLegend,
|
|
7
|
+
title: "Legends/DiscreteColorLegend",
|
|
8
|
+
};
|
|
9
|
+
const discreteData = {
|
|
10
|
+
"0": [[], 0],
|
|
11
|
+
"4": [[], 4],
|
|
12
|
+
"UPPER": [[], 1],
|
|
13
|
+
"MID": [[], 2],
|
|
14
|
+
"LOWER": [[], 3]
|
|
15
|
+
};
|
|
16
|
+
const name = "ZONE_MAIN";
|
|
17
|
+
const dataObjectName = "Wells / ZONE_MAIN";
|
|
18
|
+
const position = [16, 10];
|
|
19
|
+
const horizontal = true;
|
|
20
|
+
const Template = (args) => {
|
|
21
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
22
|
+
};
|
|
23
|
+
export const ZoneMainTemplate = Template.bind({});
|
|
24
|
+
ZoneMainTemplate.args = {
|
|
25
|
+
discreteData,
|
|
26
|
+
name,
|
|
27
|
+
dataObjectName,
|
|
28
|
+
position,
|
|
29
|
+
template,
|
|
30
|
+
colorTables,
|
|
31
|
+
horizontal,
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=ZoneMain.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZoneMain.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,QAAQ,MAAM,4CAA4C,CAAC;AAClE,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,MAAM,YAAY,GAAG;IACjB,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACnB,CAAC;AACF,MAAM,IAAI,GAAG,WAAW,CAAC;AACzB,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAC3C,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACpB,YAAY;IACZ,IAAI;IACJ,cAAc;IACd,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;CACb,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import template from "../../../component/welllayer_template.json";
|
|
4
|
+
import colorTables from "../../../component/color-tables.json";
|
|
5
|
+
export default {
|
|
6
|
+
component: DiscreteColorLegend,
|
|
7
|
+
title: "Legends/DiscreteColorLegend",
|
|
8
|
+
};
|
|
9
|
+
const discreteData = {
|
|
10
|
+
"Above_BCU": [[], 0],
|
|
11
|
+
"ABOVE": [[], 1],
|
|
12
|
+
"H12": [[], 2],
|
|
13
|
+
"H11": [[], 3],
|
|
14
|
+
"H10": [[], 4],
|
|
15
|
+
"H9": [[], 5],
|
|
16
|
+
"H8": [[], 6],
|
|
17
|
+
"H7": [[], 7],
|
|
18
|
+
"H6": [[], 8],
|
|
19
|
+
"H5": [[], 9],
|
|
20
|
+
"H4": [[], 10],
|
|
21
|
+
"H3": [[], 11],
|
|
22
|
+
"H2": [[], 12],
|
|
23
|
+
"H1": [[], 13],
|
|
24
|
+
"BELOW": [[], 14]
|
|
25
|
+
};
|
|
26
|
+
const name = "ZONELOG";
|
|
27
|
+
const dataObjectName = "Wells / ZONELOG";
|
|
28
|
+
const position = [16, 10];
|
|
29
|
+
const horizontal = true;
|
|
30
|
+
const Template = (args) => {
|
|
31
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
32
|
+
};
|
|
33
|
+
export const ZonelogTemplate = Template.bind({});
|
|
34
|
+
ZonelogTemplate.args = {
|
|
35
|
+
discreteData,
|
|
36
|
+
name,
|
|
37
|
+
dataObjectName,
|
|
38
|
+
position,
|
|
39
|
+
template,
|
|
40
|
+
colorTables,
|
|
41
|
+
horizontal,
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=Zonelog.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Zonelog.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAC;AAC7E,OAAO,QAAQ,MAAM,4CAA4C,CAAC;AAClE,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,MAAM,YAAY,GAAG;IACjB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,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,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CACpB,CAAC;AACF,MAAM,IAAI,GAAG,SAAS,CAAC;AACvB,MAAM,cAAc,GAAG,iBAAiB,CAAC;AACzC,MAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACtB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACnB,YAAY;IACZ,IAAI;IACJ,cAAc;IACd,QAAQ;IACR,QAAQ;IACR,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.14",
|
|
4
4
|
"description": "Standard library of color tables for geological domain",
|
|
5
5
|
"release": {
|
|
6
6
|
"branches": [
|
|
@@ -8,7 +8,13 @@
|
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
10
|
"private": false,
|
|
11
|
-
"main": "
|
|
11
|
+
"main": "dist/index.js",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"storybook": "start-storybook -p 6006",
|
|
15
|
+
"build-storybook": "build-storybook",
|
|
16
|
+
"semantic-release": "semantic-release"
|
|
17
|
+
},
|
|
12
18
|
"dependencies": {
|
|
13
19
|
"@testing-library/jest-dom": "^5.16.1",
|
|
14
20
|
"@testing-library/react": "^11.2.7",
|
|
@@ -21,11 +27,6 @@
|
|
|
21
27
|
"react-scripts": "4.0.3",
|
|
22
28
|
"web-vitals": "^1.1.2"
|
|
23
29
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"storybook": "start-storybook -p 6006",
|
|
26
|
-
"build-storybook": "build-storybook",
|
|
27
|
-
"semantic-release": "semantic-release"
|
|
28
|
-
},
|
|
29
30
|
"repository": {
|
|
30
31
|
"type": "git",
|
|
31
32
|
"url": "git+https://github.com/emerson-eps/color-tables.git"
|
|
@@ -20,7 +20,7 @@ declare type ItemColor = {
|
|
|
20
20
|
offset: number;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
const ContinuousLegend: React.FC<legendProps> = ({
|
|
23
|
+
export const ContinuousLegend: React.FC<legendProps> = ({
|
|
24
24
|
min,
|
|
25
25
|
max,
|
|
26
26
|
dataObjectName,
|
|
@@ -72,10 +72,10 @@ const ContinuousLegend: React.FC<legendProps> = ({
|
|
|
72
72
|
.data(itemColor)
|
|
73
73
|
.enter()
|
|
74
74
|
.append("stop")
|
|
75
|
-
.attr("offset", function (data) {
|
|
75
|
+
.attr("offset", function (data: any) {
|
|
76
76
|
return data.offset + "%";
|
|
77
77
|
})
|
|
78
|
-
.attr("stop-color", function (data) {
|
|
78
|
+
.attr("stop-color", function (data: any) {
|
|
79
79
|
return data.color;
|
|
80
80
|
});
|
|
81
81
|
|
|
@@ -127,5 +127,3 @@ const ContinuousLegend: React.FC<legendProps> = ({
|
|
|
127
127
|
ContinuousLegend.defaultProps = {
|
|
128
128
|
position: [5, 10],
|
|
129
129
|
};
|
|
130
|
-
|
|
131
|
-
export default ContinuousLegend;
|
|
@@ -18,7 +18,7 @@ declare type colorLegendProps = {
|
|
|
18
18
|
horizontal: boolean;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
const DiscreteColorLegend: React.FC<colorLegendProps> = ({
|
|
21
|
+
export const DiscreteColorLegend: React.FC<colorLegendProps> = ({
|
|
22
22
|
discreteData,
|
|
23
23
|
name,
|
|
24
24
|
dataObjectName,
|
|
@@ -122,5 +122,3 @@ export function colorTableData(
|
|
|
122
122
|
DiscreteColorLegend.defaultProps = {
|
|
123
123
|
position: [5, 10],
|
|
124
124
|
};
|
|
125
|
-
|
|
126
|
-
export default DiscreteColorLegend;
|
|
@@ -184,6 +184,20 @@
|
|
|
184
184
|
[ 1, 0, 25, 255 ],
|
|
185
185
|
[ 2, 179, 179, 179 ]
|
|
186
186
|
]
|
|
187
|
-
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "Accent",
|
|
190
|
+
"discrete": true,
|
|
191
|
+
"colors": [
|
|
192
|
+
[ 0, 127, 201, 127 ],
|
|
193
|
+
[ 1, 190, 174, 212 ],
|
|
194
|
+
[ 2, 253, 192, 134 ],
|
|
195
|
+
[ 4, 255, 255, 153 ],
|
|
196
|
+
[ 5, 56, 108, 176 ],
|
|
197
|
+
[ 6, 240, 2, 127 ],
|
|
198
|
+
[ 7, 191, 91, 23 ],
|
|
199
|
+
[ 8, 102, 102, 102 ]
|
|
200
|
+
]
|
|
201
|
+
}
|
|
188
202
|
]
|
|
189
203
|
|
package/src/custom.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module '@emerson-eps/color-tables';
|
package/src/index.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export { ContinuousLegend } from './component/Legend/ContinuousLegend';
|
|
2
|
-
export { DiscreteColorLegend } from './component/Legend/DiscreteLegend';
|
|
2
|
+
export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
|
|
3
|
+
export { colorsArray, rgbValues, RGBToHex} from './component/Utils/continousLegend';
|
|
4
|
+
export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
|
|
5
|
+
export { propertiesObj, templateArray } from './component/WelllayerTemplateTypes';
|
|
6
|
+
export const colorTables = require('./component/color-tables');
|