@emerson-eps/color-tables 0.2.7 → 0.2.10

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.
Files changed (28) hide show
  1. package/dist/component/ColorSelector/ColorSelectorComponent.d.ts +2 -2
  2. package/dist/component/ColorSelector/ColorSelectorWrapper.d.ts +2 -2
  3. package/dist/component/ColorTableTypes.d.ts +2 -2
  4. package/dist/component/Legend/ColorLegend.d.ts +4 -4
  5. package/dist/component/Legend/ColorLegend.js +1 -2
  6. package/dist/component/Legend/ColorLegend.js.map +1 -1
  7. package/dist/component/Legend/ContinuousLegend.d.ts +2 -2
  8. package/dist/component/Legend/DiscreteLegend.d.ts +2 -2
  9. package/dist/component/Utils/discreteLegend.d.ts +2 -2
  10. package/dist/component/Utils/discreteLegend.js +0 -1
  11. package/dist/component/Utils/discreteLegend.js.map +1 -1
  12. package/dist/index.d.ts +10 -5
  13. package/dist/index.js +9 -4
  14. package/dist/index.js.map +1 -1
  15. package/dist/stories/ColorLegends/SingleComponent/Single.stories.d.ts +1 -1
  16. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js +1 -1
  17. package/dist/stories/ColorLegends/SingleComponent/Single.stories.js.map +1 -1
  18. package/package.json +1 -1
  19. package/src/component/ColorSelector/ColorSelectorComponent.tsx +2 -2
  20. package/src/component/ColorSelector/ColorSelectorWrapper.tsx +1 -1
  21. package/src/component/ColorTableTypes.ts +1 -1
  22. package/src/component/Legend/ColorLegend.tsx +3 -5
  23. package/src/component/Legend/ContinuousLegend.tsx +2 -2
  24. package/src/component/Legend/DiscreteLegend.tsx +2 -2
  25. package/src/component/Utils/discreteLegend.ts +1 -1
  26. package/src/index.ts +26 -5
  27. package/src/stories/ColorLegends/SingleComponent/Single.stories.jsx +1 -1
  28. package/tsconfig.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { colorTablesArray } from "../ColorTableTypes";
3
- interface legendProps {
3
+ declare type legendProps = {
4
4
  position: number[];
5
5
  colorsObject?: any;
6
6
  legendColor?: any;
@@ -10,7 +10,7 @@ interface legendProps {
10
10
  valueIndex?: any;
11
11
  colorScaleData: any;
12
12
  getColorMapname?: any | null;
13
- }
13
+ };
14
14
  export declare const ColorSelectorComponent: React.FC<legendProps>;
15
15
  export declare function colorTableData(colorName: string, colorTables: colorTablesArray): [number, number, number, number][];
16
16
  export {};
@@ -1,8 +1,8 @@
1
1
  import * as React from "react";
2
- interface legendProps {
2
+ declare type legendProps = {
3
3
  useColorTableColors: boolean;
4
4
  useD3Colors: boolean;
5
5
  colorScaleObject: any;
6
- }
6
+ };
7
7
  export declare const ColorSelectorWrapper: React.FC<legendProps>;
8
8
  export {};
@@ -1,6 +1,6 @@
1
- export interface colorTablesObj {
1
+ export declare type colorTablesObj = {
2
2
  name: string;
3
3
  discrete: boolean;
4
4
  colors: [number, number, number, number][];
5
- }
5
+ };
6
6
  export declare type colorTablesArray = Array<colorTablesObj>;
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- interface ColorLegendProps {
2
+ declare type ColorLegendProps = {
3
3
  colorTables: any;
4
4
  min: number;
5
5
  max: number;
@@ -11,6 +11,6 @@ interface ColorLegendProps {
11
11
  objects: Record<string, [number[], number]>;
12
12
  };
13
13
  getColorMapname?: any;
14
- }
15
- declare const ColorLegend: React.FC<ColorLegendProps>;
16
- export default ColorLegend;
14
+ };
15
+ export declare const ColorLegend: React.FC<ColorLegendProps>;
16
+ export {};
@@ -4,7 +4,7 @@ import { ContinuousLegend } from "./ContinuousLegend";
4
4
  import { useCallback } from "react";
5
5
  import { ColorSelectorAccordion } from "../ColorSelector/ColorSelectorAccordion";
6
6
  // Todo: Adapt it for other layers too
7
- var ColorLegend = function (_a) {
7
+ export var ColorLegend = function (_a) {
8
8
  var position = _a.position, horizontal = _a.horizontal, colorTables = _a.colorTables, min = _a.min, max = _a.max, dataObjectName = _a.dataObjectName, colorName = _a.colorName, discreteData = _a.discreteData, getColorMapname = _a.getColorMapname;
9
9
  var _b = React.useState(false), isToggled = _b[0], setIsToggled = _b[1];
10
10
  var handleClick = useCallback(function () {
@@ -31,5 +31,4 @@ var ColorLegend = function (_a) {
31
31
  !isCont && (React.createElement(DiscreteColorLegend, { discreteData: discreteData, dataObjectName: dataObjectName, position: position, colorName: colorName, colorTables: colorTables, horizontal: horizontal, updateLegend: updateLegend }))),
32
32
  React.createElement("div", null, isToggled && (React.createElement(ColorSelectorAccordion, { colorScaleObject: colorScaleObject, isHorizontal: horizontal })))));
33
33
  };
34
- export default ColorLegend;
35
34
  //# sourceMappingURL=ColorLegend.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColorLegend.js","sourceRoot":"","sources":["../../../src/component/Legend/ColorLegend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAcjF,sCAAsC;AACtC,IAAM,WAAW,GAA+B,UAAC,EAU9B;QATf,QAAQ,cAAA,EACR,UAAU,gBAAA,EACV,WAAW,iBAAA,EACX,GAAG,SAAA,EACH,GAAG,SAAA,EACH,cAAc,oBAAA,EACd,SAAS,eAAA,EACT,YAAY,kBAAA,EACZ,eAAe,qBAAA;IAGT,IAAA,KAA4B,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAhD,SAAS,QAAA,EAAE,YAAY,QAAyB,CAAC;IACxD,IAAM,WAAW,GAAG,WAAW,CAAC;QAC5B,YAAY,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC,EAAE,EAAE,CAAC,CAAC;IAED,IAAA,KAAuC,KAAK,CAAC,QAAQ,CAAC,EAAS,CAAC,EAA/D,YAAY,QAAA,EAAE,oB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,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;SACzC;QACD,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC3B,SAAS,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACH;QACI,6BAAK,OAAO,EAAE,WAAW;YACpB,MAAM,IAAI,CACP,oBAAC,gBAAgB,IACb,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,GAC5B,CACL;YACA,CAAC,MAAM,IAAI,CACR,oBAAC,mBAAmB,IAChB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,GAC5B,CACL,CACC;QACN,iCACK,SAAS,IAAI,CACV,oBAAC,sBAAsB,IAAC,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,GAAI,CAC3F,CACC,CACJ,CAET,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { colorTablesArray } from "../ColorTableTypes";
3
- interface legendProps {
3
+ declare type legendProps = {
4
4
  min: number;
5
5
  max: number;
6
6
  dataObjectName: string;
@@ -9,6 +9,6 @@ interface legendProps {
9
9
  colorTables: colorTablesArray | string;
10
10
  horizontal?: boolean | null;
11
11
  updateLegend?: any;
12
- }
12
+ };
13
13
  export declare const ContinuousLegend: React.FC<legendProps>;
14
14
  export {};
@@ -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
  };
@@ -10,7 +10,7 @@ interface colorLegendProps {
10
10
  colorTables: colorTablesArray | string;
11
11
  horizontal?: boolean | null;
12
12
  updateLegend?: any;
13
- }
13
+ };
14
14
  export declare const DiscreteColorLegend: React.FC<colorLegendProps>;
15
15
  export declare function colorTableData(colorName: string, colorTables: colorTablesArray): [number, number, number, number][];
16
16
  export declare function RGBToHex(rgb: number[]): string;
@@ -1,5 +1,5 @@
1
- interface ItemColor {
1
+ declare type ItemColor = {
2
2
  color: any;
3
- }
3
+ };
4
4
  export default function discreteLegendUtil(itemColor: ItemColor[], isSelectorLegend?: boolean, horizontal?: any): any;
5
5
  export {};
@@ -1,4 +1,3 @@
1
- ;
2
1
  // eslint-disable-next-line
3
2
  export default function discreteLegendUtil(itemColor, isSelectorLegend, horizontal) {
4
3
  // var cellWidth = 22;
@@ -1 +1 @@
1
- {"version":3,"file":"discreteLegend.js","sourceRoot":"","sources":["../../../src/component/Utils/discreteLegend.ts"],"names":[],"mappings":"AAEC,CAAC;AAEF,2BAA2B;AAC3B,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,SAAsB,EAAE,gBAA0B,EAAE,UAAgB;IAC3G,sBAAsB;IACtB,uBAAuB;IAEvB,0BAA0B;IAC1B,sBAAsB;IACtB,uBAAuB;IACvB,IAAI;IAEJ,IAAM,YAAY,GAAgB,EAAE,CAAC;IAErC,2BAA2B;IAC3B,SAAS,MAAM,CAAC,CAAM;QAClB,SAAS,UAAU;YACf,yBAAyB;YACzB,oCAAoC;YACpC,yBAAyB;YACzB,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC;iBACvB,IAAI,CAAC,SAAS,CAAC;iBACf,KAAK,EAAE;iBACP,MAAM,CAAC,GAAG,CAAC;iBACX,MAAM,CAAC,MAAM,CAAC;iBACd,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC;iBAC1B,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC;i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,SAAS;YACT,IAAI;QACR,CAAC;QAED,8BAA8B;QAC9B,2BAA2B;QAC3B,4CAA4C;QAC5C,mCAAmC;QACnC,0BAA0B;QAC1B,eAAe;QACf,mBAAmB;QACnB,oCAAoC;QACpC,IAAI;QAEJ,UAAU,EAAE,CAAC;IACjB,CAAC;IACD,2BAA2B;IAC3B,MAAM,CAAC,UAAU,GAAG,UAAU,QAAa;QACvC,2BAA2B;QAC3B,IAAI,KAAK,GAAQ,EAAE,CAAC;QACpB,KAAK,GAAG,QAAQ,CAAC;QAEjB,KAAK,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,UAAU,EAAO;YACpC,IAAM,UAAU,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;YACnD,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAClB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,11 @@
1
- export { ContinuousLegend } from './component/Legend/ContinuousLegend';
2
- export { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
3
- export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
4
- export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
1
+ import { ColorSelectorAccordion } from './component/ColorSelector/ColorSelectorAccordion';
2
+ import { ColorSelectorComponent } from './component/ColorSelector/ColorSelectorComponent';
3
+ import { ColorSelectorWrapper } from './component/ColorSelector/ColorSelectorWrapper';
4
+ import { ContinuousLegend } from './component/Legend/ContinuousLegend';
5
+ import { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
6
+ import { ColorLegend } from './component/Legend/ColorLegend';
7
+ import { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
8
+ import { d3ColorScales } from './component/Utils/d3ColorScale';
9
+ import { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
5
10
  import * as colorTables from './component/color-tables.json';
6
- export default colorTables;
11
+ export { ColorSelectorAccordion, ColorSelectorComponent, ColorSelectorWrapper, ContinuousLegend, colorTableData, DiscreteColorLegend, ColorLegend, colorsArray, rgbValues, RGBToHex, d3ColorScales, colorTablesObj, colorTablesArray, colorTables, };
package/dist/index.js CHANGED
@@ -1,6 +1,11 @@
1
- export { ContinuousLegend } from './component/Legend/ContinuousLegend';
2
- export { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
3
- export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
1
+ import { ColorSelectorAccordion } from './component/ColorSelector/ColorSelectorAccordion';
2
+ import { ColorSelectorComponent } from './component/ColorSelector/ColorSelectorComponent';
3
+ import { ColorSelectorWrapper } from './component/ColorSelector/ColorSelectorWrapper';
4
+ import { ContinuousLegend } from './component/Legend/ContinuousLegend';
5
+ import { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
6
+ import { ColorLegend } from './component/Legend/ColorLegend';
7
+ import { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
8
+ import { d3ColorScales } from './component/Utils/d3ColorScale';
4
9
  import * as colorTables from './component/color-tables.json';
5
- export default colorTables;
10
+ export { ColorSelectorAccordion, ColorSelectorComponent, ColorSelectorWrapper, ContinuousLegend, colorTableData, DiscreteColorLegend, ColorLegend, colorsArray, rgbValues, RGBToHex, d3ColorScales, colorTables, };
6
11
  //# 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,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAC,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExF,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,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,KAAK,WAAW,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EACH,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,SAAS,EACT,QAAQ,EACR,aAAa,EAGb,WAAW,GACd,CAAC"}
@@ -4,4 +4,4 @@ declare namespace _default {
4
4
  }
5
5
  export default _default;
6
6
  export const legendWithSelector: any;
7
- import ColorLegend from "../../../component/Legend/ColorLegend";
7
+ import { ColorLegend } from "../../../component/Legend/ColorLegend";
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import React from "react";
13
13
  import colorTables from "../../../component/color-tables.json";
14
- import ColorLegend from "../../../component/Legend/ColorLegend";
14
+ import { ColorLegend } from "../../../component/Legend/ColorLegend";
15
15
  export default {
16
16
  component: ColorLegend,
17
17
  title: "Legends/SingleComponent",
@@ -1 +1 @@
1
- {"version":3,"file":"Single.stories.js","s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d,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CACpB,CAAC;AAEF,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,WAAW,eAAK,IAAI,EAAI,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,GAAG;IACtB,GAAG,KAAA;IACH,GAAG,KAAA;IACH,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,UAAU,YAAA;IACV,SAAS,WAAA;IACT,WAAW,aAAA;IACX,YAAY,cAAA;CACf,CAAC"}
1
+ {"version":3,"file":"Single.stories.js","sourceRoot":"","sources":["../../../../src/stories/ColorLegends/SingleComponent/Single.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAC,WAAW,EAAC,MAAM,uCAAuC,CAAC;AAElE,eAAe;IACX,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,yBAAyB;CACnC,CAAC;AAEF,4BAA4B;AAC5B,IAAM,GAAG,GAAG,CAAC,CAAC;AACd,IAAM,GAAG,GAAG,IAAI,CAAC;AACjB,IAAM,cAAc,GAAG,QAAQ,CAAC;AAChC,IAAM,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1B,IAAM,UAAU,GAAG,IAAI,CAAC;AACxB,IAAM,SAAS,GAAG,SAAS,CAAC;AAE5B,yBAAyB;AACzB,IAAM,YAAY,GAAG;IACjB,WAAW,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IACb,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACd,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;CACpB,CAAC;AAEF,IAAM,QAAQ,GAAG,UAAC,IAAI;IAClB,OAAO,oBAAC,WAAW,eAAK,IAAI,EAAI,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACpD,kBAAkB,CAAC,IAAI,GAAG;IACtB,GAAG,KAAA;IACH,GAAG,KAAA;IACH,cAAc,gBAAA;IACd,QAAQ,UAAA;IACR,UAAU,YAAA;IACV,SAAS,WAAA;IACT,WAAW,aAAA;IACX,YAAY,cAAA;CACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emerson-eps/color-tables",
3
- "version": "0.2.7",
3
+ "version": "0.2.10",
4
4
  "description": "Standard library of color tables for geological domain",
5
5
  "release": {
6
6
  "branches": [
@@ -8,7 +8,7 @@ import { colorTablesArray, colorTablesObj } from "../ColorTableTypes";
8
8
  import discreteLegendUtil from "../Utils/discreteLegend";
9
9
  import { color } from "d3-color";
10
10
 
11
- interface legendProps {
11
+ declare type legendProps = {
12
12
  position: number[];
13
13
  colorsObject?: any;
14
14
  legendColor?: any;
@@ -20,7 +20,7 @@ interface legendProps {
20
20
  getColorMapname?: any | null;
21
21
  }
22
22
 
23
- interface ItemColor {
23
+ declare type ItemColor = {
24
24
  color: string;
25
25
  offset?: number;
26
26
  }
@@ -9,7 +9,7 @@ const continuosD3ColorData: any = [];
9
9
  const discreteColorData: any = [];
10
10
  const discreteD3ColorData: any = [];
11
11
 
12
- interface legendProps {
12
+ declare type legendProps = {
13
13
  useColorTableColors: boolean,
14
14
  useD3Colors: boolean,
15
15
  colorScaleObject: any
@@ -1,4 +1,4 @@
1
- export interface colorTablesObj {
1
+ export declare type colorTablesObj = {
2
2
  name: string;
3
3
  discrete: boolean;
4
4
  colors: [number, number, number, number][];
@@ -4,7 +4,7 @@ import { ContinuousLegend } from "./ContinuousLegend";
4
4
  import {useCallback} from "react";
5
5
  import { ColorSelectorAccordion } from "../ColorSelector/ColorSelectorAccordion";
6
6
 
7
- interface ColorLegendProps {
7
+ declare type ColorLegendProps = {
8
8
  colorTables: any;
9
9
  min: number;
10
10
  max: number;
@@ -17,7 +17,7 @@ interface ColorLegendProps {
17
17
  }
18
18
 
19
19
  // Todo: Adapt it for other layers too
20
- const ColorLegend: React.FC<ColorLegendProps> = ({
20
+ export const ColorLegend: React.FC<ColorLegendProps> = ({
21
21
  position,
22
22
  horizontal,
23
23
  colorTables,
@@ -86,6 +86,4 @@ const ColorLegend: React.FC<ColorLegendProps> = ({
86
86
  </div>
87
87
 
88
88
  );
89
- };
90
-
91
- export default ColorLegend;
89
+ };
@@ -4,7 +4,7 @@ import { RGBToHex, colorsArray } from "../Utils/continousLegend";
4
4
  import { select, scaleLinear, scaleSequential, axisBottom, axisRight } from "d3";
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
  updateLegend?: any;
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 discreteLegendUtil from "../Utils/discreteLegend";
4
4
  import { select, scaleOrdinal } from "d3";
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
  position?: number[] | null;
@@ -1,4 +1,4 @@
1
- interface ItemColor {
1
+ declare type ItemColor = {
2
2
  color: any;
3
3
  };
4
4
 
package/src/index.ts CHANGED
@@ -1,6 +1,27 @@
1
- export { ContinuousLegend } from './component/Legend/ContinuousLegend';
2
- export { colorsArray, rgbValues, RGBToHex} from './component/Utils/continousLegend';
3
- export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
4
- export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
1
+ import { ColorSelectorAccordion } from './component/ColorSelector/ColorSelectorAccordion';
2
+ import { ColorSelectorComponent } from './component/ColorSelector/ColorSelectorComponent';
3
+ import { ColorSelectorWrapper } from './component/ColorSelector/ColorSelectorWrapper';
4
+ import { ContinuousLegend } from './component/Legend/ContinuousLegend';
5
+ import { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
6
+ import { ColorLegend } from './component/Legend/ColorLegend';
7
+ import { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
8
+ import { d3ColorScales } from './component/Utils/d3ColorScale';
9
+ import { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
5
10
  import * as colorTables from './component/color-tables.json';
6
- export default colorTables;
11
+
12
+ export {
13
+ ColorSelectorAccordion,
14
+ ColorSelectorComponent,
15
+ ColorSelectorWrapper,
16
+ ContinuousLegend,
17
+ colorTableData,
18
+ DiscreteColorLegend,
19
+ ColorLegend,
20
+ colorsArray,
21
+ rgbValues,
22
+ RGBToHex,
23
+ d3ColorScales,
24
+ colorTablesObj,
25
+ colorTablesArray,
26
+ colorTables,
27
+ };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import colorTables from "../../../component/color-tables.json";
3
- import ColorLegend from "../../../component/Legend/ColorLegend";
3
+ import {ColorLegend} from "../../../component/Legend/ColorLegend";
4
4
 
5
5
  export default {
6
6
  component: ColorLegend,
package/tsconfig.json CHANGED
@@ -18,6 +18,6 @@
18
18
  "noUnusedParameters": true,
19
19
  "resolveJsonModule": true,
20
20
  },
21
- "include": ["src"],
21
+ "include": ["src", "./src/custom.d.ts"],
22
22
  "exclude": ["node_modules"]
23
23
  }