projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix SuctionChess, draft HiddenRules (unfinished)
[vchess.git]
/
client
/
src
/
utils
/
printDiagram.js
diff --git
a/client/src/utils/printDiagram.js
b/client/src/utils/printDiagram.js
index
aebdc24
..
d4562bf
100644
(file)
--- a/
client/src/utils/printDiagram.js
+++ b/
client/src/utils/printDiagram.js
@@
-70,6
+70,7
@@
export function getDiagram(args) {
const orientation = args.orientation || "w";
const markArray = getMarkArray(args.marks);
const shadowArray = getShadowArray(args.shadow);
const orientation = args.orientation || "w";
const markArray = getMarkArray(args.marks);
const shadowArray = getShadowArray(args.shadow);
+ const vr = new V(); //just for pieces images paths
let boardDiv = "";
const [startX, startY, inc] =
orientation == "w" ? [0, 0, 1] : [V.size.x - 1, V.size.y - 1, -1];
let boardDiv = "";
const [startX, startY, inc] =
orientation == "w" ? [0, 0, 1] : [V.size.x - 1, V.size.y - 1, -1];
@@
-87,7
+88,7
@@
export function getDiagram(args) {
boardDiv +=
"<img " +
"src='/images/pieces/" +
boardDiv +=
"<img " +
"src='/images/pieces/" +
-
V
.getPpath(board[i][j]) +
+
vr
.getPpath(board[i][j]) +
".svg' " +
"class='piece'/>";
}
".svg' " +
"class='piece'/>";
}