@cowbell-lol/window-item
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@cowbell-lol/window-item

Window item.

npm i @cowbell-lol/window-item pnpm add @cowbell-lol/window-item yarn add @cowbell-lol/window-item

API

# AudioTransportElement

} & __module & {

# Boolean

    undefined | boolean

# Number

    undefined | number

# String

    undefined | string

}, "transition">>
# Bpm

    # ()

      ()  =>

        VKid

# Logo

    # ()

      ()  =>

        VKid

# NumberInput

    Component<NumberInputElement, HTMLElement>

# PlayPauseStop

    # ()

      ()  =>

        VKid

# Time

    # ()

      ()  =>

        VKid

# analyserBuffer

    Float32Array

# analyserNode

    AnalyserNode

# audioContext

    AudioContext

# bar

    HTMLSpanElement

# beat

    HTMLSpanElement

# bpm

    number

# clipLag

    number

# clipThreshold

    number

# clipping

    boolean

# context

    ContextClass<AudioTransportElement & JsxContext<AudioTransportElement> & Omit<{

    # ctor

      Class<T>

    <T>(ctor)  =>

      CleanClass<T>
    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# dispatch

    Dispatch<

    # (name, detail, init)

      # name

        Event | Narrow<K, string>

      # detail
      # init

        CustomEventInit<any>

      <K, E>(name, detail, init)  =>

        any

>
# gradient

    CanvasGradient

# gradientCanvas

    HTMLCanvasElement & {

    # height

      number

    # width

      number

    }
# gradientCanvasCtx

    CanvasRenderingContext2D

# host
# lastClip

    number

# lastPeak

    number

# mainGain

    GainNode

# onmounted
# onunmounted
# pause

    Fn<[ ], void>

# pausedTime

    number

# peak

    number

# peakLag

    number

# peakVolume

    number

# play

    Fn<[ ], void>

# playOrPause

    Fn<[ ], void>

# schedulerNode

    SchedulerNode

# setParam

    # (param, targetValue, slope)

      # param

        AudioParam

      # targetValue

        number

      # slope

        number

      (param, targetValue, slope)  =>

        void

# sixt

    HTMLSpanElement

# start

    Fn<[ ], Promise<void>>

# startTime

    number

# state

    State<AudioTransportElement, {

    # Idle

      "idle"

    # Paused

      "paused"

    # Playing

      "playing"

    # Stopped

      "stopped"

    }, "playing" | "idle" | "paused" | "stopped"> & EventMethods<AudioTransportElement, {

    # idlecancel

      CustomEvent<any>

    # idleend

      CustomEvent<any>

    # idlepause

      CustomEvent<any>

    # idleresume

      CustomEvent<any>

    # idlestart

      CustomEvent<any>

    # pausedcancel

      CustomEvent<any>

    # pausedend

      CustomEvent<any>

    # pausedpause

      CustomEvent<any>

    # pausedresume

      CustomEvent<any>

    # pausedstart

      CustomEvent<any>

    # playingcancel

      CustomEvent<any>

    # playingend

      CustomEvent<any>

    # playingpause

      CustomEvent<any>

    # playingresume

      CustomEvent<any>

    # playingstart

      CustomEvent<any>

    # stoppedcancel

      CustomEvent<any>

    # stoppedend

      CustomEvent<any>

    # stoppedpause

      CustomEvent<any>

    # stoppedresume

      CustomEvent<any>

    # stoppedstart

      CustomEvent<any>

    }> & InlineEventMap<AudioTransportElement, {

    # idlecancel

      CustomEvent<any>

    # idleend

      CustomEvent<any>

    # idlepause

      CustomEvent<any>

    # idleresume

      CustomEvent<any>

    # idlestart

      CustomEvent<any>

    # pausedcancel

      CustomEvent<any>

    # pausedend

      CustomEvent<any>

    # pausedpause

      CustomEvent<any>

    # pausedresume

      CustomEvent<any>

    # pausedstart

      CustomEvent<any>

    # playingcancel

      CustomEvent<any>

    # playingend

      CustomEvent<any>

    # playingpause

      CustomEvent<any>

    # playingresume

      CustomEvent<any>

    # playingstart

      CustomEvent<any>

    # stoppedcancel

      CustomEvent<any>

    # stoppedend

      CustomEvent<any>

    # stoppedpause

      CustomEvent<any>

    # stoppedresume

      CustomEvent<any>

    # stoppedstart

      CustomEvent<any>

    }>
# stop

    Fn<[ ], void>

# volume

    number

# vu

    HTMLElement

# created(ctx)

    # ctx

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

created(ctx)  =>

    void
# mounted($)

    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

mounted($)  =>

    void
# on(name)
# toJSON()
# EditorElement src/editor.tsx#L7
# CodeEdit  =  ... src/editor.tsx#L11

    Component<CodeEditElement, HTMLElement>

# context

    ContextClass<EditorElement & JsxContext<EditorElement> & Omit<{

    # ctor

      Class<T>

    <T>(ctor)  =>

      CleanClass<T>
    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# defaultValue src/editor.tsx#L15

    string

# dispatch

    Dispatch<

    # (name, detail, init)

      # name

        Event | Narrow<K, string>

      # detail
      # init

        CustomEventInit<any>

      <K, E>(name, detail, init)  =>

        any

>
# editor src/editor.tsx#L13

    CodeEditElement

# errorLenses  =  [] src/editor.tsx#L20

    Lens []

# errorMarkers  =  [] src/editor.tsx#L18

    Marker []

# host
# onInput src/editor.tsx#L25

    # (value)

      # value

        string

      (value)  =>

        void

# onKeyDown src/editor.tsx#L23

    EventHandler<CodeEditElement, KeyboardEvent>

# onKeyUp src/editor.tsx#L22

    EventHandler<CodeEditElement, KeyboardEvent>

# onSave src/editor.tsx#L26

    # (value)

      # value

        string

      (value)  =>

        void

# onmounted
# onunmounted
# paramMarkers  =  [] src/editor.tsx#L19

    Marker []

# updateValue  =  ... src/editor.tsx#L28

    # (value)

      # value

        string | void

      (value)  =>

        void

# created(ctx)

    # ctx

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

created(ctx)  =>

    void
# mounted($) src/editor.tsx#L54

    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

mounted($)  =>

    void
# on(name)

    # name

    on<K>(name)  =>

      On<Fn<[ EventHandler<EditorElement, LifecycleEvents & object [K]> ], Off>>
# toJSON()
# KnobsBarElement src/knobs.tsx#L7

    # constructor(args)
    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# Knob  =  ... src/knobs.tsx#L13

    Component<KnobElement, HTMLElement>

# __#2@#offsetHeight

    number

# __#2@#offsetLeft

    number

# __#2@#offsetTop

    number

# __#2@#offsetWidth

    number

# columns  =  1 src/knobs.tsx#L28

    number

# context

    ContextClass<KnobsBarElement & JsxContext<KnobsBarElement> & Omit<{

    # ctor

      Class<T>

    <T>(ctor)  =>

      CleanClass<T>
    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# dispatch

    Dispatch<

    # (name, detail, init)

      # name

        Event | Narrow<K, string>

      # detail
      # init

        CustomEventInit<any>

      <K, E>(name, detail, init)  =>

        any

>
# host
# knobs  =  ... src/knobs.tsx#L15

    RefSet<KnobElement>

# knobsTheme  =  'zen' src/knobs.tsx#L26

    string

# onmounted
# onunmounted
# ownRect

    Rect

# pos

    Point

# rect

    Rect

# rows  =  1 src/knobs.tsx#L29

    number

# size

    Point

# vertical  =  false src/knobs.tsx#L30

    boolean

# __#2@#updateOffsets()

    __#2@#updateOffsets()  =>

      void
# created(ctx)

    # ctx

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

created(ctx)  =>

    void
# mounted($) src/knobs.tsx#L32

    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

mounted($)  =>

    void
# on(name)

    # name

    on<K>(name)  =>

# toJSON()
# PresetElement
# context

    ContextClass<PresetElement<T> & JsxContext<PresetElement<T>> & Omit<{

    # ctor

      Class<T>

    <T>(ctor)  =>

      CleanClass<T>
    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# detail
# dispatch

    Dispatch<

    # (name, detail, init)

      # name

        Event | Narrow<K, string>

      # detail
      # init

        CustomEventInit<any>

      <K, E>(name, detail, init)  =>

        any

>
# host
# id

    string

# isDifferent

    # (detail)

      # detail

        any

      (detail)  =>

        boolean

# isDraft

    boolean

# name

    string

# onmounted
# onunmounted
# presetsBar
# selected

    boolean

# vertical

    boolean

# created(ctx)

    # ctx

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

created(ctx)  =>

    void
# mounted($)

    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

mounted($)  =>

    void
# on(name)

    # name

    on<K>(name)  =>

      On<Fn<[ EventHandler<PresetElement<T>, LifecycleEvents & object [K]> ], Off>>
# toJSON()
# PresetsBarElement

    # constructor(args)
    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# Preset
# Sortable

    Component<SortableElement, HTMLElement>

# __#2@#offsetHeight

    number

# __#2@#offsetLeft

    number

# __#2@#offsetTop

    number

# __#2@#offsetWidth

    number

# columns

    number

# context

    ContextClass<PresetsBarElement<T> & JsxContext<PresetsBarElement<T>> & Omit<{

    # ctor

      Class<T>

    <T>(ctor)  =>

      CleanClass<T>
    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# derivePreset

    Fn<[ named-tuple-member, named-tuple-member ], void>

# dispatch

    Dispatch<

    # (name, detail, init)

      # name

        Event | Narrow<K, string>

      # detail
      # init

        CustomEventInit<any>

      <K, E>(name, detail, init)  =>

        any

>
# findByDetail
# host
# onmounted
# onunmounted
# ownRect

    Rect

# pos

    Point

# presets
# rect

    Rect

# rows

    number

# selectedId

    string | false

# selectedPreset
# size

    Point

# updatePreset

    # (detail)

      # detail

      (detail)  =>

        void

# vertical

    boolean

# __#2@#updateOffsets()

    __#2@#updateOffsets()  =>

      void
# created(ctx)

    # ctx

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

created(ctx)  =>

    void
# mounted($)

    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

mounted($)  =>

    void
# on(name)

    # name

    on<K>(name)  =>

# toJSON()
# VisualizerAudioElement src/visualizer-audio.tsx#L9
# Visualizer  =  ... src/visualizer-audio.tsx#L13
# context

    ContextClass<VisualizerAudioElement & JsxContext<VisualizerAudioElement> & Omit<{

    # ctor

      Class<T>

    <T>(ctor)  =>

      CleanClass<T>
    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# dispatch

    Dispatch<

    # (name, detail, init)

      # name

        Event | Narrow<K, string>

      # detail
      # init

        CustomEventInit<any>

      <K, E>(name, detail, init)  =>

        any

>
# host
# input src/visualizer-audio.tsx#L17

    null | AudioNode

# onmounted
# onunmounted
# visualizer src/visualizer-audio.tsx#L15
# created(ctx)

    # ctx

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

created(ctx)  =>

    void
# mounted($) src/visualizer-audio.tsx#L19

    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

mounted($)  =>

    void
# on(name)
# toJSON()
# VisualizerElement
# analyser

    false | AnalyserNode

# autoResize

    boolean

# background

    string

# color

    string

# context

    ContextClass<VisualizerElement & JsxContext<VisualizerElement> & Omit<{

    # ctor

      Class<T>

    <T>(ctor)  =>

      CleanClass<T>
    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# cycle

    Fn<[ ], void>

# disabled

    boolean

# dispatch

    Dispatch<

    # (name, detail, init)

      # name

        Event | Narrow<K, string>

      # detail
      # init

        CustomEventInit<any>

      <K, E>(name, detail, init)  =>

        any

>
# height

    number

# host
# input

    null | AudioNode

# kind

    VisualizerKind

# onmounted
# onunmounted
# oscilloscope

    OscilloscopeElement

# spectrogram

    SpectrogramElement

# spectrum

    SpectrumElement

# visualizer

    OscilloscopeElement | SpectrogramElement | SpectrumElement | WaveformElement

# waveform

    WaveformElement

# width

    number

# visualizers

    {

    # oscilloscope

      Component<OscilloscopeElement, HTMLElement>

    # spectrogram

      Component<SpectrogramElement, HTMLElement>

    # spectrum

      Component<SpectrumElement, HTMLElement>

    # waveform

      Component<WaveformElement, HTMLElement>

    }
# kinds
# created(ctx)

    # ctx

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

created(ctx)  =>

    void
# mounted($)

    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

mounted($)  =>

    void
# on(name)

    # name

    on<K>(name)  =>

# toJSON()
# WindowItemElement src/window-item.tsx#L23

    # constructor(args)
    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# ContextMenu

    # ()

      ()  =>

        VKid

# Controls

    # ()

      ()  =>

        VKid

# ExtraLabel

    # ()

      ()  =>

        VKid

# Item

    # ()

      ()  =>

        VKid

# Knobs src/window-item.tsx#L33

    # ()

      ()  =>

        VKid

# KnobsBar  =  ... src/window-item.tsx#L29
# Label

    # ()

      ()  =>

        VKid

# Plugs src/window-item.tsx#L34

    # ()

      ()  =>

        VKid

# Popup

    Component<PopupElement, HTMLElement>

# Presets src/window-item.tsx#L35

    # ()

      ()  =>

        VKid

# PresetsBar  =  ... src/window-item.tsx#L31
# Style src/window-item.tsx#L36

    # ()

      ()  =>

        VKid

# SurfaceMove

    Component<SurfaceMoveElement, HTMLElement>

# SurfaceResize

    Component<SurfaceResizeElement, HTMLElement>

# WindowPlug  =  ... src/window-item.tsx#L30

    Component<WindowPlugElement, HTMLElement>

# audioNode src/window-item.tsx#L46

    AudioNode

# audioParams src/window-item.tsx#L51

    AudioParamMap

# audioTransport src/window-item.tsx#L45
# context

    ContextClass<WindowItemElement<T> & JsxContext<WindowItemElement<T>> & Omit<{

    # ctor

      Class<T>

    <T>(ctor)  =>

      CleanClass<T>
    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>
# destroy  =  ... src/window-item.tsx#L104

    # ()

      ()  =>

        void

# disconnectAll  =  ... src/window-item.tsx#L86

    # ()

      ()  =>

        void

# dispatch

    Dispatch<

    # (name, detail, init)

      # name

        Event | Narrow<K, string>

      # detail
      # init

        CustomEventInit<any>

      <K, E>(name, detail, init)  =>

        any

>
# doRenameLabel

    # ()

      ()  =>

        void

# fullSize

    boolean

# host
# id

    string

# inputs src/window-item.tsx#L48

    RefSet<WindowPlugElement>

# kind src/window-item.tsx#L27

    string

# knobs  =  ... src/window-item.tsx#L60

    RefSet<KnobElement>

# knobsBar src/window-item.tsx#L41
# label

    undefined | string

# labelPopup

    PopupElement

# onContextMenu

    # (Options)

      # Options({ event })

        # props

          {

          # event

            MouseEvent

          }

      Options({ event })  =>

        VKid

(Options)  =>

    EventHandler<any, MouseEvent>
# onmounted
# onunmounted
# outputs src/window-item.tsx#L49

    RefSet<WindowPlugElement>

# plugScene src/window-item.tsx#L39

    WindowPlugSceneElement

# plugs src/window-item.tsx#L40

    HTMLDivElement

# points

    Point []

# pos

    Point

# presetDetail src/window-item.tsx#L53
# presets  =  ... src/window-item.tsx#L55
# presetsBar src/window-item.tsx#L42
# rect

    Rect

# removeSelf src/window-item.tsx#L102

    # ()

      ()  =>

        void

# scene src/window-item.tsx#L38

    any

# size

    Point

# surface

    SurfaceElement

# vertical

    undefined | boolean

# visualizerAudio  =  false src/window-item.tsx#L43
# visualizerAudioActive  =  false src/window-item.tsx#L111

    boolean

# withOtherPlug  =  ... src/window-item.tsx#L71

    # (otherPlug, fn)

      # otherPlug

        Plug<any, any>

      # fn(audioNode)

        # audioNode

          AudioNode

        fn(audioNode)  =>

          any

(otherPlug, fn)  =>

    undefined | OffEffect
# workspace

    WorkspaceElement

# created(ctx)

    # ctx

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

created(ctx)  =>

    void
# mounted($) src/window-item.tsx#L113

    # $

    # ctx

      T | Class<T>

    <T>(ctx)  =>

      Wrapper<T>
    } & __module & {

    # Boolean

      undefined | boolean

    # Number

      undefined | number

    # String

      undefined | string

    }, "transition">>

mounted($)  =>

    void
# on(name)

    # name

    on<K>(name)  =>

# toJSON()
# IO  =  ... src/window-item.tsx#L18
# knobsThemes  =  ... src/knobs.tsx#L9

    string []

Credits

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas

Readme

Keywords

none

Package Sidebar

Install

npm i @cowbell-lol/window-item

Weekly Downloads

16

Version

1.0.1

License

MIT

Unpacked Size

3.46 MB

Total Files

33

Last publish

Collaborators

  • stagas