mirror of
https://github.com/umap-project/umap.git
synced 2025-05-01 04:22:24 +02:00
whore: prettier
This commit is contained in:
parent
b36f5d1ce3
commit
8967ab5901
4 changed files with 7 additions and 11 deletions
|
@ -21,7 +21,7 @@ export class Panel {
|
||||||
}
|
}
|
||||||
|
|
||||||
isOpen() {
|
isOpen() {
|
||||||
return this.container.classList.contains("on")
|
return this.container.classList.contains('on')
|
||||||
}
|
}
|
||||||
|
|
||||||
open({ content, className, actions = [] } = {}) {
|
open({ content, className, actions = [] } = {}) {
|
||||||
|
|
|
@ -943,9 +943,8 @@ L.FormBuilder.MultiChoice = L.FormBuilder.Element.extend({
|
||||||
}
|
}
|
||||||
const choices = this.getChoices().map(([value, label]) => value)
|
const choices = this.getChoices().map(([value, label]) => value)
|
||||||
if (choices.includes(value)) {
|
if (choices.includes(value)) {
|
||||||
this.container.querySelector(
|
this.container.querySelector(`input[type="radio"][value="${value}"]`).checked =
|
||||||
`input[type="radio"][value="${value}"]`
|
true
|
||||||
).checked = true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -548,8 +548,7 @@ U.Map = L.Map.extend({
|
||||||
|
|
||||||
initShortcuts: function () {
|
initShortcuts: function () {
|
||||||
const globalShortcuts = function (e) {
|
const globalShortcuts = function (e) {
|
||||||
|
if (e.key === 'Escape') {
|
||||||
if (e.key === 'Escape') {
|
|
||||||
if (this.dialog.visible) {
|
if (this.dialog.visible) {
|
||||||
this.dialog.close()
|
this.dialog.close()
|
||||||
} else if (this.editEnabled && this.editTools.drawing()) {
|
} else if (this.editEnabled && this.editTools.drawing()) {
|
||||||
|
@ -568,7 +567,7 @@ U.Map = L.Map.extend({
|
||||||
// From now on, only ctrl/meta shortcut
|
// From now on, only ctrl/meta shortcut
|
||||||
if (!(e.ctrlKey || e.metaKey) || e.shiftKey) return
|
if (!(e.ctrlKey || e.metaKey) || e.shiftKey) return
|
||||||
|
|
||||||
if (e.key === 'f') {
|
if (e.key === 'f') {
|
||||||
L.DomEvent.stop(e)
|
L.DomEvent.stop(e)
|
||||||
this.search()
|
this.search()
|
||||||
}
|
}
|
||||||
|
@ -576,8 +575,6 @@ U.Map = L.Map.extend({
|
||||||
/* Edit mode only shortcuts */
|
/* Edit mode only shortcuts */
|
||||||
if (!this.hasEditMode()) return
|
if (!this.hasEditMode()) return
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Edit mode Off
|
// Edit mode Off
|
||||||
if (!this.editEnabled) {
|
if (!this.editEnabled) {
|
||||||
switch (e.key) {
|
switch (e.key) {
|
||||||
|
|
|
@ -469,8 +469,8 @@ U.Layer.Heat = L.HeatLayer.extend({
|
||||||
this._latlngs[i].alt !== undefined
|
this._latlngs[i].alt !== undefined
|
||||||
? this._latlngs[i].alt
|
? this._latlngs[i].alt
|
||||||
: this._latlngs[i][2] !== undefined
|
: this._latlngs[i][2] !== undefined
|
||||||
? +this._latlngs[i][2]
|
? +this._latlngs[i][2]
|
||||||
: 1
|
: 1
|
||||||
|
|
||||||
grid[y] = grid[y] || []
|
grid[y] = grid[y] || []
|
||||||
cell = grid[y][x]
|
cell = grid[y][x]
|
||||||
|
|
Loading…
Reference in a new issue