-
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
Matrix math and other code cleanups #339
Conversation
ooh cool! Bump package.json version too if this is a fix, that'd be great! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@jywarren if you're satisfied with the bug fix for ff I can change the PR title, merge this, and continue working in new PR - I want to make these changes in increments anyway because i'm working with the most buggy part of our code |
CC @rexagod |
Yes please, incremental would be great.
Awesome, sounds good! So is this then just a general refactoring PR, and the min scale will be a different PR? |
|
||
multiplyMatrices: function (a, b) { | ||
|
||
// TODO - Simplify for explanation |
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.
Whoa.... are we able to just include that matrix library?
This is a really big refactor! I kind of think we should do a short-term fix for the scale issue because it's really critical, even if it's just completely removing the limit for now, because if we merge this we could potentially introduce new issues just because of how major it is! What do you think?
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.
Yes! These methods are from an MDN tutorial - they are easy to follow but some of them are not performance optimized - MDN recommended gl-matrix
library. Just trying to get a sense of how everything works 1st.
Let's try to merge #340 first? Then we can get into some of these refactors. But I think we maybe should not try do to this all at once -- there are too many interdependent changes to easily see what's going on, you know? Sorry Sasha, would it be hard to break this up -- do refactoring/cleaning in one, and the matrix math changes in another? Firefox fix in another? |
@jywarren yes sorry will change the name of this PR and open a different one now to address edgeMinWidth! Still don't have a solution for that but will review your comments on #340 The matrix math is really just refactoring - I changed it so that instead of winding up with a CSS property |
@jywarren let me know your thoughts! Its a little hard to rotate right now but when I get the markers in order it'll be a lot easier. And have to fix the transform-origin situation |
if we were to keep the transform-origin at |
Hmm, so what do you think the best way forward is? Thanks Sasha! |
This reverts commit 808151d.
@jywarren Not sure! There are a few things to consider -
Have u considered switching to a canvas implementation or |
I just realized @rexagod has been doing a lot of work with matrix math and transformations in Thank you in advance! |
Fixes #320 (<=== Add issue number here)
#219
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:
Bump to
v0.6.2
-- pending Bump tov0.6.3
if @jywarren scaling gets merged 1stCleanup / Refactoring:
img.editing.enable
onload
has been moved inside of theDistortableImageOverlay
class and removed from both theindex.html
andDistortableCollection.js
(for multi-interface) files.this._handled
property onEditHandle
and all extending handle classes tothis._overlay
for consistency across repo and claritycorners
are not in fact required. still need to hash this part out morePending
If make matrices system work, make wiki. Go through original resources provided in the repo as comments, and transfer and / or improve on them
These 2 were under the old
L.DomUtil.getMatrixString
:===============