Home Manual Reference Source Repository
import BrushZoomState from 'waves-ui/src/states/brush-zoom-state.js'
public class | source

BrushZoomState

Extends:

src/states/base-state~BaseState → BrushZoomState

Protools like zoom with zone selection. Press space bar to reset zoom.

example usage

TODO:

  • - could also handle `g` and `h` keys to zoom-in, zoom-out.

Constructor Summary

Public Constructor
public

constructor(timeline: *)

Member Summary

Public Members
public

brushes: *

public

startX: *

Method Summary

Public Methods
public

handleEvent(e: *)

public

onKeyDown(e: *)

public

onMouseDown(e: *)

public

onMouseMove(e: *)

public

onMouseUp(e: *)

Public Constructors

public constructor(timeline: *) source

Params:

NameTypeAttributeDescription
timeline *

Public Members

public brushes: * source

public startX: * source

Public Methods

public handleEvent(e: *) source

Params:

NameTypeAttributeDescription
e *

public onKeyDown(e: *) source

Params:

NameTypeAttributeDescription
e *

public onMouseDown(e: *) source

Params:

NameTypeAttributeDescription
e *

public onMouseMove(e: *) source

Params:

NameTypeAttributeDescription
e *

public onMouseUp(e: *) source

Params:

NameTypeAttributeDescription
e *