let nodeWidth = getTagStyle(".item-node").getPropertyValue("width");
//utils.js
export function getTagStyle(name) {
let dom = document.querySelector(name);
return window.getComputedStyle(dom);
}
let nodeWidth = getTagStyle(".item-node").getPropertyValue("width");
//utils.js
export function getTagStyle(name) {
let dom = document.querySelector(name);
return window.getComputedStyle(dom);
}