Skip to content

SmithChart#281

Open
chule wants to merge 3 commits intodev_v5.xfrom
SmithChart
Open

SmithChart#281
chule wants to merge 3 commits intodev_v5.xfrom
SmithChart

Conversation

@chule
Copy link
Copy Markdown
Contributor

@chule chule commented Feb 23, 2026

SmithChart demo

@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented Feb 23, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Full Smith chart implementation using SciChart.js with custom WebGL axes:
- SmithChartResistanceAxis / SmithChartReactanceAxis draw constant-R circles
  and constant-X arcs via WASM arc primitives; outer rim ring with tick marks
- SmithChartAdmittanceResistanceAxis / SmithChartAdmittanceReactanceAxis mirror
  the above for the Y (admittance) overlay; G/B labels at unit-circle intersections
- SmithGridCalculator computes major/minor grid values in s-space for perceptually
  uniform density, clipping minor arcs near the (1,0) singularity
- SmithMarkersAdapter: click-to-place numbered markers with constrained drag modes
  (free, constant |Γ|, R, X, G, B) implemented as ChartModifierBase subclasses
- SmithVswrAdapter: draggable VSWR circle with optional fill shading
- SmithChainAdapter: step-by-step matching-network builder for series/shunt L/C/R
  and transmission-line components, computing new Γ analytically at each step
- Z/Y/ZY grid toggle, independent Z and Y opacity sliders, grid density controls
- FloatingPanel component (draggable on desktop, SwipeableDrawer on mobile)
- Responsive layout: column flex on sm breakpoint, chart fills full screen width
- Marker panel and readout table fully themed via CSS variables (navy/dark/light)
- exampleInfo.tsx with full markdownContent for React, JavaScript and Angular

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
antichaosdb and others added 2 commits April 22, 2026 17:42
…Info

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…daptive

- Snap minor arc clip values to the nearest other-family major tick so
  arc endpoints land on visible grid intersections instead of floating
  mid-chart (fixes the lens-shaped dangling arc pattern)
- Replace angle-based arc length guards with pixel arc length checks
  (arcAngle * radiusPx < 10px) so tiny arcs on small circles are filtered
  at any zoom level without over-filtering legitimate arcs on large circles
- Make minGapPx dynamic: cfg.minGapPx now represents a target pixel gap
  at the convergence point; effectiveGap = minGapPx / pixPerUnit so finer
  subdivision appears automatically as you zoom in (3.6px default gives
  s-gap ~0.018 at full zoom, ~0.004 at 5× zoom)
- Update GRID panel slider to reflect new pixel units (0.5–10 px range)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants