Skip to content

Commit

Permalink
replace @tscircuit/soup to circuit-json
Browse files Browse the repository at this point in the history
  • Loading branch information
Anshgrover23 committed Feb 3, 2025
1 parent d3871db commit a87a545
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 13 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"@tscircuit/core": "^0.0.297",
"@tscircuit/props": "^0.0.138",
"@tscircuit/react-fiber": "^1.2.0",
"@tscircuit/soup": "^0.0.69",
"@tscircuit/soup-util": "^0.0.26",
"@tscircuit/soup-util": "^0.0.41",
"jscad-electronics": "^0.0.23",
"jscad-fiber": "^0.0.76",
"jscad-planner": "^0.0.11",
Expand Down
2 changes: 1 addition & 1 deletion src/CadViewer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AnySoupElement } from "@tscircuit/soup"
import type { AnySoupElement } from "circuit-json"
import type * as React from "react"
import type * as THREE from "three"
import { useConvertChildrenToSoup } from "./hooks/use-convert-children-to-soup"
Expand Down
2 changes: 1 addition & 1 deletion src/convert-circuit-json-to-3d-svg.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AnySoupElement } from "@tscircuit/soup"
import type { AnySoupElement } from "circuit-json"
import { su } from "@tscircuit/soup-util"
import Debug from "debug"
import * as THREE from "three"
Expand Down
2 changes: 1 addition & 1 deletion src/geoms/create-board-with-outline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { extrudeLinear } from "@jscad/modeling/src/operations/extrusions"
import { polygon } from "@jscad/modeling/src/primitives"
import type { Geom2, Geom3 } from "@jscad/modeling/src/geometries/types"
import type { Vec2 } from "@jscad/modeling/src/maths/types"
import type { Point } from "@tscircuit/soup"
import type { Point } from "circuit-json"
import { translate } from "@jscad/modeling/src/operations/transforms"

const arePointsClockwise = (points: Vec2[]): boolean => {
Expand Down
2 changes: 1 addition & 1 deletion src/geoms/plated-hole.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PCBPlatedHole } from "@tscircuit/soup"
import type { PCBPlatedHole } from "circuit-json"
import type { Geom3 } from "@jscad/modeling/src/geometries/types"
import { cuboid, cylinder } from "@jscad/modeling/src/primitives"
import { colorize } from "@jscad/modeling/src/colors"
Expand Down
2 changes: 1 addition & 1 deletion src/soup-to-3d/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Geom3 } from "@jscad/modeling/src/geometries/types"
import type { AnySoupElement, PCBPlatedHole } from "@tscircuit/soup"
import type { AnySoupElement, PCBPlatedHole } from "circuit-json"
import { su } from "@tscircuit/soup-util"
import { translate } from "@jscad/modeling/src/operations/transforms"
import { cuboid, cylinder, line } from "@jscad/modeling/src/primitives"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/render-component.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import jscad from "@jscad/modeling"
import type { AnySoupElement } from "@tscircuit/soup"
import type { AnySoupElement } from "circuit-json"
import { Footprinter3d } from "jscad-electronics"
import { convertCSGToThreeGeom, createJSCADRenderer } from "jscad-fiber"
import { executeJscadOperations, jscadPlanner } from "jscad-planner"
Expand Down
2 changes: 1 addition & 1 deletion stories/BadStlUrl.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CadComponent } from "@tscircuit/soup"
import type { CadComponent } from "circuit-json"
import { CadViewer } from "src/CadViewer"
import bugsPadsAndTracesSoup from "./assets/soic-with-traces.json"

Expand Down
2 changes: 1 addition & 1 deletion stories/Bugs/RotationOffsets.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AnySoupElement } from "@tscircuit/soup"
import type { AnySoupElement } from "circuit-json"
import { useEffect, useState } from "react"
import { CadViewer } from "src/CadViewer"

Expand Down
2 changes: 1 addition & 1 deletion stories/CadComponent.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fn } from "@storybook/test"
import { CadViewer } from "src/CadViewer"
import bugsPadsAndTracesSoup from "./assets/soic-with-traces.json"
import type { CadComponent } from "@tscircuit/soup"
import type { CadComponent } from "circuit-json"

const cad_component: CadComponent = {
type: "cad_component",
Expand Down
2 changes: 1 addition & 1 deletion tests/convert-3d-view-to-svg-top-view.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AnySoupElement } from "@tscircuit/soup"
import type { AnySoupElement } from "circuit-json"
import { expect, test } from "bun:test"
import { convertCircuitJsonTo3dSvg } from "../src/convert-circuit-json-to-3d-svg.ts"
import circuitJson from "./assets/circuit.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AnySoupElement } from "@tscircuit/soup"
import type { AnySoupElement } from "circuit-json"
import { expect, test } from "bun:test"
import { convertCircuitJsonTo3dSvg } from "../src/convert-circuit-json-to-3d-svg.ts"
import circuitJson from "./assets/capacitor-resistor-default-circuit.json"
Expand Down

0 comments on commit a87a545

Please sign in to comment.