Open
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
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>
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SmithChart demo