pixelEditor coming along

This commit is contained in:
Dustin Swan 2026-02-21 22:08:12 -07:00
parent 5d7d297050
commit 12a22cf55c
No known key found for this signature in database
GPG key ID: 30D46587E2100467
3 changed files with 49 additions and 15 deletions

View file

@ -96,7 +96,9 @@ export const _rt = {
_tag: (typeof obj === 'object' && obj !== null && field in obj) ? 'True' : 'False'
}),
storeSearch: (query: string) => {
return Object.keys(store).filter(name => _rt.fuzzyMatch(query)(name)._tag === 'True');
return Object.keys(store)
.filter(name => _rt.fuzzyMatch(query)(name)._tag === 'True')
.sort((a, b) => a.length - b.length);
},
getSource: (name: string) => {
const ast = definitions.get(name);