Make the editor use the remaining page height

This commit is contained in:
2024-03-20 20:03:49 +01:00
parent d9cd098b61
commit 57256c76ab
3 changed files with 21 additions and 8 deletions

View File

@@ -464,6 +464,14 @@ export class GraphEditor extends HTMLElement {
private fireOnChange() {
this.dispatchEvent(new Event('change'));
}
override get clientWidth(): number {
return this.children[0].clientWidth;
}
override get clientHeight(): number {
return this.children[0].clientHeight;
}
}
type NodeSelection = d3.Selection<