Commit Graph

85 Commits

Author SHA1 Message Date
Bryan Housel
4c812b6f35 Return an abortable request from jsonp_request 2018-06-19 23:09:06 -04:00
Bryan Housel
1dbf273878 Remove flow
https://github.com/openstreetmap/iD/issues/3744#issuecomment-374950519
2018-03-22 16:51:53 -04:00
Bryan Housel
c08d79e488 Extract tag cleaning code to utilCleanTags, add tests
(closes #4925)
2018-03-22 14:46:36 -04:00
Bryan Housel
8dd7fa611e Merge branch '3744' of https://github.com/Psigio/iD into Psigio-3744 2018-03-03 22:12:36 -05:00
Bryan Housel
668c17ad1e Do not localize decimalCoordinatePair appearing in info panels
(closes #4765)
2018-03-02 00:21:24 -05:00
Jon D
48577aeb63 Add Flow Type Alias for function which returns an object (session_mutex) 2018-02-27 22:25:30 +00:00
Jon D
8655ec6baf Start adding flow annotations, plus updates to build and linting processes to support 2018-02-25 15:44:41 +00:00
Bryan Housel
0bb812c916 Merge pull request #4672 from openstreetmap/1ec5-num-format-3597
Localize numbers, units in scale, info panels
2018-01-23 18:05:37 -05:00
Bryan Housel
3838b02739 Add detect.cssfilters, fallback to opacity only on IE11/Edge
(re: #4711)
2018-01-19 17:28:35 -05:00
Minh Nguyễn
702e3d2a90 DMS coordinates 2018-01-09 03:25:55 -08:00
Minh Nguyễn
fe8c218fb3 Localized geocoded coordinate formatting 2018-01-09 02:24:03 -08:00
Minh Nguyễn
a1e0d4fc08 Consolidated unit formatting into util module 2018-01-09 02:00:44 -08:00
Bryan Housel
0c0ecdfcfc Comment out some of the requestIdleCallback to fix walkthrough crash
(closes #4533)

There are several issues here.. Here's a quick brain dump:

- the requestIdleCallbacks in map.js (scheduleRedraw) seem to be causing
crashiness in Firefox on fast zoom/unzoom, mousewheel, etc.. anything where
the view transform changes a lot and the redraws don't catch up.
(commented out, reverted back to lodash throttle)

- the requestIdleCallback worker queue in idle_worker.js seems to be causing
crashiness in Firefox and Chrome when exiting the walkthrough.  Something about
deferring the tile parsing as the user leaves the intro has a problem.
It might be an infinite `while` loop, not sure.
(commented out, reverted back to for loop)

- the requestIdleCallback in call_when_idle.js is only used to defer
tile loading in context.loadTiles() - this one seems fine, and actually
has maybe the biggest benefit for improving performance.
(left in)
2017-11-15 22:21:40 -05:00
Bryan Housel
672a555229 Allow spellcheck in textarea fields
(closes #4471)
2017-10-31 22:45:24 -04:00
Bryan Housel
c40f242b82 Depend on bhousel/node-diff3 which includes fix for hunk sorting bug
(closes #3544, closes #3058)
2017-10-24 15:38:52 -04:00
Bryan Housel
50b7e2e2a8 Convert lodah-es and d3 to named imports for util 2017-09-25 23:35:06 -04:00
Bryan Housel
75d2c45fd6 Convert lodah-es and d3 to named imports for behaviors 2017-09-24 21:43:54 -04:00
Bryan Housel
82494750ef Cleanup code, detect download support (alternate flow for IE, Edge) 2017-09-15 16:39:50 -04:00
Bryan Housel
cd05c51432 loadEntity can use entityCache, but loadEntityVersion should not 2017-08-24 15:02:12 -04:00
Kushan Joshi
b356bb855f remove arrow functions :{ 2017-08-24 17:25:59 +05:30
Kushan Joshi
909b72a39e cleaning up 2017-08-24 17:03:04 +05:30
Kushan Joshi
91a569985d playing with map render 2017-08-24 17:02:49 +05:30
Kushan Joshi
82686b10a5 Add requestIdleCallback 2017-08-22 17:38:42 +05:30
Bryan Housel
163323d3df Make sure bool url params actually contain value 'true'
(closes #4222)
2017-08-08 09:51:57 -04:00
Bryan Housel
c961788a5b Fix translation for imagery with a '.' in the id
(closes #4112)
2017-06-19 23:35:34 -04:00
Bryan Housel
bcd4e5135a Use window.top.location instead of window.location
(closes #3950)
2017-04-21 01:29:22 -04:00
Bryan Housel
6f8770241f Merge pull request #3921 from openstreetmap/walkthrough-updates
Walkthrough updates
2017-04-18 14:13:14 -04:00
Nick Doiron
fa87f2b602 support Arabic vowel signs, include Thaana and Hebrew in generic RTL fix 2017-03-22 21:03:46 -07:00
Bryan Housel
b55cebed2e Move d3curtain to uiCurtain, remove unused event dispatch 2017-03-22 09:59:59 -04:00
Bryan Housel
1a1fc6db17 Better detection of culture-specific locale in language list
(closes #3842)
2017-02-15 15:09:14 -05:00
Bryan Housel
2314acfec7 Add utilNoAuto to remove autocorrect/spellcheck features from inputs
(closes #3839)
2017-02-14 17:19:24 -05:00
Bryan Housel
6677d15c44 Fix distracting typo 2017-01-27 10:57:53 -05:00
Bryan Housel
12047b1b5b Merge branch 'master' of https://github.com/cedarstudios/iD into cedarstudios-master 2017-01-04 13:33:31 -05:00
Milad Karbasizadeh
4729bbbc4e fix a bug with space 2017-01-04 11:13:45 +03:30
Bryan Housel
d63c766e69 Split into utilDisplayName / utilDisplayNameForPath
This is because utilDisplayName gets called a bunch of places and we
only want to add the Arabic reversal code for textpath labels
2017-01-03 20:58:56 -05:00
Bryan Housel
c70b6278fc Avoid es6 let/const (because phantomjs) 2017-01-03 17:29:33 -05:00
Bryan Housel
952a338abf eslint / formatting 2017-01-03 17:27:48 -05:00
Nick Doiron
9e5d3e7c5a digest combined LTR and RTL words 2017-01-03 22:21:15 +08:00
Milad Karbasizadeh
5da7d83fe9 Modify railways arabic/persian names 2017-01-03 16:34:57 +03:30
Milad Karbasizadeh
a36650ccbe add arabic kaf to character table 2017-01-03 16:15:08 +03:30
Nick Doiron
88efc0c8ef add and reorder letters 2017-01-03 18:18:29 +08:00
Nick Doiron
94ee7d4916 move changes to svg display name 2017-01-03 18:18:18 +08:00
Milad Karbasizadeh
af1ac89df7 Rename fix-string.js and fixTextForSvg function name to a more readable name.
User regex to detect arabic characters.

Fix editing bugs.
2017-01-02 14:48:22 +03:30
Bryan Housel
6ab9489fe7 Add utilGetAllNodes to get all nodes and descendants 2016-12-20 22:37:53 -05:00
Bryan Housel
3f024d0b95 Replace hardcoded RTL list with detected language lookup from dataLocales 2016-11-28 00:12:50 -05:00
Bryan Housel
2448f1af1c npm run translations 2016-11-17 13:02:40 -05:00
Bryan Housel
226d8d6676 Leave transition duration as undefined, interrupt existing transitions 2016-10-27 15:11:50 -04:00
Bryan Housel
59496c4547 Fix bugs in intro
* connection.flush is now connection.reset
* Calculate correct tooltip dimensions after changing content
* Position tooltip based on visible box, not full box
(closes #3463)
2016-10-27 14:15:23 -04:00
Bryan Housel
5fb966c35b utilSetDimensions/utilGetDimensions improvements
utilSetDimensions should always return a selection for chaining
Add `force` argument to utilGetDimensions to override cached dimensions
2016-10-27 14:13:39 -04:00
Bryan Housel
38e0b4ba5d Data bind tooltips to avoid creating new ones each time in setup 2016-10-27 12:26:20 -04:00