berkmancenter / dotplot

Telling a story through dots
GNU General Public License v3.0
51 stars 27 forks source link

Text alignment issue when re-organising nodes on a saved project. #65

Closed chaitanyya closed 7 years ago

chaitanyya commented 7 years ago

When using the sliders to organise nodes (Running the force layout again) after updating the text of the labels, the alignment is not proper. This is caused because of the repetitive multiplication of the scale value with the coordinates. It's better to update and store the node and label coordinates instead of using the scale value for each calculation.

chaitanyya commented 7 years ago

Fixed in #67