Commit 4f8116a2 authored by Jörg Richter's avatar Jörg Richter

Animate "Zoom to Fit" and "Reset Zoom" operations

Close dmx-platform/dmx-platform#321
parent e0c6b22d
Pipeline #8452 passed with stage
in 2 seconds
......@@ -201,11 +201,18 @@ export default class CytoscapeView {
}
fit () {
cy.fit(undefined, 10)
cy.animate({
fit: {padding: 10},
easing: 'ease-in-out-cubic'
})
}
reset () {
cy.zoom(1).center()
cy.animate({
zoom: 1,
center: {},
easing: 'ease-in-out-cubic'
})
}
resize () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment