Skip to content

Commit a2e0e8f

Browse files
author
“mustafa”
committed
Imported SimpleRouteJson from core
1 parent ee8bda4 commit a2e0e8f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"typescript": "^5.0.0"
2424
},
2525
"dependencies": {
26+
"@tscircuit/core": "^0.0.331",
2627
"circuit-json": "^0.0.144",
2728
"zustand": "^5.0.3"
2829
}

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useCallback } from "react"
22
import { useStore } from "./store"
33
import { CircuitJsonPreview } from "@tscircuit/runframe"
44
import type { AnyCircuitElement } from "circuit-json"
5-
import type { SimpleRouteJson } from "./SimpleRouteJson"
5+
import type { SimpleRouteJson } from "@tscircuit/core"
66

77
export const App = () => {
88
const circuitJson = useStore((s) => s.circuitJson)
@@ -20,7 +20,7 @@ export const App = () => {
2020
route_type: "wire",
2121
x: point.x,
2222
y: point.y,
23-
layer: point.layer,
23+
layer: point.layer as "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6",
2424
width: simpleRouteJson.minTraceWidth,
2525
})),
2626
}

0 commit comments

Comments
 (0)