@emerson-eps/color-tables 0.2.11 → 0.2.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/ColorSelector/ColorSelectorAccordion.js +2 -2
- package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorComponent.d.ts +1 -2
- package/dist/component/ColorSelector/ColorSelectorComponent.js +7 -7
- package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorWrapper.d.ts +6 -2
- package/dist/component/ColorSelector/ColorSelectorWrapper.js +10 -10
- package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -1
- package/dist/component/Legend/ColorLegend.js +13 -5
- package/dist/component/Legend/ColorLegend.js.map +1 -1
- package/dist/component/Legend/ContinuousLegend.d.ts +1 -1
- package/dist/component/Legend/ContinuousLegend.js +18 -4
- package/dist/component/Legend/ContinuousLegend.js.map +1 -1
- package/dist/component/Legend/DiscreteLegend.d.ts +1 -1
- package/dist/component/Legend/DiscreteLegend.js +25 -16
- package/dist/component/Legend/DiscreteLegend.js.map +1 -1
- package/dist/component/Utils/continousLegend.d.ts +2 -2
- package/dist/component/Utils/continousLegend.js.map +1 -1
- package/dist/component/Utils/discreteLegend.js +14 -27
- package/dist/component/Utils/discreteLegend.js.map +1 -1
- package/dist/component/{Utils/ColorTableTypes.d.ts → colorTableTypes.d.ts} +0 -0
- package/dist/component/colorTableTypes.js +2 -0
- package/dist/component/colorTableTypes.js.map +1 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -3
- package/.storybook/main.js +0 -11
- package/.storybook/preview.js +0 -9
- package/.vscode/settings.json +0 -3
- package/dist/component/Utils/ColorTableTypes.js +0 -2
- package/dist/component/Utils/ColorTableTypes.js.map +0 -1
- package/dist/stories/ColorLegends/ColorSelector/Selector.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js +0 -11
- package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +0 -38
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js +0 -47
- package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +0 -47
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +0 -39
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +0 -39
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +0 -42
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +0 -53
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +0 -42
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +0 -1
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +0 -52
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +0 -1
- package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js +0 -52
- package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js.map +0 -1
- package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js +0 -38
- package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js.map +0 -1
- package/dist/stories/ColorLegends/SingleComponent/Single.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/SingleComponent/Single.stories.js +0 -58
- package/dist/stories/ColorLegends/SingleComponent/Single.stories.js.map +0 -1
- package/src/component/ColorSelector/ColorSelectorAccordion.tsx +0 -54
- package/src/component/ColorSelector/ColorSelectorComponent.tsx +0 -312
- package/src/component/ColorSelector/ColorSelectorWrapper.tsx +0 -119
- package/src/component/Legend/ColorLegend.tsx +0 -89
- package/src/component/Legend/ContinuousLegend.tsx +0 -220
- package/src/component/Legend/DiscreteLegend.tsx +0 -195
- package/src/component/Utils/ColorTableTypes.ts +0 -6
- package/src/component/Utils/continousLegend.ts +0 -73
- package/src/component/Utils/d3ColorScale.ts +0 -84
- package/src/component/Utils/discreteLegend.ts +0 -84
- package/src/component/color-tables.json +0 -203
- package/src/custom.d.ts +0 -1
- package/src/index.ts +0 -26
- package/src/stories/ColorLegends/ColorSelector/Selector.stories.jsx +0 -12
- package/src/stories/ColorLegends/ContinousLegends/MD.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/NTG.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/PermTot.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/Permeability.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/PoroTot.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/Porosity.stories.jsx +0 -29
- package/src/stories/ColorLegends/ContinousLegends/SW.stories.jsx +0 -29
- package/src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx +0 -39
- package/src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.jsx +0 -39
- package/src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx +0 -31
- package/src/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.jsx +0 -31
- package/src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx +0 -34
- package/src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx +0 -45
- package/src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx +0 -34
- package/src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx +0 -46
- package/src/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.jsx +0 -44
- package/src/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.jsx +0 -30
- package/src/stories/ColorLegends/SingleComponent/Single.stories.jsx +0 -51
- package/tsconfig.json +0 -23
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
|
|
3
|
-
import colorTables from "../../../component/color-tables.json";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
component: DiscreteColorLegend,
|
|
7
|
-
title: "Legends/DiscreteColorLegend",
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const discreteData = {
|
|
11
|
-
"0": [[], 0],
|
|
12
|
-
"4": [[], 4],
|
|
13
|
-
"UPPER": [[], 1],
|
|
14
|
-
"MID": [[], 2],
|
|
15
|
-
"LOWER": [[], 3]
|
|
16
|
-
};
|
|
17
|
-
const dataObjectName = "Wells / ZONE_MAIN";
|
|
18
|
-
const position = [16, 10];
|
|
19
|
-
const horizontal = true;
|
|
20
|
-
const colorName = "Stratigraphy";
|
|
21
|
-
|
|
22
|
-
const Template = (args) => {
|
|
23
|
-
return <DiscreteColorLegend {...args} />;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const ZoneMainTemplate = Template.bind({});
|
|
27
|
-
ZoneMainTemplate.args = {
|
|
28
|
-
discreteData,
|
|
29
|
-
dataObjectName,
|
|
30
|
-
position,
|
|
31
|
-
colorName,
|
|
32
|
-
colorTables,
|
|
33
|
-
horizontal,
|
|
34
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
|
|
3
|
-
import colorTables from "../../../component/color-tables.json";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
component: DiscreteColorLegend,
|
|
7
|
-
title: "Legends/DiscreteColorLegend",
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const discreteData = {
|
|
11
|
-
"Above_BCU": [[], 0],
|
|
12
|
-
"ABOVE": [[], 1],
|
|
13
|
-
"H12": [[], 2],
|
|
14
|
-
"H11": [[], 3],
|
|
15
|
-
"H10": [[], 4],
|
|
16
|
-
"H9": [[], 5],
|
|
17
|
-
"H8": [[], 6],
|
|
18
|
-
"H7": [[], 7],
|
|
19
|
-
"H6": [[], 8],
|
|
20
|
-
"H5": [[], 9],
|
|
21
|
-
"H4": [[], 10],
|
|
22
|
-
"H3": [[], 11],
|
|
23
|
-
"H2": [[], 12],
|
|
24
|
-
"H1": [[], 13],
|
|
25
|
-
"BELOW": [[], 14]
|
|
26
|
-
};
|
|
27
|
-
const dataObjectName = "Wells / ZONELOG";
|
|
28
|
-
const position = [16, 10];
|
|
29
|
-
const horizontal = true;
|
|
30
|
-
const colorName = "Stratigraphy";
|
|
31
|
-
|
|
32
|
-
const Template = (args) => {
|
|
33
|
-
return <DiscreteColorLegend {...args} />;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export const ZonelogTemplate = Template.bind({});
|
|
37
|
-
ZonelogTemplate.args = {
|
|
38
|
-
discreteData,
|
|
39
|
-
dataObjectName,
|
|
40
|
-
position,
|
|
41
|
-
colorName,
|
|
42
|
-
colorTables,
|
|
43
|
-
horizontal,
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
-
import colorTables from "../../../component/color-tables.json";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
component: DiscreteColorLegend,
|
|
7
|
-
title: "Legends/DiscreteLegendWithSelector",
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const discreteData = {
|
|
11
|
-
"Above_BCU": [[], 0],
|
|
12
|
-
"ABOVE": [[], 1],
|
|
13
|
-
"H12": [[], 2],
|
|
14
|
-
"H11": [[], 3],
|
|
15
|
-
"H10": [[], 4],
|
|
16
|
-
"H9": [[], 5],
|
|
17
|
-
"H8": [[], 6],
|
|
18
|
-
"H7": [[], 7],
|
|
19
|
-
"H6": [[], 8],
|
|
20
|
-
"H5": [[], 9],
|
|
21
|
-
"H4": [[], 10],
|
|
22
|
-
"H3": [[], 11],
|
|
23
|
-
"H2": [[], 12],
|
|
24
|
-
"H1": [[], 13],
|
|
25
|
-
"BELOW": [[], 14]
|
|
26
|
-
};
|
|
27
|
-
const dataObjectName = "Wells / ZONELOG";
|
|
28
|
-
const position = [16, 10];
|
|
29
|
-
const horizontal = true;
|
|
30
|
-
const colorName = "Stratigraphy";
|
|
31
|
-
|
|
32
|
-
const Template = (args) => {
|
|
33
|
-
return <DiscreteColorLegend {...args} />;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export const discreteLegendWithSelector = Template.bind({});
|
|
37
|
-
discreteLegendWithSelector.args = {
|
|
38
|
-
discreteData,
|
|
39
|
-
dataObjectName,
|
|
40
|
-
position,
|
|
41
|
-
horizontal,
|
|
42
|
-
colorName,
|
|
43
|
-
colorTables,
|
|
44
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ContinuousLegend } from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
import colorTables from "../../../component/color-tables.json";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
component: ContinuousLegend,
|
|
7
|
-
title: "Legends/LegendWithSelector",
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const min = 0;
|
|
11
|
-
const max = 0.35;
|
|
12
|
-
const dataObjectName = "Legend";
|
|
13
|
-
const position = [16, 10];
|
|
14
|
-
const horizontal = true;
|
|
15
|
-
const colorName = "Time/Depth";
|
|
16
|
-
|
|
17
|
-
const Template = (args) => {
|
|
18
|
-
return <ContinuousLegend {...args} />;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const legendWithSelector = Template.bind({});
|
|
22
|
-
legendWithSelector.args = {
|
|
23
|
-
min,
|
|
24
|
-
max,
|
|
25
|
-
dataObjectName,
|
|
26
|
-
position,
|
|
27
|
-
horizontal,
|
|
28
|
-
colorName,
|
|
29
|
-
colorTables,
|
|
30
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import colorTables from "../../../component/color-tables.json";
|
|
3
|
-
import {ColorLegend} from "../../../component/Legend/ColorLegend";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
component: ColorLegend,
|
|
7
|
-
title: "Legends/SingleComponent",
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// prop for continous legend
|
|
11
|
-
const min = 0;
|
|
12
|
-
const max = 0.35;
|
|
13
|
-
const dataObjectName = "Legend";
|
|
14
|
-
const position = [16, 10];
|
|
15
|
-
const horizontal = true;
|
|
16
|
-
const colorName = "Physics";
|
|
17
|
-
|
|
18
|
-
// prop for discrete data
|
|
19
|
-
const discreteData = {
|
|
20
|
-
"Above_BCU": [[], 0],
|
|
21
|
-
"ABOVE": [[], 1],
|
|
22
|
-
"H12": [[], 2],
|
|
23
|
-
"H11": [[], 3],
|
|
24
|
-
"H10": [[], 4],
|
|
25
|
-
"H9": [[], 5],
|
|
26
|
-
"H8": [[], 6],
|
|
27
|
-
"H7": [[], 7],
|
|
28
|
-
"H6": [[], 8],
|
|
29
|
-
"H5": [[], 9],
|
|
30
|
-
"H4": [[], 10],
|
|
31
|
-
"H3": [[], 11],
|
|
32
|
-
"H2": [[], 12],
|
|
33
|
-
"H1": [[], 13],
|
|
34
|
-
"BELOW": [[], 14]
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const Template = (args) => {
|
|
38
|
-
return <ColorLegend {...args} />;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export const legendWithSelector = Template.bind({});
|
|
42
|
-
legendWithSelector.args = {
|
|
43
|
-
min,
|
|
44
|
-
max,
|
|
45
|
-
dataObjectName,
|
|
46
|
-
position,
|
|
47
|
-
horizontal,
|
|
48
|
-
colorName,
|
|
49
|
-
colorTables,
|
|
50
|
-
discreteData,
|
|
51
|
-
};
|
package/tsconfig.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "dist",
|
|
4
|
-
"module": "es6",
|
|
5
|
-
"target": "es5",
|
|
6
|
-
"sourceMap": true,
|
|
7
|
-
"allowJs": true,
|
|
8
|
-
"jsx": "react",
|
|
9
|
-
"declaration": true,
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"noImplicitReturns": false,
|
|
13
|
-
"noImplicitThis": true,
|
|
14
|
-
"noImplicitAny": true,
|
|
15
|
-
"strictNullChecks": true,
|
|
16
|
-
"suppressImplicitAnyIndexErrors": true,
|
|
17
|
-
"noUnusedLocals": true,
|
|
18
|
-
"noUnusedParameters": true,
|
|
19
|
-
"resolveJsonModule": true,
|
|
20
|
-
},
|
|
21
|
-
"include": ["src", "./src/custom.d.ts"],
|
|
22
|
-
"exclude": ["node_modules"]
|
|
23
|
-
}
|