Skip to content

how to disable the drag and drop event of a part if it is installed in its place? #57

Discussion options

You must be logged in to vote

👋 Hi @Konstantin9658!

The short answer is that none of that features - stick to a fixed place when piece is valid, predefined pieces places, background images that serve as a hint - are a supported out-of-the box by headbreaker.

However, that doesn't mean you can not implement them on top of it. headbreaker is not a fully functional library, but a framework for implementing jigsaw puzzles. It gives you the basic models of puzzles, pieces, connections and dragging, plus some rendering capabilities through Konva or your own rendering libraries.

For example, headbreaker as no strong notion of per-piece validity, and the validators it provides are implemented on top of user-metadata you can a…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@goblinsngates
Comment options

Answer selected by Konstantin9658
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants