alexzhornyak / ScxmlEditor-Tutorial

ScxmlEditor - powerful tool for creating, editing and debugging scxml files
https://alexzhornyak.github.io/ScxmlEditor-Tutorial/
BSD 3-Clause "New" or "Revised" License
73 stars 13 forks source link

Datamodel View #77

Open EdK-z opened 2 years ago

EdK-z commented 2 years ago

Feature Request A view that shows the complete datamodel would be useful. It is possible to declare an independent datamodel visually for each substate that makes the chart a little easier to read. But this is misleading (and error prone) because they are all aggregated into only one datamodel for the whole chart (at least in ECMAscript - Section B.2.2). This should be a list view sorted by data name (id) also showing the initial value and state where it was declared. This is especially useful to catch situations where a data name may have been re-initialized accidentally in a substate. Maybe even provide a warning symbol if a data name is duplicated. As a stretch goal, it would be nice if it showed all of the places where the data was being used in a tree view style (scripts / conditions / other content). Further stretch goal... allow renaming the data in the view to automatically propagate (basically like the existing "replace" feature).

alexzhornyak commented 2 years ago

I'll think about it. You can use Structure View as a temporary solution

https://user-images.githubusercontent.com/18611095/189040212-8ea52d3e-13a1-474a-b7b1-2b0e3494e071.mp4