You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added timeouts to the following functions. New issue is the brief "jump" in svg caused by the timeout. However, the dragging glitch is fixed.
function updateVertical() {
let g = d3.select('#treeBox').select('svg')
.select('g')
let currentTransform = g.attr('transform')
console.log(currentTransform)
treeLayout.updateVertical(tree)
setTimeout(() => {
g.attr('transform', currentTransform)
}, 1000) // Not ideal to use a timeout, but lower values seem to fail
treeOperations.updateUserChanges(tree)
}
function updateRadial() {
let g = d3.select('#treeBox').select('svg')
.select('g')
let currentTransform = g.attr('transform')
treeLayout.updateRadial(tree)
setTimeout(() => {
g.attr('transform', currentTransform)
}, 1000) // Not ideal to use a timeout, but lower values seem to fail
treeOperations.updateUserChanges(tree)
}
No description provided.
The text was updated successfully, but these errors were encountered: