tilk / digitaljs

Teaching-focused digital circuit simulator
BSD 2-Clause "Simplified" License
659 stars 47 forks source link

Use batch to mark the beginning and end of elkjs layout change #77

Closed yuyichao closed 2 years ago

yuyichao commented 2 years ago

This matches the behavior of the dagre layout engine and allows the user to distinguish between automatic and user-induced layout-change events.

This is particularly important since elkjs layout happens asynchronously so simply treating events from the initial display of the circuit as automatic layout event doesn't work.