UNPKG
chessfield
Version:
latest (1.9.1)
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.1
1.7.0
1.6.0
1.5.1
1.5.0
1.4.8
1.4.7
1.4.6
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.0.1
1.0.0
0.0.1
0.0.0
A TypeScript+ThreeJS library to render a 3D chessboard
github.com/unicolored/chessfield
chessfield
/
dist
/
resource
/
chessfield.api.d.ts
7 lines
(6 loc)
•
253 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
ChessfieldConfig
}
from
'./chessfield.config.ts'
;
import
*
as
cg
from
'chessground/types'
;
export
interface
ChessfieldApi
{
setFen
(
fen
: cg.
FEN
,
lastMove
?: cg.
Key
[]):
void
;
configUpdate
(
partialConfig
:
Partial
<
ChessfieldConfig
>):
void
; }