|
|
@ -228,10 +228,23 @@ function changeLineColorBlack(idLine) {
|
|
|
|
setLineStateFalse(idLine);
|
|
|
|
setLineStateFalse(idLine);
|
|
|
|
let line = stage.findOne("#" + idLine);
|
|
|
|
let line = stage.findOne("#" + idLine);
|
|
|
|
line.stroke(colorLineInnactive);
|
|
|
|
line.stroke(colorLineInnactive);
|
|
|
|
|
|
|
|
console.log(idLine);
|
|
|
|
|
|
|
|
circles.forEach(function (circle) {
|
|
|
|
|
|
|
|
if (circle === "circle" + idLine) {
|
|
|
|
|
|
|
|
stage.findOne("#circle" + idLine).stroke(colorLineInnactive);
|
|
|
|
|
|
|
|
stage.findOne("#circle" + idLine).fill(colorLineInnactive);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function changeLineColorYellow(idLine) {
|
|
|
|
function changeLineColorYellow(idLine) {
|
|
|
|
setLineStateTrue(idLine);
|
|
|
|
setLineStateTrue(idLine);
|
|
|
|
|
|
|
|
circles.forEach(function (circle) {
|
|
|
|
|
|
|
|
if (circle === "circle" + idLine) {
|
|
|
|
|
|
|
|
stage.findOne("#circle" + idLine).stroke(colorLineActive);
|
|
|
|
|
|
|
|
stage.findOne("#circle" + idLine).fill(colorLineActive);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
let line = stage.findOne("#" + idLine);
|
|
|
|
let line = stage.findOne("#" + idLine);
|
|
|
|
line.stroke(colorLineActive);
|
|
|
|
line.stroke(colorLineActive);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -923,3 +936,9 @@ function flip() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
rotated = !rotated;
|
|
|
|
rotated = !rotated;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function setCanvasScale(x, y) {
|
|
|
|
|
|
|
|
console.log(document.getElementsByTagName("canvas"));
|
|
|
|
|
|
|
|
var ctx = document.getElementsByTagName("canvas").getContext("2d");
|
|
|
|
|
|
|
|
console.log(ctx);
|
|
|
|
|
|
|
|
}
|