Skip to content

Commit dae8686

Browse files
committed
Adjust scaling steps
1 parent ff38bb2 commit dae8686

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/power_grid_model_ds/_core/visualizer/callbacks/element_scaling.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
prevent_initial_call=True
1111
)
1212
def scale_elements(node_scale, edge_scale):
13-
for scale_factor in (node_scale, edge_scale):
14-
if scale_factor is None or scale_factor <= 0:
15-
scale_factor = 1
16-
1713
new_stylesheet = deepcopy(DEFAULT_STYLESHEET)
1814
edge_style = {
1915
"selector": "edge",

src/power_grid_model_ds/_core/visualizer/layout/cytoscape_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
type="number",
1111
value=1,
1212
min=0.1,
13-
step=0.03,
13+
step=0.1,
1414
style={"width": "75px"},
1515
),
1616
html.Span(style={"margin-right": "10px"}),
@@ -24,7 +24,7 @@
2424
type="number",
2525
value=1,
2626
min=0.1,
27-
step=0.03,
27+
step=0.1,
2828
style={"width": "75px"},
2929
),
3030
]

src/power_grid_model_ds/_core/visualizer/layout/cytoscape_html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from power_grid_model_ds._core.visualizer.layout.colors import BACKGROUND_COLOR
77
from power_grid_model_ds._core.visualizer.layout.cytoscape_styling import DEFAULT_STYLESHEET
88

9-
LAYOUT_OPTIONS = ["random", "circle", "concentric", "grid", "cose", "breadthfirst", "preset"]
9+
LAYOUT_OPTIONS = ["random", "circle", "concentric", "grid", "cose", "breadthfirst"]
1010

1111
_CYTO_INNER_STYLE = {"width": "100%", "height": "100%", "background-color": BACKGROUND_COLOR}
1212
_CYTO_OUTER_STYLE = {"height": "100vh"}

0 commit comments

Comments
 (0)