Focus RB
A three-pin NPN switches the LED collector path. A separate base resistor/control node and supply-negative/emitter ground return remain explicit. Only component RB is focused; all its catalog pins retain their nets.
Scroll horizontally on smaller screens to inspect legible nodes and labels. No simulation is performed.
The original input stays intact, including invalid fields.
An inspectable result.
These checks compare the renderer outcome with the declared case expectation. The stress test also checks determinism, geometry, and connectivity.
- Expected
- Successful SVG render
- Actual
- SVG rendered0 diagnostics
- Case check
- Passed
- Recipe / theme
- NPN low-side LED switchgeist-dark
Electrical nodes & connectivity
Each net is one electrical node: the named endpoints below are connected. Component pins and external ports are endpoints. These counts are not the number of geometric junction dots or wire bends. No voltages, currents, or simulation results are inferred.
- Components
- 5
- Electrical nodes / nets
- 6
- Component pins
- 11
- External ports
- 2
- Connected endpoints
- 13
| Net / electrical node | Endpoints | Connected component pins and ports |
|---|---|---|
base | 2 |
|
collector | 2 |
|
control | 2 |
|
ground | 3 |
|
led_anode | 2 |
|
supply | 2 |
|
Diagnostics / 0
No diagnostics. The renderer accepted this source and produced the figure above.
Original figure document · JSON
{
"version": 1,
"circuit": {
"components": {
"V1": {
"type": "dc-source",
"voltage": 5
},
"RB": {
"type": "resistor",
"resistance": 10000
},
"RS": {
"type": "resistor",
"resistance": 330
},
"D1": {
"type": "led"
},
"Q1": {
"type": "npn"
}
},
"ports": {
"CTRL": {
"kind": "terminal"
},
"GND": {
"kind": "ground"
}
},
"nets": {
"supply": [
"V1.positive",
"RS.a"
],
"led_anode": [
"RS.b",
"D1.anode"
],
"collector": [
"D1.cathode",
"Q1.collector"
],
"control": [
"CTRL",
"RB.a"
],
"base": [
"RB.b",
"Q1.base"
],
"ground": [
"Q1.emitter",
"V1.negative",
"GND"
]
}
},
"layout": {
"preset": "transistor-switch",
"roles": {
"supply": "V1",
"baseResistor": "RB",
"series": "RS",
"led": "D1",
"switch": "Q1",
"control": "CTRL",
"ground": "GND"
}
},
"presentation": {
"title": "Focus RB",
"theme": {
"preset": "geist-dark"
},
"highlight": {
"components": [
"RB"
],
"nets": []
}
}
}Expected outcome & actual diagnostics · JSON
{
"id": "transistor-switch/focus-component-RB/geist-dark",
"expectation": {
"kind": "render"
},
"actual": {
"ok": true,
"diagnostics": []
},
"passed": true
}Rendered bounds & renderer version · JSON
{
"rendererVersion": "0.1.0",
"bounds": {
"x": 0,
"y": 0,
"width": 1500,
"height": 1200,
"labels": {
"title": {
"x": 67.128,
"y": 57.86,
"width": 142.52800000000002,
"height": 24.548000000000002
},
"subtitle": {
"x": 65.38,
"y": 104.33500000000001,
"width": 171.28499999999994,
"height": 10.844999999999999
},
"formula": {
"x": 64.8,
"y": 1120.78,
"width": 549.5200000000001,
"height": 17.460000000000036
},
"assumption": {
"x": 64.77,
"y": 1155.836,
"width": 615.6500000000004,
"height": 12.432000000000016
},
"V1:id": {
"x": 310.54,
"y": 533.22,
"width": 19.97999999999996,
"height": 12.779999999999973
},
"V1:value": {
"x": 311.44,
"y": 556.96,
"width": 41.04000000000002,
"height": 17.423999999999978
},
"CTRL:port": {
"x": 276.76,
"y": 791.48,
"width": 46.04000000000002,
"height": 14.840000000000032
},
"RS:id": {
"x": 1091.26,
"y": 342.932,
"width": 19.548000000000002,
"height": 13.355999999999995
},
"RS:value": {
"x": 1091.2,
"y": 366.576,
"width": 70.58399999999983,
"height": 17.807999999999993
},
"D1:id": {
"x": 1091.62,
"y": 533.22,
"width": 18.90000000000009,
"height": 12.779999999999973
},
"D1:value": {
"x": 1092.4,
"y": 556.96,
"width": 39.88799999999992,
"height": 17.039999999999964
},
"RB:id": {
"x": 590.46,
"y": 762.22,
"width": 19.548000000000002,
"height": 12.779999999999973
},
"RB:value": {
"x": 565.44,
"y": 785.576,
"width": 70.34399999999994,
"height": 17.807999999999993
},
"Q1:id": {
"x": 1080.684,
"y": 806.932,
"width": 19.836000000000013,
"height": 15.210000000000036
},
"Q1:value": {
"x": 1081.68,
"y": 830.96,
"width": 39.83999999999992,
"height": 17.039999999999964
},
"GND:port": {
"x": 750.646,
"y": 1037.658,
"width": 29.307999999999993,
"height": 12.614000000000033
}
},
"symbols": {
"V1": {
"x": 216.5,
"y": 498.5,
"width": 67,
"height": 123
},
"RS": {
"x": 984.5,
"y": 308.5,
"width": 31,
"height": 123
},
"D1": {
"x": 974.5,
"y": 498.5,
"width": 83,
"height": 123
},
"RB": {
"x": 538.5,
"y": 824.5,
"width": 123,
"height": 31
},
"Q1": {
"x": 868.5,
"y": 758.5,
"width": 133,
"height": 163
},
"GND": {
"x": 679.5,
"y": 1028.5,
"width": 41,
"height": 31
}
},
"routes": {
"supply": [
{
"x": 248.5,
"y": 258.5,
"width": 3,
"height": 243
},
{
"x": 248.5,
"y": 258.5,
"width": 753,
"height": 3
},
{
"x": 998.5,
"y": 258.5,
"width": 3,
"height": 53
}
],
"led_anode": [
{
"x": 998.5,
"y": 428.5,
"width": 3,
"height": 73
}
],
"collector": [
{
"x": 998.5,
"y": 618.5,
"width": 3,
"height": 143
}
],
"control": [
{
"x": 298.5,
"y": 838.5,
"width": 243,
"height": 3
}
],
"base": [
{
"x": 658.5,
"y": 838.5,
"width": 213,
"height": 3
}
],
"ground": [
{
"x": 248.5,
"y": 618.5,
"width": 3,
"height": 383
},
{
"x": 248.5,
"y": 998.5,
"width": 753,
"height": 3
},
{
"x": 998.5,
"y": 918.5,
"width": 3,
"height": 83
},
{
"x": 698.5,
"y": 998.5,
"width": 3,
"height": 33
}
]
}
}
}