pieceDrop event data
$("someSelector").on("snapPuzzle:pieceDrop",(e,data:SnapPuzzlePieceDropEvent)=>{ console.log(data); });
Instance of snapPuzzle that triggers the event
The piece has been dropped in the correct slot
Instance of SnapPuzzlePiece for the piece that has been dropped
Instance of SnapPuzzlePiece for the slot where the piece has been dropped
Generated using TypeDoc
pieceDrop event data
$("someSelector").on("snapPuzzle:pieceDrop",(e,data:SnapPuzzlePieceDropEvent)=>{ console.log(data); });