Skip to main content

Class: SequenceComponent

component.SequenceComponent

classdesc Component showing navigation arrows for sequence directions as well as playing button. Exposes an API to start and stop play.

Hierarchy#

Constructors#

constructor#

• new SequenceComponent(name, container, navigator, renderer?, scheduler?)

Parameters#

NameType
namestring
containerContainer
navigatorNavigator
renderer?SequenceDOMRenderer
scheduler?Scheduler

Overrides#

Component.constructor

Defined in#

component/sequence/SequenceComponent.ts:68

Events#

on#

• on(type, handler): void

Fired when the hovered element of a component changes.

example

// Initialize the viewervar viewer = new Viewer({ // viewer options });var component = viewer.getComponent('<component-name>');// Set an event listenercomponent.on('hover', function() {  console.log("A hover event has occurred.");});

Parameters#

NameType
type"hover"
handler(event: ComponentHoverEvent) => void

Returns#

void

Overrides#

Component.on

Defined in#

component/sequence/SequenceComponent.ts:165

• on(type, handler): void

Event fired when playing starts or stops.

example

// Initialize the viewervar viewer = new Viewer({ // viewer options });var component = viewer.getComponent('<component-name>');// Set an event listenercomponent.on('playing', function() {  console.log("A playing event has occurred.");});

Parameters#

NameType
type"playing"
handler(event: ComponentPlayEvent) => void

Returns#

void

Defined in#

component/sequence/SequenceComponent.ts:184

Properties#

componentName#

â–ª Static componentName: ComponentName = "sequence"

inheritdoc

Overrides#

Component.componentName

Defined in#

component/sequence/SequenceComponent.ts:59

Accessors#

activated#

• get activated(): boolean

Get activated.

Returns#

boolean

Value indicating if the component is currently active.

Defined in#

component/Component.ts:78


defaultConfiguration#

• get defaultConfiguration(): TConfiguration

Get default configuration.

Returns#

TConfiguration

Default configuration for component.

Defined in#

component/Component.ts:92


name#

• get name(): string

Get name.

description The name of the component. Used when interacting with the component through the Viewer's API.

Returns#

string

Defined in#

component/Component.ts:107

Methods#

configure#

â–¸ configure(configuration): void

Configure the component.

Parameters#

NameTypeDescription
configurationSequenceConfigurationComponent configuration.

Returns#

void

Inherited from#

Component.configure

Defined in#

component/Component.ts:131


fire#

â–¸ fire(type, event): void

Parameters#

NameType
type"hover"
eventComponentHoverEvent

Returns#

void

Overrides#

Component.fire

Defined in#

component/sequence/SequenceComponent.ts:120

â–¸ fire(type, event): void

Parameters#

NameType
type"playing"
eventComponentPlayEvent

Returns#

void

Overrides#

Component.fire

Defined in#

component/sequence/SequenceComponent.ts:124


off#

â–¸ off(type, handler): void

Unsubscribe from an event by its name.

Parameters#

NameType
type"hover"
handler(event: ComponentHoverEvent) => void

Returns#

void

Overrides#

Component.off

Defined in#

component/sequence/SequenceComponent.ts:135

â–¸ off(type, handler): void

Parameters#

NameType
type"playing"
handler(event: ComponentPlayEvent) => void

Returns#

void

Overrides#

Component.off

Defined in#

component/sequence/SequenceComponent.ts:139


play#

â–¸ play(): void

Start playing.

fires playing

Returns#

void

Defined in#

component/sequence/SequenceComponent.ts:200


stop#

â–¸ stop(): void

Stop playing.

fires playing

Returns#

void

Defined in#

component/sequence/SequenceComponent.ts:207