fullstack-lang / gongdoc

A gong stack for editing UML diagrams of gong code
MIT License
1 stars 0 forks source link

Refactor with treeMngt and svgMngt in order to minimize SVG generations #204

Closed thomaspeugeot closed 8 months ago

thomaspeugeot commented 9 months ago

Migration to web socket has failed because there are too many call to SVG generation.

The architecture is clumsy. One need to reorganize with one live object for the tree management and one for the svg management.

treeMngt and wsMngt

thomaspeugeot commented 9 months ago

Problem with the add button, the diagram file is created but the tree does not grow by one leave.

Why ?

On Need to have a probe on the tree stack

thomaspeugeot commented 9 months ago

Strange, it works now

thomaspeugeot commented 9 months ago

Use DiagramNode as a interface below PortfolioNode

type DiagramNode interface {
  GetDiagram() Diagram
}

For adding the CheckButton test wether the I/F is a DiagramNode instead of HasCheckButton