Draw state labels improvement (#1155)

* chore: render debug elements

* feat: redo draw state labels algo

---------

Co-authored-by: Azgaar <azgaar.fmg@yandex.com>
This commit is contained in:
Azgaar 2024-10-19 13:25:34 +02:00 committed by GitHub
parent efbe0373b0
commit 87e1dc2c5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 156 additions and 128 deletions

View file

@ -122,7 +122,7 @@ function editLabel() {
function redrawLabelPath() {
const path = byId("textPath_" + elSelected.attr("id"));
lineGen.curve(d3.curveBundle.beta(1));
lineGen.curve(d3.curveNatural);
const points = [];
debug
.select("#controlPoints")