-
Notifications
You must be signed in to change notification settings - Fork 280
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
Hotkeys and major file restructuring #393
Conversation
ill update docs if you guys like this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the approach here! LGTM! 🎉
@jywarren this is ready for merge (just needs rebase) and approved by rexagod! But I will hold on that because it is a big change - I made a markdown table in the PR description so you can easily follow the changes and new structure. Let me know your thoughts! For now going to revert my focus on getting MK to work |
@jywarren just wanted to follow up here because this PR makes some big changes! |
Hi Sasha, i'm so sorry, I am a bit overloaded with final GSOC reviews going
in today. I will take a look as soon as possible. Thank you!
…On Fri, Aug 30, 2019 at 12:38 AM Sasha Boginsky ***@***.***> wrote:
@jywarren <https://github.com/jywarren> just wanted to follow up here
because this PR makes some big changes!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#393?email_source=notifications&email_token=AAAF6JYJE5S7RXNFBVD2NJLQHCP3XA5CNFSM4INZPQ5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5QQNGY#issuecomment-526452379>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J5N6GBF3SJ5GRBHPOLQHCP3XANCNFSM4INZPQ5A>
.
|
No problem! I thought they were due on Monday?! I haven’t added my reviews yet.
… On Aug 30, 2019, at 12:51 PM, Jeffrey Warren ***@***.***> wrote:
Hi Sasha, i'm so sorry, I am a bit overloaded with final GSOC reviews going
in today. I will take a look as soon as possible. Thank you!
On Fri, Aug 30, 2019 at 12:38 AM Sasha Boginsky ***@***.***>
wrote:
> @jywarren <https://github.com/jywarren> just wanted to follow up here
> because this PR makes some big changes!
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#393?email_source=notifications&email_token=AAAF6JYJE5S7RXNFBVD2NJLQHCP3XA5CNFSM4INZPQ5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5QQNGY#issuecomment-526452379>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAAF6J5N6GBF3SJ5GRBHPOLQHCP3XANCNFSM4INZPQ5A>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
They are -- but as monday is a holiday i'm making sure they are all
submitted and will add any final input just before deadline. Thanks!
On Fri, Aug 30, 2019 at 3:50 PM Sasha Boginsky <notifications@github.com>
wrote:
… No problem! I thought they were due on Monday?! I haven’t added my reviews
yet.
> On Aug 30, 2019, at 12:51 PM, Jeffrey Warren ***@***.***>
wrote:
>
> Hi Sasha, i'm so sorry, I am a bit overloaded with final GSOC reviews
going
> in today. I will take a look as soon as possible. Thank you!
>
> On Fri, Aug 30, 2019 at 12:38 AM Sasha Boginsky <
***@***.***>
> wrote:
>
> > @jywarren <https://github.com/jywarren> just wanted to follow up here
> > because this PR makes some big changes!
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <
#393?email_source=notifications&email_token=AAAF6JYJE5S7RXNFBVD2NJLQHCP3XA5CNFSM4INZPQ5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5QQNGY#issuecomment-526452379
>,
> > or mute the thread
> > <
https://github.com/notifications/unsubscribe-auth/AAAF6J5N6GBF3SJ5GRBHPOLQHCP3XANCNFSM4INZPQ5A
>
> > .
> >
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#393?email_source=notifications&email_token=AAAF6J3NLRLAMEORCIY2ZV3QHF2XXA5CNFSM4INZPQ5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5STNGQ#issuecomment-526726810>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J6GMK2EEB5XJUQXUTDQHF2XXANCNFSM4INZPQ5A>
.
|
@jywarren ok got it! |
Hello @sashadev-sky, I tryed to figure how to add my Drag only mode in this PR. I set a few changes, but im not sure if Im doing all correctly. For example, i don't understand how to add my 4 dot start icon in the L.ToolbarIconSet. (sorry not sure how this draw code works). I hope I helped and not make your work more difficult. Btw, Im not sure if I must code in your branch the handles changes I have made in my PR, or if you can reqauest it automatically from github (still trying to learn how GIT works). |
@themacboy sorry I will checkout your work soon :) working on a critical problem with setup downstream right now. Have you taken a look at this wiki? don't worry about my branch. If yours is ready to merge before this is reviewed I will just rebase and reformat it here to match. |
495a0ae
to
737772f
Compare
@jywarren really proud of this refactor looks so much more aesthetic Leaflet.DistortableImage/src/edit/DistortableImage.Edit.js Lines 289 to 313 in d1cd4ff
|
Fixes #376 (<=== Add issue number here)
Fixes #360
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
grunt
If tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!
===============
changes:
File Restructuring:
handles
folder inedit
folder, which containsEditHandle.js
,LockHandle.js
, etc.toolbars
folder to holdDistortableImage.PopupBar.js
andDistortableImage.ControlBar.js
actions
folder inedit
folder, which follows a similar convention:L.EditAction
EditAction.js
var ToggleTransparency
L.OpacityAction
OpacityAction.js
t
o
_toggleTransparency
_toggleOpacity
var ToggleOutline
L.BorderAction
BorderAction.js
o
b
_toggleOutline
_toggleBorder
var Delete
andvar Deletes
L.DeleteAction
DeleteAction.js
backspace
backspace
L.DistortableCollection.Edit
var ToggleRotate
L.RotateAction
RotateAction.js
CAPS LOCK
r
becauseCAPS LOCK
as a keybinding is a bug._toggleRotate
_rotateMode
distort
, or any single mode. Then icons would need to all toggle to same icon. TB wouldn't make sense. Also overcomplicates current / future mode API: ex. selecting diff default mode or just forbidding 'distort'.var ToggleRotateScale
L.FreeRotateAction
FreeRotateAction.js
r
,d
f
_toggleRotateScale
_freeRotateMode
L.DistortAction
DistortAction.js
d
_distortMode
var ToggleScale
L.ScaleAction
ScaleAction.js
s
s
_toggleScale
_scaleMode
var ToggleLock
andvar Locks
L.LockAction
LockAction.js
l
l
,u
-l
only locks,u
only unlocks, button still toggles_toggleLock
_togglelockMode
var Export
andvar Exports
L.ExportAction
ExportAction.js
e
var EnableEXIF
L.GeolocateAction
GeolocateAction.js
var Revert
L.RevertAction
RevertAction.js
var ToggleOrder
L.StackAction
StackAction.js
j
,k
q
,a
now q will only stack up /a
will only stack down, not randomupdated Keymapper accordingly
In a past PR, when I added an
L.DistortableCollection.Edit
DistortableCollection.Edit #335, this allowed me to align the Tool / Action APIs inL.DistortableCollection
andL.DistortableImageOverlay.
.L.DistortableCollection
now shares its tools withL.DistortableImageOverlay
.L.ExportAction
,L.DeleteAction
, andL.LockAction
are all written to work for single and multi interface to avoid having to write duplicate tools.var Exports
,var Deletes
, andvar Locks
.L.DistortableCollection
still doesn't share isvar Unlocks
, which is nowL.UnlocksActions
(kept it inControlBar
file instead of giving it its own)bump version to
0.8.0
distort is finally its own toolbar action, so and most icons aren't toggle actions.
UI Improvements:
Bug Fixes:
Rotate
keybinding changed fromCAPS LOCK
tor
doubleclick
, it will iterate through all available modes in order.Pending: