-
Notifications
You must be signed in to change notification settings - Fork 283
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
Option to suppress Toolbar #111
Comments
@gauravano @rexagod @sashadev-sky @IgorWilbert this is actually the next step towards making this more compatible with the React-based wrapper in #105. I think more broadly we should consider how to make the tools more UI independent, and offer more README guidance for that, both because all the new things we want to do (ordering, maybe ImageSequencer work) will start to outgrow the popup-style menu. We could show examples of how to bind buttons to different tools, for example. What do you think? |
An alternative to the above syntax might be:
or we could even pass in the toolbar as a parameter, like:
...with the current toolbar as the default if it's not set. ideas welcome here, although probably being able to just turn off the toolbar is a good initial step. |
Hi, I am writing up a proposal for this right now @jywarren |
awesome!
…On Tue, Feb 12, 2019 at 9:36 AM Sasha Boginsky ***@***.***> wrote:
Hi, I am writing up a proposal for this right now @jywarren
<https://github.com/jywarren>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#111 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ3K3HKd3g43HG0fpML5mVAcdjx9nks5vMtExgaJpZM4XytNK>
.
|
Moved the remaining portions of the abstraction changes to #140 |
Some downstream uses (as described in #105) don't need or want a toolbar, so we should make it suppress-able with a constructor parameter, like:
This way, we can suppress the whole
var EditOverlayAction = LeafletToolbar.ToolbarAction.extend({
section based on this constructor parameter, within the toolbar source file here:Leaflet.DistortableImage/src/edit/DistortableImage.Edit.js
Line 243 in dc9e64c
Here's an example of using a constructor parameter:
Leaflet.DistortableImage/src/edit/DistortableImage.Edit.js
Line 21 in dc9e64c
So we can do a conditional like:
And/or on this line where we instantiate the toolbar where we can also put a conditional:
Leaflet.DistortableImage/src/edit/DistortableImage.Edit.js
Line 243 in dc9e64c
This should get us one step closer to @ChrisLowe-Takor being able to directly include this library in https://github.com/ChrisLowe-Takor/react-leaflet-distortable-imageoverlay/ and share code more easily!
The text was updated successfully, but these errors were encountered: