Insert a tag into the registry.
Matches Rust's TagsStore::insert() behavior:
The tag to register (must have a non-empty name)
Insert multiple tags into the registry. Matches Rust's insert_all() method.
Array of tags to register
Register a custom summarizer function for a tag.
The numeric tag value
The summarizer function
Get the assigned name for a tag, if any.
The tag to look up
The assigned name, or undefined if no name is registered
Get a display name for a tag.
The tag to get a name for
The assigned name if available, otherwise the tag value as a string
Look up a tag by its numeric value.
The numeric tag value
The Tag object if found, undefined otherwise
Look up a tag by its name.
The tag name
The Tag object if found, undefined otherwise
Get a display name for a tag value.
The numeric tag value
The tag name if registered, otherwise the value as a string
Get a custom summarizer function for a tag, if registered.
The numeric tag value
The summarizer function if registered, undefined otherwise
Tag registry implementation.
Stores tags with their names and optional summarizer functions.