websocket-text-relay 1.1.1 → 1.1.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/package.json +1 -1
- package/src/ui/css/main.css +3 -2
- package/src/ui/js/util/drawing.js +2 -2
package/package.json
CHANGED
package/src/ui/css/main.css
CHANGED
|
@@ -160,11 +160,12 @@ body {
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.tooltip_display_group {
|
|
163
|
-
|
|
163
|
+
opacity: 0;
|
|
164
|
+
transition: opacity 0.35s ease;
|
|
164
165
|
}
|
|
165
166
|
|
|
166
167
|
.tooltip_wrapper_group:hover .tooltip_display_group {
|
|
167
|
-
|
|
168
|
+
opacity: 1;
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
.server_status_label {
|
|
@@ -96,8 +96,8 @@ const horizontalPadding = 0.04
|
|
|
96
96
|
|
|
97
97
|
const drawToolTip = ({x, y, text, direction = "below", parentNode: parent}) => {
|
|
98
98
|
const directionMultiplier = direction === "above" ? -1 : 1
|
|
99
|
-
const tooltipDisplayGroup = drawSvgElement("g",
|
|
100
|
-
const bgPlaceholder = drawSvgElement("g",
|
|
99
|
+
const tooltipDisplayGroup = drawSvgElement({tag: "g", className: "tooltip_display_group", parent})
|
|
100
|
+
const bgPlaceholder = drawSvgElement({tag: "g", parent: tooltipDisplayGroup})
|
|
101
101
|
const textY = y + (triangleHeight + verticalPadding) * directionMultiplier
|
|
102
102
|
const textElement = drawText({x, y: textY, text, className: "tooltip_text", parentNode: tooltipDisplayGroup})
|
|
103
103
|
const textBbox = textElement.getBBox()
|