@emerson-eps/color-tables 0.1.3 → 0.1.7
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/package.json +5 -3
- package/src/component/ColorTableTypes.ts +1 -1
- package/src/component/Legend/ContinuousLegend.tsx +2 -2
- package/src/component/Legend/DiscreteLegend.tsx +2 -2
- package/src/component/Utils/discreteLegend.ts +1 -1
- package/src/component/WelllayerTemplateTypes.ts +2 -2
- package/src/index.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emerson-eps/color-tables",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Standard library of color tables for geological domain",
|
|
5
5
|
"release": {
|
|
6
6
|
"branches": [
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
10
|
"private": false,
|
|
11
|
+
"main": "src/index.js",
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"@testing-library/jest-dom": "^5.16.1",
|
|
13
14
|
"@testing-library/react": "^11.2.7",
|
|
@@ -18,7 +19,6 @@
|
|
|
18
19
|
"react": "^17.0.2",
|
|
19
20
|
"react-dom": "^17.0.2",
|
|
20
21
|
"react-scripts": "4.0.3",
|
|
21
|
-
"typescript": "^4.5.4",
|
|
22
22
|
"web-vitals": "^1.1.2"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
@@ -56,6 +56,8 @@
|
|
|
56
56
|
"@storybook/addon-links": "^6.4.9",
|
|
57
57
|
"@storybook/react": "^6.4.9",
|
|
58
58
|
"babel-loader": "^8.1.0",
|
|
59
|
-
"semantic-release": "^18.0.1"
|
|
59
|
+
"semantic-release": "^18.0.1",
|
|
60
|
+
"ts-loader": "^9.2.6",
|
|
61
|
+
"typescript": "^4.5.4"
|
|
60
62
|
}
|
|
61
63
|
}
|
|
@@ -4,7 +4,7 @@ import { select, scaleLinear, scaleSequential, axisBottom } from "d3";
|
|
|
4
4
|
import { templateArray } from "../WelllayerTemplateTypes";
|
|
5
5
|
import { colorTablesArray } from "../ColorTableTypes";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
declare type legendProps = {
|
|
8
8
|
min: number;
|
|
9
9
|
max: number;
|
|
10
10
|
dataObjectName: string;
|
|
@@ -15,7 +15,7 @@ interface legendProps {
|
|
|
15
15
|
horizontal: boolean;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
declare type ItemColor = {
|
|
19
19
|
color: string;
|
|
20
20
|
offset: number;
|
|
21
21
|
}
|
|
@@ -4,11 +4,11 @@ import { scaleOrdinal, select } from "d3";
|
|
|
4
4
|
import { templateArray, propertiesObj } from "../WelllayerTemplateTypes";
|
|
5
5
|
import { colorTablesArray, colorTablesObj } from "../ColorTableTypes";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
declare type ItemColor = {
|
|
8
8
|
color: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
declare type colorLegendProps = {
|
|
12
12
|
discreteData: { objects: Record<string, [number[], number]> };
|
|
13
13
|
dataObjectName: string;
|
|
14
14
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare type propertiesObj = {
|
|
2
2
|
objectName: string;
|
|
3
3
|
colorTable: string;
|
|
4
4
|
context: string;
|
|
@@ -7,7 +7,7 @@ export interface propertiesObj {
|
|
|
7
7
|
|
|
8
8
|
type propertiesArr = Array<propertiesObj>;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
declare type template = {
|
|
11
11
|
name: string;
|
|
12
12
|
properties: propertiesArr;
|
|
13
13
|
}
|
package/src/index.js
ADDED