Options
All
  • Public
  • Public/Protected
  • All
Menu

Implements a Slider1DModel's player and controller views and the functions needed for user interaction.

Hierarchy

Index

Constructors

constructor

Properties

Protected inputCallback

inputCallback: (s: ControllerInputType | PlayerInputType) => void = ...

This function is called whenever a user interacts with the module.

Type declaration

model

A Module View always holds a Module Model that has all the informations and settings.

Protected renderCallback

renderCallback: () => void = ...

This function is called when the model changes it's view has to be rerendered.

Type declaration

    • (): void
    • This function is called when the model changes it's view has to be rerendered.

      Returns void

Accessors

midiDevices

  • set midiDevices(deviceList: string[]): void
  • Update the list of Midi output devices.

    Parameters

    • deviceList: string[]

    Returns void

Methods

composeControllerSettingsView

  • composeControllerSettingsView(): TemplateResult<ResultType>
  • Composes the controller view parts that are specific to this model. Has to be implemented by the child class that inherits from this class.

    Returns TemplateResult<ResultType>

composeNameInput

  • composeNameInput(): TemplateResult<ResultType>
  • Composes an input field where the name of the module can be set.

    Returns TemplateResult<ResultType>

    A Template Result without an outer div.

composePlayerTypeSelection

  • composePlayerTypeSelection(): TemplateResult<ResultType>
  • Composes a dropdown select element that let's the controller choose for which type of players this model is visible.

    Returns TemplateResult<ResultType>

    A Template Result without an outer div.

composePlayerView

  • composePlayerView(): TemplateResult<ResultType>
  • Composes the player view parts that are specific to this model. Has to be implemented by the child class that inherits from this class.

    Returns TemplateResult<ResultType>

getControllerView

  • Composes the general controller view of every model, regardless of the specific model type.

    Parameters

    Returns TemplateResult<ResultType>

    The controller view as Template Result.

getPlayerView

  • Composes the general player view of every model, regardless of the specific model type.

    Parameters

    • playerRole: PlayerRoleFlag

      The Role of the player that loadsand looks at this module.

    Returns TemplateResult<ResultType>

    The player view as Template Result. Might be empty if the player roles don't match.

labelEndInputChange

  • labelEndInputChange(e: Event): void
  • Sends the changed text of the slider end to the server.

    Parameters

    • e: Event

      A text input element.

    Returns void

labelStartInputChange

  • labelStartInputChange(e: Event): void
  • Sends the changed text of the slider start to the server.

    Parameters

    • e: Event

      A text input element.

    Returns void

sliderInputChange

  • sliderInputChange(e: Event): void
  • Sends the changed slider value to the server.

    Parameters

    • e: Event

      A range input element.

    Returns void

Generated using TypeDoc