-
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
ADD: setAngle() method #502
ADD: setAngle() method #502
Conversation
The method accepts an angle in degrees and sets element's rotation to be that angle. Resolves #102
This is awesome. Would you be interested in making a simple test for this? Thank you! |
@jywarren this cannot be tested because Can we get this feature merged? |
Sure, we'll go ahead and merge this then; it's an addition rather than a change in any case. Would you be able to open a new issue describing what'd have to happen to get a test for this? Thank you! |
@jywarren thanks! I could open the issue, that's not the problem, but the problem is in tests. We'll need to debug this issue before we could write a test for |
OK, that's fine - can you open an issue with that text? That way someone
may come along who can help us resolve it. Thank you!
…On Thu, Jan 2, 2020 at 5:05 PM Vladimir Mikulic ***@***.***> wrote:
@jywarren <https://github.com/jywarren> thanks! I could open the issue,
that's not the problem, but the problem is in tests.
In browser getAngle works flawlessly, but in the tests, it always returns
0.
It might be related to the fact that we use PhantomJS in tests instead of
a "real" browser.
We'll need to debug this before we could write a test for this.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#502?email_source=notifications&email_token=AAAF6JZRXWJUBFYAU45CSCDQ3ZQLZA5CNFSM4J7TCU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7STNQ#issuecomment-570370486>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J3DDJTYU27FA4VERTDQ3ZQLZANCNFSM4J7TCU2Q>
.
|
@jywarren I have some news for you. I've noticed that describe('#setAngle', function() {
it('should set image angle to 90 deg', function () {
overlay.setAngle(90)
expect(overlay.rotation).to.equal(-90);
});
}); This would require fixing 3 failing tests, and switching to ChromeHeadless. |
That would be great -- shall we make a GCI issue for it, do you think? Are
you participating in GCI? Just checking!
…On Thu, Jan 2, 2020 at 6:50 PM Vladimir Mikulic ***@***.***> wrote:
@jywarren <https://github.com/jywarren> I have some news for you.
I was right, it was an issue with PhantomJS, L.DomUtil.getStyles is
accessible when browser is ChromeHeadless, but inaccessible in PhantomJS.
On the other hand, 3 tests fail on ChromeHeadless.
I've noticed that rotation property is correct although getAngle returns
0.
Maybe our test could be:
describe('#setAngle', function() {
it('should set image angle to 90 deg', function () {
overlay.setAngle(90)
expect(overlay.rotation).to.equal(-90);
});
});
This would require fixing 3 failing tests, and switching to ChromeHeadless.
Also, PhantomJS is not active <https://phantomjs.org/> anymore.
What do you think? Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#502?email_source=notifications&email_token=AAAF6J6JQPHJIUXELEG4LO3Q3Z4DFA5CNFSM4J7TCU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH72PTQ#issuecomment-570402766>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J46EJDKISPDIVNDWXTQ3Z4DFANCNFSM4J7TCU2Q>
.
|
Yes, I am participating in GCI and we could make GCI task out of this. Thanks. |
Vladimir is a gci student
On Fri, 3 Jan 2020, 10:42 pm Jeffrey Warren, <notifications@github.com>
wrote:
… That would be great -- shall we make a GCI issue for it, do you think? Are
you participating in GCI? Just checking!
On Thu, Jan 2, 2020 at 6:50 PM Vladimir Mikulic ***@***.***>
wrote:
> @jywarren <https://github.com/jywarren> I have some news for you.
> I was right, it was an issue with PhantomJS, L.DomUtil.getStyles is
> accessible when browser is ChromeHeadless, but inaccessible in PhantomJS.
> On the other hand, 3 tests fail on ChromeHeadless.
>
> I've noticed that rotation property is correct although getAngle returns
> 0.
> Maybe our test could be:
>
> describe('#setAngle', function() {
> it('should set image angle to 90 deg', function () {
> overlay.setAngle(90)
> expect(overlay.rotation).to.equal(-90);
> });
> });
>
> This would require fixing 3 failing tests, and switching to
ChromeHeadless.
> Also, PhantomJS is not active <https://phantomjs.org/> anymore.
> What do you think? Thanks.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#502?email_source=notifications&email_token=AAAF6J6JQPHJIUXELEG4LO3Q3Z4DFA5CNFSM4J7TCU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH72PTQ#issuecomment-570402766
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAAF6J46EJDKISPDIVNDWXTQ3Z4DFANCNFSM4J7TCU2Q
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#502?email_source=notifications&email_token=AFAAEQ6DAE3Z7FF6XS6NCM3Q35WWXA5CNFSM4J7TCU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIBTK7Y#issuecomment-570635647>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ3YJGP5WQO5MST624DQ35WWXANCNFSM4J7TCU2Q>
.
|
Vladimir you can take the task which Jeff wants a GCI task if you want
On Fri, 3 Jan 2020, 10:47 pm Sidharth Bansal, <bansal.sidharthcode@gmail.com>
wrote:
… Vladimir is a gci student
On Fri, 3 Jan 2020, 10:42 pm Jeffrey Warren, ***@***.***>
wrote:
> That would be great -- shall we make a GCI issue for it, do you think? Are
> you participating in GCI? Just checking!
>
> On Thu, Jan 2, 2020 at 6:50 PM Vladimir Mikulic ***@***.***
> >
> wrote:
>
> > @jywarren <https://github.com/jywarren> I have some news for you.
> > I was right, it was an issue with PhantomJS, L.DomUtil.getStyles is
> > accessible when browser is ChromeHeadless, but inaccessible in
> PhantomJS.
> > On the other hand, 3 tests fail on ChromeHeadless.
> >
> > I've noticed that rotation property is correct although getAngle returns
> > 0.
> > Maybe our test could be:
> >
> > describe('#setAngle', function() {
> > it('should set image angle to 90 deg', function () {
> > overlay.setAngle(90)
> > expect(overlay.rotation).to.equal(-90);
> > });
> > });
> >
> > This would require fixing 3 failing tests, and switching to
> ChromeHeadless.
> > Also, PhantomJS is not active <https://phantomjs.org/> anymore.
> > What do you think? Thanks.
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <
> #502?email_source=notifications&email_token=AAAF6J6JQPHJIUXELEG4LO3Q3Z4DFA5CNFSM4J7TCU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH72PTQ#issuecomment-570402766
> >,
> > or unsubscribe
> > <
> https://github.com/notifications/unsubscribe-auth/AAAF6J46EJDKISPDIVNDWXTQ3Z4DFANCNFSM4J7TCU2Q
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#502?email_source=notifications&email_token=AFAAEQ6DAE3Z7FF6XS6NCM3Q35WWXA5CNFSM4J7TCU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIBTK7Y#issuecomment-570635647>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AFAAEQ3YJGP5WQO5MST624DQ35WWXANCNFSM4J7TCU2Q>
> .
>
|
Thanks @SidharthBansal, I've noticed that you approved the task on GCI dashboard. Thanks. |
Hi I approved it when Jeff was at holidays and you have completed it. You
were in blocked state(/free) so I wanted you to utilize your time
productively in his and Sashas absence.
You will get points for only completed tasks. Kindly complete your tasks to
get their points.
…On Fri, 3 Jan 2020, 10:49 pm Vladimir Mikulic, ***@***.***> wrote:
Thanks @SidharthBansal <https://github.com/SidharthBansal>, I've noticed
that you approved the task on GCI dashboard.
Did you see my comments in the PR?
Could you tell what you think?
Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#502?email_source=notifications&email_token=AFAAEQ24VEZVSVIYYATDC6DQ35XTDA5CNFSM4J7TCU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIBT3IA#issuecomment-570637728>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ4M6FRLC6FYHC66XYTQ35XTDANCNFSM4J7TCU2Q>
.
|
I have specialisation in MK SWB and Plots. For LDI please refer other
mentors.
Thanks
On Fri, 3 Jan 2020, 10:56 pm Sidharth Bansal, <bansal.sidharthcode@gmail.com>
wrote:
… Hi I approved it when Jeff was at holidays and you have completed it. You
were in blocked state(/free) so I wanted you to utilize your time
productively in his and Sashas absence.
You will get points for only completed tasks. Kindly complete your tasks
to get their points.
On Fri, 3 Jan 2020, 10:49 pm Vladimir Mikulic, ***@***.***>
wrote:
> Thanks @SidharthBansal <https://github.com/SidharthBansal>, I've noticed
> that you approved the task on GCI dashboard.
> Did you see my comments in the PR?
> Could you tell what you think?
>
> Thanks.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#502?email_source=notifications&email_token=AFAAEQ24VEZVSVIYYATDC6DQ35XTDA5CNFSM4J7TCU22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIBT3IA#issuecomment-570637728>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AFAAEQ4M6FRLC6FYHC66XYTQ35XTDANCNFSM4J7TCU2Q>
> .
>
|
@VladimirMikulic this is so great!! |
actually wait, the |
@sashadev-sky we can either polyfill |
@VladimirMikulic I could be misunderstanding the problem you are running into but I think the issue might be that the css |
@sashadev-sky yes, |
The method accepts an angle in degrees and sets element's rotation to be
that angle. It can also accept negative degrees.
Demo
Resolves #102
@sashadev-sky @jywarren @SidharthBansal could you review this, please?