const colors = ["#ff9900"/*orange*/, "#bd76fb"/*purple*/, "#14c4ad"/*dark green*/, "#ff5d60"/*red*/, "#ff6ec7" /*pink*/]; export const EntityHighlighterService = { entities: new Map(), setEntity: function(entityId: number) { if(!entityId) { return; } if (!this.entities.has(entityId)) { const count = this.entities.size; this.entities.set(entityId, colors[count]); } }, getEntity: function(entityId: number) { if (!this.entities.has(entityId)) { this.setEntity(entityId); } return this.entities.get(entityId); }, getAddedEntities: function() { return this.entities.keys(); }, resetEntities: function() { this.entities.clear(); } }