Skip to content

halogen-diagram-editor: drag & drop on spacebar-created bricks destroys them  #267

@clayrat

Description

@clayrat

Erik:

cause

Cause: reload event in the studio overwrites the changed diagram with the loaded one from the studio state, hereabouts:

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 Projects.
  • get rid of CursorMoved

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions