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

BreakpointState

Extends:

src/states/base-state~BaseState → BreakpointState

A state to interact with a breakpoint function, mimicing Max/MSP's breakpoint function interactions.

example usage

Constructor Summary

Public Constructor
public

constructor(timeline: *, datumGenerator: *)

Member Summary

Public Members
public
public
public
public

Method Summary

Public Methods
public

enter()

public

exit()

public

handleEvent(e: *, hitLayers: *)

public

onMouseDown(e: *, hitLayers: *)

public

onMouseMove(e: *)

public

onMouseUp(e: *)

Public Constructors

public constructor(timeline: *, datumGenerator: *) source

Params:

NameTypeAttributeDescription
timeline *
datumGenerator *

Public Members

public currentEditedLayer: * source

public currentTarget: * source

public datumGenerator: * source

public mouseDown: boolean source

Public Methods

public enter() source

public exit() source

public handleEvent(e: *, hitLayers: *) source

Params:

NameTypeAttributeDescription
e *
hitLayers *

public onMouseDown(e: *, hitLayers: *) source

Params:

NameTypeAttributeDescription
e *
hitLayers *

public onMouseMove(e: *) source

Params:

NameTypeAttributeDescription
e *

public onMouseUp(e: *) source

Params:

NameTypeAttributeDescription
e *