Class: Dividers

Dividers

Dividers is a container for the track and slot divider. They are accessed from the viewer object (e.g. cgv):

  • cgv.dividers.track - controls spacing/lines between tracks.
  • cgv.dividers.slot - controls spacing/lines betweens slots within a track.

Attributes

Option Description
track Divider attributes for tracks
slot Divider attributes for slots

new Dividers(viewer, options, meta)

Create the dividers container

Name Type Description
viewer Viewer

The viewer that contains the dividers

options Object

Attributes used to create the dividers. Passed on slot and track divider.

meta Object optional

User-defined Meta data to add to the dividers

Members

dividersMirrored

Returns true if the slot and track divider are mirrored

slot

Returns the slot divider

track

Returns the track divider

Methods

invertColors()

Invert colors of the dividers

toJSON()

Returns JSON representing the object

toString(){String}

Return the class name as a string.

Returns:
Type Description
String
  • 'Dividers'