Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScreensaverSlideElement

Polymer element to provide an animatable slide

Hierarchy

Index

Constructors

Static constructor

  • Returns ScreensaverSlideElement

Events

onErrorChanged

  • onErrorChanged(ev: CustomEvent): void

Properties

Protected aniType

aniType: TRANS_TYPE = TRANS_TYPE.FADE

Between photo animation type

Protected animation

animation: Animation | null = null

The animation object for photo animation

Protected animationTarget

animationTarget: IRect | null = null

The target rectangle for the photo animation when detecting faces

Protected author

author: HTMLDivElement

Protected detectFaces

detectFaces: boolean = ChromeStorage.get('detectFaces', false)

Detect faces during photo animation flag

Protected index

index: number = 0

The unique index of our view

Protected ironImage

ironImage: IronImageElement

Protected isAnimate

isAnimate: boolean = false

Flag for photo animation

Protected location

location: HTMLDivElement

photo

photo: SSPhoto | null = null

The SSPhoto we contain

Protected screenHeight

screenHeight: number = screen.height

Screen height

Protected screenWidth

screenWidth: number = screen.width

Screen width

Protected time

time: HTMLDivElement

Protected timeLabel

timeLabel: string = ""

Label for current time

Protected url

url: string = ""

The url of the photo

viewType

viewType: VIEW_TYPE = VIEW_TYPE.LETTERBOX

View type to render

Protected weather

Accessors

authorLabel

  • get authorLabel(): string

locationLabel

  • get locationLabel(): string

Static template

  • get template(): HTMLTemplateElement

Methods

Protected aniChanged

Protected fireEvent

  • fireEvent(name: string, detailValue?: any): void
  • Dispatch an event

    Parameters

    • name: string

      event name

    • Optional detailValue: any

      optional value

    Returns void

getPhoto

Protected isAnimateChanged

  • isAnimateChanged(isAnimate: boolean): void

isPhotoError

  • isPhotoError(): undefined | null | false | true

isPhotoLoaded

  • isPhotoLoaded(): undefined | null | false | true

Protected photoChanged

  • photoChanged(photo: SSPhoto): void

prep

  • prep(): Promise<void>

Protected render

  • render(): void

Protected renderFrame

  • renderFrame(): void

Protected renderFull

  • renderFull(): void

Protected renderLetterbox

  • renderLetterbox(): void

Protected renderZoom

  • renderZoom(): void

Protected setAnimationTarget

  • setAnimationTarget(): Promise<void>

setUrl

  • setUrl(url: string): void

Protected startAnimation

  • startAnimation(): Promise<void>

Static localize

  • localize(name: string, def?: undefined | string): string
  • Localize a string

    Parameters

    • name: string

      name from _locales

    • Optional def: undefined | string

      optional default value if name not found

    Returns string

Static Protected setFrameLabelStyle

  • setFrameLabelStyle(style: CSSStyleDeclaration, width: number, height: number, isLeft: boolean): void
  • Set style info for a label in a frame view

    Parameters

    • style: CSSStyleDeclaration

      element.style object

    • width: number

      frame width

    • height: number

      frame height

    • isLeft: boolean

      if true align left, else right

    Returns void

Object literals

Protected animationConfig

animationConfig: object

Configuration of the current animation

entry

entry: object

name

name: string = "fade-in-animation"

node

node: this = this

timing

timing: object

duration

duration: number = 2000

easing

easing: string = "ease-in-out"

exit

exit: object

name

name: string = "fade-out-animation"

node

node: this = this

timing

timing: object

duration

duration: number = 2000

easing

easing: string = "ease-in-out"

Generated using TypeDoc