feat(charts): remove on dialog close

This commit is contained in:
Azgaar 2022-06-24 15:51:10 +03:00
parent eded296b47
commit 6cd2419f10
8 changed files with 90 additions and 56 deletions

View file

@ -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)">