Registers an asset source and returns its asset id.
Asset source URL or serialized value.
OptionalpreferredId: stringOptional preferred id if it is available.
The assigned asset id, or an empty string for blank input.
Resolves an asset id to its source value.
OptionalimageId: stringAsset id to resolve.
Asset source when present; otherwise undefined.
Merges assets from the given map into the store without clearing existing entries. Existing ids take precedence — an id already in the store is not overwritten.
Optionalassets: Record<string, string>Assets to merge, keyed by id.
Replaces the store contents from a serialized asset map.
Optionalassets: Record<string, string>Serialized assets keyed by id.
Creates a serializable snapshot of the current asset map.
Asset map when non-empty; otherwise undefined.
Clears all cached asset mappings.
Releases store resources.
Stores image asset sources and stable asset identifiers for diagram nodes.
This cache supports registration, lookup by id, bulk load/snapshot, and deterministic id generation for non-URL sources.