-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Closed
Copy link
Labels
Description
Erik:
cause
Cause: reload event in the studio overwrites the changed diagram with the loaded one from the studio state, hereabouts:
purescript-studio/studio/src/View/Studio/View.purs
Lines 84 to 94 in f214105
ResolvedDiagram diagramInfo nodeMaybe -> | |
div [ classes [ ClassName "flex" ] ] | |
[ div [ classes [ ClassName "w-1/2" ] ] | |
[ slot _diagramEditor unit DiagramEditor.ui diagramInfo.ops (Just <<< HandleDiagramEditorMsg) ] | |
, div [ classes [ ClassName "w-1/2", ClassName "pl-4" ] ] | |
[ case nodeMaybe of | |
Just (NetNode netInfo) -> slot _petrinetEditor unit (PetrinetEditor.ui (Just "diagram_node")) netInfo (Just <<< HandlePetrinetEditorMsg) | |
Just (DiagramNode diagramInfo2) -> text "TODO viewing internal diagrams is not supported yet." | |
Nothing -> text "Click a node to show the corresponding net or diagram." | |
] | |
] |
todo
-
Halogen.raise
an 'output event' that will allow us to respond to diagram edits. - Process this event and persist them, for loaded
Project
s. - get rid of CursorMoved