Bryan Housel
efd9e6df4b
Memoize and avoid extra calls to utilDetect()
2016-10-18 21:48:39 -04:00
Bryan Housel
bf857c419a
Center label baseline hack for IE11, Edge
...
(closes #3020 )
2016-10-18 21:28:20 -04:00
Bryan Housel
0036a3b308
Assign label priority by tag key and value (e.g. for highways)
2016-10-18 15:46:24 -04:00
Bryan Housel
9d98aae955
Insert small boxes along text path into collision tree
...
(closes #1645 )
2016-10-18 15:12:09 -04:00
Bryan Housel
0d0b9b0d9b
Use geoEuclideanDistance for simpler code
2016-10-18 00:56:18 -04:00
Bryan Housel
24e83189b8
Use bulk loading for rtree inserts, preparation for collision rectangle labels
2016-10-17 23:56:42 -04:00
Bryan Housel
0c35b8f9ab
Fix bug in partial label redraw, tighten margins around line labels
2016-10-17 21:28:37 -04:00
Bryan Housel
1da02e57e2
Fix min/max collision box in getPointLabel, remove debug=true
2016-10-17 17:08:40 -04:00
Bryan Housel
f4e7cb6727
Add debugging for both drawn and skipped label collision trees
2016-10-17 16:27:47 -04:00
Bryan Housel
adb1fdd940
Add area labels and icons both to collision tree
2016-10-17 15:40:09 -04:00
Bryan Housel
f3505c2f3d
All labels should use baseline middle, fix math, bboxes for area labels
2016-10-17 14:52:23 -04:00
Bryan Housel
4381bd11ac
Simplify code for determining label font size (eliminate style inspection)
2016-10-17 13:57:15 -04:00
Bryan Housel
ae96d3942c
Support RTL for point labels, fix math
2016-10-17 12:50:56 -04:00
Bryan Housel
e7f20a379e
Fix label autohiding
...
(closes #3464 )
2016-10-17 11:55:56 -04:00
Bryan Housel
8f044dd05e
Minor code fiddling, preparing to address line labeling issues today
2016-10-17 10:36:06 -04:00
Bryan Housel
053074d076
Export live binding for services in iD.services, fix init/reset
...
(closes #3324 )
Previously we allowed devs to swap out services that they didn't need.
This became difficult now that ES6 exports are immutable bindings.
But we can wrap the immutable bindings themselves in a live object,
to get back the flexibility that we used to have.
This change also drops the `taginfo` accessor on Context, since devs who want
to swap out taginfo service with something else can now do so through the live
binding. `iD.services.taginfo = myTaginfo()`
2016-10-14 10:38:09 -04:00
Bryan Housel
f50e80d0b5
Refactor Intersection, Multipolygon from geo to osm
2016-10-11 23:09:27 -04:00
Bryan Housel
07fa5fcc34
Refactor Entity, Node, Relation, Tags, Way from core to osm
2016-10-11 22:41:24 -04:00
Bryan Housel
0d0e54fdff
Fix more namespaces that were missed in the first pass
2016-10-04 21:15:30 -04:00
Bryan Housel
3102a4ae6a
Rename all the things to include pseudonamespaces
2016-10-04 19:06:20 -04:00
Bryan Housel
6d2e999885
Fix enter/update selections for textpaths and text labels
2016-09-26 23:25:59 -04:00
Bryan Housel
545cd4a44d
Fix oneways
2016-09-23 12:00:21 -04:00
Bryan Housel
c5a8bcc3a6
More fixes to fields
2016-09-18 12:57:23 -04:00
Bryan Housel
a6d683eaf7
Code cleanups in svg, ui for selection merging, fix Mapillary.
2016-09-17 23:26:49 -04:00
Bryan Housel
bb942aa9b6
Add only a single defs element to surface
2016-09-09 23:20:48 -04:00
Bryan Housel
273407da3d
Fix svg layer selections, fix and add tests..
2016-09-09 14:19:13 -04:00
Bryan Housel
afb88f2ae6
Fix rendering selections for all the OSM layers
...
This includes some renames for clarity.. "surface" -> "selection"
to make it clearer that rendering functions take a selection, and
don't necessarily render to the literal `#surface` node anymore.
2016-09-08 22:37:06 -04:00
Tom MacWright
a28e24bb4c
Fix lints
2016-09-06 17:29:03 -04:00
Tom MacWright
0931da1591
Fix areas
2016-09-06 17:28:20 -04:00
Tom MacWright
fcb2c3df58
Fix points layer
2016-09-06 11:02:13 -04:00
Tom MacWright
20962074ba
Fix vertices areas midlines
2016-09-06 10:58:07 -04:00
Tom MacWright
4fcbcddc5b
Fix eslint
2016-09-06 10:18:05 -04:00
Tom MacWright
aebf0c14e1
Fix area redrawing
2016-09-03 18:42:17 -04:00
Tom MacWright
68d144e0c0
Point dragging works
2016-09-03 18:01:00 -04:00
Tom MacWright
c5b3a16d3a
Fix getSetValue, fix line display
2016-09-03 16:39:30 -04:00
Bryan Housel
a86f34b4ef
Pacify eslint, get build and tests running again
2016-08-26 01:15:07 -04:00
Tom MacWright
a59b0d9fdf
Fix transitions and multis
2016-08-24 10:42:34 -04:00
Tom MacWright
cdb533fa84
Begin d3 v4 update
2016-08-21 15:19:27 -04:00
Tom MacWright
8819d3d061
Remove continued iD references ( #3341 )
...
* Remove continued iD references
* make build.js safe enough to dodge json plugin bug
* Package as an iife to avoid var name issue
2016-08-10 20:06:45 -07:00
Tom MacWright
604d1e2719
import lodash ( #3257 )
2016-07-19 12:04:16 -04:00
Bryan Housel
cb71e90384
Module for iD.Detect() ( #3243 )
...
* convert iD.Detect() iife to a module
* iD.Detect() should return loaded locale (except for 'en')
(The previous code was a hack to replace the detected locale with the loaded
locale. Now that Detect is a module, we can not replace the detected locale
from external code, but we can have Detect() return the locale we really want)
2016-07-13 09:15:47 -04:00
Kushan Joshi
fc680a2e9a
external modules for services
2016-07-06 14:39:58 -04:00
Kushan Joshi
b3492b17a0
external modules for SVG
2016-07-06 14:39:14 -04:00
Tom MacWright
712d471a6b
Use togeojson package
2016-07-05 18:29:15 -04:00
Bryan Housel
197b936d50
Upgrade rbush to 2.x
2016-07-01 23:12:51 -04:00
Bryan Housel
2e10c9e21e
Eliminate vendored rbush library
...
(re: #3180 )
2016-06-26 21:34:10 -04:00
Beau Gunderson
fb838645ae
refactor svg into ES6 modules for #3118
2016-06-16 11:58:23 -07:00