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

add support for square highlights / modifications #27

Open
oakmac opened this issue Oct 27, 2022 · 1 comment
Open

add support for square highlights / modifications #27

oakmac opened this issue Oct 27, 2022 · 1 comment
Assignees
Labels
API design needed for v2 necessary functionality before the initial v2 release

Comments

@oakmac
Copy link
Owner

oakmac commented Oct 27, 2022

Users should be able to highlight / unhighlight squares via the API.

  • .clearSquareHighlights()
  • .squares(), .getSquares() --> return data about the squares
  • .setSquare("e2", "blue")
@oakmac oakmac self-assigned this Oct 27, 2022
@oakmac oakmac added needed for v2 necessary functionality before the initial v2 release API design labels Oct 27, 2022
@ZenLearner
Copy link

Most of the functionality one would ever require is in the very nice examples (as noted a couple are giving errors)

I was going to add an Event Listener for adding Squares to highlight and then calling the very nice AddCircle Function.

Then upon seeing your wonderful implementation of adding arrows by clicking on the begin and end squares (Sorry dragging)

board.addArrow({
start: startingSquare,
end: evt.square
})

thought you may do an example on this... (First click on the squares to highlight and then doing an addCircle button to Highlight them...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API design needed for v2 necessary functionality before the initial v2 release
Projects
None yet
Development

No branches or pull requests

2 participants