This file contains hidden or 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
var colors, marker; | |
colors = (function() { | |
var i, len, ref, results; | |
ref = getMarkers(); | |
results = []; | |
for (i = 0, len = ref.length; i < len; i++) { | |
marker = ref[i]; | |
results.push(marker.color); | |
} | |
return results; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; | |
} |