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

Simplify menu API to add tools at runtime #149

Merged
merged 7 commits into from
Mar 2, 2019

Conversation

rexagod
Copy link
Member

@rexagod rexagod commented Feb 23, 2019

Fixes #141.

peek 2019-02-23 06-46

@rexagod
Copy link
Member Author

rexagod commented Feb 23, 2019

#126

@rexagod
Copy link
Member Author

rexagod commented Feb 24, 2019

_removeTool (allows user to remove an action) was added in #155.

Copy link
Member

@jywarren jywarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really nice. I'll check if you've done this, but was thinking that it's easier to review if we keep the formatting fixes in a single commit so the functional changes can be reviewed without being mixed with the formatting changes, but it was not too hard to sort out. Thanks!

The requests I made were small with one exception - the window.defaults => L.DistortableImage.EditToolbarDefaults change, which I think could work, what do you think?

Fantastic work on this!

src/DistortableImageOverlay.js Show resolved Hide resolved
src/edit/DistortableImage.Edit.js Outdated Show resolved Hide resolved
src/edit/DistortableImage.Edit.js Outdated Show resolved Hide resolved
src/edit/DistortableImage.EditToolbar.js Outdated Show resolved Hide resolved
@jywarren
Copy link
Member

@sashadev-sky check this out, it's really nice! It also gives us a hint to the implementation of different UIs, in terms of how we structure that.

@jywarren
Copy link
Member

jywarren commented Mar 1, 2019

OK, looks great and I believe ready to merge once rebased!

@rexagod
Copy link
Member Author

rexagod commented Mar 2, 2019

@jywarren I've rebased this branch. Please review. Thanks!

@jywarren jywarren merged commit dcd8ec9 into publiclab:main Mar 2, 2019
@jywarren
Copy link
Member

jywarren commented Mar 2, 2019

Great! Super work here. Thanks!

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

Successfully merging this pull request may close these issues.

2 participants