@emerson-eps/color-tables 0.2.9 → 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.
@@ -12,5 +12,5 @@ declare type ColorLegendProps = {
12
12
  };
13
13
  getColorMapname?: any;
14
14
  };
15
- declare const ColorLegend: React.FC<ColorLegendProps>;
16
- export default ColorLegend;
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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E,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"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,11 @@
1
- import { ContinuousLegend } from './component/Legend/ContinuousLegend';
2
- import { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
3
- import { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
4
- import { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
5
1
  import { ColorSelectorAccordion } from './component/ColorSelector/ColorSelectorAccordion';
6
2
  import { ColorSelectorComponent } from './component/ColorSelector/ColorSelectorComponent';
7
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';
8
10
  import * as colorTables from './component/color-tables.json';
9
- export { ContinuousLegend, colorsArray, rgbValues, RGBToHex, colorTableData, DiscreteColorLegend, colorTablesObj, colorTablesArray, ColorSelectorAccordion, ColorSelectorComponent, ColorSelectorWrapper, colorTables, };
11
+ export { ColorSelectorAccordion, ColorSelectorComponent, ColorSelectorWrapper, ContinuousLegend, colorTableData, DiscreteColorLegend, ColorLegend, colorsArray, rgbValues, RGBToHex, d3ColorScales, colorTablesObj, colorTablesArray, colorTables, };
package/dist/index.js CHANGED
@@ -1,9 +1,11 @@
1
- import { ContinuousLegend } from './component/Legend/ContinuousLegend';
2
- import { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
3
- import { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
4
1
  import { ColorSelectorAccordion } from './component/ColorSelector/ColorSelectorAccordion';
5
2
  import { ColorSelectorComponent } from './component/ColorSelector/ColorSelectorComponent';
6
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';
7
9
  import * as colorTables from './component/color-tables.json';
8
- export { ContinuousLegend, colorsArray, rgbValues, RGBToHex, colorTableData, DiscreteColorLegend, ColorSelectorAccordion, ColorSelectorComponent, ColorSelectorWrapper, colorTables, };
10
+ export { ColorSelectorAccordion, ColorSelectorComponent, ColorSelectorWrapper, ContinuousLegend, colorTableData, DiscreteColorLegend, ColorLegend, colorsArray, rgbValues, RGBToHex, d3ColorScales, colorTables, };
9
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,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,KAAK,WAAW,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EACH,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,QAAQ,EACR,cAAc,EACd,mBAAmB,EAGnB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,GACd,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","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,WAAW,MAAM,uCAAuC,CAAC;AAEhE,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"}
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.9",
3
+ "version": "0.2.10",
4
4
  "description": "Standard library of color tables for geological domain",
5
5
  "release": {
6
6
  "branches": [
@@ -17,7 +17,7 @@ declare type 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
+ };
package/src/index.ts CHANGED
@@ -1,23 +1,27 @@
1
- import { ContinuousLegend } from './component/Legend/ContinuousLegend';
2
- import { colorsArray, rgbValues, RGBToHex} from './component/Utils/continousLegend';
3
- import { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
4
- import { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
5
1
  import { ColorSelectorAccordion } from './component/ColorSelector/ColorSelectorAccordion';
6
2
  import { ColorSelectorComponent } from './component/ColorSelector/ColorSelectorComponent';
7
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';
8
10
  import * as colorTables from './component/color-tables.json';
9
11
 
10
12
  export {
13
+ ColorSelectorAccordion,
14
+ ColorSelectorComponent,
15
+ ColorSelectorWrapper,
11
16
  ContinuousLegend,
17
+ colorTableData,
18
+ DiscreteColorLegend,
19
+ ColorLegend,
12
20
  colorsArray,
13
21
  rgbValues,
14
22
  RGBToHex,
15
- colorTableData,
16
- DiscreteColorLegend,
23
+ d3ColorScales,
17
24
  colorTablesObj,
18
25
  colorTablesArray,
19
- ColorSelectorAccordion,
20
- ColorSelectorComponent,
21
- ColorSelectorWrapper,
22
26
  colorTables,
23
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,