diff --git a/plugin/template-types.ts b/plugin/template-types.ts index bd73977..fbc50bf 100644 --- a/plugin/template-types.ts +++ b/plugin/template-types.ts @@ -1,6 +1,6 @@ "use strict"; -export type TemplateType = "sunburst" | "treemap" | "network" | "raw-data" | "list" ; +export type TemplateType = "sunburst" | "treemap" | "network" | "raw-data" | "list"; const templates: ReadonlyArray = [ "sunburst", diff --git a/src/network/tooltip.tsx b/src/network/tooltip.tsx index 909dbaf..0abd7a0 100644 --- a/src/network/tooltip.tsx +++ b/src/network/tooltip.tsx @@ -50,12 +50,12 @@ export const Tooltip: FunctionalComponent = ({ node, visible }) => if (pos.left + boundingRect.width > window.innerWidth) { // Shifting horizontally - pos.left = Math.max(0,window.innerWidth - boundingRect.width); + pos.left = Math.max(0, window.innerWidth - boundingRect.width); } if (pos.top + boundingRect.height > window.innerHeight) { // Flipping vertically - pos.top = Math.max(0,mouseCoords.y - Tooltip_marginY - boundingRect.height); + pos.top = Math.max(0, mouseCoords.y - Tooltip_marginY - boundingRect.height); } setStyle(pos); diff --git a/src/treemap/tooltip.tsx b/src/treemap/tooltip.tsx index 4ee7ef3..2014b79 100644 --- a/src/treemap/tooltip.tsx +++ b/src/treemap/tooltip.tsx @@ -130,12 +130,12 @@ export const Tooltip: FunctionalComponent = ({ if (pos.left + boundingRect.width > window.innerWidth) { // Shifting horizontally - pos.left = Math.max(0,window.innerWidth - boundingRect.width); + pos.left = Math.max(0, window.innerWidth - boundingRect.width); } if (pos.top + boundingRect.height > window.innerHeight) { // Flipping vertically - pos.top = Math.max(0,mouseCoords.y - Tooltip_marginY - boundingRect.height); + pos.top = Math.max(0, mouseCoords.y - Tooltip_marginY - boundingRect.height); } setStyle(pos);