Commit Graph

2659 Commits

Author SHA1 Message Date
John Firebaugh 278bb4a51c Fix some cases where a degenerate way was created 2013-01-23 12:40:27 -05:00
John Firebaugh 292c916cb1 Converting some actions to entity methods
The guidelines here are:

Entity methods:
  return a modified entity
  don't necessarily maintain whole-graph consistency

Actions:
  return a modified graph
  always maintain whole-graph consistency
  call entity methods liberally
  generally don't call other actions
2013-01-23 12:40:27 -05:00
Tom MacWright eefa22531c Simplify indentation, add blocking modals. Fixes #412 2013-01-23 12:30:22 -05:00
Ansis Brammanis 4a87ae8298 Point halos and test width calculation/estimation 2013-01-23 11:48:04 -05:00
Tom MacWright 5c65af512d Test and fixup centerEase 2013-01-23 11:35:31 -05:00
John Firebaugh 8e92fffa1a Freeze loc 2013-01-23 10:07:10 -05:00
John Firebaugh 29d608970b UnjoinNode action (fixes #442) 2013-01-23 10:07:10 -05:00
Tom MacWright df06148355 Look farther up for up tiles 2013-01-22 18:56:09 -05:00
John Firebaugh c263ebd4dc iD.util.geo => iD.geo 2013-01-22 18:20:20 -05:00
John Firebaugh 7f8ff43a0f Fix namespaces and unbinding 2013-01-22 18:16:52 -05:00
John Firebaugh 381794e7a1 Fix Relation#multipolygon for unmatched inner rings (fixes #461) 2013-01-22 17:54:57 -05:00
Ansis Brammanis daff9c5a2f Labels height pulled from font-size css 2013-01-22 17:40:05 -05:00
John Firebaugh d74bf1e39a Use proper prototypal inheritance and less dynamic new 2013-01-22 17:38:52 -05:00
John Firebaugh 2e6c23d7ef Fix namespace 2013-01-22 14:58:51 -05:00
Ansis Brammanis 66c0a08d00 Merge remote-tracking branch 'systemed/master' into labels
Conflicts:
	js/id/renderer/map.js
2013-01-22 14:55:15 -05:00
John Firebaugh 814c3608db Hook into undos in a different way
This way doesn't depend on details of keybindings and
the undo button.

Also, implement this in DrawArea mode.
2013-01-22 14:55:08 -05:00
John Firebaugh ff15aa8e7b Rewrite d3.keybinding
A keybinding now represents a set of key commands that can
be unbound as a set. Multiple keybindings are possible, and,
providing a namespace is provided to the constructor, will
not conflict with each other.

Also, key combination strings such as ⌘+A are now supported.
2013-01-22 14:55:08 -05:00
John Firebaugh 851eae68b8 Match terminology with ReverseWay action 2013-01-22 14:54:30 -05:00
Tom MacWright 6f73ae48d7 Fix global leak 2013-01-22 14:49:28 -05:00
Ansis Brammanis 2b7aa93096 Add classes to labels for styling 2013-01-22 14:47:50 -05:00
Tom MacWright 9a3d545f17 Do not focus text fields after initial placement 2013-01-22 14:42:21 -05:00
Tom MacWright 64445e50ac Slow and fast redraw 2013-01-22 14:17:27 -05:00
Ansis Brammanis 0249d6b3eb Try multiple line label positions 2013-01-22 14:04:19 -05:00
Ansis Brammanis 14272ef200 Add label_stack 2013-01-22 13:03:53 -05:00
Ansis Brammanis 079a456500 Add pathLength to utils 2013-01-22 12:35:15 -05:00
Tom MacWright 748b597c84 Fast zooming based on transforms.
* Replaces the mouseup-tranformStart method with a redraw debouced by 1/5s
2013-01-22 12:23:51 -05:00
Ansis Brammanis 00e5ca25ee Split up pathTransform 2013-01-22 12:03:23 -05:00
Tom MacWright 5937258c24 Merge branch 'hash' 2013-01-22 11:19:33 -05:00
Tom MacWright 55346c4d33 Work around blur issue for #439 2013-01-22 11:19:09 -05:00
Ansis Brammanis 397372b505 start rearranging label code 2013-01-22 11:04:39 -05:00
Ansis Brammanis 9aa74c404d Add rtree.js 2013-01-22 11:01:46 -05:00
Tom MacWright 42f145a945 Merge pull request #457 from systemed/hash
Hash
2013-01-22 07:47:03 -08:00
Tom MacWright 38c02509ea Do not tolerate modifiers for action shortcuts.
Tolerates id-equality for selecting features.
2013-01-22 10:39:10 -05:00
Tom MacWright 3d90801e63 Add willselect to hash, works with non-line features. 2013-01-22 10:22:00 -05:00
John Firebaugh 2e14a6b4de Unbind ⌘-Z when exiting DrawLine (fixes #455) 2013-01-22 09:49:38 -05:00
Tom MacWright 7cf234365e Non-overwriting hash, add hash in select mode. Needs code for dealing
with hash.
2013-01-22 09:41:29 -05:00
Tom MacWright b3765a4467 Microbranching jshint stuff. 2013-01-22 09:35:34 -05:00
John Firebaugh c8bee263e9 Split ways at T junctions (fixes #453) 2013-01-21 20:32:17 -05:00
Ansis Brammanis 71f6402df0 add very basic support for area labels 2013-01-20 22:46:30 -05:00
Ansis Brammanis 572c111bf1 Add polygonCentroid and polygon area to utils 2013-01-20 22:21:18 -05:00
Ansis Brammanis 0afb564435 Merge remote-tracking branch 'systemed/master' into labels
Conflicts:
	js/id/svg/lines.js
	js/id/svg/surface.js
2013-01-20 20:37:00 -05:00
Ansis Brammanis 5d283f0698 usecapture for stopping right click propagation 2013-01-20 19:27:20 -05:00
Ansis Brammanis a97a4e4617 Fix redrawing shared vertices 2013-01-20 19:05:53 -05:00
saman bb 3e8780d466 making things consistent with new UI style. 2013-01-20 18:30:34 -05:00
saman bb 19c59236b9 copy adjustment on inspector confirm/close button 2013-01-20 16:12:06 -05:00
John Firebaugh 4a084a8b89 Improve midpoints rendering 2013-01-20 12:01:19 -08:00
John Firebaugh fce209131a Improve vertex rendering 2013-01-20 11:37:14 -08:00
John Firebaugh 33b1f4f23c Render more line features 2013-01-20 09:39:25 -08:00
Brandon Liu ded802049a add history.numChanges method.
Use hasChanges/numChanges to toggle Save button and show confirmation dialog when navigating away from page.
2013-01-19 23:16:48 -08:00
Brandon Liu d83ec7f1eb Create method history.hasChanges 2013-01-19 23:01:47 -08:00