@emerson-eps/color-tables 0.4.1 → 0.4.2
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/ColorLegend.d.ts +1 -0
- package/dist/component/Legend/ColorLegend.js +2 -2
- package/dist/component/Legend/ColorLegend.js.map +1 -1
- package/dist/component/Legend/ContinuousLegend.d.ts +4 -0
- package/dist/component/Legend/ContinuousLegend.js +26 -10
- package/dist/component/Legend/ContinuousLegend.js.map +1 -1
- package/dist/component/Legend/ContinuousLegend.stories.d.ts +1 -0
- package/dist/component/Utils/legendCommonFunction.stories.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { ColorSelectorAccordion } from "../ColorSelector/ColorSelectorAccordion"
|
|
|
6
6
|
import { d3ColorScales } from "../Utils/d3ColorScale";
|
|
7
7
|
// Todo: Adapt it for other layers too
|
|
8
8
|
export var ColorLegend = function (_a) {
|
|
9
|
-
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, getColorName = _a.getColorName;
|
|
9
|
+
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, getColorName = _a.getColorName, reverseRange = _a.reverseRange;
|
|
10
10
|
var generateUniqueId = Math.ceil(Math.random() * 9999).toString();
|
|
11
11
|
var divRef = useRef(null);
|
|
12
12
|
var _b = React.useState(false), isOpen = _b[0], setIsOpen = _b[1];
|
|
@@ -41,7 +41,7 @@ export var ColorLegend = function (_a) {
|
|
|
41
41
|
}, [getColorName]);
|
|
42
42
|
return (React.createElement("div", null,
|
|
43
43
|
React.createElement("div", { ref: divRef, onClick: toggleColorSelector },
|
|
44
|
-
isCont === true && (React.createElement(ContinuousLegend, { min: min, max: max, dataObjectName: dataObjectName, position: position, colorName: colorName, horizontal: horizontal, getColorScaleData: getColorScaleData, id: generateUniqueId, colorTables: colorTables })),
|
|
44
|
+
isCont === true && (React.createElement(ContinuousLegend, { min: min, max: max, dataObjectName: dataObjectName, position: position, colorName: colorName, horizontal: horizontal, getColorScaleData: getColorScaleData, id: generateUniqueId, colorTables: colorTables, reverseRange: reverseRange })),
|
|
45
45
|
isCont === false && (React.createElement(DiscreteColorLegend, { discreteData: discreteData, dataObjectName: dataObjectName, position: position, colorName: colorName, horizontal: horizontal, getColorScaleData: getColorScaleData, id: generateUniqueId, colorTables: colorTables }))),
|
|
46
46
|
React.createElement("div", null, isOpen && (React.createElement(ColorSelectorAccordion, { newColorScaleData: getSelectedColorScale, isHorizontal: horizontal, colorTables: colorTables })))));
|
|
47
47
|
};
|
|
@@ -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,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;
|
|
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,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,sBA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C,mBAAmB,IAClB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,EAAE,EAAE,gBAAgB,EACpB,WAAW,EAAE,WAAW,GACxB,CACH,CACG;QACN,iCACG,MAAM,IAAI,CACT,oBAAC,sBAAsB,IACrB,iBAAiB,EAAE,qBAAqB,EACxC,YAAY,EAAE,UAAU,EACxB,WAAW,EAAE,WAAW,GACxB,CACH,CACG,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -49,6 +49,10 @@ declare type continuousLegendProps = {
|
|
|
49
49
|
* If a colorMapFunction is used, then the colorTable file is not needed
|
|
50
50
|
*/
|
|
51
51
|
colorMapFunction?: any;
|
|
52
|
+
/**
|
|
53
|
+
* Reverse the range(min and max)
|
|
54
|
+
*/
|
|
55
|
+
reverseRange?: boolean;
|
|
52
56
|
};
|
|
53
57
|
export declare const ContinuousLegend: React.FC<continuousLegendProps>;
|
|
54
58
|
export {};
|
|
@@ -43,7 +43,7 @@ import { color } from "d3-color";
|
|
|
43
43
|
import { range } from "d3";
|
|
44
44
|
import defaultColorTables from "../color-tables.json";
|
|
45
45
|
export var ContinuousLegend = function (_a) {
|
|
46
|
-
var min = _a.min, max = _a.max, dataObjectName = _a.dataObjectName, position = _a.position, _b = _a.colorName, colorName = _b === void 0 ? "Rainbow" : _b, horizontal = _a.horizontal, getColorScaleData = _a.getColorScaleData, id = _a.id, _c = _a.colorTables, colorTables = _c === void 0 ? defaultColorTables : _c, colorMapFunction = _a.colorMapFunction;
|
|
46
|
+
var min = _a.min, max = _a.max, dataObjectName = _a.dataObjectName, position = _a.position, _b = _a.colorName, colorName = _b === void 0 ? "Rainbow" : _b, horizontal = _a.horizontal, getColorScaleData = _a.getColorScaleData, id = _a.id, _c = _a.colorTables, colorTables = _c === void 0 ? defaultColorTables : _c, colorMapFunction = _a.colorMapFunction, reverseRange = _a.reverseRange;
|
|
47
47
|
var generateUniqueId = Math.ceil(Math.random() * 9999).toString();
|
|
48
48
|
var divRef = useRef(null);
|
|
49
49
|
React.useEffect(function () {
|
|
@@ -54,7 +54,7 @@ export var ContinuousLegend = function (_a) {
|
|
|
54
54
|
}
|
|
55
55
|
function continuousLegend() {
|
|
56
56
|
return __awaiter(this, void 0, void 0, function () {
|
|
57
|
-
var itemColor, dataSet, res, legendColors, arrayData_1, d3ColorArrays_1, data, getColorTableScale_1, maxValue_1, rgbValue, i, value, colorScale, svgLegend, defs,
|
|
57
|
+
var itemColor, dataSet, res, legendColors, arrayData_1, d3ColorArrays_1, data, getColorTableScale_1, maxValue_1, rgbValue, i, value, colorScale, svgLegend, defs, currentIndex, linearGradient, xLeg, yLeg, horizontalAxisLeg, VerticalAxisLeg, error_1;
|
|
58
58
|
return __generator(this, function (_a) {
|
|
59
59
|
switch (_a.label) {
|
|
60
60
|
case 0:
|
|
@@ -138,18 +138,29 @@ export var ContinuousLegend = function (_a) {
|
|
|
138
138
|
.style("background-color", "#ffffffcc")
|
|
139
139
|
.style("border-radius", "5px");
|
|
140
140
|
defs = svgLegend.append("defs");
|
|
141
|
-
linearGradient = void 0;
|
|
142
141
|
svgLegend
|
|
143
142
|
.attr("width", horizontal ? "190" : "77")
|
|
144
143
|
.attr("height", horizontal ? "70" : "173");
|
|
145
144
|
currentIndex = "linear-gradient-" + id + "0";
|
|
146
145
|
linearGradient = defs
|
|
147
146
|
.append("linearGradient")
|
|
148
|
-
.attr("id", currentIndex)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
.attr("id", currentIndex);
|
|
148
|
+
// append a linearGradient element to the defs and give it a unique id
|
|
149
|
+
if ((horizontal && !reverseRange) || (!horizontal && reverseRange)) {
|
|
150
|
+
linearGradient
|
|
151
|
+
.attr("x1", "0%")
|
|
152
|
+
.attr("x2", horizontal ? "100%" : "0%")
|
|
153
|
+
.attr("y1", "0%")
|
|
154
|
+
.attr("y2", horizontal ? "0%" : "100%");
|
|
155
|
+
}
|
|
156
|
+
else if ((!horizontal && !reverseRange) ||
|
|
157
|
+
(horizontal && reverseRange)) {
|
|
158
|
+
linearGradient
|
|
159
|
+
.attr("x1", horizontal ? "100%" : "0%")
|
|
160
|
+
.attr("x2", "0%")
|
|
161
|
+
.attr("y1", horizontal ? "0%" : "100%")
|
|
162
|
+
.attr("y2", "0%");
|
|
163
|
+
}
|
|
153
164
|
// append multiple color stops by using D3's data/enter step
|
|
154
165
|
linearGradient
|
|
155
166
|
.selectAll("stop")
|
|
@@ -181,8 +192,12 @@ export var ContinuousLegend = function (_a) {
|
|
|
181
192
|
.style("fill", "grey")
|
|
182
193
|
.style("font-size", "small")
|
|
183
194
|
.text(dataObjectName);
|
|
184
|
-
xLeg = scaleLinear()
|
|
185
|
-
|
|
195
|
+
xLeg = scaleLinear()
|
|
196
|
+
.domain(reverseRange ? [max, min] : [min, max])
|
|
197
|
+
.range([10, 158]);
|
|
198
|
+
yLeg = scaleLinear()
|
|
199
|
+
.domain(reverseRange ? [min, max] : [max, min])
|
|
200
|
+
.range([10, 158]);
|
|
186
201
|
horizontalAxisLeg = axisBottom(xLeg).tickValues(colorScale.domain());
|
|
187
202
|
VerticalAxisLeg = axisRight(yLeg)
|
|
188
203
|
.tickSize(20)
|
|
@@ -215,6 +230,7 @@ export var ContinuousLegend = function (_a) {
|
|
|
215
230
|
colorMapFunction,
|
|
216
231
|
dataObjectName,
|
|
217
232
|
id,
|
|
233
|
+
reverseRange,
|
|
218
234
|
]);
|
|
219
235
|
return (React.createElement("div", { style: {
|
|
220
236
|
right: position ? position[0] : " ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContinuousLegend.js","sourceRoot":"","sources":["../../../src/component/Legend/ContinuousLegend.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EACR,WAAW,EACX,aAAa,GACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,MAAM,EACN,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,GACV,MAAM,IAAI,CAAC;AACZ,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAE3B,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ContinuousLegend.js","sourceRoot":"","sources":["../../../src/component/Legend/ContinuousLegend.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EACR,WAAW,EACX,aAAa,GACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,MAAM,EACN,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,GACV,MAAM,IAAI,CAAC;AACZ,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAE3B,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AA8DtD,MAAM,CAAC,IAAM,gBAAgB,GAAoC,UAAC,EAY1C;QAXtB,GAAG,SAAA,EACH,GAAG,SAAA,EACH,cAAc,oBAAA,EACd,QAAQ,cAAA,EACR,iBAAqB,EAArB,SAAS,mBAAG,SAAS,KAAA,EACrB,UAAU,gBAAA,EACV,iBAAiB,uBAAA,EACjB,EAAE,QAA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AC;;;;4BAEvB,OAAO,CAAC,KAAK,CAAC,OAAK,CAAC,CAAC;;;;;;SAExB;IACH,CAAC,EAAE;QACD,GAAG;QACH,GAAG;QACH,SAAS;QACT,WAAW;QACX,UAAU;QACV,iBAAiB;QACjB,gBAAgB;QAChB,cAAc;QACd,EAAE;QACF,YAAY;KACb,CAAC,CAAC;IACH,OAAO,CACL,6BACE,KAAK,EAAE;YACL,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;YACnC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;YACjC,MAAM,EAAE,GAAG;SACZ;QAED,6BACE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,wBAAiB,gBAAgB,CAAE,EACjD,GAAG,EAAE,MAAM,GACN,CACH,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC9B,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;CAClB,CAAC"}
|
|
@@ -11,6 +11,7 @@ declare const _default: ComponentMeta<React.FC<{
|
|
|
11
11
|
id?: string;
|
|
12
12
|
colorTables?: import("../colorTableTypes").colorTablesArray;
|
|
13
13
|
colorMapFunction?: any;
|
|
14
|
+
reverseRange?: boolean;
|
|
14
15
|
}>>;
|
|
15
16
|
export default _default;
|
|
16
17
|
export declare const StandardColorTableLibrary: any;
|
|
@@ -11,6 +11,7 @@ declare const _default: ComponentMeta<React.FC<{
|
|
|
11
11
|
id?: string;
|
|
12
12
|
colorTables?: import("../colorTableTypes").colorTablesArray;
|
|
13
13
|
colorMapFunction?: any;
|
|
14
|
+
reverseRange?: boolean;
|
|
14
15
|
}>>;
|
|
15
16
|
export default _default;
|
|
16
17
|
export declare const ColorMapFunction: any;
|