From 028d4478817b511d60a2a539ba50966e3682f07a Mon Sep 17 00:00:00 2001 From: Mossy426 Date: Mon, 26 Aug 2024 19:48:10 -0400 Subject: [PATCH] Update to have labels and links to go with themes --- main.ts | 7 ++++--- manifest.json | 2 +- package.json | 2 +- styles.css | 11 +++++------ 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/main.ts b/main.ts index 9110fcb..3dec8a8 100644 --- a/main.ts +++ b/main.ts @@ -355,7 +355,7 @@ class ScGraphItemView extends ItemView { } this.setupSettingsMenu(); this.setupSVG(); - this.addEventListeners(); + this.addEventListeners(); this.watchForNoteChanges(); // Load latest active file if opening view for first time @@ -809,7 +809,6 @@ class ScGraphItemView extends ItemView { const dropdownMenu = document.querySelector('.sc-visualizer-dropdown-menu') as HTMLElement; if (dropdownMenu) { - dropdownMenu.classList.toggle('visible'); } else { @@ -1932,7 +1931,9 @@ class ScGraphItemView extends ItemView { newOpacity = Math.max(minOpacity, Math.min(maxOpacity, newOpacity)); // Update node labels opacity based on zoom level - this.labelSelection.transition().duration(300).attr('opacity', newOpacity); + if(this.labelSelection) { + this.labelSelection.transition().duration(300).attr('opacity', newOpacity); + } } diff --git a/manifest.json b/manifest.json index dcef6f5..a496faf 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "smart-connections-visualizer", "name": "Smart Connections Visualizer", - "version": "1.0.14", + "version": "1.0.15", "minAppVersion": "0.15.0", "description": "View your Smart Connections in a visualized format.", "author": "Evan Moscoso", diff --git a/package.json b/package.json index 98bc343..b935111 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "smart-connections-visualizer", - "version": "1.0.14", + "version": "1.0.15", "description": "A plugin that allows you to view your Smart Connections in a visualized format.", "main": "main.js", "scripts": { diff --git a/styles.css b/styles.css index d40d4ca..ffa414e 100644 --- a/styles.css +++ b/styles.css @@ -1,16 +1,15 @@ .smart-connections-visualizer-link { - stroke: #4c7787; + stroke: var(--background-modifier-border); stroke-opacity: 1; cursor: pointer; } .smart-connections-visualizer-label { pointer-events: none; - fill: #bbb; - text-shadow: 0px 0px 2px black; - font-family: 'Cascadia'; + fill: var(--text-normal); + font-family: 'Inter'; } .smart-connections-visualizer-link-label { - font-family: 'Cascadia'; + font-family: 'Inter'; } .smart-connections-visualizer-node:hover { @@ -54,7 +53,7 @@ svg .smart-connections-visualizer-nodes circle { background-color: rgba(51, 51, 51, 0.9) !important; } -.sc-visualizer-dropdown-menu.visible { +.visible { display: block !important; } .sc-visualizer-dropdown-menu.open {