Closed Eddykasp closed 1 year ago
As we tried to off-load several parts of the diagram generation to the client to reduce the necessary amount of data sent during communication (which still is a bigger part of the generation time) I think the centralization could also be on the client side. What about the depth map, can't that be used as a central point for that? Maybe that class just needs a rename to better reflect what it does.
Yes I think the depth map would be a good place to put this stuff, although for the incremental diagram generation this would be too late. Currently there is no implementation of the piece requesting strategy which actually uses precise coordinates though. It's just something to keep in mind.
Several features, such as incremental diagram generation, to an extent the depth map and the future proxy-view require the absolute coordinates of nodes and compute them independently. This redundancy should be extracted and centralized, possibly to the language server.