I used to get the value of the scale bar widget,
const scaleText = scaleBar.container.innerText.trim();
however, with the new scale-bar component, it seems that you cannot directly access its value.
I suppose you need to get the scale from the arcgis-map component but sometimes it doesn't sync with the display of the scale value. Is there way to access the scale bar value?