Display vertex type in graph

This commit is contained in:
Ladd Hoffman 2023-07-10 01:46:52 -05:00
parent 8d0daf2062
commit 9eff884636
2 changed files with 8 additions and 1 deletions

View File

@ -38,7 +38,9 @@ export class Vertex {
return; return;
} }
let html = `${this.label}`; let html = '';
html += `<span class=small>${this.type}</span><br>`;
html += `${this.label}`;
html += '<table>'; html += '<table>';
for (const [key, value] of this.properties.entries()) { for (const [key, value] of this.properties.entries()) {
const displayValue = typeof value === 'number' ? displayNumber(value) : value; const displayValue = typeof value === 'number' ? displayNumber(value) : value;

View File

@ -89,3 +89,8 @@ table {
form { form {
min-width: 20em; min-width: 20em;
} }
.small {
font-size: 8pt;
line-height: 0;
color: #999999;
}