@emerson-eps/color-tables 0.2.12 → 0.2.15

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 (120) 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 -1
  7. package/dist/component/ColorSelector/ColorSelectorWrapper.js +9 -10
  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 +4 -8
  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/discreteLegend.js +14 -27
  18. package/dist/component/Utils/discreteLegend.js.map +1 -1
  19. package/dist/component/{Utils/ColorTableTypes.d.ts → colorTableTypes.d.ts} +0 -0
  20. package/dist/component/colorTableTypes.js +2 -0
  21. package/dist/component/colorTableTypes.js.map +1 -0
  22. package/dist/index.d.ts +7 -5
  23. package/dist/index.js +3 -4
  24. package/dist/index.js.map +1 -1
  25. package/package.json +6 -3
  26. package/.storybook/main.js +0 -11
  27. package/.storybook/preview.js +0 -9
  28. package/.vscode/settings.json +0 -3
  29. package/dist/component/Utils/ColorTableTypes.js +0 -2
  30. package/dist/component/Utils/ColorTableTypes.js.map +0 -1
  31. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.d.ts +0 -7
  32. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js +0 -11
  33. package/dist/stories/ColorLegends/ColorSelector/Selector.stories.js.map +0 -1
  34. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.d.ts +0 -7
  35. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +0 -38
  36. package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +0 -1
  37. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.d.ts +0 -7
  38. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +0 -38
  39. package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +0 -1
  40. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.d.ts +0 -7
  41. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +0 -38
  42. package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +0 -1
  43. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.d.ts +0 -7
  44. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +0 -38
  45. package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +0 -1
  46. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.d.ts +0 -7
  47. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +0 -38
  48. package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +0 -1
  49. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.d.ts +0 -7
  50. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +0 -38
  51. package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +0 -1
  52. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.d.ts +0 -7
  53. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +0 -38
  54. package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +0 -1
  55. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.d.ts +0 -7
  56. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js +0 -47
  57. package/dist/stories/ColorLegends/DiscreteLegends/Facies.stories.js.map +0 -1
  58. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.d.ts +0 -7
  59. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +0 -47
  60. package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +0 -1
  61. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.d.ts +0 -7
  62. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +0 -39
  63. package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +0 -1
  64. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.d.ts +0 -7
  65. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +0 -39
  66. package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +0 -1
  67. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.d.ts +0 -7
  68. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +0 -42
  69. package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +0 -1
  70. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.d.ts +0 -7
  71. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +0 -53
  72. package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +0 -1
  73. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.d.ts +0 -7
  74. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +0 -42
  75. package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +0 -1
  76. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.d.ts +0 -7
  77. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +0 -52
  78. package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +0 -1
  79. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.d.ts +0 -7
  80. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js +0 -52
  81. package/dist/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.js.map +0 -1
  82. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.d.ts +0 -7
  83. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js +0 -38
  84. package/dist/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.js.map +0 -1
  85. package/dist/stories/ColorLegends/SingleComponent/Single.stories.d.ts +0 -7
  86. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js +0 -58
  87. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js.map +0 -1
  88. package/src/component/ColorSelector/ColorSelectorAccordion.tsx +0 -54
  89. package/src/component/ColorSelector/ColorSelectorComponent.tsx +0 -312
  90. package/src/component/ColorSelector/ColorSelectorWrapper.tsx +0 -119
  91. package/src/component/Legend/ColorLegend.tsx +0 -106
  92. package/src/component/Legend/ContinuousLegend.tsx +0 -233
  93. package/src/component/Legend/DiscreteLegend.tsx +0 -209
  94. package/src/component/Utils/ColorTableTypes.ts +0 -6
  95. package/src/component/Utils/continousLegend.ts +0 -73
  96. package/src/component/Utils/d3ColorScale.ts +0 -84
  97. package/src/component/Utils/discreteLegend.ts +0 -84
  98. package/src/component/color-tables.json +0 -203
  99. package/src/custom.d.ts +0 -1
  100. package/src/index.ts +0 -26
  101. package/src/stories/ColorLegends/ColorSelector/Selector.stories.jsx +0 -12
  102. package/src/stories/ColorLegends/ContinousLegends/MD.stories.jsx +0 -29
  103. package/src/stories/ColorLegends/ContinousLegends/NTG.stories.jsx +0 -29
  104. package/src/stories/ColorLegends/ContinousLegends/PermTot.stories.jsx +0 -29
  105. package/src/stories/ColorLegends/ContinousLegends/Permeability.stories.jsx +0 -29
  106. package/src/stories/ColorLegends/ContinousLegends/PoroTot.stories.jsx +0 -29
  107. package/src/stories/ColorLegends/ContinousLegends/Porosity.stories.jsx +0 -29
  108. package/src/stories/ColorLegends/ContinousLegends/SW.stories.jsx +0 -29
  109. package/src/stories/ColorLegends/DiscreteLegends/Facies.stories.jsx +0 -39
  110. package/src/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.jsx +0 -39
  111. package/src/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.jsx +0 -31
  112. package/src/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.jsx +0 -31
  113. package/src/stories/ColorLegends/DiscreteLegends/RDE.stories.jsx +0 -34
  114. package/src/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.jsx +0 -45
  115. package/src/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.jsx +0 -34
  116. package/src/stories/ColorLegends/DiscreteLegends/Zonelog.stories.jsx +0 -46
  117. package/src/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.jsx +0 -44
  118. package/src/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.jsx +0 -30
  119. package/src/stories/ColorLegends/SingleComponent/Single.stories.jsx +0 -51
  120. package/tsconfig.json +0 -23
@@ -1,42 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from "react";
13
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
14
- import colorTables from "../../../component/color-tables.json";
15
- export default {
16
- component: DiscreteColorLegend,
17
- title: "Legends/DiscreteColorLegend",
18
- };
19
- var discreteData = {
20
- "OFFSHORE": [[], 1],
21
- "LSF": [[], 2],
22
- "USF": [[], 3],
23
- "TIDAL": [[], 4],
24
- "ONSHORE": [[], 5]
25
- };
26
- var dataObjectName = "Wells / RDE";
27
- var position = [16, 10];
28
- var horizontal = true;
29
- var colorName = "Accent";
30
- var Template = function (args) {
31
- return React.createElement(DiscreteColorLegend, __assign({}, args));
32
- };
33
- export var RDETemplate = Template.bind({});
34
- RDETemplate.args = {
35
- discreteData: discreteData,
36
- dataObjectName: dataObjectName,
37
- position: position,
38
- colorName: colorName,
39
- colorTables: colorTables,
40
- horizontal: horizontal,
41
- };
42
- //# sourceMappingURL=RDE.stories.js.map
@@ -1 +0,0 @@
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,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,IAAM,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,IAAM,cAAc,GAAG,aAAa,CAAC;AACrC,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,QAAQ,CAAC;AAE3B,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,mBAAmB,eAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACf,YAAY,cAAA;IACZ,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,SAAS,WAAA;IACT,WAAW,aAAA;IACX,UAAU,YAAA;CACb,CAAC"}
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- export { DiscreteColorLegend as component };
3
- export const title: string;
4
- }
5
- export default _default;
6
- export const RDEOrigTemplate: any;
7
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
@@ -1,53 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from "react";
13
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
14
- import colorTables from "../../../component/color-tables.json";
15
- export default {
16
- component: DiscreteColorLegend,
17
- title: "Legends/DiscreteColorLegend",
18
- };
19
- var discreteData = {
20
- "F_OFFSHORE": [[], 0],
21
- "F_LOWER_SHOREFACE": [[], 1],
22
- "F_UPPER_SHOREFACE": [[], 2],
23
- "F_MOUTH_BAR": [[], 3],
24
- "F_TIDAL_BAR": [[], 4],
25
- "F_TIDAL_CHANNEL": [[], 5],
26
- "F_TIDAL_FLAT_SANDY": [[], 6],
27
- "F_TIDAL_FLAT_MUDDY": [[], 7],
28
- "F_MARSH": [[], 8],
29
- "F_CALCITE": [[], 9],
30
- "R_OFFSHORE": [[], 10],
31
- "R_SHOREFACE": [[], 11],
32
- "R_TIDAL": [[], 12],
33
- "R_ONSHORE": [[], 13],
34
- "R_USF": [[], 14],
35
- "R_LSF": [[], 15]
36
- };
37
- var dataObjectName = "Wells / RDE_ORIG";
38
- var position = [16, 10];
39
- var horizontal = true;
40
- var colorName = "Stratigraphy";
41
- var Template = function (args) {
42
- return React.createElement(DiscreteColorLegend, __assign({}, args));
43
- };
44
- export var RDEOrigTemplate = Template.bind({});
45
- RDEOrigTemplate.args = {
46
- discreteData: discreteData,
47
- dataObjectName: dataObjectName,
48
- position: position,
49
- colorName: colorName,
50
- colorTables: colorTables,
51
- horizontal: horizontal,
52
- };
53
- //# sourceMappingURL=RDE_Orig.stories.js.map
@@ -1 +0,0 @@
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,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,IAAM,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,IAAM,cAAc,GAAG,kBAAkB,CAAC;AAC1C,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,mBAAmB,eAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACnB,YAAY,cAAA;IACZ,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,SAAS,WAAA;IACT,WAAW,aAAA;IACX,UAAU,YAAA;CACb,CAAC"}
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- export { DiscreteColorLegend as component };
3
- export const title: string;
4
- }
5
- export default _default;
6
- export const ZoneMainTemplate: any;
7
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
@@ -1,42 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from "react";
13
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
14
- import colorTables from "../../../component/color-tables.json";
15
- export default {
16
- component: DiscreteColorLegend,
17
- title: "Legends/DiscreteColorLegend",
18
- };
19
- var discreteData = {
20
- "0": [[], 0],
21
- "4": [[], 4],
22
- "UPPER": [[], 1],
23
- "MID": [[], 2],
24
- "LOWER": [[], 3]
25
- };
26
- var dataObjectName = "Wells / ZONE_MAIN";
27
- var position = [16, 10];
28
- var horizontal = true;
29
- var colorName = "Stratigraphy";
30
- var Template = function (args) {
31
- return React.createElement(DiscreteColorLegend, __assign({}, args));
32
- };
33
- export var ZoneMainTemplate = Template.bind({});
34
- ZoneMainTemplate.args = {
35
- discreteData: discreteData,
36
- dataObjectName: dataObjectName,
37
- position: position,
38
- colorName: colorName,
39
- colorTables: colorTables,
40
- horizontal: horizontal,
41
- };
42
- //# sourceMappingURL=ZoneMain.stories.js.map
@@ -1 +0,0 @@
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,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,IAAM,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,IAAM,cAAc,GAAG,mBAAmB,CAAC;AAC3C,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,mBAAmB,eAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACpB,YAAY,cAAA;IACZ,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,SAAS,WAAA;IACT,WAAW,aAAA;IACX,UAAU,YAAA;CACb,CAAC"}
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- export { DiscreteColorLegend as component };
3
- export const title: string;
4
- }
5
- export default _default;
6
- export const ZonelogTemplate: any;
7
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
@@ -1,52 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from "react";
13
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
14
- import colorTables from "../../../component/color-tables.json";
15
- export default {
16
- component: DiscreteColorLegend,
17
- title: "Legends/DiscreteColorLegend",
18
- };
19
- var 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
- var dataObjectName = "Wells / ZONELOG";
37
- var position = [16, 10];
38
- var horizontal = true;
39
- var colorName = "Stratigraphy";
40
- var Template = function (args) {
41
- return React.createElement(DiscreteColorLegend, __assign({}, args));
42
- };
43
- export var ZonelogTemplate = Template.bind({});
44
- ZonelogTemplate.args = {
45
- discreteData: discreteData,
46
- dataObjectName: dataObjectName,
47
- position: position,
48
- colorName: colorName,
49
- colorTables: colorTables,
50
- horizontal: horizontal,
51
- };
52
- //# sourceMappingURL=Zonelog.stories.js.map
@@ -1 +0,0 @@
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,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACvC,CAAC;AAEF,IAAM,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,IAAM,cAAc,GAAG,iBAAiB,CAAC;AACzC,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,mBAAmB,eAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACnB,YAAY,cAAA;IACZ,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,SAAS,WAAA;IACT,WAAW,aAAA;IACX,UAAU,YAAA;CACb,CAAC"}
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- export { DiscreteColorLegend as component };
3
- export const title: string;
4
- }
5
- export default _default;
6
- export const discreteLegendWithSelector: any;
7
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
@@ -1,52 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from "react";
13
- import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
14
- import colorTables from "../../../component/color-tables.json";
15
- export default {
16
- component: DiscreteColorLegend,
17
- title: "Legends/DiscreteLegendWithSelector",
18
- };
19
- var 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
- var dataObjectName = "Wells / ZONELOG";
37
- var position = [16, 10];
38
- var horizontal = true;
39
- var colorName = "Stratigraphy";
40
- var Template = function (args) {
41
- return React.createElement(DiscreteColorLegend, __assign({}, args));
42
- };
43
- export var discreteLegendWithSelector = Template.bind({});
44
- discreteLegendWithSelector.args = {
45
- discreteData: discreteData,
46
- dataObjectName: dataObjectName,
47
- position: position,
48
- horizontal: horizontal,
49
- colorName: colorName,
50
- colorTables: colorTables,
51
- };
52
- //# sourceMappingURL=DiscreteLegendWithSelector.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DiscreteLegendWithSelector.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/LegendWithSelector/DiscreteLegendWithSelector.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,oCAAoC;CAC9C,CAAC;AAEF,IAAM,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,IAAM,cAAc,GAAG,iBAAiB,CAAC;AACzC,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,mBAAmB,eAAK,IAAI,EAAI,CAAC;AAC7C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,0BAA0B,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5D,0BAA0B,CAAC,IAAI,GAAG;IAC9B,YAAY,cAAA;IACZ,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,UAAU,YAAA;IACV,SAAS,WAAA;IACT,WAAW,aAAA;CACd,CAAC"}
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- export { ContinuousLegend as component };
3
- export const title: string;
4
- }
5
- export default _default;
6
- export const legendWithSelector: any;
7
- import { ContinuousLegend } from "../../../component/Legend/ContinuousLegend";
@@ -1,38 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from "react";
13
- import { ContinuousLegend } from "../../../component/Legend/ContinuousLegend";
14
- import colorTables from "../../../component/color-tables.json";
15
- export default {
16
- component: ContinuousLegend,
17
- title: "Legends/LegendWithSelector",
18
- };
19
- var min = 0;
20
- var max = 0.35;
21
- var dataObjectName = "Legend";
22
- var position = [16, 10];
23
- var horizontal = true;
24
- var colorName = "Time/Depth";
25
- var Template = function (args) {
26
- return React.createElement(ContinuousLegend, __assign({}, args));
27
- };
28
- export var legendWithSelector = Template.bind({});
29
- legendWithSelector.args = {
30
- min: min,
31
- max: max,
32
- dataObjectName: dataObjectName,
33
- position: position,
34
- horizontal: horizontal,
35
- colorName: colorName,
36
- colorTables: colorTables,
37
- };
38
- //# sourceMappingURL=LegendWithSelector.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LegendWithSelector.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/LegendWithSelector/LegendWithSelector.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,4BAA4B;CACtC,CAAC;AAEF,IAAM,GAAG,GAAG,CAAC,CAAC;AACd,IAAM,GAAG,GAAG,IAAI,CAAC;AACjB,IAAM,cAAc,GAAG,QAAQ,CAAC;AAChC,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,YAAY,CAAC;AAE/B,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,gBAAgB,eAAK,IAAI,EAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,GAAG;IACtB,GAAG,KAAA;IACH,GAAG,KAAA;IACH,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,UAAU,YAAA;IACV,SAAS,WAAA;IACT,WAAW,aAAA;CACd,CAAC"}
@@ -1,7 +0,0 @@
1
- declare namespace _default {
2
- export { ColorLegend as component };
3
- export const title: string;
4
- }
5
- export default _default;
6
- export const legendWithSelector: any;
7
- import { ColorLegend } from "../../../component/Legend/ColorLegend";
@@ -1,58 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from "react";
13
- import colorTables from "../../../component/color-tables.json";
14
- import { ColorLegend } from "../../../component/Legend/ColorLegend";
15
- export default {
16
- component: ColorLegend,
17
- title: "Legends/SingleComponent",
18
- };
19
- // prop for continous legend
20
- var min = 0;
21
- var max = 0.35;
22
- var dataObjectName = "Legend";
23
- var position = [16, 10];
24
- var horizontal = true;
25
- var colorName = "Pastel1";
26
- // prop for discrete data
27
- var discreteData = {
28
- "Above_BCU": [[], 0],
29
- "ABOVE": [[], 1],
30
- "H12": [[], 2],
31
- "H11": [[], 3],
32
- "H10": [[], 4],
33
- "H9": [[], 5],
34
- "H8": [[], 6],
35
- "H7": [[], 7],
36
- "H6": [[], 8],
37
- "H5": [[], 9],
38
- "H4": [[], 10],
39
- "H3": [[], 11],
40
- "H2": [[], 12],
41
- "H1": [[], 13],
42
- "BELOW": [[], 14]
43
- };
44
- var Template = function (args) {
45
- return React.createElement(ColorLegend, __assign({}, args));
46
- };
47
- export var legendWithSelector = Template.bind({});
48
- legendWithSelector.args = {
49
- min: min,
50
- max: max,
51
- dataObjectName: dataObjectName,
52
- position: position,
53
- horizontal: horizontal,
54
- colorName: colorName,
55
- colorTables: colorTables,
56
- discreteData: discreteData,
57
- };
58
- //# sourceMappingURL=Single.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Single.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/SingleComponent/Single.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAC,MAAM,uCAAuC,CAAC;AAElE,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,yBAAyB;CACnC,CAAC;AAEF,4BAA4B;AAC5B,IAAM,GAAG,GAAG,CAAC,CAAC;AACd,IAAM,GAAG,GAAG,IAAI,CAAC;AACjB,IAAM,cAAc,GAAG,QAAQ,CAAC;AAChC,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,yBAAyB;AACzB,IAAM,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;AAEF,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,WAAW,eAAK,IAAI,EAAI,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,GAAG;IACtB,GAAG,KAAA;IACH,GAAG,KAAA;IACH,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,UAAU,YAAA;IACV,SAAS,WAAA;IACT,WAAW,aAAA;IACX,YAAY,cAAA;CACf,CAAC"}
@@ -1,54 +0,0 @@
1
- import * as React from "react";
2
- import { Accordion } from "@equinor/eds-core-react";
3
- import { ColorSelectorWrapper } from "./ColorSelectorWrapper";
4
-
5
- export const ColorSelectorAccordion = (props: any) => {
6
- return (
7
- <div className="Container" style={{width: "316px",
8
- position: "absolute",
9
- zIndex: 1,
10
- top: props.isHorizontal ? 100 : 30,
11
- right: props.isHorizontal ? 5 : 165,
12
- }}>
13
- <Accordion >
14
- <Accordion.Item isExpanded>
15
- <Accordion.Header>
16
- Color Scales
17
- </Accordion.Header>
18
- <Accordion.Panel>
19
- <Accordion >
20
- <Accordion.Item>
21
- <Accordion.Header>
22
- Geologic Color Scale
23
- </Accordion.Header>
24
- <Accordion.Panel>
25
- <ColorSelectorWrapper useColorTableColors={true} colorScaleObject={props}/>
26
- </Accordion.Panel>
27
- </Accordion.Item>
28
- </Accordion>
29
- <Accordion >
30
- <Accordion.Item>
31
- <Accordion.Header>
32
- D3 Color Scale
33
- </Accordion.Header>
34
- <Accordion.Panel>
35
- <ColorSelectorWrapper useColorTableColors={false} colorScaleObject={props}/>
36
- </Accordion.Panel>
37
- </Accordion.Item>
38
- </Accordion>
39
- <Accordion >
40
- <Accordion.Item>
41
- <Accordion.Header>
42
- Custom Color Scale
43
- </Accordion.Header>
44
- <Accordion.Panel>
45
- Custom Content
46
- </Accordion.Panel>
47
- </Accordion.Item>
48
- </Accordion>
49
- </Accordion.Panel>
50
- </Accordion.Item>
51
- </Accordion>
52
- </div>
53
- );
54
- };