Commit Graph

1062 Commits

Author SHA1 Message Date
John Firebaugh
5089e2370b Point-in-polygon algorithm
No tests. I didn't write it so I assume it's correct!
2013-01-13 17:20:04 -08:00
John Firebaugh
67c8e287cf Start on multipolygon reconstruction algorithm 2013-01-13 17:20:04 -08:00
Ansis Brammanis
ac8c12e7eb Remove double-undo when exiting drawLine mode 2013-01-13 19:55:08 -05:00
Ansis Brammanis
7c7121d1ea Flash message for no geocoder results 2013-01-12 18:09:01 -05:00
John Firebaugh
e93f860c4c r -> l for Add Line, fixes #377 2013-01-12 11:30:39 -08:00
John Firebaugh
ddaca08fb1 Clean up parentWays, apply same algorithm to relations 2013-01-12 11:03:45 -08:00
John Firebaugh
6e044f3607 Store flag on _parentWays itself, fixes #392
Relying here on the fact that `calculated` will never
collide with an actual entity ID.
2013-01-12 10:55:18 -08:00
Tom MacWright
ea3b7baf14 Tag classes no longer changes classes if there is no change. This makes the default, no-class scenario null instead of an empty string 2013-01-12 09:30:11 -05:00
Ansis Brammanis
bb65916e06 Fix careless naming, fixing node dragging 2013-01-12 02:15:33 -05:00
Tom MacWright
cbe41f16d5 Do not output invalid linestrings. Fixes #360
Though switching back to geo paths with fill this even more.
2013-01-12 01:38:29 -05:00
Tom MacWright
f9f1436007 Pixel-determined midpoints.
betting that computation is better than tons of svg elements
2013-01-12 01:33:13 -05:00
Tom MacWright
165aa9d488 Faster string building, do not change value if not different. Fixes #390 2013-01-12 01:12:19 -05:00
Tom MacWright
11db79d37b Silly svg 2013-01-12 01:04:10 -05:00
Tom MacWright
8e17841c07 Make tag classes functions non-anonymous 2013-01-12 00:50:21 -05:00
Tom MacWright
0d6e87a217 Merge pull request #388 from systemed/parentways
More efficient graph.parentWays
2013-01-11 21:39:50 -08:00
Ansis Brammanis
62e78b5b9b clean up parentWays 2013-01-11 20:37:32 -05:00
John Firebaugh
4c6757714c parentWays/Relations now take an entity 2013-01-11 17:26:25 -08:00
John Firebaugh
e85bdba950 Ensure drawing doesn't interact with area fills
Fixes #332
2013-01-11 16:24:01 -08:00
Ansis Brammanis
a08dd7ecce More efficient parentways 2013-01-11 19:14:17 -05:00
John Firebaugh
acaaab5dc9 Extract iD.svg.Surface 2013-01-11 16:01:39 -08:00
John Firebaugh
45fd260d8f Add basic Area test 2013-01-11 15:49:56 -08:00
John Firebaugh
cf5efdcfa1 Lint fixes 2013-01-11 14:54:51 -08:00
John Firebaugh
7dc1945ee3 accuracy-handle -> midpoint 2013-01-11 14:54:51 -08:00
Ansis Brammanis
c894ad26f2 nicer getComputedLength caching 2013-01-11 17:28:04 -05:00
Ansis Brammanis
61533019dd don't recalculate, for real this time 2013-01-11 17:10:25 -05:00
Ansis Brammanis
6b09da380d only getComputedTextLength() once 2013-01-11 16:56:28 -05:00
Ansis Brammanis
7e9eaa6422 fix svg line text 2013-01-11 15:57:28 -05:00
Ansis Brammanis
9251edb02b fix oneway text 2013-01-11 15:46:28 -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
Ansis Brammanis
d4524d2ef5 Fix area closing (no duplicate nodes at end of way) 2013-01-11 15:32:25 -05:00
John Firebaugh
e95d163dbc Apply tag classes to vertices and points
While here, introduce a `classed` matcher for Chai.
2013-01-11 12:22:23 -08: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
c24d6d83e3 This doesn't seem necessary now that text is pointer-events: none 2013-01-11 11:56:37 -08:00
John Firebaugh
b8310e2d9f Move to iD.svg.TagClasses 2013-01-11 11:56:37 -08:00
Ansis Brammanis
7b092b7856 Merge branch 'master' of github.com:systemed/iD 2013-01-11 14:30:43 -05:00
Ansis Brammanis
87ee1cf0cb Select way/area after hitting enter/escape 2013-01-11 14:30:09 -05:00
Tom MacWright
3680d8ae8a Adding pointer-events to textpath. Fixes #359 2013-01-11 13:59:02 -05:00
Ansis Brammanis
486c201a21 Fix jerk after dragging 2013-01-11 13:39:14 -05:00
Ansis Brammanis
bdb958d912 simpler panning on select 2013-01-11 12:31:42 -05:00
Ansis Brammanis
46aff8d1ba Fix connecting a way to an accuracy handle 2013-01-11 12:00:02 -05:00
Ansis Brammanis
f9d205385a Merge branch 'master' of github.com:systemed/iD 2013-01-11 11:32:32 -05:00
Ansis Brammanis
59bfe703fd Restrict zoom while drawing 2013-01-11 11:32:07 -05:00
John Firebaugh
809b73599c Merge points code into iD.svg.Points 2013-01-11 07:49:26 -08:00
John Firebaugh
1e5e588ae6 Clean up 2013-01-11 07:49:26 -08:00
Ansis Brammanis
3fdf32f4dd Add ctrl-z and make it work nicely with drawline 2013-01-11 10:20:34 -05:00
John Firebaugh
68a430cf70 Clean up 2013-01-11 07:09:07 -08:00
John Firebaugh
6aa43f44d0 Split map rendering into some components 2013-01-11 07:04:40 -08:00
John Firebaugh
1e7e874ad7 Remove jsonp test reference 2013-01-10 21:08:34 -08:00
John Firebaugh
2ab572bd42 iD.Entity.key 2013-01-10 21:05:03 -08:00