@emerson-eps/color-tables 1.0.0 → 1.0.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/BreakPoint/Canvas.d.ts +3 -3
- package/dist/component/BreakPoint/Canvas.js +10 -21
- package/dist/component/BreakPoint/Canvas.js.map +1 -1
- package/dist/component/BreakPoint/ColorScale.d.ts +2 -3
- package/dist/component/BreakPoint/ColorScale.js +19 -20
- package/dist/component/BreakPoint/ColorScale.js.map +1 -1
- package/dist/component/BreakPoint/Legend.d.ts +2 -3
- package/dist/component/BreakPoint/Legend.js +31 -37
- package/dist/component/BreakPoint/Legend.js.map +1 -1
- package/dist/component/BreakPoint/Modal.d.ts +6 -3
- package/dist/component/BreakPoint/Modal.js +17 -21
- package/dist/component/BreakPoint/Modal.js.map +1 -1
- package/dist/component/BreakPoint/index.d.ts +4 -0
- package/dist/component/BreakPoint/index.js +6 -0
- package/dist/component/BreakPoint/index.js.map +1 -0
- package/dist/component/ColorSelector/BreakPointModule.d.ts +3 -4
- package/dist/component/ColorSelector/BreakPointModule.js +99 -140
- package/dist/component/ColorSelector/BreakPointModule.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorAccordion.js +55 -60
- package/dist/component/ColorSelector/ColorSelectorAccordion.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorComponent.d.ts +2 -3
- package/dist/component/ColorSelector/ColorSelectorComponent.js +83 -86
- package/dist/component/ColorSelector/ColorSelectorComponent.js.map +1 -1
- package/dist/component/ColorSelector/ColorSelectorWrapper.d.ts +12 -5
- package/dist/component/ColorSelector/ColorSelectorWrapper.js +41 -51
- package/dist/component/ColorSelector/ColorSelectorWrapper.js.map +1 -1
- package/dist/component/ColorSelector/index.d.ts +4 -0
- package/dist/component/ColorSelector/index.js +6 -0
- package/dist/component/ColorSelector/index.js.map +1 -0
- package/dist/component/Legend/ColorLegend.d.ts +2 -2
- package/dist/component/Legend/ColorLegend.js +38 -39
- package/dist/component/Legend/ColorLegend.js.map +1 -1
- package/dist/component/Legend/ColorLegend.stories.js +20 -31
- package/dist/component/Legend/ColorLegend.stories.js.map +1 -1
- package/dist/component/Legend/ContinuousLegend.d.ts +2 -2
- package/dist/component/Legend/ContinuousLegend.js +230 -276
- package/dist/component/Legend/ContinuousLegend.js.map +1 -1
- package/dist/component/Legend/ContinuousLegend.stories.js +13 -24
- package/dist/component/Legend/ContinuousLegend.stories.js.map +1 -1
- package/dist/component/Legend/DiscreteLegend.d.ts +2 -2
- package/dist/component/Legend/DiscreteLegend.js +130 -180
- package/dist/component/Legend/DiscreteLegend.js.map +1 -1
- package/dist/component/Legend/DiscreteLegend.stories.js +15 -26
- package/dist/component/Legend/DiscreteLegend.stories.js.map +1 -1
- package/dist/component/Legend/constants.js +1 -1
- package/dist/component/Legend/constants.js.map +1 -1
- package/dist/component/Legend/index.d.ts +3 -0
- package/dist/component/Legend/index.js +4 -0
- package/dist/component/Legend/index.js.map +1 -0
- package/dist/component/Utils/d3ColorScale.js +1 -1
- package/dist/component/Utils/d3ColorScale.js.map +1 -1
- package/dist/component/Utils/discreteLegend.d.ts +2 -3
- package/dist/component/Utils/discreteLegend.js.map +1 -1
- package/dist/component/Utils/index.d.ts +2 -0
- package/dist/component/Utils/index.js +4 -0
- package/dist/component/Utils/index.js.map +1 -0
- package/dist/component/Utils/legendCommonFunction.d.ts +7 -7
- package/dist/component/Utils/legendCommonFunction.js +128 -139
- package/dist/component/Utils/legendCommonFunction.js.map +1 -1
- package/dist/component/Utils/legendCommonFunction.stories.js +14 -25
- package/dist/component/Utils/legendCommonFunction.stories.js.map +1 -1
- package/dist/component/colorTableTypes.d.ts +10 -2
- package/dist/component/index.d.ts +8 -0
- package/dist/component/index.js +9 -0
- package/dist/component/index.js.map +1 -0
- package/dist/index.d.ts +1 -9
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/MD.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/NTG.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/PermTot.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js +36 -0
- package/dist/stories/ColorLegends/ContinousLegends/Permeability.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/PoroTot.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/Porosity.stories.js.map +1 -0
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js +34 -0
- package/dist/stories/ColorLegends/ContinousLegends/SW.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js +39 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaciesNoCalcite.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js +31 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultDistanceHum.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js +31 -0
- package/dist/stories/ColorLegends/DiscreteLegends/FaultProximityFlag.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js +34 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js +45 -0
- package/dist/stories/ColorLegends/DiscreteLegends/RDE_Orig.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js +34 -0
- package/dist/stories/ColorLegends/DiscreteLegends/ZoneMain.stories.js.map +1 -0
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js +44 -0
- package/dist/stories/ColorLegends/DiscreteLegends/Zonelog.stories.js.map +1 -0
- package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.d.ts +7 -0
- package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.js +33 -0
- package/dist/stories/ColorLegends/LegendWithSelector/LegendSelector.stories.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
2
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
3
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -18,33 +7,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
18
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
8
|
});
|
|
20
9
|
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
23
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
10
|
import * as React from "react";
|
|
49
11
|
import { useRef } from "react";
|
|
50
12
|
import { select, scaleLinear, scaleSymlog, axisBottom, axisRight } from "d3";
|
|
@@ -54,251 +16,243 @@ import { d3ColorScales } from "../Utils/d3ColorScale";
|
|
|
54
16
|
import { RGBToHex, colorsArray, getTickValues, } from "../Utils/legendCommonFunction";
|
|
55
17
|
import defaultColorTables from "../color-tables.json";
|
|
56
18
|
import { DEFAULT_STYLE } from "./constants";
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
React.useEffect(function () {
|
|
19
|
+
export const ContinuousLegend = ({ min, max, dataObjectName, colorName = "Rainbow", horizontal, getColorScaleData, id, colorTables = defaultColorTables, colorMapFunction, reverseRange = false, breakPoint, editedBreakPointValues, isLog, isNearest, isRangeShown = true, legendFontSize = 18, tickFontSize = 12, numberOfTicks = 3, legendScaleSize = 200, cssLegendStyles = DEFAULT_STYLE, }) => {
|
|
20
|
+
const generateUniqueId = Math.ceil(Math.random() * 9999).toString();
|
|
21
|
+
const divRef = useRef(null);
|
|
22
|
+
React.useEffect(() => {
|
|
62
23
|
if (divRef.current) {
|
|
63
24
|
select(divRef.current).select("div").remove();
|
|
64
25
|
select(divRef.current).select("svg").remove();
|
|
65
26
|
continuousLegend();
|
|
66
27
|
}
|
|
67
28
|
function continuousLegend() {
|
|
68
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
69
|
-
var itemColor, parsedColorTables, res, legendColors, nearestData_1, isD3Colors, arrayData_1, d3ColorArrays_1, data, getColorTableScale_1, maxValue_1, nColors, delta_1, leftEnd_1, rightEnd_1, rgbValue, i, value, arrOfNum, userDefinedDomain_1, options, svgLegend, defs, currentIndex, linearGradient, colorScale_1, xLeg, yLeg, horizontalAxisLeg, VerticalAxisLeg, error_1;
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
30
|
var _a, _b;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
nearestData_1.push({
|
|
139
|
-
breakPoint: Number(leftEnd_1.toFixed(2)),
|
|
140
|
-
color: RGBToHex([val[0], val[1], val[2], val[3]]).color,
|
|
141
|
-
}, {
|
|
142
|
-
breakPoint: Number(rightEnd_1.toFixed(2)),
|
|
143
|
-
color: RGBToHex([val[0], val[1], val[2], val[3]]).color,
|
|
144
|
-
});
|
|
145
|
-
leftEnd_1 += delta_1;
|
|
146
|
-
rightEnd_1 += delta_1;
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
// if colorMapFunction prop is passed
|
|
150
|
-
if (colorMapFunction) {
|
|
151
|
-
rgbValue = [];
|
|
152
|
-
for (i = 0; i <= 1; i += 0.05) {
|
|
153
|
-
value = colorMapFunction(i);
|
|
154
|
-
rgbValue.push([i.toFixed(2), value[0], value[1], value[2]]);
|
|
155
|
-
}
|
|
156
|
-
legendColors = rgbValue;
|
|
157
|
-
}
|
|
158
|
-
arrOfNum = breakPoint === null || breakPoint === void 0 ? void 0 : breakPoint.map(function (str) {
|
|
159
|
-
return Number(str);
|
|
160
|
-
});
|
|
161
|
-
userDefinedDomain_1 = arrOfNum ? arrOfNum : [];
|
|
162
|
-
legendColors.forEach(function (value, index) {
|
|
163
|
-
var domainIndex;
|
|
164
|
-
if (userDefinedDomain_1[index]) {
|
|
165
|
-
domainIndex = userDefinedDomain_1[index];
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
domainIndex = value[0];
|
|
169
|
-
}
|
|
170
|
-
// return the color and breakPoint needed to draw the legend
|
|
171
|
-
itemColor.push({
|
|
172
|
-
// to support discrete color for continous data
|
|
173
|
-
breakPoint: (getColorTableScale_1 === null || getColorTableScale_1 === void 0 ? void 0 : getColorTableScale_1.discrete) === true
|
|
174
|
-
? RGBToHex(value, maxValue_1).offset
|
|
175
|
-
: (breakPoint === null || breakPoint === void 0 ? void 0 : breakPoint.length) > 0
|
|
176
|
-
? domainIndex * 100.0
|
|
177
|
-
: value[0] * 100.0,
|
|
178
|
-
color: RGBToHex(value).color,
|
|
179
|
-
});
|
|
180
|
-
});
|
|
181
|
-
if (legendColors.length === 0) {
|
|
182
|
-
return [2 /*return*/, [0, 0, 0]];
|
|
183
|
-
}
|
|
184
|
-
// get the position and color from the breakpoint modal
|
|
185
|
-
// updates main legend onclicking the custom scales
|
|
186
|
-
if (((_b = editedBreakPointValues === null || editedBreakPointValues === void 0 ? void 0 : editedBreakPointValues.colorArray) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
|
|
187
|
-
(editedBreakPointValues === null || editedBreakPointValues === void 0 ? void 0 : editedBreakPointValues.customizeFlag) === true) {
|
|
188
|
-
options = editedBreakPointValues.colorArray.map(function (row) {
|
|
189
|
-
return { breakPoint: row.position * 100.0, color: row.color };
|
|
190
|
-
});
|
|
191
|
-
itemColor = options;
|
|
192
|
-
}
|
|
193
|
-
itemColor.sort(function (a, b) {
|
|
194
|
-
return a.breakPoint - b.breakPoint;
|
|
195
|
-
});
|
|
196
|
-
svgLegend = select(divRef.current)
|
|
197
|
-
.style("margin-right", "2px")
|
|
198
|
-
.style("margin-left", "2px")
|
|
199
|
-
.append("svg")
|
|
200
|
-
.style("cursor", getColorScaleData ? "pointer" : "auto")
|
|
201
|
-
.style("border-radius", "5px");
|
|
202
|
-
defs = svgLegend.append("defs");
|
|
203
|
-
svgLegend
|
|
204
|
-
.attr("width", horizontal ? (legendScaleSize < 200 ? 200 : legendScaleSize) : "100")
|
|
205
|
-
.attr("height", horizontal
|
|
206
|
-
? "70"
|
|
207
|
-
: legendScaleSize < 200
|
|
208
|
-
? 200
|
|
209
|
-
: legendScaleSize - 17);
|
|
210
|
-
currentIndex = "linear-gradient-" + id + "0";
|
|
211
|
-
linearGradient = defs
|
|
212
|
-
.append("linearGradient")
|
|
213
|
-
.attr("id", currentIndex);
|
|
214
|
-
// append a linearGradient element to the defs and give it a unique id
|
|
215
|
-
if ((horizontal && !reverseRange) || (!horizontal && reverseRange)) {
|
|
216
|
-
linearGradient
|
|
217
|
-
.attr("x1", "0%")
|
|
218
|
-
.attr("x2", horizontal ? "100%" : "0%")
|
|
219
|
-
.attr("y1", "0%")
|
|
220
|
-
.attr("y2", horizontal ? "0%" : "100%");
|
|
221
|
-
}
|
|
222
|
-
else if ((!horizontal && !reverseRange) ||
|
|
223
|
-
(horizontal && reverseRange)) {
|
|
224
|
-
linearGradient
|
|
225
|
-
.attr("x1", horizontal ? "100%" : "0%")
|
|
226
|
-
.attr("x2", "0%")
|
|
227
|
-
.attr("y1", horizontal ? "0%" : "100%")
|
|
228
|
-
.attr("y2", "0%");
|
|
229
|
-
}
|
|
230
|
-
colorScale_1 = scaleLinear().domain([0, 1]).range([0, 400]);
|
|
231
|
-
// append multiple color stops by using D3's data/enter step
|
|
232
|
-
linearGradient
|
|
233
|
-
.selectAll("stop")
|
|
234
|
-
.data(nearestData_1.length > 0 ? nearestData_1 : itemColor)
|
|
235
|
-
.enter()
|
|
236
|
-
.append("stop")
|
|
237
|
-
.attr("offset", function (data) {
|
|
238
|
-
return nearestData_1.length > 0
|
|
239
|
-
? colorScale_1(data.breakPoint) / 4 + "%"
|
|
240
|
-
: data.breakPoint + "%";
|
|
241
|
-
})
|
|
242
|
-
.attr("stop-color", function (data) {
|
|
243
|
-
return data.color;
|
|
31
|
+
let itemColor = [];
|
|
32
|
+
let parsedColorTables;
|
|
33
|
+
try {
|
|
34
|
+
// fix for dash wrapper
|
|
35
|
+
if (typeof colorTables === "string") {
|
|
36
|
+
const res = yield fetch(colorTables);
|
|
37
|
+
parsedColorTables = yield res.json();
|
|
38
|
+
}
|
|
39
|
+
//Return the matched colors array from color.tables.json file
|
|
40
|
+
let legendColors = typeof colorTables === "string"
|
|
41
|
+
? colorsArray(colorName, parsedColorTables)
|
|
42
|
+
: colorsArray(colorName, colorTables);
|
|
43
|
+
const nearestData = [];
|
|
44
|
+
// Update color of legend based on color selector scales
|
|
45
|
+
// data is passed on click upon color scales
|
|
46
|
+
if (getColorScaleData && Object.keys(getColorScaleData).length > 0) {
|
|
47
|
+
// legend using color table data
|
|
48
|
+
if (getColorScaleData.color) {
|
|
49
|
+
legendColors = getColorScaleData.color;
|
|
50
|
+
}
|
|
51
|
+
// legend using d3 data
|
|
52
|
+
else if (getColorScaleData.arrayData) {
|
|
53
|
+
legendColors = getColorScaleData.arrayData;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const isD3Colors = d3ColorScales.find((value) => {
|
|
57
|
+
return (value === null || value === void 0 ? void 0 : value.name) === colorName;
|
|
58
|
+
});
|
|
59
|
+
// main continuous legend for d3 colors
|
|
60
|
+
if (isD3Colors && isD3Colors.discrete === false) {
|
|
61
|
+
const arrayData = [];
|
|
62
|
+
const d3ColorArrays = colorsArray(colorName, d3ColorScales);
|
|
63
|
+
const data = range(10).map((d) => ({ color: d3ColorArrays(d / 10) }));
|
|
64
|
+
data.forEach((colorsObject, index) => {
|
|
65
|
+
var _a, _b, _c;
|
|
66
|
+
arrayData.push([
|
|
67
|
+
0 + "." + index,
|
|
68
|
+
(_a = color(colorsObject.color)) === null || _a === void 0 ? void 0 : _a.rgb().r,
|
|
69
|
+
(_b = color(colorsObject.color)) === null || _b === void 0 ? void 0 : _b.rgb().g,
|
|
70
|
+
(_c = color(colorsObject.color)) === null || _c === void 0 ? void 0 : _c.rgb().b,
|
|
71
|
+
]);
|
|
72
|
+
});
|
|
73
|
+
legendColors = arrayData;
|
|
74
|
+
}
|
|
75
|
+
// condition to check if the legend is selected from color selector or not
|
|
76
|
+
const getColorTableScale = (_a = (typeof colorTables === "string" ? parsedColorTables : colorTables)) === null || _a === void 0 ? void 0 : _a.find((value) => {
|
|
77
|
+
if (getColorScaleData) {
|
|
78
|
+
return value.name === (getColorScaleData === null || getColorScaleData === void 0 ? void 0 : getColorScaleData.name);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
return value.name === colorName;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
const maxValue = legendColors.length - 1;
|
|
85
|
+
// condition for nearest interpolation
|
|
86
|
+
if (isNearest) {
|
|
87
|
+
const nColors = legendColors.length;
|
|
88
|
+
const delta = 1 / nColors;
|
|
89
|
+
let leftEnd = 0;
|
|
90
|
+
let rightEnd = 0 + delta;
|
|
91
|
+
legendColors.forEach((val) => {
|
|
92
|
+
nearestData.push({
|
|
93
|
+
breakPoint: Number(leftEnd.toFixed(2)),
|
|
94
|
+
color: RGBToHex([val[0], val[1], val[2], val[3]]).color,
|
|
95
|
+
}, {
|
|
96
|
+
breakPoint: Number(rightEnd.toFixed(2)),
|
|
97
|
+
color: RGBToHex([val[0], val[1], val[2], val[3]]).color,
|
|
244
98
|
});
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
99
|
+
leftEnd += delta;
|
|
100
|
+
rightEnd += delta;
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
// if colorMapFunction prop is passed
|
|
104
|
+
if (colorMapFunction) {
|
|
105
|
+
const rgbValue = [];
|
|
106
|
+
for (var i = 0; i <= 1; i += 0.05) {
|
|
107
|
+
const value = colorMapFunction(i);
|
|
108
|
+
rgbValue.push([i.toFixed(2), value[0], value[1], value[2]]);
|
|
109
|
+
}
|
|
110
|
+
legendColors = rgbValue;
|
|
111
|
+
}
|
|
112
|
+
const arrOfNum = breakPoint === null || breakPoint === void 0 ? void 0 : breakPoint.map((str) => {
|
|
113
|
+
return Number(str);
|
|
114
|
+
});
|
|
115
|
+
const userDefinedDomain = arrOfNum ? arrOfNum : [];
|
|
116
|
+
legendColors.forEach((value, index) => {
|
|
117
|
+
let domainIndex;
|
|
118
|
+
if (userDefinedDomain[index]) {
|
|
119
|
+
domainIndex = userDefinedDomain[index];
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
domainIndex = value[0];
|
|
123
|
+
}
|
|
124
|
+
// return the color and breakPoint needed to draw the legend
|
|
125
|
+
itemColor.push({
|
|
126
|
+
// to support discrete color for continous data
|
|
127
|
+
breakPoint: (getColorTableScale === null || getColorTableScale === void 0 ? void 0 : getColorTableScale.discrete) === true
|
|
128
|
+
? RGBToHex(value, maxValue).offset
|
|
129
|
+
: (breakPoint === null || breakPoint === void 0 ? void 0 : breakPoint.length) > 0
|
|
130
|
+
? domainIndex * 100.0
|
|
131
|
+
: value[0] * 100.0,
|
|
132
|
+
color: RGBToHex(value).color,
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
if (legendColors.length === 0) {
|
|
136
|
+
return [0, 0, 0];
|
|
137
|
+
}
|
|
138
|
+
// get the position and color from the breakpoint modal
|
|
139
|
+
// updates main legend onclicking the custom scales
|
|
140
|
+
if (((_b = editedBreakPointValues === null || editedBreakPointValues === void 0 ? void 0 : editedBreakPointValues.colorArray) === null || _b === void 0 ? void 0 : _b.length) > 0 &&
|
|
141
|
+
(editedBreakPointValues === null || editedBreakPointValues === void 0 ? void 0 : editedBreakPointValues.customizeFlag) === true) {
|
|
142
|
+
const options = editedBreakPointValues.colorArray.map(function (row) {
|
|
143
|
+
return { breakPoint: row.position * 100.0, color: row.color };
|
|
144
|
+
});
|
|
145
|
+
itemColor = options;
|
|
146
|
+
}
|
|
147
|
+
itemColor.sort((a, b) => {
|
|
148
|
+
return a.breakPoint - b.breakPoint;
|
|
149
|
+
});
|
|
150
|
+
//const colorScale = scaleSymlog().domain([min, max]).range([0, 150]);
|
|
151
|
+
// append a defs (for definition) element to your SVG
|
|
152
|
+
const svgLegend = select(divRef.current)
|
|
153
|
+
.style("margin-right", "2px")
|
|
154
|
+
.style("margin-left", "2px")
|
|
155
|
+
.append("svg")
|
|
156
|
+
.style("cursor", getColorScaleData ? "pointer" : "auto")
|
|
157
|
+
.style("border-radius", "5px");
|
|
158
|
+
const defs = svgLegend.append("defs");
|
|
159
|
+
svgLegend
|
|
160
|
+
.attr("width", horizontal ? (legendScaleSize < 200 ? 200 : legendScaleSize) : "100")
|
|
161
|
+
.attr("height", horizontal
|
|
162
|
+
? "70"
|
|
163
|
+
: legendScaleSize < 200
|
|
164
|
+
? 200
|
|
165
|
+
: legendScaleSize - 17);
|
|
166
|
+
const currentIndex = "linear-gradient-" + id + "0";
|
|
167
|
+
const linearGradient = defs
|
|
168
|
+
.append("linearGradient")
|
|
169
|
+
.attr("id", currentIndex);
|
|
170
|
+
// append a linearGradient element to the defs and give it a unique id
|
|
171
|
+
if ((horizontal && !reverseRange) || (!horizontal && reverseRange)) {
|
|
172
|
+
linearGradient
|
|
173
|
+
.attr("x1", "0%")
|
|
174
|
+
.attr("x2", horizontal ? "100%" : "0%")
|
|
175
|
+
.attr("y1", "0%")
|
|
176
|
+
.attr("y2", horizontal ? "0%" : "100%");
|
|
177
|
+
}
|
|
178
|
+
else if ((!horizontal && !reverseRange) ||
|
|
179
|
+
(horizontal && reverseRange)) {
|
|
180
|
+
linearGradient
|
|
181
|
+
.attr("x1", horizontal ? "100%" : "0%")
|
|
182
|
+
.attr("x2", "0%")
|
|
183
|
+
.attr("y1", horizontal ? "0%" : "100%")
|
|
184
|
+
.attr("y2", "0%");
|
|
185
|
+
}
|
|
186
|
+
const colorScale = scaleLinear().domain([0, 1]).range([0, 400]);
|
|
187
|
+
// append multiple color stops by using D3's data/enter step
|
|
188
|
+
linearGradient
|
|
189
|
+
.selectAll("stop")
|
|
190
|
+
.data(nearestData.length > 0 ? nearestData : itemColor)
|
|
191
|
+
.enter()
|
|
192
|
+
.append("stop")
|
|
193
|
+
.attr("offset", function (data) {
|
|
194
|
+
return nearestData.length > 0
|
|
195
|
+
? colorScale(data.breakPoint) / 4 + "%"
|
|
196
|
+
: data.breakPoint + "%";
|
|
197
|
+
})
|
|
198
|
+
.attr("stop-color", function (data) {
|
|
199
|
+
return data.color;
|
|
200
|
+
});
|
|
201
|
+
// draw the rectangle and fill with gradient
|
|
202
|
+
svgLegend
|
|
203
|
+
.append("rect")
|
|
204
|
+
.attr("x", 25)
|
|
205
|
+
.attr("y", horizontal ? 30 : 18)
|
|
206
|
+
.attr("width", horizontal
|
|
207
|
+
? legendScaleSize < 200
|
|
208
|
+
? 159
|
|
209
|
+
: legendScaleSize - 40
|
|
210
|
+
: 20)
|
|
211
|
+
.attr("height", horizontal ? 20 : legendScaleSize < 200 ? 159 : legendScaleSize - 40)
|
|
212
|
+
.style("fill", "url(#" + currentIndex + ")");
|
|
213
|
+
// append title
|
|
214
|
+
svgLegend
|
|
215
|
+
.append("text")
|
|
216
|
+
.attr("x", horizontal ? 25 : -168)
|
|
217
|
+
.attr("y", horizontal ? 20 : 15)
|
|
218
|
+
.style("text-anchor", "left")
|
|
219
|
+
.style("transform", horizontal ? "none" : "left")
|
|
220
|
+
.style("transform", horizontal ? "none" : "rotate(270deg)")
|
|
221
|
+
.style("fill", "grey")
|
|
222
|
+
.style("font-size", legendFontSize && legendFontSize > 0
|
|
223
|
+
? `${legendFontSize}px`
|
|
224
|
+
: "16px")
|
|
225
|
+
.text(dataObjectName);
|
|
226
|
+
// create tick marks
|
|
227
|
+
// range varies the size of the axis
|
|
228
|
+
const xLeg = (isLog ? scaleSymlog() : scaleLinear())
|
|
229
|
+
.domain(reverseRange ? [max, min] : [min, max])
|
|
230
|
+
/*@ts-ignore*/
|
|
231
|
+
.range([10, legendScaleSize < 200 ? 168 : legendScaleSize - 32]);
|
|
232
|
+
const yLeg = (isLog ? scaleSymlog() : scaleLinear())
|
|
233
|
+
.domain(reverseRange ? [min, max] : [max, min])
|
|
234
|
+
/*@ts-ignore*/
|
|
235
|
+
.range([10, legendScaleSize < 200 ? 168 : legendScaleSize - 32]);
|
|
236
|
+
const horizontalAxisLeg = axisBottom(xLeg).tickValues(xLeg
|
|
237
|
+
.ticks(0)
|
|
238
|
+
.concat(xLeg.domain(), getTickValues(xLeg.domain(), numberOfTicks)));
|
|
239
|
+
const VerticalAxisLeg = axisRight(yLeg).tickValues(yLeg
|
|
240
|
+
.ticks(0)
|
|
241
|
+
.concat(yLeg.domain(), getTickValues(xLeg.domain(), numberOfTicks)));
|
|
242
|
+
if (isRangeShown) {
|
|
243
|
+
svgLegend
|
|
244
|
+
.attr("class", "axis")
|
|
245
|
+
.append("g")
|
|
246
|
+
.attr("transform", horizontal ? "translate(16, 50)" : "translate(45, 7.5)")
|
|
247
|
+
.style("font-size", tickFontSize && tickFontSize > 0 ? `${tickFontSize}px` : "12px")
|
|
248
|
+
.style("font-weight", "700")
|
|
249
|
+
.call(horizontal ? horizontalAxisLeg : VerticalAxisLeg)
|
|
250
|
+
.style("height", 15);
|
|
300
251
|
}
|
|
301
|
-
}
|
|
252
|
+
}
|
|
253
|
+
catch (error) {
|
|
254
|
+
console.error(error);
|
|
255
|
+
}
|
|
302
256
|
});
|
|
303
257
|
}
|
|
304
258
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -321,7 +275,7 @@ export var ContinuousLegend = function (_a) {
|
|
|
321
275
|
numberOfTicks,
|
|
322
276
|
legendScaleSize,
|
|
323
277
|
]);
|
|
324
|
-
return (React.createElement("div", { style:
|
|
325
|
-
React.createElement("div", { id: id ? id :
|
|
278
|
+
return (React.createElement("div", { style: Object.assign({ position: "absolute", minHeight: "70px", zIndex: 999, margin: "10px" }, cssLegendStyles) },
|
|
279
|
+
React.createElement("div", { id: id ? id : `cont-legend - ${generateUniqueId}`, ref: divRef })));
|
|
326
280
|
};
|
|
327
281
|
//# sourceMappingURL=ContinuousLegend.js.map
|
|
@@ -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;AAE/B,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAE7E,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAE3B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EACL,QAAQ,EACR,WAAW,EACX,aAAa,GACd,MAAM,+BAA+B,CAAC;AAEvC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAwF5C,MAAM,CAAC,IAAM,gBAAgB,GAAoC,UAAC,EAqB1C;QApBtB,GAAG,SAAA,EACH,GAAG,SAAA,EACH,cAAc,oBAAA,EACd,iBAAqB,EAArB,SAAS,mBAAG,SAAS,KAAA,EACrB,UAAU,gBAAA,EACV,iBAAiB,uBAAA,EACjB,EAAE,QAAA,EACF,mBAAoD,EAApD,WAAW,mBAAG,kBAAsC,KAAA,EACpD,gBAAgB,sBAAA,EAChB,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAA,EACpB,UAAU,gBAAA,EACV,sBAAsB,4BAAA,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,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC;qCACrB,MAAM,CAAC,GAAG,CAAC;qCACX,IAAI,CACH,WAAW,EACX,UAAU,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,oBAAoB,CACxD;qCACA,KAAK,CACJ,WAAW,EACX,YAAY,IAAI,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,UAAG,YAAY,OAAI,CAAC,CAAC,CAAC,MAAM,CAChE;qCACA,KAAK,CAAC,aAAa,EAAE,KAAK,CAAC;qCAC3B,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAAe,CAAC;qCACtD,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;4BACzB,CAAC;;;;4BAED,OAAO,CAAC,KAAK,CAAC,OAAK,CAAC,CAAC;;;;;;SAExB;QACD,uDAAuD;IACzD,CAAC,EAAE;QACD,GAAG;QACH,GAAG;QACH,SAAS;QACT,WAAW;QACX,UAAU;QACV,iBAAiB;QACjB,gBAAgB;QAChB,cAAc;QACd,EAAE;QACF,YAAY;QACZ,KAAK;QACL,SAAS;QACT,YAAY;QACZ,cAAc;QACd,YAAY;QACZ,aAAa;QACb,eAAe;KAChB,CAAC,CAAC;IACH,OAAO,CACL,6BACE,KAAK,aACH,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,GAAG,EACX,MAAM,EAAE,MAAM,IACX,eAAe;QAGpB,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"}
|
|
1
|
+
{"version":3,"file":"ContinuousLegend.js","sourceRoot":"","sources":["../../../src/component/Legend/ContinuousLegend.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B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