Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Swaroop Guggilam committed Sep 2, 2023
2 parents 166a180 + 0674612 commit c7b60e1
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions docs/js/class_p.js
Original file line number Diff line number Diff line change
Expand Up @@ -12666,22 +12666,30 @@ class Puzzle {
}
this.ctx.fillStyle = Color.TRANSPARENTBLACK;
if (this.mode[this.mode.qa].edit_mode === "number" && (this.mode[this.mode.qa][this.mode[this.mode.qa].edit_mode][0] === "3" || this.mode[this.mode.qa][this.mode[this.mode.qa].edit_mode][0] === "9")) {
this.draw_polygon(this.ctx, this.point[this.cursolS].x, this.point[this.cursolS].y, 0.2, 4, 45);
if (this.cursolS) {
this.draw_polygon(this.ctx, this.point[this.cursolS].x, this.point[this.cursolS].y, 0.2, 4, 45);
} else {
this.default_cursol();
}
} else if (UserSettings.draw_edges) {
this.draw_polygon(this.ctx, this.point[this.cursol].x, this.point[this.cursol].y, 0.2, 4, 45);
} else {
this.ctx.beginPath();
this.ctx.moveTo(this.point[this.point[this.cursol].surround[0]].x, this.point[this.point[this.cursol].surround[0]].y);
for (var j = 1; j < this.point[this.cursol].surround.length; j++) {
this.ctx.lineTo(this.point[this.point[this.cursol].surround[j]].x, this.point[this.point[this.cursol].surround[j]].y);
}
this.ctx.closePath();
this.ctx.stroke();
this.ctx.fill();
this.default_cursol();
}
}
}

default_cursol() {
this.ctx.beginPath();
this.ctx.moveTo(this.point[this.point[this.cursol].surround[0]].x, this.point[this.point[this.cursol].surround[0]].y);
for (var j = 1; j < this.point[this.cursol].surround.length; j++) {
this.ctx.lineTo(this.point[this.point[this.cursol].surround[j]].x, this.point[this.point[this.cursol].surround[j]].y);
}
this.ctx.closePath();
this.ctx.stroke();
this.ctx.fill();
}

draw_conflicts() {
let keys = this.conflict_cells;
for (var k = 0; k < keys.length; k++) {
Expand Down

0 comments on commit c7b60e1

Please sign in to comment.