Commit Graph

58 Commits

Author SHA1 Message Date
Ansis Brammanis 62e78b5b9b clean up parentWays 2013-01-11 20:37:32 -05:00
Ansis Brammanis a08dd7ecce More efficient parentways 2013-01-11 19:14:17 -05:00
Tom MacWright 68e79ef81d Merge branch 'master' of github.com:systemed/iD 2013-01-11 15:36:06 -05:00
Tom MacWright e30995921e Remove indirection between entity and types 2013-01-11 15:35:10 -05:00
John Firebaugh 577398ca21 Fix .shared classing
Now that Graph#parentWays is cached, the specialized Graph#parentStructure
method is no longer necessary.

This commit also demonstrates that it's relatively easy to write specs for
rendering now!
2013-01-11 11:56:37 -08:00
John Firebaugh 2ab572bd42 iD.Entity.key 2013-01-10 21:05:03 -08:00
Tom MacWright eedc0fce9d Fast parent calculation. 2013-01-09 14:52:39 -05:00
Tom MacWright 850e7d6568 Optimize difference and parentWays 2013-01-09 13:45:04 -05:00
Ansis Brammanis 97bc2429dc Update background source for history 2013-01-08 16:26:28 -05:00
Ansis Brammanis fe634f4f9f Tag commits with imagery used 2013-01-08 16:04:31 -05:00
Tom MacWright 4347b134de Optimize difference 2013-01-08 15:33:29 -05:00
John Firebaugh 15099ee517 Define Relation#geometry 2013-01-07 12:15:16 -08:00
John Firebaugh 62efa1948e Add Entity#geometry, use in inspector
Fixes the icon for areas, but breaks it for vertices.
Needs a big-vertex sprite.
2013-01-02 21:59:55 -08:00
John Firebaugh 2a6145ef10 Move friendlyName to Entity 2013-01-02 21:43:35 -08:00
John Firebaugh 11b269006c Remove base extent definition 2012-12-29 09:38:41 -08:00
John Firebaugh d181df4c51 Polymorphism 2012-12-28 22:24:52 -08:00
John Firebaugh f7dfda46b2 Move Entity subclasses to separate files 2012-12-28 22:17:09 -08:00
John Firebaugh 31502c6214 Simplify; test; fix 2012-12-28 22:13:36 -08:00
John Firebaugh 5fe22be7a0 Introduce real Entity subclasses 2012-12-28 18:42:21 -08:00
John Firebaugh c66ea58d56 Move transients to graph (fixes #285) 2012-12-27 18:52:56 -08:00
Tom MacWright e8a14f8b5b Make handles connected to more than one way cyan. Fixes #205 2012-12-17 14:06:27 -05:00
Tom MacWright e9540bf281 Avoid barriers as well 2012-12-14 14:25:14 -05:00
Tom MacWright 3803d28d74 Improve area-closed logic. Fixes #237 2012-12-14 14:20:17 -05:00
Tom MacWright 0db5193e0c Fix parentRelations 2012-12-07 14:16:11 -05:00
Tom MacWright da66377e55 Merge branch 'master' of github.com:systemed/iD 2012-12-07 14:03:08 -05:00
Tom MacWright 6d7b135b22 Push more on split_way 2012-12-07 14:03:03 -05:00
John Firebaugh c5c65ccdfd Include difference in history change events 2012-12-07 12:35:57 -05:00
John Firebaugh ea4b93d88b Graph#difference 2012-12-07 12:35:57 -05:00
John Firebaugh 255e3aaabd Modify Graph so it can track deleted ids 2012-12-07 12:32:24 -05:00
John Firebaugh 3e45afbc5e Move history annotation to History#perform/replace
Actions are too low-level for annotations.
2012-12-07 10:35:39 -05:00
John Firebaugh 7eec007740 Get internal ID logic in one place 2012-12-07 10:32:51 -05:00
John Firebaugh 67ffd2e71b Revert "Copy entity in Graph#fetch"
This reverts commit 12d02e0a6b.
2012-12-06 19:16:54 -05:00
John Firebaugh 27af384a3f Allow History#{perform,replace} to run multiple actions 2012-12-06 18:36:03 -05:00
John Firebaugh 6b08193125 Introduce Entity transients; fix #187 2012-12-06 14:11:45 -05:00
Tom MacWright 5e56b12d85 Formatting and jshint 2012-12-05 16:55:27 -05:00
John Firebaugh 5666cb774e Finish iD.actions.DeleteWay (fixes #72) 2012-12-05 16:35:13 -05:00
John Firebaugh d26c8638b3 Allow Graph to be constructed with an array of entities
Useful for tests.
2012-12-05 16:14:39 -05:00
John Firebaugh 1812016723 Freeze nodes/members too 2012-12-05 16:14:39 -05:00
John Firebaugh fa1b536ce7 Default relation members to empty array 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 551a2df24e Replace Entity.{lat,lon} with Entity.loc
Fixes #189
2012-12-05 09:48:00 -05:00
John Firebaugh 12d02e0a6b Copy entity in Graph#fetch
This shouldn't be necessary, but someone is modifying them
in place and it's causing problems elsewhere.
2012-12-04 17:27:02 -05:00
Tom MacWright 5ef3eed3b0 Simplify modes, expose redraw 2012-12-04 17:23:09 -05:00
John Firebaugh 60e7698f1a Don't mutate entity in place 2012-12-04 14:00:29 -05:00
John Firebaugh 103678b36d Refine Entity and specs 2012-12-04 14:00:29 -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 8c3aa832f0 Rename Util to util, expand tests, move more out of map.js 2012-12-04 12:53:16 -05:00
John Firebaugh 0a1e0bdfe4 History#reset 2012-12-03 18:37:41 -05:00
John Firebaugh 8a8d6fae32 Move responsibility for dispatching change event to history 2012-12-03 18:37:41 -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