You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Sandbox.svelte 354B

123456789101112131415
  1. <main>
  2. <CircuitSim components={components} />
  3. </main>
  4. <script>
  5. import CircuitSim from './CircuitSim.svelte';
  6. import * as comps from './circuit-components.js';
  7. let components = [
  8. {name: "Switch", ctor: comps.Switch},
  9. {name: "NotGate", ctor: comps.NotGate},
  10. {name: "Diode", ctor: comps.Diode},
  11. {name: "Lamp", ctor: comps.Lamp},
  12. ];
  13. </script>