Registers a pre-constructed resource instance.
The resource to add.
The added resource.
Creates a resource from a UrlSource object, a URL string, resource markup (such as XML for SVG) or a base64 string.
A UrlSource descriptor or a URL/markup/bas64 string pointing to the resource data.
OptionalcreateOptions: { resourceType?: SVG_RESOURCE } & DefaultSvgResourceCreateOptionsOptional type-specific create options (e.g. svg resource create options).
An Observable that emits the created ResourceEntity.
OptionalcreateOptions: { resourceType?: SVG_RESOURCE } & DefaultSvgResourceCreateOptionsRemoves the track with the given ID.
The unique identifier of the track to remove.
true if the track was found and removed, false otherwise.
Returns all resources that satisfy the predicate, or all resources if no predicate is provided.
Optionalpredicate: (value: ResourceEntity, index: number, array: ResourceEntity[]) => unknownOptional filter function applied to each track.
Optionalpredicate: (value: ResourceEntity, index: number, array: ResourceEntity[]) => unknownReturns the resource with the given ID, or undefined if not found.
The unique identifier of the resource.
Emits resource repository events, such as resources being added or deleted.