new Divider(viewer, name, options, meta)
Create a divider
| Name | Type | Description | 
|---|---|---|
viewer | 
            
            
            Viewer | 
                
                    
                    
                        
                    
                
                 The viewer  | 
        
name | 
            
            
            String | 
                
                    
                    
                        
                    
                
                 The name for the divider. One of: track, slot, or mirrored.  | 
        
options | 
            
            
            Object | 
                
                    
                    
                        
                    
                
                 Attributes used to create the divider  | 
        
meta | 
            
            
            Object | 
                
                    
                        optional
                    
                    
                        
                    
                
                 User-defined Meta data to add to the divider  | 
        
Extends
Members
- 
    
adjustedSpacingNumber
 - 
    
    
Get the divider spacing adjusted for zoom level. Even if the divider is not visible, there can still be spacing between the slots/tracks.
 - 
    
adjustedThicknessNumber
 - 
    
    
Get the divider thickness adjusted for visibility and zoom level.
 - 
    
canvasCanvas
 - 
    
    
Get the canvas.
 - 
    
colorColor
 - 
    
    
Get or set the divider color. When setting the color, a string representing the color or a
Colorobject can be used. For details seeColor. - 
    
layoutLayout
 - 
    
    
Get the layout.
 - 
    
metaBoolean
 - 
    
    
Get or Set the meta data of this object. See the meta data tutorial for details.
 - 
    
mirrorBoolean
 - 
    
    
Get or set the mirroring for this divider. When setting to true, the other divider will be mirrored to this one.
 - 
    
name
 - 
    
    
Return name of divider (e.g. 'track' or 'slot')
 - 
    
sequenceSequence
 - 
    
    
Get the sequence.
 - 
    
spacingNumber
 - 
    
    
Set or get the divider spacing.
 - 
    
thicknessNumber
 - 
    
    
Set or get the divider thickness. This is the unzoomed thickness.
 - 
    
viewerViewer
 - 
    
    
Get the viewer.
 - 
    
visibleBoolean
 - 
    
    
Get or Set the visibility of this object.
 
Methods
- 
    
inherited addPluginOptions(id, options)
 - 
    
    
    
Add a plugin to the object.
Name Type Description idString The id of the plugin
optionsObject The plugin options
 - 
    
inherited deleteFromObjects()
 - 
    
    
    
Remove the object from Viewer.objects
 - 
    
inherited hasPlugin(pluginID){Boolean}
 - 
    
    
    
Does this object have a particular plugin?
Name Type Description pluginIDString The ID of the plugin
Returns:
Type Description Boolean - Whether the object has the plugin
 
 - 
    
inherited optionsForPlugin(pluginName){Object}
 - 
    
    
    
Get the options for a particular plugin.
Name Type Description pluginNameString The name of the plugin
Returns:
Type Description Object - The options for the plugin or undefined if the plugin is not found
 
 - 
    
toString(){String}
 - 
    
    
    
Return the class name as a string.
Returns:
Type Description String - 'Divider'
 
 - 
    
update(attributes)
 - 
    
    
    
Update divider attributes. See updating records for details.
Name Type Description attributesObject Object describing the properties to change
 - 
    
inherited updatePluginOptions(id, options)
 - 
    
    
    
Update plugin options. Merge the new options with the old options.
Name Type Description idString The id of the plugin
optionsObject The plugin options