Options
All
  • Public
  • Public/Protected
  • All
Menu

A photo for the screensaver

Hierarchy

  • SSPhoto

Index

Constructors

constructor

Properties

Protected _aspectRatio

_aspectRatio: number

The aspect ratio

Protected Optional _ex

_ex: any

Type dependent extra information about the photo

Protected _isBad

_isBad: boolean

Flag to indicate that the url failed to load

Protected _photographer

_photographer: string

The person that took the photo

Protected Optional _point

_point: undefined | string

The geolocation where the photo was taken

Protected _type

_type: Type

The PhotoSource type the photo came from

Protected _url

_url: string

The url

Methods

getAspectRatio

  • getAspectRatio(): number

getEx

  • getEx(): any

getPhotographer

  • getPhotographer(): string

getPoint

  • getPoint(): undefined | string

getType

getUrl

  • getUrl(): string

isBad

  • isBad(): boolean

markBad

  • markBad(): void

setUrl

  • setUrl(url: string): void

showSource

  • showSource(): void

Static Protected _isBadAspect

  • _isBadAspect(asp: number): boolean
  • Determine if a photo would look bad zoomed or stretched at the given aspect ratio

    Parameters

    • asp: number

      an aspect ratio

    Returns boolean

    true if a photo aspect ratio differs substantially from the screens'

Static ignore

  • ignore(asp: number): boolean
  • Determine if a given aspect ratio should be ignored

    Parameters

    • asp: number

      an aspect ratio

    Returns boolean

    true if the aspect ratio should be ignored

Generated using TypeDoc