Update to iD v2.19.1

This commit is contained in:
Quincy Morgan 2020-10-27 21:17:47 -04:00
parent d41737c6a0
commit 27fb39770f
3 changed files with 19 additions and 24 deletions

View file

@ -8288,19 +8288,14 @@
width: 21px; width: 21px;
height: 20px; height: 20px;
border-radius: 11px; border-radius: 11px;
text-align: center;
}
.ideditor[dir='ltr'] .badge {
margin-left: 6px; margin-left: 6px;
} }
.ideditor[dir='rtl'] .badge { .ideditor[dir='rtl'] .badge {
margin-left: 0;
margin-right: 6px; margin-right: 6px;
} }
.ideditor .badge a {
margin-right: 5px;
}
.ideditor[dir='rtl'] .badge a {
margin-right: 0;
margin-left: 5px;
}
.ideditor .badge .icon { .ideditor .badge .icon {
vertical-align: baseline; vertical-align: baseline;
width: 11px; width: 11px;

View file

@ -84960,7 +84960,7 @@
wrap.selectAll('.preset-input-access').on('change', change).on('blur', change); wrap.selectAll('.preset-input-access').on('change', change).on('blur', change);
} }
function change(d) { function change(d3_event, d) {
var tag = {}; var tag = {};
var value = context.cleanTagValue(utilGetSetValue(select(this))); // don't override multiple values with blank string var value = context.cleanTagValue(utilGetSetValue(select(this))); // don't override multiple values with blank string
@ -85428,7 +85428,7 @@
wrap.selectAll('.preset-input-cycleway').on('change', change).on('blur', change); wrap.selectAll('.preset-input-cycleway').on('change', change).on('blur', change);
} }
function change(key) { function change(d3_event, key) {
var newValue = context.cleanTagValue(utilGetSetValue(select(this))); // don't override multiple values with blank string var newValue = context.cleanTagValue(utilGetSetValue(select(this))); // don't override multiple values with blank string
if (!newValue && (Array.isArray(_tags.cycleway) || Array.isArray(_tags[key]))) return; if (!newValue && (Array.isArray(_tags.cycleway) || Array.isArray(_tags[key]))) return;
@ -89837,16 +89837,8 @@
} }
}; };
sidebar.toggle = function (d3_event, moveMap) { sidebar.toggle = function (moveMap) {
var e = d3_event; // Don't allow sidebar to toggle when the user is in the walkthrough.
if (e && e.sourceEvent) {
e.sourceEvent.preventDefault();
} else if (e) {
e.preventDefault();
} // Don't allow sidebar to toggle when the user is in the walkthrough.
if (context.inIntro()) return; if (context.inIntro()) return;
var isCollapsed = selection.classed('collapsed'); var isCollapsed = selection.classed('collapsed');
var isCollapsing = !isCollapsed; var isCollapsing = !isCollapsed;
@ -89885,7 +89877,15 @@
}; // toggle the sidebar collapse when double-clicking the resizer }; // toggle the sidebar collapse when double-clicking the resizer
resizer.on('dblclick', sidebar.toggle); // ensure hover sidebar is closed when zooming out beyond editable zoom resizer.on('dblclick', function (d3_event) {
d3_event.preventDefault();
if (d3_event.sourceEvent) {
d3_event.sourceEvent.preventDefault();
}
sidebar.toggle();
}); // ensure hover sidebar is closed when zooming out beyond editable zoom
context.map().on('crossEditableZoom.sidebar', function (within) { context.map().on('crossEditableZoom.sidebar', function (within) {
if (!within && !selection.select('.inspector-hover').empty()) { if (!within && !selection.select('.inspector-hover').empty()) {
@ -97775,7 +97775,7 @@
var overMap = content.append('div').attr('class', 'over-map'); // HACK: Mobile Safari 14 likes to select anything selectable when long- var overMap = content.append('div').attr('class', 'over-map'); // HACK: Mobile Safari 14 likes to select anything selectable when long-
// pressing, even if it's not targeted. This conflicts with long-pressing // pressing, even if it's not targeted. This conflicts with long-pressing
// to show the edit menu. We add a selectable offscreen element as the first // to show the edit menu. We add a selectable offscreen element as the first
// child to trick Safari into not showing the selection UI. // child to trick Safari into not showing the selection UI.
overMap.append('div').attr('class', 'select-trap').text('t'); overMap.append('div').attr('class', 'select-trap').text('t');
overMap.append('div').attr('class', 'spinner').call(uiSpinner(context)); overMap.append('div').attr('class', 'spinner').call(uiSpinner(context));
@ -98094,7 +98094,7 @@
var _deferred = new Set(); var _deferred = new Set();
context.version = '2.19.0'; context.version = '2.19.1';
context.privacyVersion = '20200407'; // iD will alter the hash so cache the parameters intended to setup the session context.privacyVersion = '20200407'; // iD will alter the hash so cache the parameters intended to setup the session
context.initialHashParams = window.location.hash ? utilStringQs(window.location.hash) : {}; context.initialHashParams = window.location.hash ? utilStringQs(window.location.hash) : {};

File diff suppressed because one or more lines are too long