Class ImageMetaData

A class representing image link data within the map.

Hierarchy

  • default
    • ImageMetaData

Properties

Accessors

Methods

Properties

id: string

The identity of the map metadata.

Accessors

  • get altText(): undefined | string

    Gets the alt text of the image.

    Returns undefined | string

    The alt text of the image.

  • get name(): undefined | string

    Gets the alt text of the image.

    Returns undefined | string

    The alt text of the image.

    Use altText instead.

  • get url(): undefined | string

    Gets the url of the image.

    Returns undefined | string

    The url of the image.

Methods

  • Serializes the image data to JSON.

    Returns {
        __type: string;
        id: string;
        name: undefined | string;
        url: undefined | string;
    }

    An object representing the image.

  • Checks if the provided instance is of type Image.

    Parameters

    • instance: object

      The instance to check.

    Returns instance is ImageMetaData

    True if the instance is a Image, false otherwise.