Skip to content
Snippets Groups Projects
Commit daee523f authored by Ulrich Schöpp's avatar Ulrich Schöpp Committed by Ulrich Schöpp
Browse files

Increase zoom range


Signed-off-by: default avatarUlrich Schöpp <schoepp@fortiss.org>
Issue-Ref: 4181
parent 0beeccfe
No related branches found
No related tags found
1 merge request!163Improve usability of diagram viewer
Pipeline #32210 failed
......@@ -2,7 +2,7 @@ DiagramCoordinate.java 6b00aec99054d4cd19003a72bd4e5e774ac6a641 GREEN
DiagramLayers.java aa1f95dbae290c8b00202abe4385b01b8f36e5ab YELLOW
DiagramViewer.java 5359e94ca4a4ca60be60ecb9faaa4f8e1ce8d48d YELLOW
DiagramViewerDefaultTags.java 6230763252409c60009ab8887b4ef582cf883229 GREEN
DiagramViewerFeatures.java 6898ae39d9509551b31e6061a6469fd75bd3bb89 YELLOW
DiagramViewerFeatures.java 43ebc3d622c2840cc41c6687cf00dd38ac285ccd YELLOW
DiagramViewerSelection.java e833f592543bc97077907d980a39b123fc4044e6 GREEN
EDragGesture.java 5cfa098d3877db11981c2750e5e103156d62fc5e GREEN
FeedbackChange.java b088fa89af648f1674f2f9c1f7f99d585ce801ca GREEN
......
......@@ -29,13 +29,13 @@ public final class DiagramViewerFeatures {
/** The diagram viewer. */
private final DiagramViewer viewer;
/**
* The zoom factors. The values are chosen to have a roughly constant factor between them, for
* smooth interactive scrolling.
* The zoom factors. The values are chosen to have a roughly constant factor between them, to
* make interactive scrolling less jumpy.
*/
private double[] zoomFactors =
new double[] {0.5, 0.6, 0.7, 0.80, 1, 1.2, 1.44, 2.0, 2.5, 3, 3.5, 4, 5};
private double[] zoomFactors = new double[] {0.125, 0.25, 0.3, 0.4, 0.5, 0.65, 0.80, 1, 1.25,
1.5, 2.0, 2.5, 3.5, 4.5, 6};
/** The current zoom factor array index. */
private int zoomFactorIndex = 4; // Index of 1
private int zoomFactorIndex = 7; // Index of 1
/** Flag indicating whether link highlighting is enabled. */
private boolean linkHighlightingEnabled = false;
/** Flag if interaction area shading is active. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment