ArnavK-09/untitled-package-31
This code defines a 10mm x 10mm PCB with a 1kΩ resistor (R1) and a 1000pF capacitor (C1) connected by a trace.
Usage: To use the component: 1. Import the component: ```tsx import { SomeComponent } from "@tsci/ArnavK-09.untitled-package-31" ``` 2. Use the component in a circuit: ```tsx <board> <SomeComponent name="U1" /> </board> ``` The component can be placed on a board like other tscircuit components, with optional props for positioning and naming.
- Version
- 0.0.1
- License
- unset
- Stars
- 1
dist/schematic.svg
PCB
Schematic
<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(292.6829268293,0,0,-292.6829268293,863.4146341463,300)" data-software-used-string="@tscircuit/core@0.0.747"><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="unnamedsubcircuit23_connectivity_net0"], g.trace-overlays[data-subcircuit-connectivity-map-key="unnamedsubcircuit23_connectivity_net0"]):hover) :is(g.trace[data-subcircuit-connectivity-map-key="unnamedsubcircuit23_connectivity_net0"], g.trace-overlays[data-subcircuit-connectivity-map-key="unnamedsubcircuit23_connectivity_net0"]) { filter: invert(1); }
svg:has(:is(g.trace[data-subcircuit-connectivity-map-key="unnamedsubcircuit23_connectivity_net0"], g.trace-overlays[data-subcircuit-connectivity-map-key="unnamedsubcircuit23_connectivity_net0"]):hover) g.trace-overlays[data-subcircuit-connectivity-map-key="unnamedsubcircuit23_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="unnamedsubcircuit23_connectivity_net0"><path d="M 702.4390243901851 300 L 497.56097560967504 300" class="trace-invisible-hover-outline" stroke="rgb(0, 150, 0)" fill="none" stroke-width="46.829268292688006px" stroke-linecap="round" opacity="0" stroke-linejoin="round"/><path d="M 702.4390243901851 300 L 497.56097560967504 300" stroke="rgb(0, 150, 0)" fill="none" stroke-width="5.853658536586001px" 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="unnamedsubcircuit23_connectivity_net0"/><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_0"><rect class="component-overlay" x="702.4390243901851" y="261.951219512191" width="321.95121951222995" height="79.024390243911" fill="transparent"/><path d="M 702.4390243901851 300 L 784.3902439023891 300" stroke="rgb(132, 0, 0)" fill="none" stroke-width="5.853658536586001px" stroke-linecap="round"/><path d="M 939.5121951219181 300 L 1024.390243902415 300" stroke="rgb(132, 0, 0)" fill="none" stroke-width="5.853658536586001px" stroke-linecap="round"/><path d="M 863.4146341463 261.951219512191 L 939.5121951219181 261.951219512191 L 939.5121951219181 340.975609756102 L 784.3902439023891 340.975609756102 L 784.3902439023891 261.951219512191 L 863.4146341463 261.951219512191" stroke="rgb(132, 0, 0)" fill="none" stroke-width="5.853658536586001px" stroke-linecap="round"/><text x="857.5609756097141" y="247.50348292682372" stroke="rgb(245, 241, 237)" stroke-width="5.853658536586001px" paint-order="stroke" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="auto" font-size="52.682926829274px">R1</text><text x="857.5609756097141" y="361.27700487805527" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="hanging" font-size="52.682926829274px">1kΩ</text><circle cx="1024.390243902415" cy="300" r="5.853658536586001px" stroke-width="5.853658536586001px" fill="none" stroke="rgb(132, 0, 0)"/></g><g data-circuit-json-type="schematic_component" data-schematic-component-id="schematic_component_1"><rect class="component-overlay" x="175.6097560974448" y="223.90243902438192" width="321.9512195122302" height="155.12195121952908" fill="transparent"/><path d="M 497.560975609675 299.99999999999994 L 357.0731707316109 299.99999999999994" stroke="rgb(132, 0, 0)" fill="none" stroke-width="5.853658536586001px" stroke-linecap="round"/><path d="M 310.2439024389229 299.99999999999994 L 175.6097560974448 299.99999999999994" stroke="rgb(132, 0, 0)" fill="none" stroke-width="5.853658536586001px" stroke-linecap="round"/><path d="M 357.0731707316109 223.90243902438192 L 357.0731707316109 379.024390243911" stroke="rgb(132, 0, 0)" fill="none" stroke-width="5.853658536586001px" stroke-linecap="round"/><path d="M 310.2439024389229 223.90243902438192 L 310.2439024389229 379.024390243911" stroke="rgb(132, 0, 0)" fill="none" stroke-width="5.853658536586001px" stroke-linecap="round"/><text x="333.6585365852669" y="182.9798292682799" stroke="rgb(245, 241, 237)" stroke-width="5.853658536586001px" paint-order="stroke" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="auto" font-size="52.682926829274px">C1</text><text x="336.5853658535599" y="428.727487804892" fill="rgb(15, 15, 15)" font-family="sans-serif" text-anchor="middle" dominant-baseline="hanging" font-size="52.682926829274px">1000pF</text><circle cx="175.6097560974448" cy="299.99999999999994" r="5.853658536586001px" stroke-width="5.853658536586001px" fill="none" stroke="rgb(132, 0, 0)"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_0"><circle cx="702.4390243901851" cy="300" r="11.707317073172002" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_1"><circle cx="1024.390243902415" cy="300" r="11.707317073172002" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_2"><circle cx="497.56097560967504" cy="300" r="11.707317073172002" fill="red" opacity="0"/></g><g class="schematic-port-hover" data-schematic-port-id="source_port_3"><circle cx="175.6097560974448" cy="300" r="11.707317073172002" fill="red" opacity="0"/></g></svg>