Home Manual Reference Source Repository
public class | source

Surface

Extends:

src/interactions/event-source~EventSource → Surface

Normalizes mouse user interactions with the timeline upon the DOM container element of Track instances. As soon as a track is added to a timeline, its attached Surface instance will emit the mouse events.

Constructor Summary

Public Constructor
public

constructor(el: DOMElement)

Member Summary

Public Members
public

The name of the event source.

Public Constructors

public constructor(el: DOMElement) source

Params:

NameTypeAttributeDescription
el DOMElement

The DOM element to listen.

TODO:

  • - Add some padding to the surface.

Public Members

public sourceName: String source

The name of the event source.