Zap 0.6.0 released

Hello :wave:,

For those who don’t know Zap, it is an easy-to-use and standards-inspired electronic circuit drawing library for Typst. It poses as an equivalent of circuitikz, but with a different philosophy.

What’s new?

The 0.6.0 release introduces a lot of bug fixes and a whole new styling system, taking more advantage of CeTZ superpowers. Here’s an overview of all the main changes:

  1. Introducing 10+ new long-requested symbols such as battery, lamp, piezo and cell

    new_symbols-2|0x0

  2. Some symbols were improved with new features and better consistency: inductor, acmotor, mcu and vsource

  3. For the first time, this release uses a 100% Typst online documentation based on the Manifesto package. It is much simpler to contribute.

  4. The license has also been simplified to MIT since LGPL-3.0 is very complicated for nothing.

And tons of other things, including docstrings and more testing everywhere.

How to try?

You can try the latest release by using this boilerplate

#import "@preview/zap:0.6.0"

#zap.circuit({
    import zap: *
    
    battery("b1", (0, 0), (3, 0))
    lamp("l1", (3, 0), (5, 0))
})

What’s next?

In the coming months, the updates will mainly focus on making the decorations more robust, with standalone and IEEE variant. This also requires a rewriting to fix the symbol bounds and make them more reliable.

Thank you again to all the contributors that helped move this project!

13 Likes