Themes: improve 'auto-type' special visualisation

This commit is contained in:
Pieter Vander Vennet 2024-08-23 13:00:26 +02:00
parent c291b16406
commit 658db35617
7 changed files with 140 additions and 165 deletions

View file

@ -234,6 +234,13 @@ export class TagUtils {
return properties
}
static asProperties(tags: TagsFilter | TagsFilter[], baseproperties: Record<string, string>= {}) {
if(Array.isArray(tags)){
tags = new And(tags)
}
return TagUtils.changeAsProperties(tags.asChange(baseproperties))
}
static changeAsProperties(kvs: { k: string; v: string }[]): Record<string, string> {
const tags: Record<string, string> = {}
for (const kv of kvs) {