Skip to content
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

Introduction to moveable api (resolves #214) #215

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

cmwd
Copy link
Contributor

@cmwd cmwd commented Jun 13, 2016

No description provided.

@@ -22,6 +22,16 @@ describe('Moveable component', () => {
viewInstance.remove();
}

function mouseMoveTo(x, y) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to change this name to something like dragAndDropElement and would pass element there explicitly. It will be more generic then and name will describe, what this function actually mock.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since drag and drop has the same events name wouldn't it be confusing ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So maybe somthing like dragAndDropMock or something like that, because it in fact mock dragging and dropping, not only moving mouse.

@magul
Copy link
Contributor

magul commented Jun 14, 2016

Look pretty good, although I have few questions, suggestions.

@codecov-io
Copy link

codecov-io commented Jun 15, 2016

Codecov Report

Merging #215 into master will increase coverage by 0.76%.
The diff coverage is 43.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #215      +/-   ##
==========================================
+ Coverage   20.89%   21.65%   +0.76%     
==========================================
  Files          21       20       -1     
  Lines         512      434      -78     
==========================================
- Hits          107       94      -13     
+ Misses        405      340      -65
Impacted Files Coverage Δ
src/js/modules/plant/object.js 0% <0%> (ø) ⬆️
src/js/modules/plant/model.js 0% <0%> (ø) ⬆️
src/js/modules/plant/overlay.js 0% <0%> (ø) ⬆️
src/js/modules/components/moveable.js 100% <100%> (ø) ⬆️
src/js/core.js 58.82% <0%> (-4.34%) ⬇️
src/js/modules/main/main.js 71.87% <0%> (-2.49%) ⬇️
src/js/modules/map/map.js 0% <0%> (ø) ⬆️
src/js/session-data.js 0% <0%> (ø) ⬆️
src/js/modules/layers-manager/menu-item.js 0% <0%> (ø) ⬆️
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e9bf2d...6bbbdcb. Read the comment docs.

@@ -1,4 +1,5 @@
import { Model } from '../../core';
import { Model as BModel } from 'backbone';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to use more descriptive alias here - maybe BackboneModel?

@magul
Copy link
Contributor

magul commented Jun 19, 2016

I have some minnor question, but after getting some answers I'm going to merge it - we can make it better in future, but it takes us really lot of time and we need to speed up with development :).

@Palid Palid force-pushed the master branch 4 times, most recently from 616a0dd to 0e9bf2d Compare February 26, 2017 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants