Skip to content

Commit

Permalink
Fix #6587 - update with path string
Browse files Browse the repository at this point in the history
  • Loading branch information
git-user committed Dec 14, 2023
1 parent 5b39140 commit b64b66c
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions sirepo/package_data/static/js/sirepo-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,21 +471,7 @@ class SVGPath extends UIElement {
}

update() {
let c = this.pathPoint(0);
this.corners = [c];
this.lines = [];
let p = `M${c[0]},${c[1]} `;
for (let i = 1; i < this.points.length; ++i) {
c = this.pathPoint(i);
this.lines.push([c, this.corners[this.corners.length - 1]]);
this.corners.push(c);
p += `L${c[0]},${c[1]} `;
}
if (this.doClose) {
this.lines.push([this.corners[this.corners.length - 1], this.corners[0]]);
p += 'z';
}
this.getAttr('d').setValue(p);
this.getAttr('d').setValue(this.pathString());
}

}
Expand Down

0 comments on commit b64b66c

Please sign in to comment.