Commit Graph

59 Commits

Author SHA1 Message Date
Bryan Housel
f5b6433a2f ClientRect is in fact not cloneable, breaks under lodash 3.x 2015-06-09 21:21:16 -04:00
Bryan Housel
3bbf31902a Add accessor to get conflict details from iD.actions.MergeRemoteChanges 2014-12-29 22:47:44 -05:00
Martin Raifer
041e0e5b66 Encode everything except a whitelist of special chars
see #2406
2014-10-21 22:37:47 +02:00
John Firebaugh
4d2d24bbaa Need to encode = as well as & (fixes #2406) 2014-10-20 18:18:48 -07:00
Vladimir Agafonkin
fc92f34eab dry up code for CSS transforms 2014-01-08 19:55:27 +02:00
John Firebaugh
1e78ee5c87 Stricter jshint 2013-10-24 16:08:48 -07:00
John Firebaugh
8323c948a7 jshint fixes 2013-10-24 15:33:52 -07:00
tyr
6afe3adfbe more clever splitting of closed ways
if a way is closed, iD needs to choose a second node to
split the way at.

This algorithm looks for a node that is both far away from
the initial node in terms of way segment length and nearby
in terms of beeline-distance. This assures that areas get
split on the most "natural" points (independent of the number
of nodes).

For example: bone-shaped areas get split across their waist-
line, circles across the diameter.
2013-09-29 07:43:20 -07:00
John Firebaugh
a039f576e9 Port user-select suppression to iD.behavior.Drag
Fixes #1585
2013-06-20 15:18:50 -07:00
John Firebaugh
9190a25220 Show only visible features in list 2013-06-17 15:44:14 -07:00
John Firebaugh
6befa984db Fall back to ref tag for displayed feature name 2013-06-03 18:32:27 -07:00
John Firebaugh
0d7f38f6c1 Extract iD.util.localeName 2013-05-22 11:30:28 -07:00
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