@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emerson-eps/color-tables",
3
- "version": "0.1.3",
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
  }
@@ -1,4 +1,4 @@
1
- export interface colorTablesObj {
1
+ export declare type colorTablesObj = {
2
2
  name: string;
3
3
  description: string;
4
4
  colors: [number, number, number, number][];
@@ -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
- interface legendProps {
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
- interface ItemColor {
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
- interface ItemColor {
7
+ declare type ItemColor = {
8
8
  color: string;
9
9
  }
10
10
 
11
- interface colorLegendProps {
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
- interface ItemColor {
1
+ declare type ItemColor = {
2
2
  color: string;
3
3
  }
4
4
 
@@ -1,4 +1,4 @@
1
- export interface propertiesObj {
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
- interface template {
10
+ declare type template = {
11
11
  name: string;
12
12
  properties: propertiesArr;
13
13
  }
package/src/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { ContinuousLegend } from './component/Legend/ContinuousLegend';
2
+ export { DiscreteColorLegend } from './component/Legend/DiscreteLegend';