Smithkit - v0.5.0
    Preparing search index...

    Class Smith

    Index
    layers: ChartLayers
    peripheralScales: PeripheralScales
    • get cursorReading(): SmithReading

      Last cursor position. Use cursor events to detect pointer leave.

      Returns SmithReading

    • get referenceImpedanceOhms(): number

      Current positive real reference impedance, in ohms.

      Returns number

    • Place a marker on an existing sample; no interpolation is performed.

      Parameters

      • traceId: string
      • OptionalsampleIndex: number

      Returns string | undefined

    • Add a named trace without markers. Use addMarker to create markers explicitly. Returns a chart-local, stable ID.

      Parameters

      Returns string

    • Add a named trace without markers. Use addMarker to create markers explicitly. Returns a chart-local, stable ID.

      Parameters

      Returns string

    • Add a named trace without markers. Use addMarker to create markers explicitly. Returns a chart-local, stable ID.

      Parameters

      Returns string

    • Add a named trace without markers. Use addMarker to create markers explicitly. Returns a chart-local, stable ID.

      Parameters

      Returns string

    • Returns void

    • Return B − A, or undefined if either marker no longer exists.

      Parameters

      • a: string
      • b: string

      Returns MarkerComparison | undefined

    • Remove this chart and release its event handlers. Safe to call more than once.

      Returns void

    • Parameters

      • target: string | HTMLElement

      Returns void

    • Focus a mounted, visible marker for keyboard interaction.

      Parameters

      • id: string

      Returns boolean

    • Detached metadata snapshots; IDs and marker display numbers survive removals.

      Returns TraceInfo[]

    • Subscribe to chart events. The returned function removes this subscription.

      Parameters

      Returns () => void

    • Parameters

      • id: string

      Returns boolean

    • Parameters

      • id: string

      Returns boolean

    • Renormalize all traces while retaining physical impedance, IDs, and selected sample indices.

      Parameters

      • referenceImpedanceOhms: number

      Returns void

    • Returns void

    • Replace the appearance while retaining explicit layer styles and trace colors.

      Parameters

      Returns void

    • Enable or disable the cursor overlay and readings independently of zoom and markers.

      Parameters

      • enabled: boolean

      Returns void

    • Set the same detail level on all impedance and admittance grid layers.

      Parameters

      Returns void

    • Select the nearest measured frequency; ties choose the earliest input sample.

      Parameters

      • id: string
      • frequencyHz: number

      Returns boolean

    • Parameters

      • id: string
      • sampleIndex: number

      Returns boolean

    • Apply a validated patch. Omitted fields retain their current settings.

      Parameters

      Returns void

    • Parameters

      Returns boolean

    • Enable or disable wheel, double-click, and mouse/touch zoom/pan. Keeps the current view.

      Parameters

      • enabled: boolean

      Returns void

    • Replace samples; by default each marker follows its nearest measured frequency.

      Parameters

      Returns boolean

    • Replace samples; by default each marker follows its nearest measured frequency.

      Parameters

      Returns boolean

    • Replace samples; by default each marker follows its nearest measured frequency.

      Parameters

      Returns boolean

    • Replace samples; by default each marker follows its nearest measured frequency.

      Parameters

      Returns boolean