Commit Graph

152 Commits

Author SHA1 Message Date
John Firebaugh
f7dfda46b2 Move Entity subclasses to separate files 2012-12-28 22:17:09 -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
Tom MacWright
c0921ac44a Move tag reference to its own file 2012-12-17 17:06:39 -05: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
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
Tom MacWright
58255a042b Redraw vectors 2012-12-12 15:51:49 -05:00
Tom MacWright
9546a6f743 Limit download threads. Fixes #83 2012-12-07 11:47:48 -05:00
Tom MacWright
f49728872e Fix way finishing, start on split way 2012-12-07 10:42:16 -05:00
Tom MacWright
7cb6cfbe04 Refactor drag features into sub-control and allow dragging in selection
mode
2012-12-07 09:57:30 -05:00
John Firebaugh
79e2d08c0d StartWay -> AddWay (for parallelism with AddNode) 2012-12-06 18:36:03 -05:00
Tom MacWright
cd3129061c Refactor dragging, include latedrag 2012-12-06 17:33:02 -05:00
Tom MacWright
5c6c271394 Split background sources into background_source 2012-12-06 11:12:06 -05:00
Tom MacWright
db76ff8d19 Opacity control, layerswitcher 2012-12-05 19:02:38 -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
Tom MacWright
8126189e0a Support proper tooltips on undo redo buttons 2012-12-05 16:00:49 -05:00
Tom MacWright
4968634f12 Cleanup oauth 2012-12-05 15:03:58 -05:00
Tom MacWright
b540e84ae0 Merge branch 'master' of github.com:systemed/iD 2012-12-05 13:05:23 -05:00
Tom MacWright
0c77ae681c Refactor modal concept into one bit of code 2012-12-05 13:04:25 -05:00
John Firebaugh
435be12529 Split modes into separate files 2012-12-05 12:52:26 -05:00
Tom MacWright
4978cd0c12 Resurface keybindings 2012-12-04 15:51:42 -05:00
Tom MacWright
a0d28c1e2d Expand tests, move way logic into entity.js and test it. 2012-12-04 13:06:21 -05:00
Tom MacWright
ad2fa599a0 Use clip-path again for tiles 2012-12-03 18:12:44 -05:00
John Firebaugh
65c1d632ed text/javascript is default script type 2012-12-03 17:01:12 -05:00
Tom MacWright
b3853e6485 Taginfo, typeahead 2012-12-03 16:12:05 -05:00
Tom MacWright
4f7d9460ae Build with oauth, use more chaining 2012-12-02 14:20:57 -05: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
Tom MacWright
fa2d04dfe7 Support other tilesets, xyz tiles, etc. Fixes #130 2012-11-30 17:25:48 -05:00
Tom MacWright
6ed368446e Don't use :hover, only redraw new ways, etc 2012-11-29 11:54:29 -05:00
Tom MacWright
651c347356 Fix finding modified elements, fix casing of map 2012-11-27 18:12:28 -05:00
Tom MacWright
421adf2fab Add loading screen 2012-11-27 16:52:08 -05:00
Tom MacWright
01628125a4 Update taginfo, work on inspector 2012-11-27 16:35:02 -05:00
Tom MacWright
3dfc593bff Create userpanel, fix user logging in and out, fixes #122 2012-11-27 10:55:26 -05:00
Tom MacWright
01991bca65 Start on commit UI. This pulls together a modal window listing changes. 2012-11-26 16:56:27 -05:00
Tom MacWright
1045b3b1d2 Use d3.geo.tile for tiles, works on #103 2012-11-26 11:25:21 -05:00
Tom MacWright
828153ead1 Merge branch 'jfirebaugh-iD'
Currently broken.

Conflicts:
	index.html
	js/iD/renderer/Map.js
2012-11-25 17:09:42 -05:00
John Firebaugh
2d861507b9 Move top-level setup into iD() function 2012-11-25 14:57:56 -04:00
John Firebaugh
eac425f7e3 Rename concepts
action -> mode
operation -> action
go -> enter
operate -> perform
2012-11-25 14:06:23 -04:00
Tom MacWright
07c31dc14a Fix auth cycle 2012-11-20 18:14:55 -05:00
Tom MacWright
e947568ec0 We are now making edits. 2012-11-20 17:51:39 -05:00
Tom MacWright
80b90d5171 Pull user information from the endpoint, abstract oauth xhr
Right now there's both an OAuth wrapper and ohauth.js. These may want to
be combined.
2012-11-20 17:18:17 -05:00
Tom MacWright
f198203fbe Oauth, working 2012-11-19 21:32:15 -05:00
Tom MacWright
81c8e280d2 Add oauth and sha 2012-11-19 21:08:32 -05:00