Skip to content

Commit caad719

Browse files
author
Denis Bardadym
committed
Reformat
1 parent 112ac38 commit caad719

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

plugin/template-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22

3-
export type TemplateType = "sunburst" | "treemap" | "network" | "raw-data" | "list" ;
3+
export type TemplateType = "sunburst" | "treemap" | "network" | "raw-data" | "list";
44

55
const templates: ReadonlyArray<TemplateType> = [
66
"sunburst",

src/network/tooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ export const Tooltip: FunctionalComponent<TooltipProps> = ({ node, visible }) =>
5050

5151
if (pos.left + boundingRect.width > window.innerWidth) {
5252
// Shifting horizontally
53-
pos.left = Math.max(0,window.innerWidth - boundingRect.width);
53+
pos.left = Math.max(0, window.innerWidth - boundingRect.width);
5454
}
5555

5656
if (pos.top + boundingRect.height > window.innerHeight) {
5757
// Flipping vertically
58-
pos.top = Math.max(0,mouseCoords.y - Tooltip_marginY - boundingRect.height);
58+
pos.top = Math.max(0, mouseCoords.y - Tooltip_marginY - boundingRect.height);
5959
}
6060

6161
setStyle(pos);

src/treemap/tooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ export const Tooltip: FunctionalComponent<TooltipProps> = ({
130130

131131
if (pos.left + boundingRect.width > window.innerWidth) {
132132
// Shifting horizontally
133-
pos.left = Math.max(0,window.innerWidth - boundingRect.width);
133+
pos.left = Math.max(0, window.innerWidth - boundingRect.width);
134134
}
135135

136136
if (pos.top + boundingRect.height > window.innerHeight) {
137137
// Flipping vertically
138-
pos.top = Math.max(0,mouseCoords.y - Tooltip_marginY - boundingRect.height);
138+
pos.top = Math.max(0, mouseCoords.y - Tooltip_marginY - boundingRect.height);
139139
}
140140

141141
setStyle(pos);

0 commit comments

Comments
 (0)