Commit Graph

58 Commits

Author SHA1 Message Date
John Firebaugh
f7dfda46b2 Move Entity subclasses to separate files 2012-12-28 22:17:09 -08:00
John Firebaugh
5fe22be7a0 Introduce real Entity subclasses 2012-12-28 18:42:21 -08:00
John Firebaugh
6a4b75aa88 latedrag functionality was merged into iD.behavior.drag 2012-12-21 12:29:59 -08:00
John Firebaugh
2c8bbd8985 Integrate new drag behaviors 2012-12-21 12:10:44 -08:00
John Firebaugh
2c40de62be Add iD.behavior.drag
`iD.behavior.drag` is like `d3.behavior.drag`, with the following differences:

* The `origin` function is expected to return an [x, y] tuple rather than an
  {x, y} object.
* The events are `start`, `move`, and `end`.
  (https://github.com/mbostock/d3/issues/563)
* The `start` event is not dispatched until the first cursor movement occurs.
  (https://github.com/mbostock/d3/pull/368)
* The `move` event has a `loc` and `dxdy` [x, y] tuple properties rather
  than `x`, `y`, `dx`, and `dy` properties.
* The `end` event is not dispatched if no movement occurs.
* An `off` function is available that unbinds the drag's internal event handlers.
* Delegation is supported via the `delegate` function.
2012-12-21 12:10:43 -08:00
John Firebaugh
ad0efa4931 Place -> Point
We decided to use geometric terms for the modes.
2012-12-14 14:39:38 -08:00
John Firebaugh
209b87f7e8 Extract MoveWay action 2012-12-13 17:39:07 -08:00
John Firebaugh
ee3f5cc768 Move -> MoveNode, in preparation for MoveWay 2012-12-13 17:39:07 -08:00
John Firebaugh
c37aa11408 Start testing modes 2012-12-13 17:39:06 -08:00
John Firebaugh
c5dbebc063 Move keybinding to map 2012-12-13 17:39:06 -08:00
Tom MacWright
8e14a9a13c Refactor geocoder into ui component, refactor clickoutside technique.
Fixes #251
2012-12-13 14:18:49 -05:00
Tom MacWright
52d9227232 Rename add road to add line. Fixes #252 2012-12-13 12:06:12 -05:00
John Firebaugh
8854dac623 More action specs; fix ReverseWay 2012-12-06 19:16:54 -05:00
John Firebaugh
79e2d08c0d StartWay -> AddWay (for parallelism with AddNode) 2012-12-06 18:36:03 -05:00
Tom MacWright
5c6c271394 Split background sources into background_source 2012-12-06 11:12:06 -05:00
John Firebaugh
077e5cc9ce Rename various actions 2012-12-05 16:42:48 -05:00
John Firebaugh
812b427ac4 Split remove action into DeleteWay and DeleteNode 2012-12-05 16:14:39 -05:00
John Firebaugh
33beb3d2f0 Split actions into separate files 2012-12-05 16:14:39 -05:00
John Firebaugh
4a3169bb1d Test/refine iD.actions.remove 2012-12-05 16:14:39 -05:00
John Firebaugh
435be12529 Split modes into separate files 2012-12-05 12:52:26 -05:00
John Firebaugh
76849596f8 Move node removal into removeNodeWay action 2012-12-04 18:07:26 -05:00
John Firebaugh
f8fde1f10d Move node update into addWayNode action 2012-12-04 17:54:08 -05:00
Tom MacWright
a0d28c1e2d Expand tests, move way logic into entity.js and test it. 2012-12-04 13:06:21 -05:00
John Firebaugh
b4707c3a1f Mirror main directory structure in specs 2012-12-04 09:50:07 -05:00
John Firebaugh
e93c9624d8 Convert History to module pattern
There is only ever one History, so memory use is not a
concern.
2012-12-03 18:37:41 -05:00
Tom MacWright
7d1a94ae5c Include typeahead in tests 2012-12-03 17:09:42 -05:00
John Firebaugh
c1be31912f Fix specs 2012-12-03 17:00:06 -05:00
John Firebaugh
f130c325ae Updated .travis.yml for mocha 2012-12-03 15:36:43 -05:00
John Firebaugh
c7fa59661a Convert tests to mocha+chai+sinon 2012-12-03 15:11:49 -05:00
Tom MacWright
a4e480a3ab Test oauth 2012-12-03 12:28:11 -05:00
Tom MacWright
24422c61e6 Test background and style 2012-12-03 12:21:37 -05:00
Tom MacWright
1b0c0aeaa3 More specs, more tests 2012-12-03 12:11:00 -05:00
John Firebaugh
65357a09c0 Travis CI setup
Specs are run with PhantomJS via phantom-jasmine:
https://github.com/jcarver989/phantom-jasmine
2012-12-03 10:14:00 -05:00
John Firebaugh
aeb288fe4e Test/fix hash 2012-12-02 20:33:42 -05:00
John Firebaugh
94b2cd5e2d Fix file case and indent in specs 2012-12-01 08:49:08 -08:00
John Firebaugh
16c6cbd08b Rename tiles to background, make more d3ish 2012-12-01 08:45:11 -08:00
John Firebaugh
96af626bd7 Add d3.selection.prototype.size 2012-12-01 08:16:50 -08:00
John Firebaugh
447b89fa01 Entity specs 2012-11-26 21:24:26 -04:00
John Firebaugh
21ef3e4ce1 Flag accidental mutations in tests 2012-11-26 21:08:33 -04:00
Tom MacWright
2ec9f4c02f Test graph 2012-11-26 17:56:06 -05:00
Tom MacWright
704bd1af2e Test XML formatter as well 2012-11-26 17:46:04 -05:00
Tom MacWright
19b62e8f47 Fix tests 2012-11-26 17:39:16 -05:00
Tom MacWright
3f23c0e43a Merge pull request #104 from jfirebaugh/rename
Rename concepts
2012-11-25 13:57:08 -08:00
John Firebaugh
f73f1a5429 Add Inspector specs 2012-11-25 16:21:52 -04:00
John Firebaugh
eac425f7e3 Rename concepts
action -> mode
operation -> action
go -> enter
operate -> perform
2012-11-25 14:06:23 -04:00
John Firebaugh
85ed5bb671 Fix specs 2012-11-24 11:30:27 -04:00
Tom MacWright
4bc8313157 Fix tests 2012-11-13 21:23:23 -05:00
Tom MacWright
2b38b38313 Fixup tests 2012-11-06 16:23:50 -05:00
Tom MacWright
8bca85d3b2 Entity as a mixin rather than a sub-object. 2012-10-31 21:07:29 -04:00
Tom MacWright
a1b1df504b Refactor style, abstract id references
This is the first commit that really goes whole hog in terms of
creating an object graph. It's quite close, though it could be faster
in a lot of ways.
2012-10-31 19:05:43 -04:00