@samatawy/diagrams
    Preparing search index...

    Class ArrowTypeSelectAdapter

    Inspector adapter for selecting arrow types on connections, using the ArrowTypeSelect component. It also manages the "mixed" state when multiple selected connections have different arrow types.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    cell: HTMLElement
    mixedClassName: string
    returnKey?: string

    Methods

    • Toggles the mixed-value visual state on the cell element. Mixed state is shown when the selection contains more than one distinct value.

      Parameters

      • mixed: boolean

        True to enter mixed state, false to clear it.

      Returns void

    • Registers the callback invoked whenever the user changes the control value. Pass null to disconnect the handler.

      Parameters

      • handler: ((value: unknown) => void) | null

        The callback to invoke, or null to clear.

      Returns void

    • Extracts a key-value pair from a record, optionally by explicit key. Falls back to the first entry in the record when no key is given.

      Parameters

      • record: EditableRecord

        The source record.

      • Optionalkey: string

        Optional explicit key override.

      Returns { key: string; value: unknown }

      An object containing the resolved key and its value.