mirror of
https://github.com/mossy1022/Smart-Connections-Visualizer.git
synced 2026-07-22 10:20:27 +00:00
Update to have labels and links to go with themes
This commit is contained in:
parent
ab992acf75
commit
028d447881
4 changed files with 11 additions and 11 deletions
7
main.ts
7
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
11
styles.css
11
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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue