import common from './common.js' import IndexedCollection from './IndexedCollection.js' import math from './math.js' class PanoramaCollection extends IndexedCollection { constructor() { super() this.neighbourMap = {} this.map = null this.animatePanoId = null } getIndex(pano) { return pano.id } find(e, t) { var i = common.filterAll(this.list, e) return 0 === i.length ? null : (t && t.forEach(function (e) { i = common.stableSort(i, e) }), i[0]) } lowestByScore(e, t, i) { return this.findRankedByScore(0, e, t, i) } findRankedByScore(e, t, i, n) { n && ((n.candidates = null), (n.pano = null)), e || (e = 0) var r = common.sortByScore(this.list, t, i) return !r || 0 === r.length || e >= r.length ? null : (n && ((n.candidates = r), (n.pano = r[e].item)), r[e].item) } } export default PanoramaCollection