@samatawy/diagrams
    Preparing search index...

    Class IntegerRangeSelect

    A compact integer range selector based on native input[type=range]. Emits a 'valuechange' event when the slider change is committed.

    Index

    Constructors

    Properties

    host: HTMLElement
    config: Required<IntegerRangeSelectConfig>
    input: HTMLInputElement
    valueText: HTMLSpanElement
    selected: number

    Accessors

    Methods

    • Updates the selectable range and optional current value.

      Parameters

      • min: number
      • max: number
      • step: number = 1
      • Optionalvalue: number

      Returns void

    • Clamps and rounds a raw number to the configured min/max range.

      Parameters

      • value: number

        The raw value to clamp.

      Returns number

      The clamped integer value.