Constructor for interactive story elements.

     const element = StoryElement
.at({ x: 0, y: 0, width: 10, height: 10 })
.reaction('👍', { dark: true })

Methods

  • Parameters

    • params: { latitude: number; longitude: number }
      • latitude: number

        Latitude of the geolocation

      • longitude: number

        Longitude of the geolocation

    Returns RawMediaAreaGeoPoint

  • Parameters

    • reaction: InputReaction
    • params: { dark?: boolean; flipped?: boolean } = {}
      • Optionaldark?: boolean

        Whether this reaction is on a dark background

      • Optionalflipped?: boolean

        Whether this reaction is flipped (i.e. has tail on the left)

    Returns RawMediaAreaSuggestedReaction

  • Parameters

    • url: string

    Returns RawMediaAreaUrl

  • Parameters

    • params: {
          address: string;
          latitude: number;
          longitude: number;
          source: VenueSource;
          title: string;
      }
      • address: string

        Venue address

      • latitude: number

        Latitude of the geolocation

      • longitude: number

        Longitude of the geolocation

      • source: VenueSource

        Source where this venue was acquired

      • title: string

        Venue name

    Returns RawMediaAreaVenue

  • Parameters

    • params: { height: number; rotation?: number; width: number; x: number; y: number }

    Returns StoryElement