sybila / biodivine-sketchbook

Biodivine SketchBook is a multi-platform application for designing and analysing large-scale logical models.
MIT License
0 stars 1 forks source link

Groundwork for application state #23

Closed daemontus closed 11 months ago

daemontus commented 11 months ago

This PR implements basic "backend state" functionality which is synchronized with frontend using events. The backend state supports undo/redo actions.

The important file is the src/aeon_events.ts file, which exports an aeon_events object (low level event emitter/listener) and the aeon_state object, which provides a more user-friendly API for the frontend to work with.

Currently, the backend state covers the main tab navigation, including pinning, plus the undo/redo stack.

daemontus commented 11 months ago

I can talk about it a bit more on Friday, but @ivicic-petr / @ondrej33 please have a quick look beforehand :)

Also, I'll try to fix the ESLint until then.