otko/tests/gui
Repository files (latest commit first)
Filename Latest commit message Latest commit date
smillmorel 5262d31e33 fix: stop the Plotly hover handler redrawing on every mouse move
plotly_hover/plotly_unhover fire continuously while the mouse moves, and
the unhover handler restyled the snap marker unconditionally - even with
snapping off and nothing visible. That meant a full Plotly.restyle plus
redraw per mouse event, which re-fired hover until the page died with
'RangeError: Maximum call stack size exceeded' and the canvas froze
(reported live after opening a model).

The marker is now updated only when its visible state actually changes: no
marker when snapping is off, and a restyle only when the snapped point
differs from the one already shown. Deliberately synchronous - timers are
throttled to about a second by WebEngine when the page is not compositing,
which stalled the preview. Measured: 200 mouse-move events went from 200
restyles to 0; 200 hovers on one grid dot cost a single restyle.
2026-09-16 20:33:30 -04:00
..
__init__.py feat: initial otko import 2026-09-08 02:12:15 -04:00
test_analysis_commands.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_analysis_runner.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_assign_load_pattern_name.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_assign_masses.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_assign_zls.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_canvas_backend_switch.py feat: live canvas backend switching (Options → Canvas Backend) 2026-09-16 18:43:59 -04:00
test_canvas_grid_snap.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_case_forms.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_commands.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_constraint_and_display_dialogs.py feat: initial otko import 2026-09-08 02:12:15 -04:00
test_convert_element_type.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_define_dialogs.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_draw_frame_tool.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_draw_node_tool.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_draw_truss_tool.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_grid_dialog.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_main_window.py chore: adopt remaining local development state 2026-09-16 12:03:22 -04:00
test_material_dialog_concrete04.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_material_form_ranges.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_material_tester_dialog.py feat: initial otko import 2026-09-08 02:12:15 -04:00
test_path_ts_dialogs.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_pattern_load_audit.py feat: initial otko import 2026-09-08 02:12:15 -04:00
test_plot_properties.py feat: Options → Plot Properties dialog with live preview and persistence 2026-09-16 19:31:38 -04:00
test_plotly_hover.py fix: stop the Plotly hover handler redrawing on every mouse move 2026-09-16 20:33:30 -04:00
test_plotly_view_preservation.py feat: surface the Plotly page console in the Console dock 2026-09-16 20:18:23 -04:00
test_property_commands.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_property_forms.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_pushover_curve_units.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_run_analysis.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_section_extrusion.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_section_forms.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_selection.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_transforms.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_tree_multi_select.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_units_status_bar.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_update_element_fields.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00
test_viewport_axes.py feat: initial otko import 2026-09-08 02:12:15 -04:00
test_working_plane.py style: resolve the remaining ruff findings 2026-09-16 13:20:36 -04:00