From 8533c3fda9c577674aaef96440b4e0d190d4e296 Mon Sep 17 00:00:00 2001 From: Mandana Moshref Date: Tue, 27 Apr 2021 00:26:14 +0200 Subject: [PATCH] Graph max-zoom adjusted! --- .../templates/package/snippets/relation_list.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ckanext/relation/templates/package/snippets/relation_list.html b/ckanext/relation/templates/package/snippets/relation_list.html index bde38c6..5abb4db 100644 --- a/ckanext/relation/templates/package/snippets/relation_list.html +++ b/ckanext/relation/templates/package/snippets/relation_list.html @@ -258,7 +258,7 @@

{{ _('The following resources are referenced by this resource:') }}

container: document.getElementById('cy'), minZoom: 0.1, - maxZoom: 100, + //maxZoom: 100, layout: { //name: 'dagre', // @@ -444,8 +444,11 @@

{{ _('The following resources are referenced by this resource:') }}

cy.layout({ name: 'concentric', }); - - cy.fit(cy.elements(), 2); + + //cy.fit(cy.elements(), 2); + cy.maxZoom(1.3); + cy.fit(); + cy.maxZoom(100); });