Skip to content

Commit

Permalink
Merge pull request #71 from tscircuit/feat/pcb-via
Browse files Browse the repository at this point in the history
chore: soup deprecated name update
  • Loading branch information
imrishabh18 authored Sep 16, 2024
2 parents 7558df4 + cd5b586 commit 500c2aa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ const pcbSvg = pcbSoupToSvg(pcbSoup);

## API

### `soupToSvg(soup: AnySoupElement[]): string`
### `soupToSvg(soup: AnyCircuitElement[]): string`

Converts a schematic circuit description to an SVG string.

### `pcbSoupToSvg(soup: AnySoupElement[]): string`
### `pcbSoupToSvg(soup: AnyCircuitElement[]): string`

Converts a PCB layout description to an SVG string.

Expand Down
4 changes: 2 additions & 2 deletions src/lib/circuit-to-schematic-svg.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { AnySoupElement } from "@tscircuit/soup"
import type { AnyCircuitElement } from "@tscircuit/soup"
import { getSvg, symbols } from "schematic-symbols"
import { parseSync, stringify } from "svgson"

function circuitJsonToSchematicSvg(soup: AnySoupElement[]): string {
function circuitJsonToSchematicSvg(soup: AnyCircuitElement[]): string {
let minX = Number.POSITIVE_INFINITY
let minY = Number.POSITIVE_INFINITY
let maxX = Number.NEGATIVE_INFINITY
Expand Down
4 changes: 2 additions & 2 deletions src/lib/svg-object-fns/create-svg-objects-from-pcb-trace.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { AnySoupElement, PCBTrace } from "@tscircuit/soup"
import type { PCBTrace } from "@tscircuit/soup"
import { pairs } from "src/utils/pairs"
import { type INode as SvgObject, stringify } from "svgson"
import type { INode as SvgObject } from "svgson"
import { applyToPoint } from "transformation-matrix"
import { LAYER_NAME_TO_COLOR } from "../layer-name-to-color"

Expand Down

0 comments on commit 500c2aa

Please sign in to comment.