Nic30 / d3-hwschematic

D3.js and ELK based schematic visualizer
Eclipse Public License 2.0
94 stars 13 forks source link

cache render state #3

Closed Nic30 closed 4 years ago

Nic30 commented 4 years ago

If the component is opened all node positions are deleted and the ELK is called with the component expanded. On component close all node positions are deleted as well.

It would be better to store somewhere the current state if expanding a component so if we close it we can just copy previous state back and avoid calling ELK.

Nic30 commented 4 years ago

done after 0225f5729e851dfcb875924a7161fe30a048ccc9