@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.
- package/dist/component/Legend/DiscreteLegend.d.ts +2 -2
- package/dist/component/Utils/discreteLegend.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/component/Legend/DiscreteLegend.tsx +2 -2
- package/src/component/Utils/discreteLegend.ts +1 -1
- package/src/index.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { colorTablesArray } from "../ColorTableTypes";
|
|
3
|
-
|
|
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 {};
|
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 {
|
|
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,
|
|
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
|
@@ -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
|
-
|
|
6
|
+
declare type ItemColor = {
|
|
7
7
|
color: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
declare type colorLegendProps = {
|
|
11
11
|
discreteData: { objects: Record<string, [number[], number]> };
|
|
12
12
|
dataObjectName: string;
|
|
13
13
|
position: number[];
|
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 {
|
|
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;
|