The piece is completed
Piece dropped in the slot of this piece
Slot in which this piece has been dropped
Jquery element of the piece
Native element of the piece
Puzzle instance for which the piece belongs
Jquery element of the slot
Native element of the slot
X position
Y position
Key to store the instance related to the dom elements using $.data
For internal use only Disable drag&drop. To disable the widget use SnapPuzzleGame.disable instead
For internal use only Enable the drag&drop if the piece has not been completed yet. If the piece is complete the drag&drop will not be enabled To enable the widget use SnapPuzzleGame.enable instead
Init the jquery draggable
Init the droppable
Invoked when a piece is dropped in this slot When a piece is dropped in the correct slot, the piece is automatically disabled
Invoked when a piece is reverted. Revert the state classes
Invoked when a piece starts to been dragged. Resets the classes
Invoked when a piece exists from the bounds of a slot. Resets the classes
Invoked when the piece is over a slot. Add the correct/incorrect classes This function is invoked only when the feedbackOnHover option is true
Refresh the images
Reset the piece to the initial state. Remove the piece from the slot
Resolve if the dropped piece must be revertd
Solve the piece moving it to the correct slot
Generated using TypeDoc
Represents a piece and the related slot. Note: When a piece is dropped in the correct slot, the piece is automatically disabled