Display vertex type in graph
This commit is contained in:
parent
8d0daf2062
commit
9eff884636
|
@ -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;
|
||||||
|
|
|
@ -89,3 +89,8 @@ table {
|
||||||
form {
|
form {
|
||||||
min-width: 20em;
|
min-width: 20em;
|
||||||
}
|
}
|
||||||
|
.small {
|
||||||
|
font-size: 8pt;
|
||||||
|
line-height: 0;
|
||||||
|
color: #999999;
|
||||||
|
}
|
Loading…
Reference in New Issue