mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
feat(charts): remove on dialog close
This commit is contained in:
parent
eded296b47
commit
6cd2419f10
8 changed files with 90 additions and 56 deletions
|
|
@ -26,7 +26,7 @@ let getDescription; // dataElement => string
|
|||
let getShape; // dataElement => string;
|
||||
|
||||
export function open(props) {
|
||||
closeDialogs(".stable");
|
||||
closeDialogs("#hierarchyTree, .stable");
|
||||
|
||||
dataElements = props.data;
|
||||
dataElements[0].origins = [null];
|
||||
|
|
@ -145,7 +145,7 @@ function appendStyleSheet() {
|
|||
}
|
||||
|
||||
function insertHtml() {
|
||||
const html = /* html */ `<div id="hierarchyTree" style="overflow: hidden;">
|
||||
const html = /* html */ `<div id="hierarchyTree" class="dialog" style="overflow: hidden;">
|
||||
<svg>
|
||||
<g id="hierarchyTree_viewbox" style="text-anchor: middle; dominant-baseline: central">
|
||||
<g transform="translate(10, -45)">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue