@@ -8,8 +8,6 @@ public class DiagramOptions
88 {
99 [ Description ( "Key code for deleting entities" ) ]
1010 public string DeleteKey { get ; set ; } = "Delete" ;
11- [ Description ( "Whether to inverse the zoom direction or not" ) ]
12- public bool InverseZoom { get ; set ; }
1311 [ Description ( "The default component for nodes" ) ]
1412 public Type ? DefaultNodeComponent { get ; set ; }
1513 [ Description ( "The grid size (grid-based snaping" ) ]
@@ -20,9 +18,8 @@ public class DiagramOptions
2018 public bool AllowMultiSelection { get ; set ; } = true ;
2119 [ Description ( "Whether to allow panning or not" ) ]
2220 public bool AllowPanning { get ; set ; } = true ;
23- [ Description ( "Whether to allow zooming or not" ) ]
24- public bool AllowZooming { get ; set ; } = true ;
2521
22+ public DiagramZoomOptions Zoom { get ; set ; } = new DiagramZoomOptions ( ) ;
2623 public DiagramLinkOptions Links { get ; set ; } = new DiagramLinkOptions ( ) ;
2724 }
2825
@@ -39,4 +36,16 @@ public class DiagramLinkOptions
3936 [ Description ( "The default color for selected links" ) ]
4037 public string DefaultSelectedColor { get ; set ; } = "rgb(110, 159, 212)" ;
4138 }
39+
40+ public class DiagramZoomOptions
41+ {
42+ [ Description ( "Whether to allow zooming or not" ) ]
43+ public bool Enabled { get ; set ; } = true ;
44+ [ Description ( "Whether to inverse the zoom direction or not" ) ]
45+ public bool Inverse { get ; set ; }
46+ [ Description ( "Minimum value allowed" ) ]
47+ public double Minimum { get ; set ; } = 0.1 ;
48+ [ Description ( "Maximum value allowed" ) ]
49+ public double Maximum { get ; set ; } = 2 ;
50+ }
4251}
0 commit comments