This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const colors = getMarkers().map((marker) => marker.color); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cids = ($(row).attr('data-id') for row in $el.find('.alignment-row')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let cids = $el.find('.alignment-row').map((row) => $(row).attr('data-id')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable | |
camelcase, | |
consistent-return, | |
default-case, | |
func-names, | |
new-cap, | |
no-case-declarations, | |
no-cond-assign, | |
no-multi-assign, | |
no-return-assign, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_clearWorkspace: (itemIdsToKeep = []) -> | |
@_closeAllFilesExcept (itemFileId) -> itemFileId in itemIdsToKeep | |
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_clearWorkspace(itemIdsToKeep) { | |
if (itemIdsToKeep == null) { itemIdsToKeep = []; } | |
this._closeAllFilesExcept(itemFileId => Array.from(itemIdsToKeep).includes(itemFileId)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_clearWorkspace(itemIdsToKeep) { | |
if (itemIdsToKeep == null) { itemIdsToKeep = []; } | |
this._closeAllFilesExcept(itemFileId => itemIdsToKeep.includes(itemFileId)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse: (response) -> | |
response.features = new selectables.Collection(response.features) | |
return response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parse(response) { | |
response.features = new selectables.Collection(response.features); | |
return response; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if isHappy then cheer() |