@emerson-eps/color-tables 0.2.0 → 0.2.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/ColorSelector/ColorSelectorComponent.js +32 -6
- package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
- package/dist/component/ColorSelector/ColorTableSelectorWrapper.js +3 -5
- package/dist/component/ColorSelector/ColorTableSelectorWrapper.js.map +1 -1
- package/dist/component/ColorSelector/legendComponent.d.ts +14 -0
- package/dist/component/ColorSelector/legendComponent.js +228 -0
- package/dist/component/ColorSelector/legendComponent.js.map +1 -0
- package/dist/component/Utils/d3ColorScale.d.ts +6 -3
- package/dist/component/Utils/d3ColorScale.js +51 -5
- package/dist/component/Utils/d3ColorScale.js.map +1 -1
- package/dist/component/Utils/discreteLegend.d.ts +2 -2
- package/dist/component/Utils/discreteLegend.js +26 -15
- package/dist/component/Utils/discreteLegend.js.map +1 -1
- package/package.json +1 -1
- package/src/component/ColorSelector/ColorSelectorComponent.tsx +55 -14
- package/src/component/ColorSelector/ColorTableSelectorWrapper.tsx +4 -6
- package/src/component/ColorSelector/legendComponent.tsx +289 -0
- package/src/component/Utils/d3ColorScale.ts +52 -7
- package/src/component/Utils/discreteLegend.ts +34 -23
- package/tsconfig.json +1 -1
- package/dist/component/Legend/legendContinous.d.ts +0 -11
- package/dist/component/Legend/legendContinous.js +0 -132
- package/dist/component/Legend/legendContinous.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLgends/MD.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLgends/MD.stories.js +0 -29
- package/dist/stories/ColorLegends/ContinousLgends/MD.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLgends/NTG.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLgends/NTG.stories.js +0 -29
- package/dist/stories/ColorLegends/ContinousLgends/NTG.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLgends/PermTot.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLgends/PermTot.stories.js +0 -29
- package/dist/stories/ColorLegends/ContinousLgends/PermTot.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLgends/Permeability.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLgends/Permeability.stories.js +0 -29
- package/dist/stories/ColorLegends/ContinousLgends/Permeability.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLgends/PoroTot.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLgends/PoroTot.stories.js +0 -29
- package/dist/stories/ColorLegends/ContinousLgends/PoroTot.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLgends/Porosity.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLgends/Porosity.stories.js +0 -29
- package/dist/stories/ColorLegends/ContinousLgends/Porosity.stories.js.map +0 -1
- package/dist/stories/ColorLegends/ContinousLgends/SW.stories.d.ts +0 -7
- package/dist/stories/ColorLegends/ContinousLgends/SW.stories.js +0 -29
- package/dist/stories/ColorLegends/ContinousLgends/SW.stories.js.map +0 -1
- package/src/component/Legend/legendContinous.tsx +0 -175
- package/src/stories/ColorLegends/ContinousLgends/MD.stories.jsx +0 -31
- package/src/stories/ColorLegends/ContinousLgends/NTG.stories.jsx +0 -31
- package/src/stories/ColorLegends/ContinousLgends/PermTot.stories.jsx +0 -31
- package/src/stories/ColorLegends/ContinousLgends/Permeability.stories.jsx +0 -31
- package/src/stories/ColorLegends/ContinousLgends/PoroTot.stories.jsx +0 -31
- package/src/stories/ColorLegends/ContinousLgends/Porosity.stories.jsx +0 -31
- package/src/stories/ColorLegends/ContinousLgends/SW.stories.jsx +0 -31
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = 0;
|
|
10
|
-
const max = 1;
|
|
11
|
-
const dataObjectName = "Wells / NTG";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const name = "NTG";
|
|
14
|
-
const horizontal = true;
|
|
15
|
-
const colorName = "Rainbow";
|
|
16
|
-
|
|
17
|
-
const Template = (args) => {
|
|
18
|
-
return <ContinuousLegend {...args} />;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const NTGTemplate = Template.bind({});
|
|
22
|
-
NTGTemplate.args = {
|
|
23
|
-
min,
|
|
24
|
-
max,
|
|
25
|
-
dataObjectName,
|
|
26
|
-
position,
|
|
27
|
-
name,
|
|
28
|
-
colorName,
|
|
29
|
-
colorTables,
|
|
30
|
-
horizontal,
|
|
31
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = -999;
|
|
10
|
-
const max = 14023;
|
|
11
|
-
const dataObjectName = "Wells / PERMTOT";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const name = "PERM_TOT";
|
|
14
|
-
const horizontal = true;
|
|
15
|
-
const colorName = "Porosity";
|
|
16
|
-
|
|
17
|
-
const Template = (args) => {
|
|
18
|
-
return <ContinuousLegend {...args} />;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const PermTotTemplate = Template.bind({});
|
|
22
|
-
PermTotTemplate.args = {
|
|
23
|
-
min,
|
|
24
|
-
max,
|
|
25
|
-
dataObjectName,
|
|
26
|
-
position,
|
|
27
|
-
name,
|
|
28
|
-
colorName,
|
|
29
|
-
colorTables,
|
|
30
|
-
horizontal,
|
|
31
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = -999;
|
|
10
|
-
const max = 14023;
|
|
11
|
-
const dataObjectName = "Wells / PERM";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const name = "PERM";
|
|
14
|
-
const horizontal = true;
|
|
15
|
-
const colorName = "Permeability";
|
|
16
|
-
|
|
17
|
-
const Template = (args) => {
|
|
18
|
-
return <ContinuousLegend {...args} />;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const PermeabilityTemplate = Template.bind({});
|
|
22
|
-
PermeabilityTemplate.args = {
|
|
23
|
-
min,
|
|
24
|
-
max,
|
|
25
|
-
dataObjectName,
|
|
26
|
-
position,
|
|
27
|
-
name,
|
|
28
|
-
colorName,
|
|
29
|
-
colorTables,
|
|
30
|
-
horizontal,
|
|
31
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = 0;
|
|
10
|
-
const max = 0.35;
|
|
11
|
-
const dataObjectName = "Wells / POROTOT";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const name = "PORO";
|
|
14
|
-
const horizontal = true;
|
|
15
|
-
const colorName = "Porosity";
|
|
16
|
-
|
|
17
|
-
const Template = (args) => {
|
|
18
|
-
return <ContinuousLegend {...args} />;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const PoroTotTemplate = Template.bind({});
|
|
22
|
-
PoroTotTemplate.args = {
|
|
23
|
-
min,
|
|
24
|
-
max,
|
|
25
|
-
dataObjectName,
|
|
26
|
-
position,
|
|
27
|
-
name,
|
|
28
|
-
colorName,
|
|
29
|
-
colorTables,
|
|
30
|
-
horizontal,
|
|
31
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = 0;
|
|
10
|
-
const max = 0.35;
|
|
11
|
-
const dataObjectName = "Wells / PORO";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const name = "PORO";
|
|
14
|
-
const horizontal = true;
|
|
15
|
-
const colorName = "Porosity";
|
|
16
|
-
|
|
17
|
-
const Template = (args) => {
|
|
18
|
-
return <ContinuousLegend {...args} />;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const PorosityTemplate = Template.bind({});
|
|
22
|
-
PorosityTemplate.args = {
|
|
23
|
-
min,
|
|
24
|
-
max,
|
|
25
|
-
dataObjectName,
|
|
26
|
-
position,
|
|
27
|
-
name,
|
|
28
|
-
colorName,
|
|
29
|
-
colorTables,
|
|
30
|
-
horizontal,
|
|
31
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
|
|
3
|
-
export default {
|
|
4
|
-
component: ContinuousLegend,
|
|
5
|
-
title: "Legends/ContinousLegend",
|
|
6
|
-
};
|
|
7
|
-
import colorTables from "../../../component/color-tables.json";
|
|
8
|
-
|
|
9
|
-
const min = 0;
|
|
10
|
-
const max = 1;
|
|
11
|
-
const dataObjectName = "Wells / SW";
|
|
12
|
-
const position = [16, 10];
|
|
13
|
-
const name = "SW";
|
|
14
|
-
const horizontal = true;
|
|
15
|
-
const colorName = "Physics";
|
|
16
|
-
|
|
17
|
-
const Template = (args) => {
|
|
18
|
-
return <ContinuousLegend {...args} />;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const SWTemplate = Template.bind({});
|
|
22
|
-
SWTemplate.args = {
|
|
23
|
-
min,
|
|
24
|
-
max,
|
|
25
|
-
dataObjectName,
|
|
26
|
-
position,
|
|
27
|
-
name,
|
|
28
|
-
Physics,
|
|
29
|
-
colorTables,
|
|
30
|
-
horizontal,
|
|
31
|
-
};
|