mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
set zoom value on button after rendering graph
This commit is contained in:
parent
49cf88c5c2
commit
df375ada77
|
@ -170,6 +170,7 @@ cy.on('zoom', function(evt) {
|
|||
cy.layout({ name: 'cose', ready: function() {$('#png').attr('src', cy.png({'full': true}))} });
|
||||
cy.maxZoom(2.5);
|
||||
cy.minZoom(0.4);
|
||||
$('#zoom button').text(Math.round(cy.zoom()*100)+'%');
|
||||
|
||||
$(document).ready(function() {
|
||||
$('body').on('click', '#setlayout', function(ev){
|
||||
|
|
Loading…
Reference in New Issue
Block a user