flandreas / antares

Digital circuit learning platform
49 stars 6 forks source link

Missing redraw of "Representation during simulation" feature #632

Closed flandreas closed 1 year ago

flandreas commented 1 year ago

The container editor has a feature called "Representation during simulation" feature, where users can write a script to change a subcircuits symbol during simulation. The multiplexers in the standard library use this feature to draw the active signal path.

In certain situations, the symbol is not redrawn even if input signals have changed, and hence the script is not executed, leading to invalid rendering of the symbol. Reported in bug issue #630.

Note that the problem does only occur if simulation speed is in range "Use", in which wires are not drawn in signal colour, and the symbol's bounding box doesn't get invalidated.

Developer note: AbstractVerticeView.handleStateChanged(), SubGraphVerticeView.handleStateChanged()