Skip to content
Snippets Groups Projects
Commit 7b77bdd2 authored by Loïc Correnson's avatar Loïc Correnson Committed by David Bühler
Browse files

[ivette] ranked extension points

parent 2b7252e4
No related branches found
No related tags found
No related merge requests found
......@@ -133,9 +133,12 @@ function byPanel(p: ElementProps, q: ElementProps) {
export class ElementRack {
private rank = 1;
private readonly items = new Map<string, ElementProps>();
register(elt: ElementProps) {
if (elt.rank === undefined) elt.rank = this.rank;
this.rank++;
this.items.set(elt.id, elt);
UPDATED.emit();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment