circuit-diagramdeprecated

A view layer for drawing interactive circuit diagrams

Usage no npm install needed!

<script type="module">
  import circuitDiagram from 'https://cdn.skypack.dev/circuit-diagram';
</script>

README

Circuit Diagram

npm David David

A view layer for drawing interactive circuit diagrams.

This module has two responsibilities:

  • render the circuit it is given
  • emit relevant mouse events that occur on the drawing surface

TODO

  • Tests! Investigate best way to test react components
  • API docs
    • CircuitCanvas props
    • CurrentPath context
    • Events emitted
    • Elements and element wrappers (e.g. HighlightOnHover)

Made using React and React ART.