react-chessboard-svg
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,3 +6,3 @@ import 'react'; | ||
const PIECES = { | ||
wP: position => /*#__PURE__*/jsx("path", { | ||
wP: (position, key) => /*#__PURE__*/jsx("path", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -23,4 +23,4 @@ d: "m 22.5,9 c -2.21,0 -4,1.79 -4,4 0,0.89 0.29,1.71 0.78,2.38 C 17.33,16.5 16,18.59 16,21 c 0,2.03 0.94,3.84 2.41,5.03 C 15.41,27.09 11,31.58 11,39.5 H 34 C 34,31.58 29.59,27.09 26.59,26.03 28.06,24.84 29,23.03 29,21 29,18.59 27.67,16.5 25.72,15.38 26.21,14.71 26.5,13.89 26.5,13 c 0,-2.21 -1.79,-4 -4,-4 z", | ||
} | ||
}), | ||
wR: position => /*#__PURE__*/jsxs("g", { | ||
}, key), | ||
wR: (position, key) => /*#__PURE__*/jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -73,4 +73,4 @@ style: { | ||
})] | ||
}), | ||
wN: position => /*#__PURE__*/jsxs("g", { | ||
}, key), | ||
wN: (position, key) => /*#__PURE__*/jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -116,4 +116,4 @@ style: { | ||
})] | ||
}), | ||
wB: position => /*#__PURE__*/jsxs("g", { | ||
}, key), | ||
wB: (position, key) => /*#__PURE__*/jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -154,4 +154,4 @@ style: { | ||
})] | ||
}), | ||
wQ: position => /*#__PURE__*/jsxs("g", { | ||
}, key), | ||
wQ: (position, key) => /*#__PURE__*/jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -199,4 +199,4 @@ style: { | ||
})] | ||
}), | ||
wK: position => /*#__PURE__*/jsxs("g", { | ||
}, key), | ||
wK: (position, key) => /*#__PURE__*/jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -262,4 +262,4 @@ style: { | ||
})] | ||
}), | ||
bP: position => /*#__PURE__*/jsx("path", { | ||
}, key), | ||
bP: (position, key) => /*#__PURE__*/jsx("path", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -280,4 +280,4 @@ d: "m 22.5,9 c -2.21,0 -4,1.79 -4,4 0,0.89 0.29,1.71 0.78,2.38 C 17.33,16.5 16,18.59 16,21 c 0,2.03 0.94,3.84 2.41,5.03 C 15.41,27.09 11,31.58 11,39.5 H 34 C 34,31.58 29.59,27.09 26.59,26.03 28.06,24.84 29,23.03 29,21 29,18.59 27.67,16.5 25.72,15.38 26.21,14.71 26.5,13.89 26.5,13 c 0,-2.21 -1.79,-4 -4,-4 z", | ||
} | ||
}), | ||
bR: position => /*#__PURE__*/jsxs("g", { | ||
}, key), | ||
bR: (position, key) => /*#__PURE__*/jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -369,4 +369,4 @@ style: { | ||
})] | ||
}), | ||
bN: position => /*#__PURE__*/jsxs("g", { | ||
}, key), | ||
bN: (position, key) => /*#__PURE__*/jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -418,4 +418,4 @@ style: { | ||
})] | ||
}), | ||
bB: position => /*#__PURE__*/jsxs("g", { | ||
}, key), | ||
bB: (position, key) => /*#__PURE__*/jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -456,4 +456,4 @@ style: { | ||
})] | ||
}), | ||
bQ: position => /*#__PURE__*/jsxs("g", { | ||
}, key), | ||
bQ: (position, key) => /*#__PURE__*/jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -521,4 +521,4 @@ style: { | ||
})] | ||
}), | ||
bK: position => /*#__PURE__*/jsxs("g", { | ||
}, key), | ||
bK: (position, key) => /*#__PURE__*/jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -579,3 +579,3 @@ style: { | ||
})] | ||
}) | ||
}, key) | ||
}; | ||
@@ -1219,3 +1219,3 @@ const COLUMN_X_VALUES = { | ||
squareLightColour: squareLightColour | ||
}), Object.entries(fenObj).map(([square, piece]) => PIECES[piece](`${COLUMN_X_VALUES[square[0]]} ${ROW_Y_VALUES[square[1]]}`))] | ||
}), Object.entries(fenObj).map(([square, piece]) => PIECES[piece](`${COLUMN_X_VALUES[square[0]]} ${ROW_Y_VALUES[square[1]]}`, square))] | ||
}); | ||
@@ -1222,0 +1222,0 @@ } |
@@ -10,3 +10,3 @@ 'use strict'; | ||
const PIECES = { | ||
wP: position => /*#__PURE__*/jsxRuntime.jsx("path", { | ||
wP: (position, key) => /*#__PURE__*/jsxRuntime.jsx("path", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -27,4 +27,4 @@ d: "m 22.5,9 c -2.21,0 -4,1.79 -4,4 0,0.89 0.29,1.71 0.78,2.38 C 17.33,16.5 16,18.59 16,21 c 0,2.03 0.94,3.84 2.41,5.03 C 15.41,27.09 11,31.58 11,39.5 H 34 C 34,31.58 29.59,27.09 26.59,26.03 28.06,24.84 29,23.03 29,21 29,18.59 27.67,16.5 25.72,15.38 26.21,14.71 26.5,13.89 26.5,13 c 0,-2.21 -1.79,-4 -4,-4 z", | ||
} | ||
}), | ||
wR: position => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
}, key), | ||
wR: (position, key) => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -77,4 +77,4 @@ style: { | ||
})] | ||
}), | ||
wN: position => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
}, key), | ||
wN: (position, key) => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -120,4 +120,4 @@ style: { | ||
})] | ||
}), | ||
wB: position => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
}, key), | ||
wB: (position, key) => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -158,4 +158,4 @@ style: { | ||
})] | ||
}), | ||
wQ: position => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
}, key), | ||
wQ: (position, key) => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -203,4 +203,4 @@ style: { | ||
})] | ||
}), | ||
wK: position => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
}, key), | ||
wK: (position, key) => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -266,4 +266,4 @@ style: { | ||
})] | ||
}), | ||
bP: position => /*#__PURE__*/jsxRuntime.jsx("path", { | ||
}, key), | ||
bP: (position, key) => /*#__PURE__*/jsxRuntime.jsx("path", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -284,4 +284,4 @@ d: "m 22.5,9 c -2.21,0 -4,1.79 -4,4 0,0.89 0.29,1.71 0.78,2.38 C 17.33,16.5 16,18.59 16,21 c 0,2.03 0.94,3.84 2.41,5.03 C 15.41,27.09 11,31.58 11,39.5 H 34 C 34,31.58 29.59,27.09 26.59,26.03 28.06,24.84 29,23.03 29,21 29,18.59 27.67,16.5 25.72,15.38 26.21,14.71 26.5,13.89 26.5,13 c 0,-2.21 -1.79,-4 -4,-4 z", | ||
} | ||
}), | ||
bR: position => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
}, key), | ||
bR: (position, key) => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -373,4 +373,4 @@ style: { | ||
})] | ||
}), | ||
bN: position => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
}, key), | ||
bN: (position, key) => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -422,4 +422,4 @@ style: { | ||
})] | ||
}), | ||
bB: position => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
}, key), | ||
bB: (position, key) => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -460,4 +460,4 @@ style: { | ||
})] | ||
}), | ||
bQ: position => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
}, key), | ||
bQ: (position, key) => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -525,4 +525,4 @@ style: { | ||
})] | ||
}), | ||
bK: position => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
}, key), | ||
bK: (position, key) => /*#__PURE__*/jsxRuntime.jsxs("g", { | ||
transform: `translate(${position}) scale(2.222 2.222)`, | ||
@@ -583,3 +583,3 @@ style: { | ||
})] | ||
}) | ||
}, key) | ||
}; | ||
@@ -1223,3 +1223,3 @@ const COLUMN_X_VALUES = { | ||
squareLightColour: squareLightColour | ||
}), Object.entries(fenObj).map(([square, piece]) => PIECES[piece](`${COLUMN_X_VALUES[square[0]]} ${ROW_Y_VALUES[square[1]]}`))] | ||
}), Object.entries(fenObj).map(([square, piece]) => PIECES[piece](`${COLUMN_X_VALUES[square[0]]} ${ROW_Y_VALUES[square[1]]}`, square))] | ||
}); | ||
@@ -1226,0 +1226,0 @@ } |
{ | ||
"name": "react-chessboard-svg", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"repository": "https://github.com/Clariity/react-chessboard-svg", | ||
@@ -5,0 +5,0 @@ "author": "Ryan Gregory <ryangregory.dev@outlook.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76835