@emerson-eps/color-tables 0.1.17 → 0.1.18

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.
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { colorTablesArray } from "../ColorTableTypes";
3
- interface colorLegendProps {
3
+ declare type colorLegendProps = {
4
4
  discreteData: {
5
5
  objects: Record<string, [number[], number]>;
6
6
  };
@@ -9,7 +9,7 @@ interface colorLegendProps {
9
9
  colorName: string;
10
10
  colorTables: colorTablesArray;
11
11
  horizontal: boolean;
12
- }
12
+ };
13
13
  export declare const DiscreteColorLegend: React.FC<colorLegendProps>;
14
14
  export declare function colorTableData(colorName: string, colorTables: colorTablesArray): [number, number, number, number][];
15
15
  export {};
@@ -1,5 +1,5 @@
1
- interface ItemColor {
1
+ declare type ItemColor = {
2
2
  color: string;
3
- }
3
+ };
4
4
  export default function legendUtil(itemColor: ItemColor[]): any;
5
5
  export {};
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { ContinuousLegend } from './component/Legend/ContinuousLegend';
2
- export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
3
2
  export { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
4
- export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
3
+ export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
5
4
  export { propertiesObj, templateArray } from './component/WelllayerTemplateTypes';
5
+ export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
6
6
  import * as colorTables from './component/color-tables.json';
7
7
  export default colorTables;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { ContinuousLegend } from './component/Legend/ContinuousLegend';
2
- export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
3
2
  export { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
3
+ export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
4
4
  import * as colorTables from './component/color-tables.json';
5
5
  export default colorTables;
6
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,mCAAmC,CAAC;AAGpF,OAAO,KAAK,WAAW,MAAM,+BAA+B,CAAC;AAC7D,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAGxF,OAAO,KAAK,WAAW,MAAM,+BAA+B,CAAC;AAC7D,eAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emerson-eps/color-tables",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Standard library of color tables for geological domain",
5
5
  "release": {
6
6
  "branches": [
@@ -3,11 +3,11 @@ import legendUtil from "../Utils/discreteLegend";
3
3
  import { scaleOrdinal, select } from "d3";
4
4
  import { colorTablesArray, colorTablesObj } from "../ColorTableTypes";
5
5
 
6
- interface ItemColor {
6
+ declare type ItemColor = {
7
7
  color: string;
8
8
  }
9
9
 
10
- interface colorLegendProps {
10
+ declare type colorLegendProps = {
11
11
  discreteData: { objects: Record<string, [number[], number]> };
12
12
  dataObjectName: string;
13
13
  position: number[];
@@ -1,4 +1,4 @@
1
- interface ItemColor {
1
+ declare type ItemColor = {
2
2
  color: string;
3
3
  }
4
4
 
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { ContinuousLegend } from './component/Legend/ContinuousLegend';
2
- export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
3
2
  export { colorsArray, rgbValues, RGBToHex} from './component/Utils/continousLegend';
4
- export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
3
+ export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
5
4
  export { propertiesObj, templateArray } from './component/WelllayerTemplateTypes';
5
+ export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
6
6
  import * as colorTables from './component/color-tables.json';
7
7
  export default colorTables;