td-plots 1.11.5 → 1.11.6
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/index.esm.js
CHANGED
|
@@ -2181,7 +2181,7 @@ const SummaryComparisonPlot = (props) => {
|
|
|
2181
2181
|
return traces;
|
|
2182
2182
|
});
|
|
2183
2183
|
xAnnotations.forEach((annotation, annotationIndex) => {
|
|
2184
|
-
var _a, _b, _c;
|
|
2184
|
+
var _a, _b, _c, _d;
|
|
2185
2185
|
if (xAnnotations.length > 0) {
|
|
2186
2186
|
const CIRCLE_RADIUS_PX = 6;
|
|
2187
2187
|
xAnnotationLines.push({
|
|
@@ -2207,12 +2207,12 @@ const SummaryComparisonPlot = (props) => {
|
|
|
2207
2207
|
xsizemode: "pixel",
|
|
2208
2208
|
ysizemode: "pixel",
|
|
2209
2209
|
xanchor: annotation.x,
|
|
2210
|
-
yanchor: annotationIndex * 0.1,
|
|
2210
|
+
yanchor: (_b = annotation.markerY) !== null && _b !== void 0 ? _b : annotationIndex * 0.1,
|
|
2211
2211
|
x0: -CIRCLE_RADIUS_PX,
|
|
2212
2212
|
x1: CIRCLE_RADIUS_PX,
|
|
2213
2213
|
y0: -CIRCLE_RADIUS_PX,
|
|
2214
2214
|
y1: CIRCLE_RADIUS_PX,
|
|
2215
|
-
fillcolor: colorToRGBA((
|
|
2215
|
+
fillcolor: colorToRGBA((_c = annotation.color) !== null && _c !== void 0 ? _c : "orange", 1),
|
|
2216
2216
|
line: {
|
|
2217
2217
|
color: "white",
|
|
2218
2218
|
width: 1,
|
|
@@ -2228,7 +2228,7 @@ const SummaryComparisonPlot = (props) => {
|
|
|
2228
2228
|
xanchor: "center",
|
|
2229
2229
|
yanchor: "bottom",
|
|
2230
2230
|
font: {
|
|
2231
|
-
color: colorToRGBA((
|
|
2231
|
+
color: colorToRGBA((_d = annotation.color) !== null && _d !== void 0 ? _d : "orange", 1),
|
|
2232
2232
|
size: 12,
|
|
2233
2233
|
},
|
|
2234
2234
|
});
|