@byomakase/omakase-player
    Preparing search index...

    Interface SvgResource

    Primary resource entity representing the svg resource.

    A Svg holds the svg source, load lifecycle state and blob attribute used for HtmlImage elements. Extends ResourceEntity with resourceType always set to ResourceEntityType.SVG_RESOURCE.

    interface SvgResource {
        blobUrl: string | undefined;
        entityType: EntityType;
        id: string;
        resourceType: SVG_RESOURCE;
        source: string | UrlSource | undefined;
        sourceFileFormatType: FileFormatType | undefined;
        state: SvgResourceState;
        resolveBlobUrl(): Observable<string>;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    blobUrl: string | undefined

    Svg blob created from source, used for svg rendering across player.

    entityType: EntityType

    Discriminator indicating whether this entity is a media or a resource.

    id: string

    Unique identifier (UUID).

    resourceType: SVG_RESOURCE

    Discriminator indicating this resource entity is a svg.

    source: string | UrlSource | undefined

    The data source backing this svg, if any.

    sourceFileFormatType: FileFormatType | undefined

    The resolved file format type of the source.

    Serializable state snapshot of this svg.

    Methods

    • Return blobUrl. If non-existent, create a new one and return it. Emits synchronously once resolved.

      Returns Observable<string>