**Refactor: Update Electrical Components and Add Examples**
This PR updates the visual representation of electrical components and adds example circuits.
**Changes:**
* **Updated Electrical Components (`src/elements/electrical/`):**
* Revised symbols for better standard compliance and readability (e.g., IEC resistor default, battery symbol for DC source, redesigned switch).
* Added explicit connection lines from ports to the component body where appropriate (sources, meters, lamp, inductor, switch).
* **Added Example Circuits (`gallery/simple-circuit.typ`):**
* Created a new example file demonstrating basic usage.
* Includes examples for:
* Series circuit (battery, two lamps).
* RC charging circuit (battery, switch, resistor, capacitor).
There seem to be a small issue with inductors when placed vertically (see below). It also seems like the horizontal inductor needs a specific aspect-ratio between the width and height to display correctly
Apart from this, everything looks good to me !
There seem to be a small issue with inductors when placed vertically (see below). It also seems like the horizontal inductor needs a specific aspect-ratio between the width and height to display correctly
Apart from this, everything looks good to me !
<table>
<thead><tr><th>Code</th><th>Result</th></tr></thead>
<tbody><tr><td>
```typ
#circuit({
electrical.inductor(
x: 0, y: 0,
w: 1, h: 1,
vertical: true,
debug: (ports: true)
)
})
```
</td>
<td>

</td></tr></tbody>
</table>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Refactor: Update Electrical Components and Add Examples
This PR updates the visual representation of electrical components and adds example circuits.
Changes:
src/elements/electrical/):gallery/simple-circuit.typ):Thanks for the additions !
It looks like you forgot to commit the example circuit though
You were absolutely right.
I've added it right now.
There seem to be a small issue with inductors when placed vertically (see below). It also seems like the horizontal inductor needs a specific aspect-ratio between the width and height to display correctly
Apart from this, everything looks good to me !
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.