@samatawy/diagrams
    Preparing search index...

    Class AngleAdapter

    Inspector adapter for editing angle values in degrees while persisting radians.

    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.