Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any idea how to determine start position and end position for arrow? #2

Open
gustavonecore opened this issue Jun 6, 2023 · 0 comments

Comments

@gustavonecore
Copy link

I would like to transcript the arrow/circles created in lichess into my chessboard using this tool, but seeing the code looks like it's just for mouse drawing.

Looks something like this (after parsing the pgn with pgn-parser), colorFields and colorArrows:

			[{
				"moveNumber": 1,
				"notation": {
					"fig": null,
					"strike": null,
					"col": "d",
					"row": "6",
					"check": null,
					"promotion": null,
					"notation": "d6"
				},
				"commentAfter": " A movement comment here",
				"variations": [],
				"nag": null,
				"commentDiag": {
					"comment": " A movement comment here",
					"colorFields": ["Gc1", "Ge1", "Rh2", "Ra2"],
					"colorArrows": ["Gb2c4", "Gb1c3", "Re1e8", "Bg2g4"]
				},
				"turn": "b"
			}],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant