@emerson-eps/color-tables 1.0.0 → 1.0.1
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/BreakPoint/Canvas.d.ts +3 -3
- package/dist/component/BreakPoint/Canvas.js +10 -21
- package/dist/component/BreakPoint/Canvas.js.map +1 -1
- package/dist/component/BreakPoint/ColorScale.d.ts +2 -3
- package/dist/component/BreakPoint/ColorScale.js +19 -20
- package/dist/component/BreakPoint/ColorScale.js.map +1 -1
- package/dist/component/BreakPoint/Legend.d.ts +2 -3
- package/dist/component/BreakPoint/Legend.js +31 -37
- package/dist/component/BreakPoint/Legend.js.map +1 -1
- package/dist/component/BreakPoint/Modal.d.ts +6 -3
- package/dist/component/BreakPoint/Modal.js +17 -21
- package/dist/component/BreakPoint/Modal.js.map +1 -1
- package/dist/component/BreakPoint/index.d.ts +4 -0
- package/dist/component/BreakPoint/index.js +6 -0
- package/dist/component/BreakPoint/index.js.map +1 -0
- package/dist/component/ColorSelector/BreakPointModule.d.ts +3 -4
- package/dist/component/ColorSelector/BreakPointModule.js +99 -140
- package/dist/component/ColorSelector/BreakPointModule.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorAccordion.js +55 -60
- package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorComponent.d.ts +2 -3
- package/dist/component/ColorSelector/ColorSelectorComponent.js +83 -86
- package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorWrapper.d.ts +12 -5
- package/dist/component/ColorSelector/ColorSelectorWrapper.js +41 -51
- package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -1
- package/dist/component/ColorSelector/index.d.ts +4 -0
- package/dist/component/ColorSelector/index.js +6 -0
- package/dist/component/ColorSelector/index.js.map +1 -0
- package/dist/component/Legend/ColorLegend.d.ts +2 -2
- package/dist/component/Legend/ColorLegend.js +38 -39
- package/dist/component/Legend/ColorLegend.js.map +1 -1
- package/dist/component/Legend/ColorLegend.stories.js +20 -31
- package/dist/component/Legend/ColorLegend.stories.js.map +1 -1
- package/dist/component/Legend/ContinuousLegend.d.ts +2 -2
- package/dist/component/Legend/ContinuousLegend.js +230 -276
- package/dist/component/Legend/ContinuousLegend.js.map +1 -1
- package/dist/component/Legend/ContinuousLegend.stories.js +13 -24
- package/dist/component/Legend/ContinuousLegend.stories.js.map +1 -1
- package/dist/component/Legend/DiscreteLegend.d.ts +2 -2
- package/dist/component/Legend/DiscreteLegend.js +130 -180
- package/dist/component/Legend/DiscreteLegend.js.map +1 -1
- package/dist/component/Legend/DiscreteLegend.stories.js +15 -26
- package/dist/component/Legend/DiscreteLegend.stories.js.map +1 -1
- package/dist/component/Legend/constants.js +1 -1
- package/dist/component/Legend/constants.js.map +1 -1
- package/dist/component/Legend/index.d.ts +3 -0
- package/dist/component/Legend/index.js +4 -0
- package/dist/component/Legend/index.js.map +1 -0
- package/dist/component/Utils/d3ColorScale.js +1 -1
- package/dist/component/Utils/d3ColorScale.js.map +1 -1
- package/dist/component/Utils/discreteLegend.d.ts +2 -3
- package/dist/component/Utils/discreteLegend.js.map +1 -1
- package/dist/component/Utils/index.d.ts +2 -0
- package/dist/component/Utils/index.js +4 -0
- package/dist/component/Utils/index.js.map +1 -0
- package/dist/component/Utils/legendCommonFunction.d.ts +7 -7
- package/dist/component/Utils/legendCommonFunction.js +128 -139
- package/dist/component/Utils/legendCommonFunction.js.map +1 -1
- package/dist/component/Utils/legendCommonFunction.stories.js +14 -25
- package/dist/component/Utils/legendCommonFunction.stories.js.map +1 -1
- package/dist/component/colorTableTypes.d.ts +10 -2
- package/dist/component/index.d.ts +6 -0
- package/dist/component/index.js +7 -0
- package/dist/component/index.js.map +1 -0
- package/dist/index.d.ts +1 -9
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +36 -0
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +39 -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 +31 -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 +31 -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 +34 -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 +45 -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 +34 -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 +44 -0
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +1 -0
- package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.js +33 -0
- package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.js.map +1 -0
- package/package.json +1 -1
|
@@ -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;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACnB,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1B,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1B,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACxB,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3B,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3B,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACnB,CAAC;AACF,MAAM,cAAc,GAAG,0BAA0B,CAAC;AAClD,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACvC,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,QAAQ,CAAC;AAE3B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzD,uBAAuB,CAAC,IAAI,GAAG;IAC7B,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3C,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import colorTables from "../../../component/color-tables.json";
|
|
4
|
+
export default {
|
|
5
|
+
component: DiscreteColorLegend,
|
|
6
|
+
title: "Legends/DiscreteColorLegend",
|
|
7
|
+
};
|
|
8
|
+
const discreteData = {
|
|
9
|
+
no: [[], 0],
|
|
10
|
+
yes: [[], 1],
|
|
11
|
+
};
|
|
12
|
+
const dataObjectName = "Wells / FaultDistance_HUM";
|
|
13
|
+
const position = { left: 16, top: 10 };
|
|
14
|
+
const horizontal = true;
|
|
15
|
+
const colorName = "GasOilWater";
|
|
16
|
+
const Template = (args) => {
|
|
17
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
18
|
+
};
|
|
19
|
+
export const FaultDistanceHumTemplate = Template.bind({});
|
|
20
|
+
FaultDistanceHumTemplate.args = {
|
|
21
|
+
discreteData,
|
|
22
|
+
dataObjectName,
|
|
23
|
+
position,
|
|
24
|
+
colorName,
|
|
25
|
+
colorTables,
|
|
26
|
+
horizontal,
|
|
27
|
+
legendFontSize: 13,
|
|
28
|
+
legendScaleSize: 300,
|
|
29
|
+
cssLegendStyles: { top: "0%", left: "0%" },
|
|
30
|
+
};
|
|
31
|
+
//# 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;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACb,CAAC;AACF,MAAM,cAAc,GAAG,2BAA2B,CAAC;AACnD,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACvC,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,aAAa,CAAC;AAEhC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1D,wBAAwB,CAAC,IAAI,GAAG;IAC9B,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3C,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import colorTables from "../../../component/color-tables.json";
|
|
4
|
+
export default {
|
|
5
|
+
component: DiscreteColorLegend,
|
|
6
|
+
title: "Legends/DiscreteColorLegend",
|
|
7
|
+
};
|
|
8
|
+
const discreteData = {
|
|
9
|
+
no: [[], 0],
|
|
10
|
+
yes: [[], 1],
|
|
11
|
+
};
|
|
12
|
+
const dataObjectName = "Wells / FAULT_PROXIMITY_FLAG";
|
|
13
|
+
const position = { left: 16, top: 10 };
|
|
14
|
+
const horizontal = true;
|
|
15
|
+
const colorName = "Time/Depth";
|
|
16
|
+
const Template = (args) => {
|
|
17
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
18
|
+
};
|
|
19
|
+
export const FaultProximityFlagTemplate = Template.bind({});
|
|
20
|
+
FaultProximityFlagTemplate.args = {
|
|
21
|
+
discreteData,
|
|
22
|
+
dataObjectName,
|
|
23
|
+
position,
|
|
24
|
+
colorName,
|
|
25
|
+
colorTables,
|
|
26
|
+
horizontal,
|
|
27
|
+
legendFontSize: 13,
|
|
28
|
+
legendScaleSize: 300,
|
|
29
|
+
cssLegendStyles: { top: "0%", left: "0%" },
|
|
30
|
+
};
|
|
31
|
+
//# 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;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACb,CAAC;AACF,MAAM,cAAc,GAAG,8BAA8B,CAAC;AACtD,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACvC,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,YAAY,CAAC;AAE/B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC5D,0BAA0B,CAAC,IAAI,GAAG;IAChC,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3C,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import colorTables from "../../../component/color-tables.json";
|
|
4
|
+
export default {
|
|
5
|
+
component: DiscreteColorLegend,
|
|
6
|
+
title: "Legends/DiscreteColorLegend",
|
|
7
|
+
};
|
|
8
|
+
const discreteData = {
|
|
9
|
+
OFFSHORE: [[], 1],
|
|
10
|
+
LSF: [[], 2],
|
|
11
|
+
USF: [[], 3],
|
|
12
|
+
TIDAL: [[], 4],
|
|
13
|
+
ONSHORE: [[], 5],
|
|
14
|
+
};
|
|
15
|
+
const dataObjectName = "Wells / RDE";
|
|
16
|
+
const position = { left: 16, top: 10 };
|
|
17
|
+
const horizontal = true;
|
|
18
|
+
const colorName = "Accent";
|
|
19
|
+
const Template = (args) => {
|
|
20
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
21
|
+
};
|
|
22
|
+
export const RDETemplate = Template.bind({});
|
|
23
|
+
RDETemplate.args = {
|
|
24
|
+
discreteData,
|
|
25
|
+
dataObjectName,
|
|
26
|
+
position,
|
|
27
|
+
colorName,
|
|
28
|
+
colorTables,
|
|
29
|
+
horizontal,
|
|
30
|
+
legendFontSize: 13,
|
|
31
|
+
legendScaleSize: 300,
|
|
32
|
+
cssLegendStyles: { top: "0%", left: "0%" },
|
|
33
|
+
};
|
|
34
|
+
//# 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;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACjB,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACjB,CAAC;AACF,MAAM,cAAc,GAAG,aAAa,CAAC;AACrC,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACvC,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,QAAQ,CAAC;AAE3B,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;IACjB,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3C,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import colorTables from "../../../component/color-tables.json";
|
|
4
|
+
export default {
|
|
5
|
+
component: DiscreteColorLegend,
|
|
6
|
+
title: "Legends/DiscreteColorLegend",
|
|
7
|
+
};
|
|
8
|
+
const discreteData = {
|
|
9
|
+
F_OFFSHORE: [[], 0],
|
|
10
|
+
F_LOWER_SHOREFACE: [[], 1],
|
|
11
|
+
F_UPPER_SHOREFACE: [[], 2],
|
|
12
|
+
F_MOUTH_BAR: [[], 3],
|
|
13
|
+
F_TIDAL_BAR: [[], 4],
|
|
14
|
+
F_TIDAL_CHANNEL: [[], 5],
|
|
15
|
+
F_TIDAL_FLAT_SANDY: [[], 6],
|
|
16
|
+
F_TIDAL_FLAT_MUDDY: [[], 7],
|
|
17
|
+
F_MARSH: [[], 8],
|
|
18
|
+
F_CALCITE: [[], 9],
|
|
19
|
+
R_OFFSHORE: [[], 10],
|
|
20
|
+
R_SHOREFACE: [[], 11],
|
|
21
|
+
R_TIDAL: [[], 12],
|
|
22
|
+
R_ONSHORE: [[], 13],
|
|
23
|
+
R_USF: [[], 14],
|
|
24
|
+
R_LSF: [[], 15],
|
|
25
|
+
};
|
|
26
|
+
const dataObjectName = "Wells / RDE_ORIG";
|
|
27
|
+
const position = { left: 16, top: 10 };
|
|
28
|
+
const horizontal = true;
|
|
29
|
+
const colorName = "Stratigraphy";
|
|
30
|
+
const Template = (args) => {
|
|
31
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
32
|
+
};
|
|
33
|
+
export const RDEOrigTemplate = Template.bind({});
|
|
34
|
+
RDEOrigTemplate.args = {
|
|
35
|
+
discreteData,
|
|
36
|
+
dataObjectName,
|
|
37
|
+
position,
|
|
38
|
+
colorName,
|
|
39
|
+
colorTables,
|
|
40
|
+
horizontal,
|
|
41
|
+
legendFontSize: 13,
|
|
42
|
+
legendScaleSize: 300,
|
|
43
|
+
cssLegendStyles: { top: "0%", left: "0%" },
|
|
44
|
+
};
|
|
45
|
+
//# 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;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACnB,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1B,iBAAiB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1B,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,eAAe,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACxB,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3B,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAC3B,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACpB,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACrB,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACjB,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACnB,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACf,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CAChB,CAAC;AACF,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAC1C,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACvC,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACrB,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3C,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import colorTables from "../../../component/color-tables.json";
|
|
4
|
+
export default {
|
|
5
|
+
component: DiscreteColorLegend,
|
|
6
|
+
title: "Legends/DiscreteColorLegend",
|
|
7
|
+
};
|
|
8
|
+
const discreteData = {
|
|
9
|
+
0: [[], 0],
|
|
10
|
+
4: [[], 4],
|
|
11
|
+
UPPER: [[], 1],
|
|
12
|
+
MID: [[], 2],
|
|
13
|
+
LOWER: [[], 3],
|
|
14
|
+
};
|
|
15
|
+
const dataObjectName = "Wells / ZONE_MAIN";
|
|
16
|
+
const position = { left: 16, top: 10 };
|
|
17
|
+
const horizontal = true;
|
|
18
|
+
const colorName = "Stratigraphy";
|
|
19
|
+
const Template = (args) => {
|
|
20
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
21
|
+
};
|
|
22
|
+
export const ZoneMainTemplate = Template.bind({});
|
|
23
|
+
ZoneMainTemplate.args = {
|
|
24
|
+
discreteData,
|
|
25
|
+
dataObjectName,
|
|
26
|
+
position,
|
|
27
|
+
colorName,
|
|
28
|
+
colorTables,
|
|
29
|
+
horizontal,
|
|
30
|
+
legendFontSize: 13,
|
|
31
|
+
legendScaleSize: 300,
|
|
32
|
+
cssLegendStyles: { top: "0%", left: "0%" },
|
|
33
|
+
};
|
|
34
|
+
//# 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;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACV,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACV,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;CACf,CAAC;AACF,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAC3C,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACvC,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,gBAAgB,CAAC,IAAI,GAAG;IACtB,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3C,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DiscreteColorLegend } from "../../../component/Legend/DiscreteLegend";
|
|
3
|
+
import colorTables from "../../../component/color-tables.json";
|
|
4
|
+
export default {
|
|
5
|
+
component: DiscreteColorLegend,
|
|
6
|
+
title: "Legends/DiscreteColorLegend",
|
|
7
|
+
};
|
|
8
|
+
const discreteData = {
|
|
9
|
+
Above_BCU: [[], 0],
|
|
10
|
+
ABOVE: [[], 1],
|
|
11
|
+
H12: [[], 2],
|
|
12
|
+
H11: [[], 3],
|
|
13
|
+
H10: [[], 4],
|
|
14
|
+
H9: [[], 5],
|
|
15
|
+
H8: [[], 6],
|
|
16
|
+
H7: [[], 7],
|
|
17
|
+
H6: [[], 8],
|
|
18
|
+
H5: [[], 9],
|
|
19
|
+
H4: [[], 10],
|
|
20
|
+
H3: [[], 11],
|
|
21
|
+
H2: [[], 12],
|
|
22
|
+
H1: [[], 13],
|
|
23
|
+
BELOW: [[], 14],
|
|
24
|
+
};
|
|
25
|
+
const dataObjectName = "Wells / ZONELOG";
|
|
26
|
+
const position = { left: 16, top: 10 };
|
|
27
|
+
const horizontal = true;
|
|
28
|
+
const colorName = "Stratigraphy";
|
|
29
|
+
const Template = (args) => {
|
|
30
|
+
return React.createElement(DiscreteColorLegend, Object.assign({}, args));
|
|
31
|
+
};
|
|
32
|
+
export const ZonelogTemplate = Template.bind({});
|
|
33
|
+
ZonelogTemplate.args = {
|
|
34
|
+
discreteData,
|
|
35
|
+
dataObjectName,
|
|
36
|
+
position,
|
|
37
|
+
colorName,
|
|
38
|
+
colorTables,
|
|
39
|
+
horizontal,
|
|
40
|
+
legendFontSize: 13,
|
|
41
|
+
legendScaleSize: 300,
|
|
42
|
+
cssLegendStyles: { top: "0%", left: "0%" },
|
|
43
|
+
};
|
|
44
|
+
//# 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;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAE/D,eAAe;IACb,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,6BAA6B;CACrC,CAAC;AAEF,MAAM,YAAY,GAAG;IACnB,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACZ,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACX,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACZ,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACZ,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACZ,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACZ,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CAChB,CAAC;AACF,MAAM,cAAc,GAAG,iBAAiB,CAAC;AACzC,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;AACvC,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,SAAS,GAAG,cAAc,CAAC;AAEjC,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,OAAO,oBAAC,mBAAmB,oBAAK,IAAI,EAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACjD,eAAe,CAAC,IAAI,GAAG;IACrB,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;IACV,cAAc,EAAE,EAAE;IAClB,eAAe,EAAE,GAAG;IACpB,eAAe,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import colorTables from "../../../component/color-tables.json";
|
|
3
|
+
import { ColorLegend } from "../../../component/Legend/ColorLegend";
|
|
4
|
+
export default {
|
|
5
|
+
component: ColorLegend,
|
|
6
|
+
title: "Legends/LegendWithColorSelector",
|
|
7
|
+
};
|
|
8
|
+
const Template = (args) => {
|
|
9
|
+
const [getColor, setColorName] = React.useState("Rainbow");
|
|
10
|
+
const getColorName = React.useCallback((data) => {
|
|
11
|
+
// for geological color scale data (from color-table.json) => data.name
|
|
12
|
+
// for D3 color scale => data.legendColorName
|
|
13
|
+
setColorName((data === null || data === void 0 ? void 0 : data.name) || (data === null || data === void 0 ? void 0 : data.legendColorName));
|
|
14
|
+
}, []);
|
|
15
|
+
return React.createElement(ColorLegend, Object.assign({}, args, { colorName: getColor, getScale: getColorName }));
|
|
16
|
+
};
|
|
17
|
+
export const LegendWithColorSelector = Template.bind({});
|
|
18
|
+
LegendWithColorSelector.args = {
|
|
19
|
+
min: 0,
|
|
20
|
+
max: 0.35,
|
|
21
|
+
cssLegendStyles: { left: "0vw", top: "0vh" },
|
|
22
|
+
horizontal: true,
|
|
23
|
+
colorName: "Rainbow",
|
|
24
|
+
dataObjectName: "Legend with Selector",
|
|
25
|
+
colorTables,
|
|
26
|
+
isModal: true,
|
|
27
|
+
isRangeShown: true,
|
|
28
|
+
legendFontSize: 13,
|
|
29
|
+
tickFontSize: 13,
|
|
30
|
+
numberOfTicks: 3,
|
|
31
|
+
legendScaleSize: 300,
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=LegendSelector.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendSelector.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,eAAe;IACb,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,iCAAiC;CACzC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE;IACxB,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAE3D,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,EAAE,EAAE;QAC9C,uEAAuE;QACvE,6CAA6C;QAE7C,YAAY,CAAC,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,MAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,eAAe,CAAA,CAAC,CAAC;IACpD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,oBAAC,WAAW,oBAAK,IAAI,IAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,IAAI,CAAC;AAChF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzD,uBAAuB,CAAC,IAAI,GAAG;IAC7B,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,IAAI;IACT,eAAe,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE;IAC5C,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,SAAS;IACpB,cAAc,EAAE,sBAAsB;IACtC,WAAW;IACX,OAAO,EAAE,IAAI;IACb,YAAY,EAAE,IAAI;IAClB,cAAc,EAAE,EAAE;IAClB,YAAY,EAAE,EAAE;IAChB,aAAa,EAAE,CAAC;IAChB,eAAe,EAAE,GAAG;CACrB,CAAC"}
|