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

View File

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