oakmac / chessboardjs

JavaScript chessboard
https://chessboardjs.com
MIT License
2.01k stars 408 forks source link

Add green arrows for analysis boards #63

Open SolitudeSA opened 10 years ago

SolitudeSA commented 10 years ago

I love chessboardjs, it's simple to use and well thought out.

Something that I can really use though is analysis arrows so that the board can be used as an analysis board for videos and demonstrations.

For instance a SetArrow and a RemoveArrow function. From one square to another. An example of such a board is Chess.com's Live analysis board where one can right click on a square and drag to another square after which is will create an arrow.

Keep up the good work!

shaktisd commented 10 years ago

+1, will be a good feature to have.

oakmac commented 10 years ago

I like this idea, but I'm not sure it belongs in chessboard.js core.

Might be better suited as something like a plugin to core functionality?

SolitudeSA commented 10 years ago

I don't mind if it's a plugin or part of the core chessboard.js. I do know that I would absolutely love to have it available.

I tried to do it myself a while back but unfortunately I don't know front end development that well at all.

I would be forever grateful if someone is able to create something like this. :-)

brunobbbs commented 8 years ago

+1 for it... someone started some plugin? I'm interested to help

SolitudeSA commented 8 years ago

Nope I never did create a plugin. One would be great though!

raneku commented 7 years ago

I've forked version 0.3.0 in order to add arrow support, which I needed for my own application. The fork is available from: https://github.com/raneku/chessboardjs

Demo available here: https://rawgit.com/raneku/chessboardjs/master/www/releases/0.3.0-r1/test.html

I may get around to offering this as a separate plugin at some stage.

brunobbbs commented 7 years ago

@raneku you would submit a pull request with this enhancement