Skip to content

Commit

Permalink
Version 247:
Browse files Browse the repository at this point in the history
* The timeline now shows alert thumbnails when zoomed in near the limit.  This is configurable via `UI Settings` > `Timeline` where the zoom limits can be adjusted and thumbnails can be enabled for group timeline views if desired.
* Refactored thumbnail URL generation code to be simpler and not include unnecessary '.bvr' file extensions or '?' characters when there are no query string parameters.
* Rewrote async thumbnail loader to be more robust for the sake of the timeline thumbnail loader.
* Added Queue.removeAll method which takes a function to decide which elements to remove.
  • Loading branch information
bp2008 committed Jun 12, 2023
1 parent adde0b1 commit 3293afd
Show file tree
Hide file tree
Showing 4 changed files with 285 additions and 89 deletions.
2 changes: 1 addition & 1 deletion ui3.htm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
};
</script>
<script type="text/javascript">
var ui_version = "246";
var ui_version = "247";
var bi_version = "%%VERSION%%";
var appPath_raw = "%%VIRTDIR%%";
var local_bi_session = "%%SESSION%%";
Expand Down
16 changes: 16 additions & 0 deletions ui3/libs-src/Queue.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,20 @@ function Queue()
return queue[i];
return undefined;
};

/**
* Removes all items that cause the specified predicate to return true.
* @param {Function} where A function to which each item from the queue is passed. The function should return true when the desired item is passed in.
* @returns {Any} Removes all items that cause the specified predicate to return true.
*/
this.removeAll = function (where)
{
// An alternate implementation would be to create a new array, fill it with non-matching items, and reset the offset. However the current implementation is likely faster when there is only one match.
for (var i = offset; i < queue.length; i++)
if (where(queue[i]))
{
queue.splice(i, 1);
i--;
}
};
}
4 changes: 2 additions & 2 deletions ui3/libs-ui3.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3293afd

Please sign in to comment.