Skip to main content

Interface: DirectionConfiguration

component.DirectionConfiguration

Interface for configuration of direction component.

interface

example

var viewer = new Viewer({    ...    component: {        direction: {            minWidth: 140,            maxWidth: 340,        },    },    ...});

Hierarchy#

  • ComponentConfiguration

    ↳ DirectionConfiguration

Properties#

distinguishSequence#

• Optional distinguishSequence: boolean

Determines if the sequence arrow appearance should be different from the non sequence arrows.

description Needs to be set to true for the sequence suffixed classes to be applied to the navigation elements. Additional calculations will be performed resulting in a performance cost.

default false

Defined in#

component/interfaces/DirectionConfiguration.ts:32


highlightId#

• Optional highlightId: string

The image id representing the direction arrow to be highlighted.

description The arrow pointing towards the image corresponding to the highlight id will be highlighted.

default undefined

Defined in#

component/interfaces/DirectionConfiguration.ts:42


maxWidth#

• Optional maxWidth: number

The max width of the non transformed container element holding the navigation arrows.

description Set max width of the non transformed container element holding the navigation arrows. If the min width is larger than the max width the min width value will be used.

The container element is automatically resized when the resize method on the Viewer class is called.

default 460

Defined in#

component/interfaces/DirectionConfiguration.ts:74


minWidth#

• Optional minWidth: number

The min width of the non transformed container element holding the navigation arrows.

description Set min width of the non transformed container element holding the navigation arrows. If the min width is larger than the max width the min width value will be used.

The container element is automatically resized when the resize method on the Viewer class is called.

default 260

Defined in#

component/interfaces/DirectionConfiguration.ts:58