seveibar/two-test-points

A 10mm x 10mm circuit board with two test points connected by a trace.

Usage: To import and use the "@tsci/seveibar.two-test-points" component: 1. Import the component: ```tsx import TwoTestPoints from "@tsci/seveibar.two-test-points" ``` 2. Use the component in a circuit design: ```tsx <board width="20mm" height="20mm"> <TwoTestPoints /> </board> ``` The component adds two test points (TP1 and TP2) with a trace connecting their pins. You can customize placement and add additional circuit elements as needed.

Version
0.0.1
License
unset
Stars
0

dist/schematic.svg

PCBPCB preview for dist/schematic.svg
SchematicSchematic preview for dist/schematic.svg
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600" style="background-color: rgb(245, 241, 237)" data-real-to-screen-transform="matrix(300,0,0,-300,643.125,420)" data-software-used-string="@tscircuit/core@0.0.941"><style>
              .boundary { fill: rgb(245, 241, 237); }
              .schematic-boundary { fill: none; stroke: #fff; }
              .component { fill: none; stroke: rgb(132, 0, 0); }
              .chip { fill: rgb(255, 255, 194); stroke: rgb(132, 0, 0); }
              .component-pin { fill: none; stroke: rgb(132, 0, 0); }
              /* Basic per-trace hover fallback */
              .trace:hover {
                filter: invert(1);
              }
              .trace:hover .trace-crossing-outline {
                opacity: 0;
              }
              .trace:hover .trace-junction {
                filter: invert(1);
              }
              /* Net-hover highlighting: when a trace or its overlays are hovered,
                 invert color for all traces (base + overlays) sharing the same
                 subcircuit connectivity key. Also hide crossing outline during hover. */
              svg:has(:is(g.trace[data-subcircuit-connectivity-map-key="unnamedsubcircuit13_connectivity_net0"], g.trace-overlays[data-subcircuit-connectivity-map-key="unnamedsubcircuit13_connectivity_net0"]):hover) :is(g.trace[data-subcircuit-connectivity-map-key="unnamedsubcircuit13_connectivity_net0"], g.trace-overlays[data-subcircuit-connectivity-map-key="unnamedsubcircuit13_connectivity_net0"]) { filter: invert(1); }
svg:has(:is(g.trace[data-subcircuit-connectivity-map-key="unnamedsubcircuit13_connectivity_net0"], g.trace-overlays[data-subcircuit-connectivity-map-key="unnamedsubcircuit13_connectivity_net0"]):hover) g.trace-overlays[data-subcircuit-connectivity-map-key="unnamedsubcircuit13_connectivity_net0"] .trace-crossing-outline { opacity: 0; }
              .text { font-family: sans-serif; fill: rgb(0, 150, 0); }
              .pin-number { fill: rgb(169, 0, 0); }
              .port-label { fill: rgb(0, 100, 100); }
              .component-name { fill: rgb(0, 100, 100); }
            </style><rect class="boundary" x="0" y="0" width="1200" height="600"/><g class="trace" data-layer="base" data-circuit-json-type="schematic_trace" data-schematic-trace-id="schematic_trace_0" data-subcircuit-connectivity-map-key="unnamedsubcircuit13_connectivity_net0"><path d="M 583.125 420 L 523.125 420 L 523.125 180.00000000000003 L 583.125 180.00000000000003" class="trace-invisible-hover-outline" stroke="rgb(0, 150, 0)" fill="none" stroke-width="48px" stroke-linecap="round" opacity="0" stroke-linejoin="round"/><path d="M 583.125 420 L 523.125 420 L 523.125 180.00000000000003 L 583.125 180.00000000000003" stroke="rgb(0, 150, 0)" fill="none" stroke-width="6px" stroke-linecap="round" stroke-linejoin="round"/></g><g class="trace-overlays" data-layer="overlay" data-circuit-json-type="schematic_trace" data-schematic-trace-id="schematic_trace_0" data-subcircuit-connectivity-map-key="unnamedsubcircuit13_connectivity_net0"/><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_0"><rect class="component-overlay" x="583.125" y="390" width="90" height="60" fill="transparent"/><path d="M 583.125 420 L 643.125 420" stroke="rgb(132, 0, 0)" fill="none" stroke-width="6px" stroke-linecap="round"/><path d="M 673.125 390 L 660.1084878264733 392.9709339629274 L 649.6700555259591 401.295305944238 L 643.8771626345452 413.32437198131055 L 643.8771626345452 426.67562801868945 L 649.6700555259591 438.704694055762 L 660.1084878264733 447.0290660370726 L 673.125 450" stroke="rgb(132, 0, 0)" fill="none" stroke-width="6px" stroke-linecap="round"/><text x="680.625" y="420" stroke="rgb(245, 241, 237)" stroke-width="6px" paint-order="stroke" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="start" dominant-baseline="middle" font-size="54px">TP1</text></g><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_1"><rect class="component-overlay" x="583.125" y="150.00000000000003" width="90" height="60" fill="transparent"/><path d="M 583.125 180.00000000000003 L 643.125 180.00000000000003" stroke="rgb(132, 0, 0)" fill="none" stroke-width="6px" stroke-linecap="round"/><path d="M 673.125 150.00000000000003 L 660.1084878264733 152.97093396292746 L 649.6700555259591 161.295305944238 L 643.8771626345452 173.3243719813106 L 643.8771626345452 186.67562801868945 L 649.6700555259591 198.70469405576205 L 660.1084878264733 207.0290660370726 L 673.125 210.00000000000003" stroke="rgb(132, 0, 0)" fill="none" stroke-width="6px" stroke-linecap="round"/><text x="680.625" y="180.00000000000003" stroke="rgb(245, 241, 237)" stroke-width="6px" paint-order="stroke" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="start" dominant-baseline="middle" font-size="54px">TP2</text></g><g class="schematic-port-hover" data-schematic-port-id="source_port_0"><circle cx="583.125" cy="420" r="12" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_1"><circle cx="583.125" cy="180.00000000000003" r="12" fill="red" opacity="0"/></g></svg>