@rfkit/charts 1.10.2 → 1.10.3
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/index.js +13 -41
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -505,10 +505,6 @@ var __webpack_modules__ = {
|
|
|
505
505
|
inset-inline: 0;
|
|
506
506
|
}
|
|
507
507
|
|
|
508
|
-
[data-rfkit-charts-root] .inset-y-0 {
|
|
509
|
-
inset-block: 0;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
508
|
[data-rfkit-charts-root] .top-0 {
|
|
513
509
|
top: 0;
|
|
514
510
|
}
|
|
@@ -613,10 +609,6 @@ var __webpack_modules__ = {
|
|
|
613
609
|
isolation: isolate;
|
|
614
610
|
}
|
|
615
611
|
|
|
616
|
-
[data-rfkit-charts-root] .z-0 {
|
|
617
|
-
z-index: 0;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
612
|
[data-rfkit-charts-root] .z-10 {
|
|
621
613
|
z-index: 10;
|
|
622
614
|
}
|
|
@@ -872,10 +864,6 @@ var __webpack_modules__ = {
|
|
|
872
864
|
height: calc(var(--spacing) * 1.5);
|
|
873
865
|
}
|
|
874
866
|
|
|
875
|
-
[data-rfkit-charts-root] .h-2 {
|
|
876
|
-
height: calc(var(--spacing) * 2);
|
|
877
|
-
}
|
|
878
|
-
|
|
879
867
|
[data-rfkit-charts-root] .h-2\\.5 {
|
|
880
868
|
height: calc(var(--spacing) * 2.5);
|
|
881
869
|
}
|
|
@@ -33135,38 +33123,22 @@ const SignalSegments = /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react__.memo)
|
|
|
33135
33123
|
style: style,
|
|
33136
33124
|
children: signalPositions.map(({ item, key, position, color, tooltip })=>{
|
|
33137
33125
|
const isActive = activeSignalKey === key;
|
|
33138
|
-
const
|
|
33126
|
+
const itemStyle = {
|
|
33139
33127
|
left: position.left,
|
|
33140
33128
|
width: position.width,
|
|
33141
|
-
minWidth: '1px'
|
|
33129
|
+
minWidth: '1px',
|
|
33130
|
+
backgroundColor: color,
|
|
33131
|
+
height: isActive ? '100%' : '8px',
|
|
33132
|
+
opacity: isActive ? 0.5 : 1
|
|
33142
33133
|
};
|
|
33143
|
-
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.
|
|
33144
|
-
|
|
33145
|
-
|
|
33146
|
-
|
|
33147
|
-
|
|
33148
|
-
|
|
33149
|
-
|
|
33150
|
-
|
|
33151
|
-
backgroundColor: `color-mix(in srgb, ${color} 14%, transparent)`,
|
|
33152
|
-
borderLeft: `1px solid ${color}`,
|
|
33153
|
-
borderRight: `1px solid ${color}`
|
|
33154
|
-
}
|
|
33155
|
-
}) : null,
|
|
33156
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
33157
|
-
className: "pointer-events-none absolute top-0 flex h-2 min-w-px items-center justify-center overflow-hidden text-ellipsis whitespace-nowrap text-center text-xs text-foreground",
|
|
33158
|
-
"data-signal-active": isActive ? 'true' : 'false',
|
|
33159
|
-
"data-signal-key": key,
|
|
33160
|
-
"data-signal-source": resolveSignalSource(item),
|
|
33161
|
-
"data-testid": "signal-annotation",
|
|
33162
|
-
style: {
|
|
33163
|
-
...positionStyle,
|
|
33164
|
-
backgroundColor: color,
|
|
33165
|
-
zIndex: isActive ? 2 : 1
|
|
33166
|
-
},
|
|
33167
|
-
title: tooltip
|
|
33168
|
-
})
|
|
33169
|
-
]
|
|
33134
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
33135
|
+
className: "pointer-events-none absolute top-0 flex min-w-px items-center justify-center overflow-hidden text-ellipsis whitespace-nowrap text-center text-xs text-foreground",
|
|
33136
|
+
"data-signal-active": isActive ? 'true' : 'false',
|
|
33137
|
+
"data-signal-key": key,
|
|
33138
|
+
"data-signal-source": resolveSignalSource(item),
|
|
33139
|
+
"data-testid": "signal-annotation",
|
|
33140
|
+
style: itemStyle,
|
|
33141
|
+
title: tooltip
|
|
33170
33142
|
}, `segment-${segmentIndex}-signal-${key}`);
|
|
33171
33143
|
})
|
|
33172
33144
|
}));
|