Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SnapPuzzlePieceDropEvent

pieceDrop event data

example
$("someSelector").on("snapPuzzle:pieceDrop",(e,data:SnapPuzzlePieceDropEvent)=>{
     console.log(data);
});

Hierarchy

  • SnapPuzzlePieceDropEvent

Index

Properties

instance

instance: SnapPuzzleGame

Instance of snapPuzzle that triggers the event

isCorrect

isCorrect: boolean

The piece has been dropped in the correct slot

piece

Instance of SnapPuzzlePiece for the piece that has been dropped

slot

Instance of SnapPuzzlePiece for the slot where the piece has been dropped

Generated using TypeDoc