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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "websocket-text-relay",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "An LSP server for sending live file updates from your text editor to the front end via websockets.",
5
5
  "bin": {
6
6
  "websocket-text-relay": "./start.js"
@@ -160,11 +160,12 @@ body {
160
160
  }
161
161
 
162
162
  .tooltip_display_group {
163
- display: none;
163
+ opacity: 0;
164
+ transition: opacity 0.35s ease;
164
165
  }
165
166
 
166
167
  .tooltip_wrapper_group:hover .tooltip_display_group {
167
- display: initial;
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", undefined, "tooltip_display_group", parent)
100
- const bgPlaceholder = drawSvgElement("g", undefined, undefined, tooltipDisplayGroup)
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()