Themes: improve 'auto-type' special visualisation
This commit is contained in:
parent
c291b16406
commit
658db35617
7 changed files with 140 additions and 165 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue