diff --git a/frontend/src/graph/Graph.san b/frontend/src/graph/Graph.san index fc48a6485fbb118699a569c3c682810831f212aa..8f782622dab4d4939db9e1167fc2598497cba807 100644 --- a/frontend/src/graph/Graph.san +++ b/frontend/src/graph/Graph.san @@ -46,6 +46,19 @@ export default { attached() { autoAdjustHeight(); + }, + + handleFitScreen() { + this.data.set('filtScreen', { + filtScreen: true + }); + this.data.set('config.scale', 0.5); + }, + + handleDownload() { + this.data.set('download', { + filtScreen: true + }); } }; diff --git a/frontend/src/graph/ui/chart.san b/frontend/src/graph/ui/chart.san index 81ab22ccaa26d75b56d446c4066207e175c6abbc..9545d5d64dd054a3ad8b16f09059f1a04fe93224 100644 --- a/frontend/src/graph/ui/chart.san +++ b/frontend/src/graph/ui/chart.san @@ -106,16 +106,6 @@ export default { // enable inertial throwing inertia: true, autoScroll: true, - restrict: { - restriction: 'parent', - endOnly: true, - elementRect: { - top: 0, - left: 0, - bottom: 1, - right: 1 - } - }, // call this function on every dragmove event onmove(event) { dragMovelHandler(event, (target, x, y) => {