Commit Graph

47 Commits

Author SHA1 Message Date
John Firebaugh fcafce7517 Really fix area drawing 2013-05-13 12:19:51 -07:00
John Firebaugh 7445b554e8 Fix Uncaught TypeError: Cannot read property 'length' of null
https://app.getsentry.com/id/id/group/5208581/
2013-04-23 19:38:42 -07:00
Tom MacWright c91dab1b2c Soft-encode separators 2013-04-18 17:50:15 -04:00
Tom MacWright 0fafa340fe Start using d3 3.1.0
Update d3, use streams, d3.set, clip
Use clipping, fix side effects
2013-03-07 17:45:16 -05:00
Ansis Brammanis 65cfb6b69b Add asyncMap 2013-02-28 18:38:35 -05:00
Ansis Brammanis 0bb805f557 Merge remote-tracking branch 'systemed/master' into presets
Conflicts:
	css/app.css
	index.html
	js/id/connection.js
	js/id/modes/select.js
	js/id/ui/inspector.js
	js/id/util.js
	test/spec/modes/add_point.js
2013-02-14 11:38:18 -05:00
John Firebaugh d50f7f13ab Cache properties in fastMouse 2013-02-13 12:03:41 -08:00
Tom MacWright 20e1181b7a Use a trueObj for filtering labels, add fastMouse 2013-02-08 10:08:30 -05:00
Tom MacWright bd7f302730 Show deprecated tags in save commit, validate them, add deprecatedTags
to entity type.
2013-02-04 16:45:18 -05:00
Tom MacWright bc59070ff3 Merge branch 'master' into presets
Conflicts:
	js/id/util.js
2013-01-31 11:35:29 -05:00
Tom MacWright e63434f437 Rename, titles, edit distance 2013-01-30 17:41:06 -05:00
Ansis Brammanis 7d32af5264 work towards using prototypes for entities 2013-01-29 12:49:00 -05:00
John Firebaugh 562a161896 Remove unused 2013-01-27 21:50:08 -05:00
Ansis Brammanis b0de58b455 Fix merge (util.geo -> geo) 2013-01-23 16:29:52 -05:00
Ansis Brammanis daff9c5a2f Labels height pulled from font-size css 2013-01-22 17:40:05 -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
Ansis Brammanis 079a456500 Add pathLength to utils 2013-01-22 12:35:15 -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
Ansis Brammanis 572c111bf1 Add polygonCentroid and polygon area to utils 2013-01-20 22:21:18 -05:00
Tom MacWright 2f1e219d64 jshint tweak 2013-01-14 10:18:22 -05:00
John Firebaugh 1d707b0eb2 Match inners with outers
After thinking about how the `evenodd` fill rule works, I pretty sure
we don't actually need to do this. If I'm right, I'll back it out, and
it will be in the history if we need it for some other purpose.
2013-01-13 18:17:16 -08:00
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 2a6145ef10 Move friendlyName to Entity 2013-01-02 21:43:35 -08:00
Tom MacWright 06c3caa1c0 Expand util tests 2013-01-02 13:26:36 -05:00
Tom MacWright aca0098ea0 Use 2d transforms and fix jshint problems 2013-01-02 13:01:18 -05: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 8b889a4e48 Make readable 2012-12-21 12:10:43 -08:00
Tom MacWright c161efb9a7 Pay attention to natural tag, understand the d3 problem 2012-12-17 16:19:15 -05:00
Tom MacWright 19082bcf2a Make spliced nodes straight. Fixes #241 2012-12-09 00:00:23 -05:00
John Firebaugh 7eec007740 Get internal ID logic in one place 2012-12-07 10:32:51 -05:00
Tom MacWright 0ce26b9131 Move support3d to util 2012-12-06 19:03:13 -05:00
John Firebaugh 4ee6e3ac1a Remove duplicate intersection function 2012-12-06 14:22:33 -05:00
tyr b18fa96f95 fixed global var leak 2012-12-06 11:37:57 +01:00
tyr 87252a73f1 fixed support3d to reuse transformProp. prefixProperty returns false instead of "" when the property isn't supported at all 2012-12-06 11:09:09 +01:00
tyr 2b84eaad73 removed now obsolete prefix() utility method 2012-12-06 10:44:01 +01:00
tyr e4ceca76ec more clever prefix detection. (use unprefixed property when available.) 2012-12-06 10:38:55 +01:00
tyr 25b6290f4d cutomizable prefix grabber. proper support3d test. removed -o- prefix from transform property. 2012-12-06 10:38:49 +01:00
Tom MacWright 5e56b12d85 Formatting and jshint 2012-12-05 16:55:27 -05:00
John Firebaugh 551a2df24e Replace Entity.{lat,lon} with Entity.loc
Fixes #189
2012-12-05 09:48:00 -05:00
Tom MacWright 22fe35723f Clean up, move stringQs to util 2012-12-04 18:28:22 -05:00
Tom MacWright 340b97c0e9 Split more functionality into util.geo and test it. 2012-12-04 16:52:59 -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
Tom MacWright bd1a34153a First shot at way accuracy handles 2012-12-03 17:08:53 -05:00
Tom MacWright b3853e6485 Taginfo, typeahead 2012-12-03 16:12:05 -05:00
Tom MacWright f7fcf37197 Fix deletion, make active class clearer, refocus on DC, fix friendlyName 2012-11-29 09:35:48 -05:00
Tom MacWright 80ea085f35 Get node-dependent osmChange working 2012-11-28 15:13:31 -05:00
Tom MacWright 936cefb4ef Rename and update 2012-11-27 17:51:03 -05:00