@emerson-eps/color-tables 0.2.13 → 0.2.16

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.
Files changed (110) hide show
  1. package/dist/component/ColorSelector/ColorSelectorAccordion.js +2 -2
  2. package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -1
  3. package/dist/component/ColorSelector/ColorSelectorComponent.d.ts +1 -2
  4. package/dist/component/ColorSelector/ColorSelectorComponent.js +3 -3
  5. package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
  6. package/dist/component/ColorSelector/ColorSelectorWrapper.d.ts +6 -1
  7. package/dist/component/ColorSelector/ColorSelectorWrapper.js +7 -8
  8. package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -1
  9. package/dist/component/Legend/ColorLegend.js +2 -2
  10. package/dist/component/Legend/ColorLegend.js.map +1 -1
  11. package/dist/component/Legend/ContinuousLegend.d.ts +1 -1
  12. package/dist/component/Legend/ContinuousLegend.js.map +1 -1
  13. package/dist/component/Legend/DiscreteLegend.d.ts +1 -1
  14. package/dist/component/Legend/DiscreteLegend.js +1 -1
  15. package/dist/component/Legend/DiscreteLegend.js.map +1 -1
  16. package/dist/component/Utils/continousLegend.d.ts +1 -1
  17. package/dist/component/{Utils/ColorTableTypes.d.ts → colorTableTypes.d.ts} +0 -0
  18. package/dist/component/colorTableTypes.js +2 -0
  19. package/dist/component/colorTableTypes.js.map +1 -0
  20. package/dist/index.d.ts +4 -6
  21. package/dist/index.js +3 -5
  22. package/dist/index.js.map +1 -1
  23. package/package.json +6 -3
  24. package/.storybook/main.js +0 -11
  25. package/.storybook/preview.js +0 -9
  26. package/.vscode/settings.json +0 -3
  27. package/dist/component/Utils/ColorTableTypes.js +0 -2
  28. package/dist/component/Utils/ColorTableTypes.js.map +0 -1
  29. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.d.ts +0 -7
  30. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js +0 -11
  31. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js.map +0 -1
  32. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.d.ts +0 -7
  33. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +0 -38
  34. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +0 -1
  35. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.d.ts +0 -7
  36. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +0 -38
  37. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +0 -1
  38. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.d.ts +0 -7
  39. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +0 -38
  40. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +0 -1
  41. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.d.ts +0 -7
  42. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +0 -38
  43. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +0 -1
  44. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.d.ts +0 -7
  45. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +0 -38
  46. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +0 -1
  47. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.d.ts +0 -7
  48. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +0 -38
  49. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +0 -1
  50. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.d.ts +0 -7
  51. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +0 -38
  52. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +0 -1
  53. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.d.ts +0 -7
  54. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js +0 -47
  55. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +0 -1
  56. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.d.ts +0 -7
  57. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +0 -47
  58. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +0 -1
  59. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.d.ts +0 -7
  60. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +0 -39
  61. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +0 -1
  62. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.d.ts +0 -7
  63. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +0 -39
  64. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +0 -1
  65. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.d.ts +0 -7
  66. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +0 -42
  67. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +0 -1
  68. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.d.ts +0 -7
  69. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +0 -53
  70. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +0 -1
  71. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.d.ts +0 -7
  72. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +0 -42
  73. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +0 -1
  74. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.d.ts +0 -7
  75. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +0 -52
  76. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +0 -1
  77. package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.d.ts +0 -7
  78. package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.js +0 -58
  79. package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.js.map +0 -1
  80. package/src/component/ColorSelector/ColorSelectorAccordion.tsx +0 -54
  81. package/src/component/ColorSelector/ColorSelectorComponent.tsx +0 -312
  82. package/src/component/ColorSelector/ColorSelectorWrapper.tsx +0 -119
  83. package/src/component/Legend/ColorLegend.tsx +0 -106
  84. package/src/component/Legend/ContinuousLegend.tsx +0 -233
  85. package/src/component/Legend/DiscreteLegend.tsx +0 -206
  86. package/src/component/Utils/ColorTableTypes.ts +0 -6
  87. package/src/component/Utils/continousLegend.ts +0 -73
  88. package/src/component/Utils/d3ColorScale.ts +0 -84
  89. package/src/component/Utils/discreteLegend.ts +0 -81
  90. package/src/component/color-tables.json +0 -203
  91. package/src/custom.d.ts +0 -1
  92. package/src/index.ts +0 -26
  93. package/src/stories/ColorLegends/ColorSelector/Selector.stories.jsx +0 -12
  94. package/src/stories/ColorLegends/ContinousLegends/MD.stories.jsx +0 -29
  95. package/src/stories/ColorLegends/ContinousLegends/NTG.stories.jsx +0 -29
  96. package/src/stories/ColorLegends/ContinousLegends/PermTot.stories.jsx +0 -29
  97. package/src/stories/ColorLegends/ContinousLegends/Permeability.stories.jsx +0 -29
  98. package/src/stories/ColorLegends/ContinousLegends/PoroTot.stories.jsx +0 -29
  99. package/src/stories/ColorLegends/ContinousLegends/Porosity.stories.jsx +0 -29
  100. package/src/stories/ColorLegends/ContinousLegends/SW.stories.jsx +0 -29
  101. package/src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx +0 -39
  102. package/src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.jsx +0 -39
  103. package/src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx +0 -31
  104. package/src/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.jsx +0 -31
  105. package/src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx +0 -34
  106. package/src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx +0 -45
  107. package/src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx +0 -34
  108. package/src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx +0 -46
  109. package/src/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.jsx +0 -51
  110. package/tsconfig.json +0 -23
@@ -1,39 +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
- "F_OFFSHORE": [[], 0],
12
- "F_LOWER_SHOREFACE": [[], 1],
13
- "F_UPPER_SHOREFACE": [[], 2],
14
- "F_MOUTH_BAR": [[], 3],
15
- "F_TIDAL_BAR": [[], 4],
16
- "F_TIDAL_CHANNEL": [[], 5],
17
- "F_TIDAL_FLAT_SANDY": [[], 6],
18
- "F_TIDAL_FLAT_MUDDY": [[], 7],
19
- "F_MARSH": [[], 8],
20
- "F_CALCITE": [[], 9]
21
- };
22
- const dataObjectName = "Wells / FACIES_NoCalcite";
23
- const position = [16, 10];
24
- const horizontal = true;
25
- const colorName = "Facies";
26
-
27
- const Template = (args) => {
28
- return <DiscreteColorLegend {...args} />;
29
- };
30
-
31
- export const FaciesNoCalciteTemplate = Template.bind({});
32
- FaciesNoCalciteTemplate.args = {
33
- discreteData,
34
- dataObjectName,
35
- position,
36
- colorName,
37
- colorTables,
38
- horizontal,
39
- };
@@ -1,31 +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
- "no": [[], 0],
12
- "yes": [[], 1]
13
- };
14
- const dataObjectName = "Wells / FaultDistance_HUM";
15
- const position = [16, 10];
16
- const horizontal = true;
17
- const colorName = "GasOilWater";
18
-
19
- const Template = (args) => {
20
- return <DiscreteColorLegend {...args} />;
21
- };
22
-
23
- export const FaultDistanceHumTemplate = Template.bind({});
24
- FaultDistanceHumTemplate.args = {
25
- discreteData,
26
- dataObjectName,
27
- position,
28
- colorName,
29
- colorTables,
30
- horizontal,
31
- };
@@ -1,31 +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
- "no": [[], 0],
12
- "yes": [[], 1]
13
- };
14
- const dataObjectName = "Wells / FAULT_PROXIMITY_FLAG";
15
- const position = [16, 10];
16
- const horizontal = true;
17
- const colorName = "Time/Depth";
18
-
19
- const Template = (args) => {
20
- return <DiscreteColorLegend {...args} />;
21
- };
22
-
23
- export const FaultProximityFlagTemplate = Template.bind({});
24
- FaultProximityFlagTemplate.args = {
25
- discreteData,
26
- dataObjectName,
27
- position,
28
- colorName,
29
- colorTables,
30
- horizontal,
31
- };
@@ -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
- "OFFSHORE": [[], 1],
12
- "LSF": [[], 2],
13
- "USF": [[], 3],
14
- "TIDAL": [[], 4],
15
- "ONSHORE": [[], 5]
16
- };
17
- const dataObjectName = "Wells / RDE";
18
- const position = [16, 10];
19
- const horizontal = true;
20
- const colorName = "Accent";
21
-
22
- const Template = (args) => {
23
- return <DiscreteColorLegend {...args} />;
24
- };
25
-
26
- export const RDETemplate = Template.bind({});
27
- RDETemplate.args = {
28
- discreteData,
29
- dataObjectName,
30
- position,
31
- colorName,
32
- colorTables,
33
- horizontal,
34
- };
@@ -1,45 +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
- "F_OFFSHORE": [[], 0],
12
- "F_LOWER_SHOREFACE": [[], 1],
13
- "F_UPPER_SHOREFACE": [[], 2],
14
- "F_MOUTH_BAR": [[], 3],
15
- "F_TIDAL_BAR": [[], 4],
16
- "F_TIDAL_CHANNEL": [[], 5],
17
- "F_TIDAL_FLAT_SANDY": [[], 6],
18
- "F_TIDAL_FLAT_MUDDY": [[], 7],
19
- "F_MARSH": [[], 8],
20
- "F_CALCITE": [[], 9],
21
- "R_OFFSHORE": [[], 10],
22
- "R_SHOREFACE": [[], 11],
23
- "R_TIDAL": [[], 12],
24
- "R_ONSHORE": [[], 13],
25
- "R_USF": [[], 14],
26
- "R_LSF": [[], 15]
27
- };
28
- const dataObjectName = "Wells / RDE_ORIG";
29
- const position = [16, 10];
30
- const horizontal = true;
31
- const colorName = "Stratigraphy";
32
-
33
- const Template = (args) => {
34
- return <DiscreteColorLegend {...args} />;
35
- };
36
-
37
- export const RDEOrigTemplate = Template.bind({});
38
- RDEOrigTemplate.args = {
39
- discreteData,
40
- dataObjectName,
41
- position,
42
- colorName,
43
- colorTables,
44
- horizontal,
45
- };
@@ -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,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/LegendWithColorSelector",
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 = "Rainbow";
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 LegendWithColorSelector = Template.bind({});
42
- LegendWithColorSelector.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": false,
18
- "noUnusedParameters": false,
19
- "resolveJsonModule": true,
20
- },
21
- "include": ["src", "./src/custom.d.ts"],
22
- "exclude": ["node_modules"]
23
- }