@emerson-eps/color-tables
Advanced tools
Comparing version 0.2.17 to 0.2.18
@@ -24,8 +24,4 @@ import * as React from "react"; | ||
React.createElement(Accordion.Panel, null, | ||
React.createElement(ColorSelectorWrapper, { useColorTableColors: false, newColorScaleData: props === null || props === void 0 ? void 0 : props.newColorScaleData })))), | ||
React.createElement(Accordion, null, | ||
React.createElement(Accordion.Item, null, | ||
React.createElement(Accordion.Header, null, "Custom Color Scale"), | ||
React.createElement(Accordion.Panel, null, "Custom Content")))))))); | ||
React.createElement(ColorSelectorWrapper, { useColorTableColors: false, newColorScaleData: props === null || props === void 0 ? void 0 : props.newColorScaleData }))))))))); | ||
}; | ||
//# sourceMappingURL=ColorSelectorAccordion.js.map |
import * as React from "react"; | ||
import { useRef } from "react"; | ||
import { RGBToHex } from "../Utils/continousLegend"; | ||
import { RGBToHex } from "../Utils/legendCommonFunction"; | ||
import { d3ColorScales } from "../Utils/d3ColorScale"; | ||
@@ -5,0 +5,0 @@ import { select, range } from "d3"; |
@@ -39,3 +39,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { useRef } from "react"; | ||
import { RGBToHex, colorsArray } from "../Utils/continousLegend"; | ||
import { RGBToHex, colorsArray } from "../Utils/legendCommonFunction"; | ||
import { select, scaleLinear, scaleSequential, axisBottom, axisRight } from "d3"; | ||
@@ -163,2 +163,3 @@ import { d3ColorScales } from "../Utils/d3ColorScale"; | ||
svgLegend | ||
.append("div") | ||
.append("text") | ||
@@ -178,3 +179,3 @@ .attr("class", "legendTitle") | ||
.attr("width", 25) | ||
.attr("height", "150") | ||
.attr("height", "149") | ||
.style("fill", "url(#linear-gradient)"); | ||
@@ -189,3 +190,3 @@ } | ||
.attr("y", 30) | ||
.attr("width", "150") | ||
.attr("width", "149") | ||
.attr("height", 25) | ||
@@ -192,0 +193,0 @@ .style("fill", "url(#linear-gradient)"); |
@@ -41,3 +41,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { select, scaleOrdinal } from "d3"; | ||
import { colorsArray } from "../Utils/continousLegend"; | ||
import { colorsArray } from "../Utils/legendCommonFunction"; | ||
import { d3ColorScales } from "../Utils/d3ColorScale"; | ||
@@ -44,0 +44,0 @@ export var DiscreteColorLegend = function (_a) { |
import { ColorSelectorAccordion } from './component/ColorSelector/ColorSelectorAccordion'; | ||
import { ColorLegend } from './component/Legend/ColorLegend'; | ||
import { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend'; | ||
import { colorsArray, rgbValues, RGBToHex } from './component/Utils/legendCommonFunction'; | ||
import { d3ColorScales } from './component/Utils/d3ColorScale'; | ||
@@ -5,0 +5,0 @@ import { colorTablesObj, colorTablesArray } from './component/colorTableTypes'; |
import { ColorSelectorAccordion } from './component/ColorSelector/ColorSelectorAccordion'; | ||
import { ColorLegend } from './component/Legend/ColorLegend'; | ||
import { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend'; | ||
import { colorsArray, rgbValues, RGBToHex } from './component/Utils/legendCommonFunction'; | ||
import { d3ColorScales } from './component/Utils/d3ColorScale'; | ||
@@ -5,0 +5,0 @@ import { ContinuousLegend } from './component/Legend/ContinuousLegend'; |
{ | ||
"name": "@emerson-eps/color-tables", | ||
"version": "0.2.17", | ||
"version": "0.2.18", | ||
"description": "Standard library of color tables for geological domain", | ||
@@ -61,3 +61,3 @@ "release": { | ||
"@testing-library/react": "^12.1.2", | ||
"@testing-library/user-event": "^13.5.0", | ||
"@testing-library/user-event": "^14.1.1", | ||
"@types/d3": "^7.1.0", | ||
@@ -64,0 +64,0 @@ "@types/styled-components": "^5.1.23", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104377
1466