Skip to content

Commit

Permalink
fixing recolor button
Browse files Browse the repository at this point in the history
  • Loading branch information
HarutoHiroki committed Oct 7, 2024
1 parent 63fdbdb commit b082bea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion assets/js/graphtool.js
Original file line number Diff line number Diff line change
Expand Up @@ -2549,7 +2549,12 @@ d3.json(typeof PHONE_BOOK !== "undefined" ? PHONE_BOOK
doc.select("#recolor").on("click", function () {
allPhones.forEach(p => { if (!p.isTarget) { delete p.id; } });
phoneNumber = 0; nextPN = null;
activePhones.forEach(p => { if (!p.isTarget) { p.id = getPhoneNumber(); } });
activePhones.forEach(p => {
if (!p.isTarget) {
p.id = getPhoneNumber();
p.hexColor = hclToHex(getCurveColor(p.id,0));
}
});
colorPhones();
});

Expand Down

0 comments on commit b082bea

Please sign in to comment.