-
Notifications
You must be signed in to change notification settings - Fork 286
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
Modes API (actual) #442
base: main
Are you sure you want to change the base?
Modes API (actual) #442
Conversation
@jywarren This PR is all about tieing together big picture loose ends LDI. |
code is implemented and "done" as in bugfree, documented, tested but I need to circle back around and refactor the very complex chains of logic. I think what will be key is factoring out all UI logic somewhere else. I created a Currently there is a |
i'm imagining Mutation Observer to be like a "single source of truth" situation - top-down UI updates optimized in batches - like React but without the virtual DOM. But I am not sure i understand it practically bc then why isn't everyone using it |
Fixes #296 (<=== Add issue number here)
Fixes #400
Fixes #398
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:
getModes
,getMode
,isMode
,hasMode
exposed to APIgetCollected
,lockGroup
,unlockGroup
static
L.DistortableImage.Edit.HANDLES
, butthis._handles
on an individual image will now only ever reflect the handles that the image should have based on whichmodes
it has.static
L.DistortableImage.Edit.MODES
, butthis.getModes()
will only reflect the specific modes permitted on the image.doubleTap
leaflet / chrome bug to allow ability todoubleTap
images to change modes on touch screenstouchmove
bug on touchscreensMutation Observer
inhandles/AnimateHandle.js
bringToFront
andbringToBack
will no longer do anything bc of the containerslock mode tooltipupdated tests to usenew MouseEvent
for synthetic events instead of deprecatedinitMouseEvents
/createEvent
and added a polyfill for Phantom JS browser to run this oknextMode
(double click to iterate through modes) will only iterate through selected modes, andsetMode
will return false if you try to set a non-selected mode.moveL.UnlocksActions
into its own file like all other actions and renameL.UnlockAction
pending:
L.StackAction
given above// it('Returns false if image is not selected', function() {
// expect(overlay.deselect()).to.be.ok;
// expect(overlay.deselect()).to.be.false;
// });
_moving
property does not account for this