Skip to content

Commit

Permalink
fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Sep 21, 2024
1 parent 3bfd875 commit 5932f52
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PCBBoard, Point } from "@tscircuit/soup"
import { applyToPoint, type Matrix } from "transformation-matrix"
import type { SvgObject } from "../svg-object"
import type { SvgObject } from "lib/svg-object"

export function createSvgObjectsFromPcbBoard(
pcbBoard: PCBBoard,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PcbSilkscreenPath, PcbFabricationNotePath } from "@tscircuit/soup"
import { applyToPoint, type Matrix } from "transformation-matrix"
import type { SvgObject } from "../svg-object"
import type { SvgObject } from "lib/svg-object"

export function createSvgObjectsFromPcbFabricationNotePath(
fabNotePath: PcbFabricationNotePath,
Expand Down
2 changes: 1 addition & 1 deletion lib/pcb/svg-object-fns/create-svg-objects-from-pcb-hole.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PCBHole } from "@tscircuit/soup"
import { applyToPoint, type Matrix } from "transformation-matrix"
import type { SvgObject } from "../svg-object"
import type { SvgObject } from "lib/svg-object"
import { HOLE_COLOR } from "../colors"

export function createSvgObjectsFromPcbHole(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PCBPlatedHole } from "@tscircuit/soup"
import { applyToPoint } from "transformation-matrix"
import type { SvgObject } from "../svg-object"
import type { SvgObject } from "lib/svg-object"

export function createSvgObjectsFromPcbPlatedHole(
hole: PCBPlatedHole,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { PcbSilkscreenPath } from "@tscircuit/soup"
import { applyToPoint, type Matrix } from "transformation-matrix"
import type { SvgObject } from "../svg-object"
import type { SvgObject } from "lib/svg-object"

export function createSvgObjectsFromPcbSilkscreenPath(
silkscreenPath: PcbSilkscreenPath,
Expand Down
5 changes: 5 additions & 0 deletions lib/sch/convert-circuit-json-to-schematic-svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,3 +385,8 @@ function getTextAnchor(anchor: string): string {
return "middle"
}
}

/**
* @deprecated use `convertCircuitJsonToSchematicSvg` instead
*/
export const circuitJsonToSchematicSvg = convertCircuitJsonToSchematicSvg

0 comments on commit 5932f52

Please sign in to comment.