@tscircuit/core 0.0.1081 → 0.0.1082

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -39,19 +39,18 @@ const board = new Board({
39
39
  width: "10mm",
40
40
  height: "10mm",
41
41
  })
42
- project.add(board)
42
+ circuit.add(board)
43
43
 
44
44
  const R1 = new Resistor({ resistance: "10k", footprint: "0402" })
45
+ const L1 = new Led({ footprint: "0402" })
45
46
  board.add(R1)
46
-
47
- // You can also add elements with React
48
- board.add(<led footprint="0402" />)
47
+ board.add(L1)
49
48
 
50
49
  const trace = new Trace({ width: "0.2mm" })
51
- trace.connect(R1.output, LED1.anode)
50
+ trace.connect(R1.output, L1.anode)
52
51
  board.add(trace)
53
52
 
54
- circuit.getJson() // [{ type: "board", ...}, { type: "resistor", ...}, ...]
53
+ circuit.getCircuitJson() // [{ type: "board", ...}, { type: "resistor", ...}, ...]
55
54
  ```
56
55
 
57
56
  ## Development
package/dist/index.js CHANGED
@@ -18134,7 +18134,7 @@ import { identity as identity5 } from "transformation-matrix";
18134
18134
  var package_default = {
18135
18135
  name: "@tscircuit/core",
18136
18136
  type: "module",
18137
- version: "0.0.1080",
18137
+ version: "0.0.1081",
18138
18138
  types: "dist/index.d.ts",
18139
18139
  main: "dist/index.js",
18140
18140
  module: "dist/index.js",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1081",
4
+ "version": "0.0.1082",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",