@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.
Files changed (122) 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 +7 -7
  5. package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
  6. package/dist/component/ColorSelector/ColorSelectorWrapper.d.ts +6 -2
  7. package/dist/component/ColorSelector/ColorSelectorWrapper.js +10 -10
  8. package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -1
  9. package/dist/component/Legend/ColorLegend.js +13 -5
  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 +18 -4
  13. package/dist/component/Legend/ContinuousLegend.js.map +1 -1
  14. package/dist/component/Legend/DiscreteLegend.d.ts +1 -1
  15. package/dist/component/Legend/DiscreteLegend.js +25 -16
  16. package/dist/component/Legend/DiscreteLegend.js.map +1 -1
  17. package/dist/component/Utils/continousLegend.d.ts +2 -2
  18. package/dist/component/Utils/continousLegend.js.map +1 -1
  19. package/dist/component/Utils/discreteLegend.js +14 -27
  20. package/dist/component/Utils/discreteLegend.js.map +1 -1
  21. package/dist/component/{Utils/ColorTableTypes.d.ts → colorTableTypes.d.ts} +0 -0
  22. package/dist/component/colorTableTypes.js +2 -0
  23. package/dist/component/colorTableTypes.js.map +1 -0
  24. package/dist/index.d.ts +2 -4
  25. package/dist/index.js +1 -3
  26. package/dist/index.js.map +1 -1
  27. package/package.json +6 -3
  28. package/.storybook/main.js +0 -11
  29. package/.storybook/preview.js +0 -9
  30. package/.vscode/settings.json +0 -3
  31. package/dist/component/Utils/ColorTableTypes.js +0 -2
  32. package/dist/component/Utils/ColorTableTypes.js.map +0 -1
  33. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.d.ts +0 -7
  34. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js +0 -11
  35. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js.map +0 -1
  36. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.d.ts +0 -7
  37. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +0 -38
  38. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +0 -1
  39. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.d.ts +0 -7
  40. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +0 -38
  41. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +0 -1
  42. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.d.ts +0 -7
  43. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +0 -38
  44. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +0 -1
  45. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.d.ts +0 -7
  46. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +0 -38
  47. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +0 -1
  48. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.d.ts +0 -7
  49. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +0 -38
  50. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +0 -1
  51. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.d.ts +0 -7
  52. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +0 -38
  53. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +0 -1
  54. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.d.ts +0 -7
  55. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +0 -38
  56. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +0 -1
  57. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.d.ts +0 -7
  58. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js +0 -47
  59. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +0 -1
  60. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.d.ts +0 -7
  61. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +0 -47
  62. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +0 -1
  63. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.d.ts +0 -7
  64. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +0 -39
  65. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +0 -1
  66. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.d.ts +0 -7
  67. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +0 -39
  68. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +0 -1
  69. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.d.ts +0 -7
  70. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +0 -42
  71. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +0 -1
  72. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.d.ts +0 -7
  73. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +0 -53
  74. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +0 -1
  75. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.d.ts +0 -7
  76. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +0 -42
  77. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +0 -1
  78. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.d.ts +0 -7
  79. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +0 -52
  80. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +0 -1
  81. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.d.ts +0 -7
  82. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js +0 -52
  83. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js.map +0 -1
  84. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.d.ts +0 -7
  85. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js +0 -38
  86. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js.map +0 -1
  87. package/dist/stories/ColorLegends/SingleComponent/Single.stories.d.ts +0 -7
  88. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js +0 -58
  89. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js.map +0 -1
  90. package/src/component/ColorSelector/ColorSelectorAccordion.tsx +0 -54
  91. package/src/component/ColorSelector/ColorSelectorComponent.tsx +0 -312
  92. package/src/component/ColorSelector/ColorSelectorWrapper.tsx +0 -119
  93. package/src/component/Legend/ColorLegend.tsx +0 -89
  94. package/src/component/Legend/ContinuousLegend.tsx +0 -220
  95. package/src/component/Legend/DiscreteLegend.tsx +0 -195
  96. package/src/component/Utils/ColorTableTypes.ts +0 -6
  97. package/src/component/Utils/continousLegend.ts +0 -73
  98. package/src/component/Utils/d3ColorScale.ts +0 -84
  99. package/src/component/Utils/discreteLegend.ts +0 -84
  100. package/src/component/color-tables.json +0 -203
  101. package/src/custom.d.ts +0 -1
  102. package/src/index.ts +0 -26
  103. package/src/stories/ColorLegends/ColorSelector/Selector.stories.jsx +0 -12
  104. package/src/stories/ColorLegends/ContinousLegends/MD.stories.jsx +0 -29
  105. package/src/stories/ColorLegends/ContinousLegends/NTG.stories.jsx +0 -29
  106. package/src/stories/ColorLegends/ContinousLegends/PermTot.stories.jsx +0 -29
  107. package/src/stories/ColorLegends/ContinousLegends/Permeability.stories.jsx +0 -29
  108. package/src/stories/ColorLegends/ContinousLegends/PoroTot.stories.jsx +0 -29
  109. package/src/stories/ColorLegends/ContinousLegends/Porosity.stories.jsx +0 -29
  110. package/src/stories/ColorLegends/ContinousLegends/SW.stories.jsx +0 -29
  111. package/src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx +0 -39
  112. package/src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.jsx +0 -39
  113. package/src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx +0 -31
  114. package/src/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.jsx +0 -31
  115. package/src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx +0 -34
  116. package/src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx +0 -45
  117. package/src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx +0 -34
  118. package/src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx +0 -46
  119. package/src/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.jsx +0 -44
  120. package/src/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.jsx +0 -30
  121. package/src/stories/ColorLegends/SingleComponent/Single.stories.jsx +0 -51
  122. 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
- }